From a716c87b88b4614520175694d6e910bd38114602 Mon Sep 17 00:00:00 2001 From: rentzsch Date: Fri, 1 Jul 2011 04:57:00 -0500 Subject: [PATCH] [FIX] Got a little too agressive with replacing NSSet. --- templates/machine.m.motemplate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 27610405..82ffd6ed 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -26,11 +26,11 @@ return (<$managedObjectClassName$>ID*)[super objectID]; } -+ (<$Relationship.immutableCollectionClassName$> *)keyPathsForValuesAffectingValueForKey:(NSString *)key { - <$Relationship.immutableCollectionClassName$> *keyPaths = [super keyPathsForValuesAffectingValueForKey:key]; ++ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { + NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key]; <$foreach Attribute noninheritedAttributes do$><$if Attribute.hasDefinedAttributeType$><$if Attribute.hasScalarAttributeType$> if ([key isEqualToString:@"<$Attribute.name$>Value"]) { - <$Relationship.immutableCollectionClassName$> *affectingKey = [<$Relationship.immutableCollectionClassName$> setWithObject:@"<$Attribute.name$>"]; + NSSet *affectingKey = [NSSet setWithObject:@"<$Attribute.name$>"]; keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey]; }<$endif$><$endif$><$endforeach do$>