Re: Two threads, two managed object contexts. Do I need locking?
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