Added support for registering object class mappings as keyPaths in addition to element names. closes #82

This commit is contained in:
Blake Watters
2011-04-28 13:09:50 -04:00
parent 308b6c5dd2
commit 87d0cd13de
12 changed files with 141 additions and 29 deletions

View File

@@ -70,22 +70,13 @@
NSDate* receivedAt = [NSDate date];
if (successful) {
_isLoaded = YES;
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:[self HTTPMethod], @"HTTPMethod",
[self URL], @"URL",
receivedAt, @"receivedAt",
nil];
[[NSNotificationCenter defaultCenter] postNotificationName:RKResponseReceivedNotification
object:_response
userInfo:userInfo];
userInfo:nil];
} else {
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:[self HTTPMethod], @"HTTPMethod",
[self URL], @"URL",
receivedAt, @"receivedAt",
error, @"error",
nil];
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestFailedWithErrorNotification
object:self
userInfo:userInfo];
userInfo:nil];
}
}