Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
DON'T insert other objects from -awakeFromInsert like this example does
- (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