Re: Threading and NSApplicationMain()
Re: Threading and NSApplicationMain()
- Subject: Re: Threading and NSApplicationMain()
- From: Hsu <email@hidden>
- Date: Thu, 14 Sep 2006 15:47:04 -0700
not thread safe does not mean main thread most of the time (with
the exclusion of NSAppleScript which is documented explicitly at
least 3 times as
In general, AppKit is both "not thread safe" and "restricted to the
main thread", even if not documented as such.
OS X itself may put the runloop in a non-main thread in certain
circumstances (rosetta, java).
I cannot speak for Rosetta, but only Java 1.3 played "fast and loose"
with the main runloop on non-main (i.e. non-Thread-0) threads, and it
was the result of much random crashing. All versions of Java past
that (1.4.2+) have tried very hard to only invoke AppKit on Thread-0.
Karl
--
What do you get if you cross an elephant with a grape?
|grape| * |elephant| * sin(theta).
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden