Skip to content

Commit a716c87

Browse files
committed
[FIX] Got a little too agressive with replacing NSSet.
1 parent 4e9a045 commit a716c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/machine.m.motemplate

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
return (<$managedObjectClassName$>ID*)[super objectID];
2727
}
2828

29-
+ (<$Relationship.immutableCollectionClassName$> *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
30-
<$Relationship.immutableCollectionClassName$> *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
29+
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
30+
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
3131
<$foreach Attribute noninheritedAttributes do$><$if Attribute.hasDefinedAttributeType$><$if Attribute.hasScalarAttributeType$>
3232
if ([key isEqualToString:@"<$Attribute.name$>Value"]) {
33-
<$Relationship.immutableCollectionClassName$> *affectingKey = [<$Relationship.immutableCollectionClassName$> setWithObject:@"<$Attribute.name$>"];
33+
NSSet *affectingKey = [NSSet setWithObject:@"<$Attribute.name$>"];
3434
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
3535
}<$endif$><$endif$><$endforeach do$>
3636

0 commit comments

Comments
 (0)