iOS Developer Library

Developer

CoreData Framework Reference NSFetchedResultsControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSFetchedResultsControllerDelegate

An instance of NSFetchedResultsController uses methods in this protocol to notify its delegate that the controller’s fetch results have been changed due to an add, remove, move, or update operations. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import CoreData @import CoreData;

Availability


Available in iOS 4.0 and later.
  • Specify types of change.

    Declaration

    Swift

    enum NSFetchedResultsChangeType : UInt { case Insert case Delete case Move case Update }

    Objective-C

    enum { NSFetchedResultsChangeInsert = 1, NSFetchedResultsChangeDelete = 2, NSFetchedResultsChangeMove = 3, NSFetchedResultsChangeUpdate = 4 }; typedef NSUInteger NSFetchedResultsChangeType;

    Constants

    • Insert

      NSFetchedResultsChangeInsert

      Specifies that an object was inserted.

      Available in iOS 3.0 and later.

    • Delete

      NSFetchedResultsChangeDelete

      Specifies that an object was deleted.

      Available in iOS 3.0 and later.

    • Move

      NSFetchedResultsChangeMove

      Specifies that an object was moved.

      Available in iOS 3.0 and later.

    • Update

      NSFetchedResultsChangeUpdate

      Specifies that an object was changed.

      Available in iOS 3.0 and later.

    Import Statement

    import CoreData

    Availability

    Available in iOS 4.0 and later.