Skip to content
This repository
Browse code

[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...
commit b56ec4aebe0146b7c4258111274fb4a4fbb3e01e 1 parent f54e32b
Jonathan 'Wolf' Rentzsch authored December 28, 2009

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  templates/machine.h.motemplate
1  templates/machine.h.motemplate
@@ -17,6 +17,7 @@
17 17
 <$if Attribute.hasDefinedAttributeType$>
18 18
 @property (nonatomic, retain) <$Attribute.objectAttributeType$> *<$Attribute.name$>;
19 19
 <$if Attribute.hasScalarAttributeType$>
  20
+@property <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
20 21
 - (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
21 22
 - (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
22 23
 <$endif$>

0 notes on commit b56ec4a

Please sign in to comment.
Something went wrong with that request. Please try again.