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:

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

Tells the delegate that a mapping operation that was started by the mapper has failed with an 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:

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

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

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:

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

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

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:

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

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

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:

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

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

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:

- (void)mapperDidCancelMapping:(RKMapperOperation *)mapper
Discussion

Tells the delegate that the mapper has been cancelled.

Parameters

mapper

The mapper operation that was cancelled.

Declared In

RKMapperOperation.h

mapperDidFinishMapping:

- (void)mapperDidFinishMapping:(RKMapperOperation *)mapper
Discussion

Tells the delegate that the mapper has finished.

Parameters

mapper

The mapper operation that has finished mapping.

Declared In

RKMapperOperation.h

mapperWillStartMapping:

- (void)mapperWillStartMapping:(RKMapperOperation *)mapper
Discussion

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

Parameters

mapper

The mapper operation that is about to start mapping.

Declared In

RKMapperOperation.h