mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-22 20:18:53 +08:00
Work in progress on responsibility cleanup
This commit is contained in:
@@ -32,11 +32,25 @@
|
||||
|
||||
@synthesize objectStore = _objectStore;
|
||||
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
+ (id)loaderWithURL:(NSURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider objectStore:(RKManagedObjectStore *)objectStore {
|
||||
return [[self alloc] initWithURL:URL mappingProvider:mappingProvider objectStore:objectStore];
|
||||
}
|
||||
|
||||
- (id)initWithURL:(NSURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider objectStore:(RKManagedObjectStore *)objectStore {
|
||||
self = [self initWithURL:URL mappingProvider:mappingProvider];
|
||||
if (self) {
|
||||
_objectStore = [objectStore retain];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id)initWithURL:(NSURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider {
|
||||
self = [super initWithURL:URL mappingProvider:mappingProvider];
|
||||
if (self) {
|
||||
_managedObjectKeyPaths = [[NSMutableSet alloc] init];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user