From 015aa0bec7dae21058c057bfa6b4f6748e444e00 Mon Sep 17 00:00:00 2001 From: rentzsch Date: Sun, 2 May 2010 18:26:23 -0500 Subject: [PATCH] [NEW] NSParameterAssert(moc) in fetch request wrappers. --- templates/machine.m.motemplate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 5cdb4b35..f16a3767 100644 --- a/templates/machine.m.motemplate +++ b/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];