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

Properties

objectStore

A reference to a RestKit managed object store for interacting with Core Data

@property (nonatomic, retain) RKManagedObjectStore *objectStore

Declared In

RKManagedObjectLoader.h

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

- (BOOL)prepareURLRequest

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

- (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

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.

- (id)targetObject

Declared In

RKObjectLoader.h