Skip to content

Commit

Permalink
Added new template-var to enable generation of objc literals
Browse files Browse the repository at this point in the history
  • Loading branch information
batkuip committed Apr 25, 2013
1 parent fc6537d commit 8b203a0
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$>:@(value_)];
[self set<$Attribute.name.initialCapitalString$>:<$if TemplateVar.nolit$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
}
<$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$>:@(value_)];
[self setPrimitive<$Attribute.name.initialCapitalString$>:<$if TemplateVar.nolit$>[NSNumber <$Attribute.scalarFactoryMethodName$>value_]<$else$>@(value_)<$endif$>];
}
<$endif$>
<$endif$>
Expand Down

0 comments on commit 8b203a0

Please sign in to comment.