Re: NSAlert & NSOpenPanel on a background thread
Re: NSAlert & NSOpenPanel on a background thread
- Subject: Re: NSAlert & NSOpenPanel on a background thread
- From: edward taffel <email@hidden>
- Date: Thu, 22 May 2014 12:38:00 -0400
On May 22, 2014, at 12:24 PM, Jens Alfke <email@hidden> wrote:
>
> 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
based on your first advice, i had already resolved to show the NSOpenPanel on the main thread, as well.
thanks again!
_______________________________________________
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