Instance Method

controller:didChangeContentWithSnapshot:

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

Declaration

- (void)controller:(NSFetchedResultsController *)controller didChangeContentWithSnapshot:(NSDiffableDataSourceSnapshot<NSString *,NSManagedObjectID *> *)snapshot;

Discussion

To apply the changes, call applySnapshot:animatingDifferences: on the collection or table view’s data source.

If this method is implemented, no other delegate methods are invoked.

See Also

Responding to Changes

- controller:didChangeContentWithDifference:

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

- 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.

- 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.