Permalink
Browse files

Change concurrency type to mainQueue

  • Loading branch information...
arielitovsky committed Jul 27, 2012
1 parent 5c79ea0 commit 7f66185f5cd7c5d25b7582e97bdbe966f49ddcc2
@@ -106,7 +106,8 @@ + (void) MR_resetDefaultContext
+ (NSManagedObjectContext *) MR_contextWithoutParent;
{
NSManagedObjectContext *context = [[self alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
//Arie modification - changed concurrency type from main quere to prevent crashes with undo manager
NSManagedObjectContext *context = [[self alloc] initWithConcurrencyType:NSMainQueueConcurrencyType];
return context;
}
@@ -144,6 +145,7 @@ + (NSManagedObjectContext *) MR_contextWithStoreCoordinator:(NSPersistentStoreCo
if (coordinator != nil)
{
context = [self MR_contextWithoutParent];
[context performBlockAndWait:^{
[context setPersistentStoreCoordinator:coordinator];
}];

1 comment on commit 7f66185

@arielitovsky

This comment has been minimized.

Show comment
Hide comment
@arielitovsky

arielitovsky Oct 11, 2012

Owner

Comment should read "changed concurrency type TO main queue

Owner

arielitovsky commented on 7f66185 Oct 11, 2012

Comment should read "changed concurrency type TO main queue

Please sign in to comment.