Re: NSWindow in threads
Re: NSWindow in threads
- Subject: Re: NSWindow in threads
- From: Joar Wingfors <email@hidden>
- Date: Tue, 26 May 2009 08:10:42 -0700
On 26 maj 2009, at 08.03, Mike Abdullah wrote:
Wow, I had no idea of this particular aspect of the rules. My
suspicion is this exists to accomodate Cocoa's ability to use window
objects for caching a view's contents to an image. Maybe the act of
showing a window is what is breaking on a secondary thread.
Perhaps so. While the guidelines states that it's safe to create the
window, that still leaves basically everything else in the NSWindow
API off bounds for use from background threads - including calling "-
orderFront:" to show the window.
The general recommendation has to be to only manipulate the UI from
the main thread. With a few exceptions, the thread safety guidelines
are currently not detailed enough to allow for anything else.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden