Skip to content
This repository
Browse code

Added in check for undefined type. This allows you to define optional…

  • Loading branch information...
commit 12298a8d622321c211839d6016bce72f7fcf8d59 1 parent db9d415
Brian Doig authored November 01, 2010

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

  1. 2  templates/machine.h.motemplate
2  templates/machine.h.motemplate
@@ -62,12 +62,14 @@
62 62
 
63 63
 @interface _<$managedObjectClassName$> (CoreDataGeneratedPrimitiveAccessors)
64 64
 <$foreach Attribute noninheritedAttributes do$>
  65
+<$if Attribute.hasDefinedAttributeType$>
65 66
 - (<$Attribute.objectAttributeType$>*)primitive<$Attribute.name.initialCapitalString$>;
66 67
 - (void)setPrimitive<$Attribute.name.initialCapitalString$>:(<$Attribute.objectAttributeType$>*)value;
67 68
 <$if Attribute.hasScalarAttributeType$>
68 69
 - (<$Attribute.scalarAttributeType$>)primitive<$Attribute.name.initialCapitalString$>Value;
69 70
 - (void)setPrimitive<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
70 71
 <$endif$>
  72
+<$endif$>
71 73
 <$endforeach do$>
72 74
 <$foreach Relationship noninheritedRelationships do$>
73 75
 <$if Relationship.isToMany$>

0 notes on commit 12298a8

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