Skip to content

Commit

Permalink
Merge pull request #350 from ChristopherRogers/master
Browse files Browse the repository at this point in the history
[CHANGE] Swift 3: NSData to Data. ([Christopher Rogers](#350))
  • Loading branch information
rentzsch authored Oct 10, 2016
2 parents 1c77f4e + 1992cdd commit 64dbbbb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mogenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,14 @@ - (NSString*)objectAttributeClassName {
} else {
result = [self attributeValueClassName];
}
if (gSwift && [result isEqualToString:@"NSString"]) {
result = @"String";
}
if (gSwift && [result isEqualToString:@"NSDate"]) {
result = @"Date";
if (gSwift) {
if ([result isEqualToString:@"NSString"]) {
result = @"String";
} else if ([result isEqualToString:@"NSDate"]) {
result = @"Date";
} else if ([result isEqualToString:@"NSData"]) {
result = @"Data";
}
}
return result;
}
Expand Down

0 comments on commit 64dbbbb

Please sign in to comment.