Permalink
Browse files

[NEW] NSParameterAssert(moc) in fetch request wrappers.

  • Loading branch information...
1 parent c999588 commit 015aa0bec7dae21058c057bfa6b4f6748e444e00 @rentzsch rentzsch committed May 2, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 templates/machine.m.motemplate
@@ -74,6 +74,7 @@
return result;
}
+ (id)fetch<$FetchRequest.name.initialCapitalString$>:(NSManagedObjectContext*)moc_ <$foreach Binding FetchRequest.bindings do2$><$Binding.name$>:(<$Binding.type$>)<$Binding.name$>_ <$endforeach do2$>error:(NSError**)error_ {
+ NSParameterAssert(moc_);
NSError *error = nil;
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];
@@ -122,6 +123,7 @@
return result;
}
+ (NSArray*)fetch<$FetchRequest.name.initialCapitalString$>:(NSManagedObjectContext*)moc_ <$foreach Binding FetchRequest.bindings do2$><$Binding.name$>:(<$Binding.type$>)<$Binding.name$>_ <$endforeach do2$>error:(NSError**)error_ {
+ NSParameterAssert(moc_);
NSError *error = nil;
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];

0 comments on commit 015aa0b

Please sign in to comment.