From 5ff20395ccdcde12955483046ee30ed215d3b920 Mon Sep 17 00:00:00 2001 From: rentzsch Date: Sat, 17 Oct 2009 02:34:59 -0400 Subject: [PATCH] [NEW] +insertInManagedObjectContext: NSParameterAssert's its moc arg. --- templates/machine.m.motemplate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 5e5984ce..db34071c 100644 --- a/templates/machine.m.motemplate +++ b/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 {