Re: NSAlert & NSOpenPanel on a background thread
Re: NSAlert & NSOpenPanel on a background thread
- Subject: Re: NSAlert & NSOpenPanel on a background thread
- From: Fritz Anderson <email@hidden>
- Date: Thu, 22 May 2014 11:23:30 -0500
On 22 May 2014, at 10: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.
This is one of those rules so universal in Apple APIs that it is never repeated, so it can be easy to miss:
No Apple API is thread-safe unless expressly documented as being so.
Breaking the rule may work for some combinations of hardware, application, OS, and luck, but breaking it is as far outside the API contract as you can get. What you found in the documentation makes your inference reasonable, but “reasonable” and “true” are not the same thing.
— F
_______________________________________________
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