Skip to content
Browse files

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

  • Loading branch information...
1 parent db9d415 commit 12298a8d622321c211839d6016bce72f7fcf8d59 @BrianDoig BrianDoig committed Nov 1, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 templates/machine.h.motemplate
2 templates/machine.h.motemplate
@@ -62,12 +62,14 @@
@interface _<$managedObjectClassName$> (CoreDataGeneratedPrimitiveAccessors)
<$foreach Attribute noninheritedAttributes do$>
+<$if Attribute.hasDefinedAttributeType$>
- (<$Attribute.objectAttributeType$>*)primitive<$$>;
- (void)setPrimitive<$$>:(<$Attribute.objectAttributeType$>*)value;
<$if Attribute.hasScalarAttributeType$>
- (<$Attribute.scalarAttributeType$>)primitive<$$>Value;
- (void)setPrimitive<$$>Value:(<$Attribute.scalarAttributeType$>)value_;
<$endforeach do$>
<$foreach Relationship noninheritedRelationships do$>
<$if Relationship.isToMany$>

0 comments on commit 12298a8

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