Skip to content

Commit

Permalink
Just had an app rejected for: `references the following non-public AP…
Browse files Browse the repository at this point in the history
…Is: primitiveValue`, similar to rentzsch#74 and rentzsch#16, so this avoids generating `primativeValue` methods

Wonder if it would be better to amend the main code base similar to this commit?:
rentzsch@cd9809d
  • Loading branch information
DaveWoodCom committed Sep 11, 2016
1 parent 66834c0 commit 48bcd6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,17 @@ NS_ASSUME_NONNULL_BEGIN
@interface _<$managedObjectClassName$> (CoreDataGeneratedPrimitiveAccessors)
<$foreach Attribute noninheritedAttributesSansType do$>
<$if Attribute.hasDefinedAttributeType$>
<$if Attribute.name != "type" && Attribute.name != "value"$>
- (<$Attribute.objectAttributeType$>)primitive<$Attribute.name.initialCapitalString$>;
- (void)setPrimitive<$Attribute.name.initialCapitalString$>:(<$Attribute.objectAttributeType$>)value;
<$endif$>
<$if Attribute.hasScalarAttributeType$>
<$if Attribute.name != "type" && Attribute.name != "value"$>
- (<$Attribute.scalarAttributeType$>)primitive<$Attribute.name.initialCapitalString$>Value;
- (void)setPrimitive<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
<$endif$>
<$endif$>
<$endif$>
<$endforeach do$>
<$foreach Relationship noninheritedRelationships do$>
<$if Relationship.isToMany$>
Expand Down
2 changes: 1 addition & 1 deletion templates/machine.m.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
<$endif$>

<$if Attribute.name != "type"$>
<$if Attribute.name != "type" && Attribute.name != "value"$>
- (<$Attribute.scalarAttributeType$>)primitive<$Attribute.name.initialCapitalString$>Value {
NSNumber *result = [self primitive<$Attribute.name.initialCapitalString$>];
return [result <$Attribute.scalarAccessorMethodName$>];
Expand Down

0 comments on commit 48bcd6c

Please sign in to comment.