• 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: NSOperation and threadDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperation and threadDictionary


  • Subject: Re: NSOperation and threadDictionary
  • From: Roland King <email@hidden>
  • Date: Thu, 23 Sep 2010 08:00:13 +0800

>
> Seems reasonable. The only problem I foresee is that if the system is recycling threads for subsequent NSOperations, I don't think you'll get the NSThreadWillExitNotification, because the thread itself never exits.
>

Do you care? In my case I only care that the MOC is appropriate for the thread I'm on, I don't need it to be empty and brand new, if it's primed with data that's actually a bonus for me. If you do then you might want to add another method to the singleton to explictly destroy the MOC for your thread, and call it after you save data or just before the method you're running on the queue exits so the next guy will definitely get a fresh one.

_______________________________________________

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

  • Follow-Ups:
    • Re: NSOperation and threadDictionary
      • From: Rick Mann <email@hidden>
References: 
 >NSOperation and threadDictionary (From: Rick Mann <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Julien Poissonnier <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Rick Mann <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Kyle Sluder <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Rick Mann <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Roland King <email@hidden>)
 >Re: NSOperation and threadDictionary (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: NSOperation and threadDictionary
  • Next by Date: Re: NSOperation and threadDictionary
  • Previous by thread: Re: NSOperation and threadDictionary
  • Next by thread: Re: NSOperation and threadDictionary
  • Index(es):
    • Date
    • Thread