Changeset 133
- Timestamp:
- Dec 19, 2003, 1:36:02 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/bridge.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/bridge.lisp
r124 r133 25 25 (in-package "CCL") 26 26 27 #+darwinppc-target 28 (require "APPLE-OBJC") 29 #+linuxppc-target 30 (require "GNU-OBJC") 27 (require "OBJC-RUNTIME") 31 28 (require "NAME-TRANSLATION") 32 29 33 30 34 ;;; Define the #@"XXX" dispatch macro for constant NSStrings from APPLE-OBJ.LISP35 ;;; in the current readtable36 37 (set-dispatch-macro-character38 #\#39 #\@40 (nfunction41 |objc-#@-reader|42 (lambda (stream subchar numarg)43 (declare (ignore subchar numarg))44 (let* ((string (read stream)))45 (check-type string string)46 `(@ ,string)))))47 31 48 32 … … 190 174 191 175 (defun get-method (class sel) 192 (let ((m ( #_class_getInstanceMethod class sel)))176 (let ((m (class-get-instance-method class sel))) 193 177 (if (%null-ptr-p m) 194 178 (error "Instances of ObjC class ~S cannot respond to the message ~S" … … 201 185 202 186 (defun get-class-method (class sel) 203 (let ((m ( #_class_getClassMethod class sel)))187 (let ((m (class-get-class-method class sel))) 204 188 (if (%null-ptr-p m) 205 189 (error "ObjC class ~S cannot respond to the message ~S" … … 385 369 (objc-foreign-arg-type (method-typestring m)) 386 370 (%stack-block ((type 4) (offset 4)) 387 (loop for i from 2 below ( #_method_getNumberOfArguments m)371 (loop for i from 2 below (method-get-number-of-arguments m) 388 372 do (#_method_getArgumentInfo m i type offset) 389 373 collect
Note:
See TracChangeset
for help on using the changeset viewer.
