From b56ec4aebe0146b7c4258111274fb4a4fbb3e01e Mon Sep 17 00:00:00 2001 From: rentzsch Date: Mon, 28 Dec 2009 19:28:04 -0600 Subject: [PATCH] [NEW] machine.h template now produces type-safe scalar attribute property 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; --- templates/machine.h.motemplate | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 0b7a54cb..33a2529c 100644 --- a/templates/machine.h.motemplate +++ b/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$>