Skip to content

Instantly share code, notes, and snippets.

@badeen
Created March 30, 2013 19:31
Show Gist options
  • Save badeen/5278042 to your computer and use it in GitHub Desktop.
Save badeen/5278042 to your computer and use it in GitHub Desktop.
I'm guessing this is bad when multiple contexts are at play.
- (void)managedObjectContextDidChange:(NSNotification *)note
{
NSArray *updatedObjects = [note userInfo][NSUpdatedObjectsKey];
if ([updatedObjects containsObject:self.user]) {
[self updateView:YES];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment