• 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: Two threads, two managed object contexts. Do I need locking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two threads, two managed object contexts. Do I need locking?


  • Subject: Re: Two threads, two managed object contexts. Do I need locking?
  • From: Adam Swift <email@hidden>
  • Date: Mon, 29 Jun 2009 13:32:21 -0700


On Jun 29, 2009, at 1:18 PM, Adam Swift wrote:

No, if the only time/place you access the persistent store coordinator is when you create it and then pass it into [[NSManagedObjectContext alloc] initWithPersistentStoreCoordinator:psc], then you should be fine without any additional locking.

Sigh - coffee failure - that should be [moc setPersistentStoreCoordinator:psc];
_______________________________________________


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: Two threads, two managed object contexts. Do I need locking?
      • From: Michael Greiner <email@hidden>
References: 
 >Two threads, two managed object contexts. Do I need locking? (From: Michael Greiner <email@hidden>)
 >Re: Two threads, two managed object contexts. Do I need locking? (From: Adam Swift <email@hidden>)

  • Prev by Date: Re: Two threads, two managed object contexts. Do I need locking?
  • Next by Date: Re: NSApp problem outside of bundle
  • Previous by thread: Re: Two threads, two managed object contexts. Do I need locking?
  • Next by thread: Re: Two threads, two managed object contexts. Do I need locking?
  • Index(es):
    • Date
    • Thread