Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added the empty string as classname for entities that should be skipped #132

Merged
merged 1 commit into from

2 participants

@mattbauch

This fixes issue #105.
Recent versions of Xcode use the empty string as default when an entity doesn't have a custom subclass.

Matthias Bauch 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.
874921e
@rentzsch rentzsch merged commit 2742b2e into from
@rentzsch
Owner

Pulled. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 8, 2012
  1. fix for #105 - If the class name of an entity is "" (i.e. empty strin…

    Matthias Bauch authored
    …g) it should be considered to not have a custom subclass. Recent versions of Xcode use the empty string as default class for entities.
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.