Permalink
Browse files

[NEW] machine.h template now produces type-safe scalar attribute prop…

…erty declarations.

For example, this is what was previously generated:
  @property (nonatomic, retain) NSNumber *age;
Now this is:
  @property (nonatomic, retain) NSNumber *age;
  @property int ageValue;
  • Loading branch information...
1 parent f54e32b commit b56ec4aebe0146b7c4258111274fb4a4fbb3e01e @rentzsch committed Dec 29, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 templates/machine.h.motemplate
View
1 templates/machine.h.motemplate
@@ -17,6 +17,7 @@
<$if Attribute.hasDefinedAttributeType$>
@property (nonatomic, retain) <$Attribute.objectAttributeType$> *<$Attribute.name$>;
<$if Attribute.hasScalarAttributeType$>
+@property <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
<$endif$>

0 comments on commit b56ec4a

Please sign in to comment.