• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Threading and NSApplicationMain()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Threading and NSApplicationMain() (From: Rob Ross <email@hidden>)
 >Re: Threading and NSApplicationMain() (From: Nick Zitzmann <email@hidden>)
 >Re: Threading and NSApplicationMain() (From: Rosyna <email@hidden>)

  • Prev by Date: Re: NSOutlineView variable width cell
  • Next by Date: [MEETING] Toronto Area Cocoa & WebObjects Developer Group - October 10
  • Previous by thread: Re: Threading and NSApplicationMain()
  • Next by thread: Scriptable Core Data app
  • Index(es):
    • Date
    • Thread