Changeset 158
- Timestamp:
- Dec 29, 2003, 12:19:23 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/objc-runtime.lisp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/objc-runtime.lisp
r153 r158 54 54 (defloadvar *NSApp* nil ) 55 55 56 (declaim (special *default-bundle-path* *default-bundle-executable-path*))57 56 58 57 (defun ensure-objc-classptr-resolved (classptr) … … 167 166 (funcall f (id->objc-class id))))) 168 167 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 181 169 182 170 #+darwinppc-target 183 171 (progn 184 (defun fake-cfbundle-path ()185 (when *default-bundle-path*186 (let* ((fakepath187 (native-translated-namestring *default-bundle-executable-path*)))188 (setenv "CFProcessPath" fakepath))))189 190 172 (defloadvar *cocoa-event-process* *initial-process*) 191 173 … … 203 185 204 186 205 206 (fake-cfbundle-path)207 187 208 188 … … 1363 1343 (self (intern "SELF")) 1364 1344 (_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")) 1368 1346 (params `(:id ,self :<sel> ,_cmd ,@argspecs))) 1369 1347 `(progn … … 1392 1370 (make-general-send nil msg args nil ,super ,class-name)) 1393 1371 (%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)) 1395 1374 ,@body))))) 1396 1375 (%define-lisp-objc-method
Note:
See TracChangeset
for help on using the changeset viewer.
