Skip to content

Instantly share code, notes, and snippets.

@nebiros
Last active August 29, 2015 14:15
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 nebiros/5c4972e8b3d57e1094b1 to your computer and use it in GitHub Desktop.
Save nebiros/5c4972e8b3d57e1094b1 to your computer and use it in GitHub Desktop.
AnEntity *anEntity = [NSEntityDescription
insertNewObjectForEntityForName:@"AnEntity"
inManagedObjectContext:context];
anEntity.personId = person.personId;
anEntity.data = [NSKeyedArchiver archivedDataWithRootObject:person];
anEntity.createdAt = [NSDate date];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment