Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Update ANDYDataManager.m
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Oct 1, 2014
1 parent 917865e commit e82042f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ANDYDataManager/ANDYDataManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ + (NSManagedObjectContext *)backgroundContext
NSManagedObjectContext *context = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
context.persistentStoreCoordinator = [[self sharedManager] persistentStoreCoordinator];
context.undoManager = nil;
context.mergePolicy = NSOverwriteMergePolicy;

[[NSNotificationCenter defaultCenter] addObserver:[self sharedManager]
selector:@selector(backgroundThreadDidSave:)
name:NSManagedObjectContextDidSaveNotification
Expand Down

0 comments on commit e82042f

Please sign in to comment.