diff --git a/README.md b/README.md index b24f6025..cbd0dc14 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ Senseful wrote up a [nice summary of mogenerator's command-line options](http:// ## Version History +### v1.32: Wed Jun 20 2018 +* [NEW] Support for URL and UUID property types ([protocool](https://github.com/tomekc/mogenerator/pull/1), [original PR](https://github.com/rentzsch/mogenerator/pull/370)) + ### v1.31: Mon Oct 3 2016 [download](https://github.com/rentzsch/mogenerator/releases/download/1.31/mogenerator-1.31.dmg) * [NEW] Swift 3 support. ([Goncharov Vladimir](https://github.com/rentzsch/mogenerator/pull/347), [Hardik](https://github.com/rentzsch/mogenerator/pull/349), [rentzsch](https://github.com/rentzsch/mogenerator/commit/a65f6421baf39dc1458f22836907cfc55fc8ceb1)) diff --git a/mogenerator.m b/mogenerator.m index 63d8ae1a..f383c7ff 100644 --- a/mogenerator.m +++ b/mogenerator.m @@ -1039,7 +1039,7 @@ - (int)application:(DDCliApplication*)app runWithArguments:(NSArray*)arguments { } if (_version) { - printf("mogenerator 1.31. By Jonathan 'Wolf' Rentzsch + friends.\n"); + printf("mogenerator 1.32. By Jonathan 'Wolf' Rentzsch + friends.\n"); return EXIT_SUCCESS; } diff --git a/momcom/NSAttributeDescription+momcom.m b/momcom/NSAttributeDescription+momcom.m index 63dda0ba..497a7a2c 100644 --- a/momcom/NSAttributeDescription+momcom.m +++ b/momcom/NSAttributeDescription+momcom.m @@ -11,6 +11,7 @@ static NSDictionary *attributeTypeForString; const NSString *const kUsesScalarAttributeType = @"mogenerator.usesScalarAttributeType"; +const NSString *const kAttributeValueClassName = @"attributeValueClassName"; @implementation NSAttributeDescription (momcom) @@ -50,6 +51,13 @@ + (NSAttributeDescription *)baseEntityForXML:(NSXMLElement *)xmlNode [attributeDescription setAttributeType:[attributeType integerValue]]; } } + + NSXMLNode *customClassNameElement = [xmlNode attributeForName:@"customClassName"]; + if (customClassNameElement != nil) { + NSMutableDictionary *userInfo = [[attributeDescription userInfo] mutableCopy]; + userInfo[kAttributeValueClassName] = [customClassNameElement stringValue]; + [attributeDescription setUserInfo:userInfo.copy]; + } NSXMLNode *userScalarElement = [xmlNode attributeForName:@"usesScalarValueType"]; if (userScalarElement != nil) {