On 22 May 2014, at 10:54 AM, edward taffel <etaf...@me.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to