Conforms to NSObject
Declared in TLIndexPathController.h

Overview

An instance of TLIndexPathController uses this protocol to notify it’s delegate about batch changes to the data model, providing access to the TLIndexPathDataModelUpdates instance which can be uses to perform batch updates on a table or collection view.

Instance Methods

controller:didUpdateDataModel:

Notifies the reciever of batch data model changes.

- (void)controller:(TLIndexPathController *)controller didUpdateDataModel:(TLIndexPathUpdates *)updates

Parameters

controller

the index path controller that sent the message.

updates

the updates object that can be used to perform batch updates on a table or collection view.

Declared In

TLIndexPathController.h

controller:willUpdateDataModel:withDataModel:

Notifies the reciever that the data model is about to be updated. If the receiver returns a data model, that model will be used instead. This is particularly useful for modifying the internally generated models when the controller is configured with an NSFetchRequest. For example, if the model contains zero items, it can be replaced with a model containing a “no results” item.

- (TLIndexPathDataModel *)controller:(TLIndexPathController *)controller willUpdateDataModel:(TLIndexPathDataModel *)oldDataModel withDataModel:(TLIndexPathDataModel *)updatedDataModel

Parameters

controller

the index path controller that sent the message.

updates

the updates object that can be used to perform batch updates on a table or collection view.

Return Value

an alternative data model to use instead of updatedDataModel or nil to use updatedDataModel

Declared In

TLIndexPathController.h