Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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;
commit b56ec4aebe0146b7c4258111274fb4a4fbb3e01e 1 parent f54e32b
@rentzsch authored
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$>
Please sign in to comment.
Something went wrong with that request. Please try again.