Rework paginator support for 0.20. closes #1024, #900, #759

* Renamed RKObjectPaginator to RKPaginator for simplicity
* Removed delegate on paginator in favor of simple success/failure blocks
* Added `willMapDeserializedResponseBlock` for manipulating the response body before mapping begins
* Added support for cancelling an in-progress pagination request
This commit is contained in:
Blake Watters
2012-11-18 22:44:33 -05:00
parent 95b9a0ecba
commit 54dce20ac6
15 changed files with 894 additions and 1096 deletions

View File

@@ -29,7 +29,8 @@ enum {
RKMappingErrorValidationFailure = 1005, // Generic error code for use when constructing validation errors
RKMappingErrorUnableToDetermineMapping = 1006, // The mapping operation was unable to obtain a concrete object mapping from a given dynamic mapping
RKMappingErrorNilDestinationObject = 1007, // The mapping operation failed due to a nil destination object.
RKMappingErrorNilManagedObjectCache = 1008 // A managed object cache is required to satisfy the mapping, but none was given.
RKMappingErrorNilManagedObjectCache = 1008, // A managed object cache is required to satisfy the mapping, but none was given.
RKMappingErrorMappingDeclined = 1009 // Mapping was declined by a callback.
};
extern NSString * const RKMappingErrorKeyPathErrorKey; // The key path the error is associated with