Eliminated the use of the ActiveRecord pattern across the library.

This commit is contained in:
Blake Watters
2012-07-19 13:34:32 -04:00
parent ae8b98ac1a
commit e952f451fb
41 changed files with 912 additions and 1867 deletions

View File

@@ -8,6 +8,9 @@
#import "NSManagedObject+RKAdditions.h"
#import "NSManagedObjectContext+RKAdditions.h"
#import "RKLog.h"
#import "RKManagedObjectStore.h"
#import "NSEntityDescription+RKAdditions.h"
@implementation NSManagedObject (RKAdditions)
@@ -22,4 +25,10 @@
return (managedObjectClone == nil) ? YES : NO;
}
- (BOOL)isNew
{
NSDictionary *vals = [self committedValuesForKeys:nil];
return [vals count] == 0;
}
@end