Rework notifications to allow request queue to observe only the requests it dispatches instead of all of them. Fixes incorrectly decrementing loading count.

This commit is contained in:
Blake Watters
2011-06-29 15:36:10 -04:00
parent 6faa525344
commit 853704b2fd
6 changed files with 18 additions and 19 deletions

View File

@@ -69,8 +69,8 @@
if (successful) {
_isLoaded = YES;
[[NSNotificationCenter defaultCenter] postNotificationName:RKResponseReceivedNotification
object:_response
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestReceivedResponseNotification
object:self
userInfo:nil];
} else {
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestFailedWithErrorNotification