Skip to content

Commit

Permalink
[NEW] machine.h template now produces type-safe scalar attribute prop…
Browse files Browse the repository at this point in the history
…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 b56ec4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -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$>
Expand Down

0 comments on commit b56ec4a

Please sign in to comment.