“Setter methods on queue-based managed object contexts are thread-safe. You can 
invoke these methods directly on any thread”

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/index.html

> On Jul 28, 2015, at 11:49 PM, Trygve Inda <cocoa...@xericdesign.com> wrote:
> 
> 
> So what has to be called though performBlock??
> 
> NSManagedObjectContext* privateContext = [[NSManagedObjectContext alloc]
> initWithConcurrencyType:NSPrivateQueueConcurrencyType];
> 
> 
> // Are these legal to call without using performBlock?
> [privateContext setPersistentStoreCoordinator:myCoordinator];
> [privateContext setUndoManager:nil];
> 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to