Changeset 158


Ignore:
Timestamp:
Dec 29, 2003, 12:19:23 AM (21 years ago)
Author:
Gary Byers
Message:

SUPER's gensym'ed in methods; FLET SUPER accesses it.
Remove the CFBUNDLE stuff, so this file can be loaded when it isn't
necessary.

File:
1 edited

Legend:

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

    r153 r158  
    5454(defloadvar *NSApp* nil )
    5555
    56 (declaim (special *default-bundle-path* *default-bundle-executable-path*))
    5756
    5857(defun ensure-objc-classptr-resolved (classptr)
     
    167166                                       (funcall f (id->objc-class id)))))
    168167
    169 (eval-when (:load-toplevel :execute)
    170   (unless (boundp '*default-bundle-path*)
    171     (error "The variable ~s should be set to point to the application bundle path" '*default-bundle-path*))
    172   (unless (probe-file *default-bundle-path*)
    173     (error "The bundle directory ~s doesn't exist."))
    174   (unless (boundp '*default-bundle-executable-path*)
    175     (error "The variable ~S should be set to point to the bundle executable file in ~s" '*default-bundle-executable-path* '*default-bundle-path*))
    176   (unless (probe-file *default-bundle-executable-path*)
    177     (cerror "Create it"
    178             "The executable file ~s does not exist."
    179             *default-bundle-executable-path*)
    180     (create-file *default-bundle-executable-path*)))
     168
    181169
    182170#+darwinppc-target
    183171(progn
    184 (defun fake-cfbundle-path ()
    185   (when *default-bundle-path*
    186     (let* ((fakepath
    187             (native-translated-namestring *default-bundle-executable-path*)))
    188       (setenv "CFProcessPath" fakepath))))
    189 
    190172(defloadvar *cocoa-event-process* *initial-process*)
    191173
     
    203185
    204186
    205 
    206 (fake-cfbundle-path)
    207187
    208188
     
    13631343               (self (intern "SELF"))
    13641344               (_cmd (intern "_CMD"))
    1365                ;; SUPER should probably be a gensym, but that'd break
    1366                ;; the old [:super ...] construct
    1367                (super 'super)
     1345               (super (gensym "SUPER"))
    13681346               (params `(:id ,self :<sel> ,_cmd ,@argspecs)))
    13691347          `(progn
     
    13921370                               (make-general-send nil msg args nil ,super ,class-name))
    13931371                             (%send-super/stret (s msg &rest args)
    1394                                (make-general-send nil msg args s ,super ,class-name)))
     1372                               (make-general-send nil msg args s ,super ,class-name))
     1373                             (super () ,super))
    13951374                        ,@body)))))
    13961375            (%define-lisp-objc-method
Note: See TracChangeset for help on using the changeset viewer.