02 Jan 2013, 12:27
Generic-user-small

Lorenzo Boaro (4 posts)

Reading Apple doc (http://developer.apple.com/library/mac/#releasenotes/DataManagement/RN-CoreData/_index.html), I’ve noticed the following about NSConfinementConcurrencyType:

bq. You cannot use this concurrency type in conjunction with the new nested contexts feature

But in Chapter 5 (Parent/Child NSManagedObjectContext Instances), PPRImportOperationAlt1 class, you do the following:

NSManagedObjectContext *localMOC = nil;
NSUInteger type = NSConfinementConcurrencyType;
localMOC = [[NSManagedObjectContext alloc] initWithConcurrencyType:type];
[localMOC setParentContext:[self mainContext]];

Is this ok?

Thank you in advance.

  You must be logged in to comment