Skip to content

Commit

Permalink
Fix for warnings in iOS 8
Browse files Browse the repository at this point in the history
iOS 8 changes objectID from a getter to a @Property.

This causes the following warnings with the old template:

"Type of property 'objectID' does not match type of accessor 'objectID'"
  • Loading branch information
bismark committed Jun 4, 2014
1 parent d62842d commit 0e1fae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern const struct <$managedObjectClassName$>UserInfo {<$foreach UserInfo userI
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSString*)entityName;
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (<$managedObjectClassName$>ID*)objectID;
@property (nonatomic, readonly, strong) <$managedObjectClassName$>ID* objectID;

<$foreach Attribute noninheritedAttributes do$>
<$if Attribute.hasDefinedAttributeType$>
Expand Down

0 comments on commit 0e1fae6

Please sign in to comment.