small medium large xlarge

02 Jan 2013, 12:27
Lorenzo Boaro (4 posts)

Reading Apple doc (, 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