From 6aff9fd9f242315d52b972bd3550978dd5872cd9 Mon Sep 17 00:00:00 2001 From: Daniel Tull Date: Wed, 25 Jan 2012 01:51:29 +0000 Subject: [PATCH] Fix to test for not arc --- templates/machine.m.motemplate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index e53214a8..fa1b547d 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -195,7 +195,7 @@ const struct <$managedObjectClassName$>FetchedProperties <$managedObjectClassNam <$if Relationship.isToMany$> - (NSFetchedResultsController *)new<$Relationship.name.initialCapitalString$>FetchedResultsControllerWithSortDescriptors:(NSArray *)sortDescriptors { NSFetchRequest *fetchRequest = [NSFetchRequest new]; - <$if !TemplateVar.frc$>[fetchRequest autorelease];<$endif$> + <$if !TemplateVar.arc$>[fetchRequest autorelease];<$endif$> fetchRequest.entity = [NSEntityDescription entityForName:@"<$Relationship.destinationEntity.name$>" inManagedObjectContext:self.managedObjectContext]; fetchRequest.predicate = [NSPredicate predicateWithFormat:@"<$Relationship.inverseRelationship.name$> <$if Relationship.inverseRelationship.isToMany$>CONTAINS<$else$>==<$endif$> %@", self]; fetchRequest.sortDescriptors = sortDescriptors;