diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 00c908df..08dac40c 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -69,7 +69,6 @@ NS_ASSUME_NONNULL_BEGIN - (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_; <$endif$> <$endif$> -//- (BOOL)validate<$Attribute.name.initialCapitalString$>:(id*)value_ error:(NSError**)error_; <$endif$> <$endif$> <$endforeach do$> @@ -86,7 +85,6 @@ NS_ASSUME_NONNULL_BEGIN - (<$if Relationship.optional$>nullable <$endif$><$Relationship.mutableCollectionClassName$>*)<$Relationship.name$>Set; <$else$> @property (nonatomic, strong<$if Relationship.optional$>, nullable<$endif$>) <$Relationship.destinationEntity.managedObjectClassName$> *<$Relationship.name$>; -//- (BOOL)validate<$Relationship.name.initialCapitalString$>:(id*)value_ error:(NSError**)error_; <$endif$> <$endforeach do$> <$foreach FetchRequest prettyFetchRequests do$> diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 50b3ba67..87acfc4d 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -303,4 +303,4 @@ return @"<$UserInfo.value$>"; }<$endforeach do$> @end -<$endif$> \ No newline at end of file +<$endif$> diff --git a/templates/machine.swift.motemplate b/templates/machine.swift.motemplate index 3b1d1733..e7b364a2 100644 --- a/templates/machine.swift.motemplate +++ b/templates/machine.swift.motemplate @@ -33,7 +33,7 @@ public enum <$sanitizedManagedObjectClassName$>UserInfo: String {<$foreach UserI class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> { // MARK: - Class methods - + <$if (hasCustomSuperclass || (hasCustomSuperentity && TemplateVar.overrideBaseClass))$>override <$endif$>public class func entityName () -> String { return "<$name$>" } @@ -47,7 +47,7 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> { public override init(entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext!) { super.init(entity: entity, insertIntoManagedObjectContext: context) } - + public convenience init(managedObjectContext: NSManagedObjectContext!) { let entity = _<$sanitizedManagedObjectClassName$>.entity(managedObjectContext) self.init(entity: entity, insertIntoManagedObjectContext: managedObjectContext) @@ -83,7 +83,6 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> { var <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$> <$endif$> <$endif$> - // func validate<$Attribute.name.initialCapitalString$>(value: AutoreleasingUnsafeMutablePointer, error: NSErrorPointer) -> Bool {} <$endif$> <$endforeach do$> @@ -96,8 +95,6 @@ class _<$sanitizedManagedObjectClassName$>: <$customSuperentity$> { <$else$> @NSManaged public var <$Relationship.name$>: <$Relationship.destinationEntity.sanitizedManagedObjectClassName$><$if Relationship.isOptional$>?<$endif$> - - // func validate<$Relationship.name.initialCapitalString$>(value: AutoreleasingUnsafeMutablePointer, error: NSErrorPointer) -> Bool {} <$endif$> <$endforeach do$>