• 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: Works in main Thread, but not in background Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Works in main Thread, but not in background Thread


  • Subject: Re: Works in main Thread, but not in background Thread
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 7 Jan 2009 10:04:28 -0700


On Jan 7, 2009, at 7:57 AM, John Love wrote:

Let me wrap this up by saying when myRoutine is called in my main thread, everything works fine .. but when called by my background thread (via [NSThread detachNewThreadSelector:toTarget:withObject:] it definitely does not work.


There are a handful of things in the AppKit that are documented as being thread-safe, and NSWorkspace is not one of those things. I think it's safe to assume that it isn't.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: 
 >Works in main Thread, but not in background Thread (From: John Love <email@hidden>)

  • Prev by Date: Re: Convert GWorldPtr into a NSImage
  • Next by Date: Re: QTMovieLayer and QCCompositionLayer Don't Start
  • Previous by thread: Works in main Thread, but not in background Thread
  • Next by thread: Works in main Thread, but not in background Thread (modified)
  • Index(es):
    • Date
    • Thread