Skip to content

Commit

Permalink
Ditch +dct_handleObjectForDictionary:
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Jan 22, 2011
1 parent 2ead35d commit e39e8c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
9 changes: 2 additions & 7 deletions Automated Setup/NSManagedObject+DCTAutomatedSetup.h
Expand Up @@ -47,6 +47,8 @@
This will recursively go through the dictionary, if a nested dictionary exists it will try to find
a relationship for the key, and set up that as a core data object using the nested dictionary.
Override this method to handle the setup manually if you wish.
@param dictionary The dictionary used to represent the managed object's data.
@param moc The managed object context the resulting managed object should be inserted to.
Expand Down Expand Up @@ -92,13 +94,6 @@
*/
+ (NSString *)dct_entityName;

/*
Override this method to handle the setup manually, returning the setup object.
If this method returns nil, the automated setup will continue to run.
*/
+ (id)dct_handleObjectForDictionary:(NSDictionary *)dictionary;

/*
Give the key for the attribute to check for equality showing two managed objects are the same.
Expand Down
6 changes: 0 additions & 6 deletions Automated Setup/NSManagedObject+DCTAutomatedSetup.m
Expand Up @@ -66,12 +66,6 @@ + (id)dct_objectFromDictionary:(NSDictionary *)dictionary

NSManagedObject *object = nil;

if ([self respondsToSelector:@selector(dct_handleObjectForDictionary:)]) {
object = [myself dct_handleObjectForDictionary:dictionary];
[object dct_setupFromDictionary:dictionary];
return object;
}

NSString *entityName = nil;
if ([self respondsToSelector:@selector(dct_entityName)])
entityName = [myself dct_entityName];
Expand Down

0 comments on commit e39e8c4

Please sign in to comment.