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...
rentzsch committed Dec 29, 2009
1 parent f54e32b commit b56ec4aebe0146b7c4258111274fb4a4fbb3e01e
Showing with 1 addition and 0 deletions.
  1. +1 −0 templates/machine.h.motemplate
@@ -17,6 +17,7 @@
<$if Attribute.hasDefinedAttributeType$>
@property (nonatomic, retain) <$Attribute.objectAttributeType$> *<$$>;
<$if Attribute.hasScalarAttributeType$>
+@property <$Attribute.scalarAttributeType$> <$$>Value;
- (<$Attribute.scalarAttributeType$>)<$$>Value;
- (void)set<$$>Value:(<$Attribute.scalarAttributeType$>)value_;

0 comments on commit b56ec4a

Please sign in to comment.