From 0e1fae62e9a8d20e7a515edc4929a2ac4c002b5e Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Wed, 4 Jun 2014 13:50:23 +0100 Subject: [PATCH] Fix for warnings in iOS 8 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'" --- templates/machine.h.motemplate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 791508ad..dea769f2 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -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$>