Skip to content

Instantly share code, notes, and snippets.

@rentzsch
Created November 23, 2010 02:54
Show Gist options
  • Save rentzsch/711151 to your computer and use it in GitHub Desktop.
Save rentzsch/711151 to your computer and use it in GitHub Desktop.
- (void)workerThreadObjectContextDidSave:(NSNotification*)notification_ {
NSManagedObjectContext *moc = [[NSApp delegate] managedObjectContext];
SEL mergeChanges = @selector(mergeChangesFromContextDidSaveNotification:);
[moc performSelectorOnMainThread:mergeChanges
withObject:notification_
waitUntilDone:NO];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment