Skip to content

Instantly share code, notes, and snippets.

@Br1an-Boyle
Last active August 29, 2015 14:15
Show Gist options
  • Save Br1an-Boyle/9dbf91388616718e9fe5 to your computer and use it in GitHub Desktop.
Save Br1an-Boyle/9dbf91388616718e9fe5 to your computer and use it in GitHub Desktop.
Worker Context Config
+ (NSManagedObjectContext *)temporaryWorkerContext {
NSManagedObjectContext *tempMOContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
tempMOContext.parentContext = _mainManagedObjectContext;
return tempMOContext;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment