summaryrefslogtreecommitdiff
path: root/Lisp
diff options
context:
space:
mode:
Diffstat (limited to 'Lisp')
-rw-r--r--Lisp/lisp-value-wrapping.lisp3
-rw-r--r--Lisp/method-definition.lisp7
2 files changed, 8 insertions, 2 deletions
diff --git a/Lisp/lisp-value-wrapping.lisp b/Lisp/lisp-value-wrapping.lisp
index 1406a95..dbc5ae9 100644
--- a/Lisp/lisp-value-wrapping.lisp
+++ b/Lisp/lisp-value-wrapping.lisp
@@ -71,12 +71,13 @@
;; Must override:
;; - characterAtIndex:
;; - length
+;; - replaceCharactersInRange:withString:
;;
;; May usefully override, among others:
;; - substringWithRange: (maybe)
;; - getCharacters:range: (for performance reasons)
;; - description
-(defclass ns::mlk-lisp-string (ns::ns-string lisp-value-wrapper-mixin)
+(defclass ns::mlk-lisp-string (ns::ns-mutable-string lisp-value-wrapper-mixin)
()
(:metaclass ns::+ns-object))
diff --git a/Lisp/method-definition.lisp b/Lisp/method-definition.lisp
index a000c49..c8ce0dd 100644
--- a/Lisp/method-definition.lisp
+++ b/Lisp/method-definition.lisp
@@ -463,9 +463,14 @@ __define-objective-c-generic-function__.
(eval (loop for type in argument-types
for typespec = (typespec type)
for symbol in arg-symbols
+ for first-arg-p = t then nil
collect (list symbol (typespec->c-type typespec)) into cffi-lambda-list
if (member (typespec-primary-type typespec) '(:id :class :selector))
- collect `(intern-pointer-wrapper ',type :pointer ,symbol)
+ collect `(coerce-object ,symbol ',type)
+ #+nil
+ `(intern-pointer-wrapper ',type
+ :pointer ,symbol
+ :skip-wrapper-unwrapping ,first-arg-p)
into arguments
else
collect symbol into arguments