Conforms to NSObject
Declared in RKObjectMappingOperation.h

Overview

Objects acting as the delegate for RKObjectMappingOperation objects must adopt the RKObjectMappingOperationDelegate protocol. These methods enable the delegate to be notified of events such as the application of attribute and relationship mappings during a mapping operation.

Tasks

Instance Methods

objectMappingOperation:didFailWithError:

Tells the delegate that the object mapping operation has failed due to an error.

- (void)objectMappingOperation:(RKObjectMappingOperation *)operation didFailWithError:(NSError *)error

Parameters

operation

The object mapping operation that has failed.

error

An error object indicating the reason for the failure.

Declared In

RKObjectMappingOperation.h

objectMappingOperation:didFindMapping:forKeyPath:

Tells the delegate that an attribute or relationship mapping was found for a given key path within the data being mapped.

- (void)objectMappingOperation:(RKObjectMappingOperation *)operation didFindMapping:(RKObjectAttributeMapping *)mapping forKeyPath:(NSString *)keyPath

Parameters

operation

The object mapping operation being performed.

mapping

The RKObjectAttributeMapping or RKObjectRelationshipMapping found for the key path.

keyPath

The key path in the source object for which the mapping is to be applied.

Declared In

RKObjectMappingOperation.h

objectMappingOperation:didNotFindMappingForKeyPath:

Tells the delegate that no attribute or relationships mapping was found for a given key path within the data being mapped.

- (void)objectMappingOperation:(RKObjectMappingOperation *)operation didNotFindMappingForKeyPath:(NSString *)keyPath

Parameters

operation

The object mapping operation being performed.

keyPath

The key path in the source object for which no mapping was found.

Declared In

RKObjectMappingOperation.h

objectMappingOperation:didNotSetUnchangedValue:forKeyPath:usingMapping:

Tells the delegate that the mapping operation has declined to set a value for a given key path because the value has not changed.

- (void)objectMappingOperation:(RKObjectMappingOperation *)operation didNotSetUnchangedValue:(id)value forKeyPath:(NSString *)keyPath usingMapping:(RKObjectAttributeMapping *)mapping

Parameters

operation

The object mapping operation being performed.

value

A unchanged value for the key path in the destination object.

keyPath

The key path in the destination object for which a unchanged value was not set.

mapping

The RKObjectAttributeMapping or RKObjectRelationshipMapping found for the key path.

Declared In

RKObjectMappingOperation.h

objectMappingOperation:didSetValue:forKeyPath:usingMapping:

Tells the delegate that the mapping operation has set a value for a given key path with an attribute or relationship mapping.

- (void)objectMappingOperation:(RKObjectMappingOperation *)operation didSetValue:(id)value forKeyPath:(NSString *)keyPath usingMapping:(RKObjectAttributeMapping *)mapping

Parameters

operation

The object mapping operation being performed.

value

A new value that was set on the destination object.

keyPath

The key path in the destination object for which a new value has been set.

mapping

The RKObjectAttributeMapping or RKObjectRelationshipMapping found for the key path.

Declared In

RKObjectMappingOperation.h