Checking in work on managed object cleanup

This commit is contained in:
Blake Watters
2010-10-18 22:10:40 -04:00
parent 069978ec07
commit 33c6eba84b
2 changed files with 20 additions and 44 deletions

View File

@@ -176,7 +176,11 @@
results = [NSArray arrayWithObject:mainThreadModel];
}
} else {
// What we really need:
// 1) Move Core Data logic into the mapper entirely
// 2) Don't expose the resourcePath to the mapper
// 3) Maybe assign the objectStore to the loader???
// 4) Move the Core Data info into the object store instead...
id result = [_mapper mapFromString:[response bodyAsString] toClass:self.objectClass keyPath:_keyPath];
if ([result isKindOfClass:[NSArray class]]) {
results = (NSArray*)result;