RKManagedObjectLoader Class Reference
Inherits from | RKObjectLoader : RKRequest : NSObject |
Declared in | RKManagedObjectLoader.h RKManagedObjectLoader.m |
Overview
A subclass of the object loader that is dispatched when you are loading Core Data managed objects. This differs from the transient object loader only by handling the special threading concerns imposed by Core Data.
Tasks
Other Methods
-
objectStore
A reference to a RestKit managed object store for interacting with Core Data
property
Other Methods
-
– initWithURL:mappingProvider:
Initialize and return an autoreleased object loader targeting a remote URL using a mapping provider
-
– reset
Resets the state of an RKRequest so that it can be re-sent.
-
– targetObject
The target object to map results back onto. If nil, a new object instance for the appropriate mapping will be created. If not nil, the results will be used to update the targetObject’s attributes and relationships.
-
– setTargetObject:
The target object to map results back onto. If nil, a new object instance for the appropriate mapping will be created. If not nil, the results will be used to update the targetObject’s attributes and relationships.
-
– prepareURLRequest
Setup the NSURLRequest.
-
– processMappingResult:
Overloaded by RKManagedObjectLoader to serialize/deserialize managed objects at thread boundaries. @protected
-
– handleResponseError
Handle an error in the response preventing it from being mapped, called from isResponseMappable
Properties
Instance Methods
handleResponseError
Handle an error in the response preventing it from being mapped, called from isResponseMappable
- (void)handleResponseError
Declared In
RKObjectLoader.h
initWithURL:mappingProvider:
Initialize and return an autoreleased object loader targeting a remote URL using a mapping provider
- (id)initWithURL:(RKURL *)URL mappingProvider:(RKObjectMappingProvider *)mappingProvider
Parameters
- URL
A RestKit RKURL targetting a particular baseURL and resourcePath
- mappingProvider
A mapping provider containing object mapping configurations for processing loaded payloads
Declared In
RKObjectLoader.h
prepareURLRequest
Setup the NSURLRequest.
- (BOOL)prepareURLRequest
Return Value
A boolean for the success of the URL preparation.
Discussion
The request must be prepared right before dispatching.
Declared In
RKRequest.h
processMappingResult:
Overloaded by RKManagedObjectLoader to serialize/deserialize managed objects at thread boundaries. @protected
- (void)processMappingResult:(RKObjectMappingResult *)result
Declared In
RKObjectLoader.m
reset
Resets the state of an RKRequest so that it can be re-sent.
- (void)reset
Declared In
RKRequest.h
setTargetObject:
The target object to map results back onto. If nil, a new object instance for the appropriate mapping will be created. If not nil, the results will be used to update the targetObject’s attributes and relationships.
- (void)setTargetObject:(NSObject *)targetObject
Declared In
RKObjectLoader.h