Changeset 5886


Ignore:
Timestamp:
Feb 10, 2007, 9:34:57 PM (18 years ago)
Author:
Gary Byers
Message:

Some indentation changes and slight reorganization of the code; shouldn't
be any functional/semantic changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/cocoa-window.lisp

    r5730 r5886  
    197197                                 #'(lambda ()
    198198                                     (loop
    199                                         (%nanosleep *periodic-task-seconds*
    200                                                      *periodic-task-nanoseconds*)
    201                                         (housekeeping))))
     199                                      (%nanosleep *periodic-task-seconds*
     200                                                   *periodic-task-nanoseconds*)
     201                                      (housekeeping))))
    202202           
    203203           (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))))
    215216           (run-event-loop)))
    216217    (process-interrupt *cocoa-event-process* #'(lambda ()
Note: See TracChangeset for help on using the changeset viewer.