• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow in threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSWindow in threads (From: Mattias Jansson <email@hidden>)
 >Re: NSWindow in threads (From: Mike Abdullah <email@hidden>)
 >Re: NSWindow in threads (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: warning 'NSEvent' may not respond to '+eventWithEventRef:'
  • Next by Date: Re: Displaying a number with Quartz
  • Previous by thread: Re: NSWindow in threads
  • Next by thread: what am I missing with NSString ?
  • Index(es):
    • Date
    • Thread