Skip to content

Commit

Permalink
Merge pull request rentzsch#132 from fluchtpunkt/master
Browse files Browse the repository at this point in the history
[CHANGE] Treat entities whose class name is "" (empty string) as not having a custom class at all (Recent versions of Xcode use the empty string as default class for entities). (Matthias Bauch)
  • Loading branch information
rentzsch committed Oct 8, 2012
2 parents 0971dc2 + 4cd0763 commit 8d3b772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mogenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ - (NSArray*)entitiesWithACustomSubclassInConfiguration:(NSString *)configuration
nsenumerate (allEntities, NSEntityDescription, entity) {
NSString *entityClassName = [entity managedObjectClassName];

if ([entityClassName isEqualToString:@"NSManagedObject"] || [entityClassName isEqualToString:gCustomBaseClass]){
if ([entityClassName isEqualToString:@"NSManagedObject"] || [entityClassName isEqualToString:@""] || [entityClassName isEqualToString:gCustomBaseClass]){
if (verbose_) {
ddprintf(@"skipping entity %@ (%@) because it doesn't use a custom subclass.\n",
entity.name, entityClassName);
Expand Down

0 comments on commit 8d3b772

Please sign in to comment.