Changeset 5886
- Timestamp:
- Feb 10, 2007, 9:34:57 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/cocoa-window.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/cocoa-window.lisp
r5730 r5886 197 197 #'(lambda () 198 198 (loop 199 (%nanosleep *periodic-task-seconds*200 *periodic-task-nanoseconds*)201 (housekeeping))))199 (%nanosleep *periodic-task-seconds* 200 *periodic-task-nanoseconds*) 201 (housekeeping)))) 202 202 203 203 (with-autorelease-pool 204 (enable-foreground) 205 (or *NSApp* (setq *NSApp* (init-cocoa-application))) 206 (send *NSApp* :set-application-icon-image 207 (send (@class ns-image) :image-Named #@"NSApplicationIcon")) 208 (setf (application-ui-object *application*) *NSApp*) 209 210 (when application-proxy-class-name 211 (let* ((classptr (%objc-class-classptr 212 (load-objc-class-descriptor application-proxy-class-name)))) 213 (send *NSApp* :set-delegate 214 (send (send classptr 'alloc) 'init))))) 204 (enable-foreground) 205 (or *NSApp* (setq *NSApp* (init-cocoa-application))) 206 (let* ((icon (send (@class ns-image) :image-named #@"NSApplicationIcon"))) 207 (unless (%null-ptr-p icon) 208 (send *NSApp* :set-application-icon-image icon))) 209 (setf (application-ui-object *application*) *NSApp*) 210 (when application-proxy-class-name 211 (let* ((classptr (%objc-class-classptr 212 (load-objc-class-descriptor application-proxy-class-name))) 213 (instance (send (send classptr 'alloc) 'init))) 214 215 (send *NSApp* :set-delegate instance)))) 215 216 (run-event-loop))) 216 217 (process-interrupt *cocoa-event-process* #'(lambda ()
Note:
See TracChangeset
for help on using the changeset viewer.
