Changeset 240
- Timestamp:
- Jan 7, 2004, 4:30:28 PM (21 years ago)
- Location:
- trunk/ccl/examples
- Files:
-
- 2 edited
-
cocoa-window.lisp (modified) (8 diffs)
-
cocoa.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/cocoa-window.lisp
r154 r240 18 18 (in-package "CCL") ; for now. 19 19 20 (eval-when (:compile-toplevel :execute)21 (use-interface-dir :cocoa))22 23 20 (eval-when (:compile-toplevel :load-toplevel :execute) 24 21 (require "OBJC-SUPPORT")) 22 23 (eval-when (:compile-toplevel :execute) 24 (use-interface-dir #+apple-objc :cocoa #+gnu-objc :gnustep)) 25 25 26 26 27 (defun init-cocoa-application () … … 47 48 48 49 49 50 #+apple-objc 50 51 (defun trace-dps-events (flag) 51 52 (external-call "__DPSSetEventsTraced" … … 94 95 95 96 96 97 #+apple-objc 97 98 (define-objc-method ("_shouldTerminate" lisp-application) 98 99 (:<BOOL>) … … 105 106 "LispApplicationDelegate") 106 107 108 #+apple-objc 107 109 (defun enable-foreground () 108 110 (%stack-block ((psn 8)) … … 125 127 ;;; split off this way because we don't necessarily wamt to just do 126 128 ;; (#_exit 0) when we've shut down the Cocoa UI. 129 #+apple-objc 127 130 (define-objc-method ((:void shutdown) 128 131 lisp-application) … … 174 177 175 178 179 #+apple-objc 176 180 (defmethod process-verify-quit ((process appkit-process)) 177 181 (let* ((app *NSApp*)) … … 191 195 (send app 'termp))))) 192 196 197 #+apple-objc 193 198 (defmethod process-exit-application ((process appkit-process) thunk) 194 199 (when (eq process *initial-process*) … … 211 216 ;; that it does is to release all autorelease pools. So, we create 212 217 ;; one, but don't worry about freeing it ... 213 (create-autorelease-pool) 214 (objc-message-send app "_deallocHardCore:" :<BOOL> #$YES :void))) 218 #+apple-objc 219 (progn 220 (create-autorelease-pool) 221 (objc-message-send app "_deallocHardCore:" :<BOOL> #$YES :void)))) 215 222 216 223 -
trunk/ccl/examples/cocoa.lisp
r155 r240 6 6 ;;; below. 7 7 8 #+darwinppc-target 9 (progn 8 10 (require "FAKE-CFBUNDLE-PATH") 9 (fake-cfbundle-path "ccl:OpenMCL.app;Contents;MacOS;dppccl") 11 (fake-cfbundle-path "ccl:OpenMCL.app;Contents;MacOS;dppccl")) 10 12 11 13
Note:
See TracChangeset
for help on using the changeset viewer.
