Created
March 27, 2012 15:54
-
-
Save mikeabdullah/2217400 to your computer and use it in GitHub Desktop.
DON'T insert other objects from -awakeFromInsert like this example does
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)awakeFromInsert | |
{ | |
[super awakeFromInsert]; | |
Partner *partner = [NSEntityDescription | |
insertNewObjectForEntityForName:@"Partner" | |
inManagedObjectContext:[self managedObjectContext]]; | |
[self setPartner:partner]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment