Skip to content

Commit

Permalink
Update machine.m.motemplate to use objc literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Williams authored and batkuip committed Apr 25, 2013
1 parent 03bac52 commit fc6537d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const struct <$managedObjectClassName$>UserInfo <$managedObjectClassName$>UserIn

<$if ! Attribute.isReadonly$>
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_ {
[self set<$Attribute.name.initialCapitalString$>:[NSNumber <$Attribute.scalarFactoryMethodName$>value_]];
[self set<$Attribute.name.initialCapitalString$>:@(value_)];
}
<$endif$>

Expand All @@ -86,7 +86,7 @@ const struct <$managedObjectClassName$>UserInfo <$managedObjectClassName$>UserIn
}

- (void)setPrimitive<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_ {
[self setPrimitive<$Attribute.name.initialCapitalString$>:[NSNumber <$Attribute.scalarFactoryMethodName$>value_]];
[self setPrimitive<$Attribute.name.initialCapitalString$>:@(value_)];
}
<$endif$>
<$endif$>
Expand Down

0 comments on commit fc6537d

Please sign in to comment.