Conforms to NSObject
Declared in RKMapperOperation.h

Overview

Objects wishing to act as the delegate for RKMapperOperation objects must adopt the RKMapperOperationDelegate protocol. The protocol provides a rich set of optional callback methods that provides insight into the lifecycle of a mapper operation.

Tasks

Tracking Mapper Status

Key Path Search Messages

Tracking Child Mapping Operation Status

Instance Methods

mapper:didFailMappingOperation:forKeyPath:withError:

Tells the delegate that a mapping operation that was started by the mapper has failed with an error.

- (void)mapper:(RKMapperOperation *)mapper didFailMappingOperation:(RKMappingOperation *)mappingOperation forKeyPath:(NSString *)keyPath withError:(NSError *)error

Parameters

mapper

The mapper operation performing the mapping.

mappingOperation

The mapping operation that has failed.

keyPath

The key path that was mapped. A nil key path indicates that the mapping matched the entire representation.

error

The error that occurred during the execution of the mapping operation.

Declared In

RKMapperOperation.h

mapper:didFindRepresentationOrArrayOfRepresentations:atKeyPath:

Tells the delegate that the mapper has found one or more mappable object representations at a key path specified in the mappingsDictionary.

- (void)mapper:(RKMapperOperation *)mapper didFindRepresentationOrArrayOfRepresentations:(id)dictionaryOrArrayOfDictionaries atKeyPath:(NSString *)keyPath

Parameters

mapper

The mapper operation performing the mapping.

dictionaryOrArrayOfDictionaries

The NSDictictionary or NSArray of NSDictionary object representations that was found at the keyPath.

keyPath

The key path that the representation was read from in the representation. If the keyPath was [NSNull null] in the mappingsDictionary, it will be given as nil to the delegate.

Declared In

RKMapperOperation.h

mapper:didFinishMappingOperation:forKeyPath:

Tells the delegate that a mapping operation that was started by the mapper has finished executing.

- (void)mapper:(RKMapperOperation *)mapper didFinishMappingOperation:(RKMappingOperation *)mappingOperation forKeyPath:(NSString *)keyPath

Parameters

mapper

The mapper operation performing the mapping.

mappingOperation

The mapping operation that has finished.

keyPath

The key path that was mapped. A nil key path indicates that the mapping matched the entire representation.

Declared In

RKMapperOperation.h

mapper:didNotFindRepresentationOrArrayOfRepresentationsAtKeyPath:

Tells the delegate that the mapper failed to find any mappable object representations at a key path specified in the mappingsDictionary.

- (void)mapper:(RKMapperOperation *)mapper didNotFindRepresentationOrArrayOfRepresentationsAtKeyPath:(NSString *)keyPath

Parameters

mapper

The mapper operation performing the mapping.

keyPath

The key path that was searched for a mappable object representation.

Declared In

RKMapperOperation.h

mapper:willStartMappingOperation:forKeyPath:

Tells the delegate that the mapper is about to start a mapping operation to map a representation found in the representation.

- (void)mapper:(RKMapperOperation *)mapper willStartMappingOperation:(RKMappingOperation *)mappingOperation forKeyPath:(NSString *)keyPath

Parameters

mapper

The mapper operation performing the mapping.

mappingOperation

The mapping operation that is about to be started.

keyPath

The key path that was mapped. A nil key path indicates that the mapping matched the entire representation.

Declared In

RKMapperOperation.h

mapperDidCancelMapping:

Tells the delegate that the mapper has been cancelled.

- (void)mapperDidCancelMapping:(RKMapperOperation *)mapper

Parameters

mapper

The mapper operation that was cancelled.

Declared In

RKMapperOperation.h

mapperDidFinishMapping:

Tells the delegate that the mapper has finished.

- (void)mapperDidFinishMapping:(RKMapperOperation *)mapper

Parameters

mapper

The mapper operation that has finished mapping.

Declared In

RKMapperOperation.h

mapperWillStartMapping:

Tells the delegate that the mapper operation is about to start mapping.

- (void)mapperWillStartMapping:(RKMapperOperation *)mapper

Parameters

mapper

The mapper operation that is about to start mapping.

Declared In

RKMapperOperation.h