Created
October 7, 2010 22:14
-
-
Save danielctull/616011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation DCTCDGroup (DCTManagedObjectAutomatedSetup) | |
+ (NSDictionary *)dct_mappingFromRemoteNamesToLocalNames { | |
NSMutableDictionary *d = [[NSMutableDictionary alloc] init]; | |
[d setObject:@"groupID" forKey:@"id"]; | |
[d setObject:@"groupDescription" forKey:@"description"]; | |
return [d autorelease]; | |
} | |
+ (id)dct_convertValue:(id)value toCorrectTypeForKey:(NSString *)key { | |
if ([key isEqualToString:@"date"]) | |
return [NSDate dateWithTimeIntervalSince1970:[value doubleValue]]; | |
return nil; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment