Permalink
Browse files

[NEW] +insertInManagedObjectContext: NSParameterAssert's its moc arg.

  • Loading branch information...
1 parent 6bd8051 commit 5ff20395ccdcde12955483046ee30ed215d3b920 @rentzsch committed Oct 17, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 templates/machine.m.motemplate
@@ -9,7 +9,8 @@
@implementation _<$managedObjectClassName$>
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
- return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_];
+ NSParameterAssert(moc_);
+ return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_];
}
- (<$managedObjectClassName$>ID*)objectID {

0 comments on commit 5ff2039

Please sign in to comment.