Refactored the Rails router to respect properties specified by the model objects. Introduced new support to allow models to modify RESTful object loaders just before they are sent. Sample app completely works. Really fucking happy with how this is turning out!

This commit is contained in:
Blake Watters
2011-01-21 00:15:02 -05:00
parent 3d2601f79c
commit 07796df253
12 changed files with 117 additions and 61 deletions

View File

@@ -194,10 +194,7 @@ static RKObjectManager* sharedManager = nil;
return loader;
}
// TODO: Need to factor core data stuff out of here...
// TODO: Use notifications for this???
// RKObjectManagerWillGETObject / RKObjectManagerWillPOSTObject / RKObjectManagerWillPUTObject / RKObjectManagerWillDELETEObject
// RKObjectManagerDidGETObject / RKObjectManagerDidPOSTObject / RKObjectManagerDidPUTObject / RKObjectManagerDidDELETEObject
// TODO: Need to factor core data stuff out of here... Use notifications (probably at RKObjectLoader level) to trigger save of the object store
- (void)saveObjectStore {
if (self.objectStore) {
NSError* error = [self.objectStore save];