Changeset 138


Ignore:
Timestamp:
Dec 19, 2003, 3:31:13 PM (21 years ago)
Author:
Gary Byers
Message:

Some fixes: ensure that the Cocoa demo works under OSX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/objc-runtime.lisp

    r131 r138  
    142142            (let* ((id (assign-next-class-id))
    143143                   (class (%inc-ptr class 0))
    144                    (meta (pref class :objc_class.class_pointer)))
     144                   (meta (pref class #+apple-objc :objc_class.isa #+gnu-objc :objc_class.class_pointer)))
    145145              (ensure-objc-classptr-resolved class)
    146146              (splay-tree-put objc-class-map class id)
     
    180180  (when *default-bundle-path*
    181181    (let* ((fakepath
    182             (native-translated-namestring
    183              )))
     182            (native-translated-namestring *default-bundle-executable-path*)))
    184183      (setenv "CFProcessPath" fakepath))))
    185184
     185(defloadvar *cocoa-event-process* *initial-process*)
    186186
    187187(defun run-in-cocoa-process-and-wait  (f)
     
    10091009                                        (objc-class-info-ivars info))))
    10101010          (%add-objc-class class)
     1011          (map-objc-class class)
    10111012          (%objc-class-classptr descriptor)))))
    10121013
Note: See TracChangeset for help on using the changeset viewer.