Changeset 653


Ignore:
Timestamp:
Mar 17, 2004, 7:19:41 AM (21 years ago)
Author:
Gary Byers
Message:

Create an NSThread early.

File:
1 edited

Legend:

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

    r642 r653  
    4545                :load-nib-named mainnibname
    4646                :owner app)
     47          ;; Create an NSThread which does nothing but exit.
     48          ;; This'll help to convince the AppKit that we're
     49          ;; multitheaded.  (A lot of other things, including
     50          ;; the ObjC runtime, seem to have already noticed.)
     51          (send (@class "NSThread")
     52                :detach-new-thread-selector (@selector "exit")
     53                :to-target (@class "NSThread")
     54                :with-object (%null-ptr))
    4755          app))))
    4856
Note: See TracChangeset for help on using the changeset viewer.