Instance Method

controllerWillChangeContent:

Notifies the receiver that the fetched results controller is about to start processing of one or more changes due to an add, remove, move, or update.

Declaration

- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller;

Parameters

controller

The fetched results controller that sent the message.

Discussion

This method is invoked before all invocations of controller:didChangeObject:atIndexPath:forChangeType:newIndexPath: and controller:didChangeSection:atIndex:forChangeType: have been sent for a given change event (such as the controller receiving a NSManagedObjectContextDidSaveNotification notification).

See Also

Responding to Changes

- controller:didChangeContentWithSnapshot:

Notifies the receiver about changes to the content in the fetched results controller, by using a diffable data source snapshot.

- controller:didChangeContentWithDifference:

Notifies the receiver about changes to the content in the fetched results controller, by using a collection difference.

- controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:

Notifies the receiver that a fetched object has been changed due to an add, remove, move, or update.

- controller:didChangeSection:atIndex:forChangeType:

Notifies the receiver of the addition or removal of a section.

- controllerDidChangeContent:

Notifies the receiver that the fetched results controller has completed processing of one or more changes due to an add, remove, move, or update.