Re: NSAlert & NSOpenPanel on a background thread
Re: NSAlert & NSOpenPanel on a background thread
- Subject: Re: NSAlert & NSOpenPanel on a background thread
- From: Jens Alfke <email@hidden>
- Date: Thu, 22 May 2014 09:24:23 -0700
On May 22, 2014, at 8:54 AM, edward taffel <email@hidden> wrote:
> i find no mention of thread safety in the NSOpenPanel doc, but the doc mentions ‘Open panels are drawn in a separate process by the powerbox’: perhaps this is the reason.
That’s done because the Open panel itself can’t be bound by the limitations of a sandboxed process. It doesn’t necessarily mean that the NSOpenPanel code in your process is thread-safe, though, so unless you’re told that it can be used on a background thread I wouldn’t do it. Even if it works today, you might find it crashes in two weeks when you try it on the (hypothetical) beta of 10.10.
—Jens
_______________________________________________
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