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 previousNSIndexPath
of the deleted objectDeclaration
Swift
case delete(object: T, indexPath: IndexPath)
-
Change type when an object is moved. - parameter object: The moved object of type
<T>
- parameter fromIndexPath: TheNSIndexPath
of the old location of the object - parameter toIndexPath: TheNSIndexPath
of the new location of the objectDeclaration
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 indexPathNSIndexPath
: TheNSIndexPath
of the updated objectDeclaration
Swift
case update(object: T, indexPath: IndexPath)