From 932c4b382ab086faf76e167d3051bafa087321ae Mon Sep 17 00:00:00 2001 From: rentzsch Date: Fri, 1 Jul 2011 05:07:31 -0500 Subject: [PATCH] [FIX] Cast mutableSetValueForKey: to an NSMutableOrderedSet (hope that's right). --- 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 82ffd6ed..39fa43ad 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -71,7 +71,7 @@ <$if Relationship.isToMany$> - (<$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set { [self willAccessValueForKey:@"<$Relationship.name$>"]; - <$Relationship.mutableCollectionClassName$> *result = [self mutableSetValueForKey:@"<$Relationship.name$>"]; + <$Relationship.mutableCollectionClassName$> *result = (<$Relationship.mutableCollectionClassName$>*)[self mutableSetValueForKey:@"<$Relationship.name$>"]; [self didAccessValueForKey:@"<$Relationship.name$>"]; return result; }