Re: NSWindow in threads
Re: NSWindow in threads
- Subject: Re: NSWindow in threads
- From: Michael Ash <email@hidden>
- Date: Tue, 26 May 2009 11:12:25 -0400
On Tue, May 26, 2009 at 10:51 AM, Joar Wingfors <email@hidden> wrote:
> Your comment is correct in general, but according to the thread safety
> guidelines you're supposed to be able to create windows on background
> threads:
>
> <http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html#//apple_ref/doc/uid/10000057i-CH12-123364>
I love that section of the docs. It starts off saying that this
activity is safe. And then it says,
"There is some possibility that window objects may leak in an
application that deals with a lot of windows concurrently."
To me, the conclusion to draw from that is that it really isn't safe,
no matter what Apple says about it. If something can go wrong if
there's too much concurrency, it's not really thread safe!
(Obviously a simple leak would not explain the problem the OP is
seeing, though.)
Mike
_______________________________________________
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