Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. A
  2. /
  3. B C
  4.  
  5. -(void)contextDidSaveNotification:(NSNotification *)notification
  6. {
  7. NSManagedObjectContext *context = [notification object];
  8. if(context!=_moc.parentContext)
  9. return;
  10. NSLog(@"Context %@ did save, merging into %@, info:n%@", context, _moc, [notification userInfo]);
  11. [_moc mergeChangesFromContextDidSaveNotification:notification];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement