FetchedResultsObjectChange

public enum FetchedResultsObjectChange<T: NSManagedObject>

Enum representing the four types of object changes a FetchedResultsController will notify you about.

Change type when an object is inserted. - parameter object: The inserted object of type <T> - parameter indexPath: The NSIndexPath of the new object

  • Undocumented

    Declaration

    Swift

    public enum FetchedResultsObjectChange<T: NSManagedObject>
  • Change type when an object is deleted. - parameter object: The deleted object of type <T> - parameter indexPath: The previous NSIndexPath of the deleted object

    Declaration

    Swift

    case delete(object: T, indexPath: IndexPath)
  • Change type when an object is moved. - parameter object: The moved object of type <T> - parameter fromIndexPath: The NSIndexPath of the old location of the object - parameter toIndexPath: The NSIndexPath of the new location of the object

    Declaration

    Swift

    case move(object: T, fromIndexPath: IndexPath, toIndexPath: IndexPath)
  • Change type when an object is updated. - parameter object: The updated object of type <T> - parameter indexPath NSIndexPath: The NSIndexPath of the updated object

    Declaration

    Swift

    case update(object: T, indexPath: IndexPath)