Skip to content

Commit

Permalink
We should generally ensure we work with the main managed object conte…
Browse files Browse the repository at this point in the history
…xt on the main thread.
  • Loading branch information
lukeredpath committed Mar 21, 2010
1 parent 00128f9 commit 0032807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/TrackerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ - (IBAction)showNewProjectScreen;

- (void)syncManagerDidSync:(NSNotification *)note;
{
[managedObjectContext mergeChangesFromContextDidSaveNotification:note];
[managedObjectContext performSelectorOnMainThread:@selector(mergeChangesFromContextDidSaveNotification:) withObject:note waitUntilDone:NO];
}

- (void)controllerDidChangeContent:(NSFetchedResultsController *)controller
Expand Down

0 comments on commit 0032807

Please sign in to comment.