Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 12298a8d622321c211839d6016bce72f7fcf8d59 1 parent db9d415
Brian Doig BrianDoig authored
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$>
Please sign in to comment.
Something went wrong with that request. Please try again.