Permalink
Browse files

fix for #105 - If the class name of an entity is "" (i.e. empty strin…

…g) it should be considered to not have a custom subclass. Recent versions of Xcode use the empty string as default class for entities.
  • Loading branch information...
1 parent e3b90b9 commit 874921e927b94c2732f4e6aa9e89e939ea9c2720 Matthias Bauch committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mogenerator.m
View
2 mogenerator.m
@@ -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);

0 comments on commit 874921e

Please sign in to comment.