Skip to content

Instantly share code, notes, and snippets.

@bananita
Created January 29, 2014 10:29
Show Gist options
  • Save bananita/dce501a1c2ffc53261f0 to your computer and use it in GitHub Desktop.
Save bananita/dce501a1c2ffc53261f0 to your computer and use it in GitHub Desktop.
@implementation ChildManagedObjectContext
- (BOOL)save:(NSError *__autoreleasing *)error
{
NSError* superError;
BOOL superResult = [super save:&superError];
if (!superResult) {
*error = superError;
return NO;
}
return [self.parentContext save:error];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment