Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created March 27, 2012 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/2217400 to your computer and use it in GitHub Desktop.
Save mikeabdullah/2217400 to your computer and use it in GitHub Desktop.
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