iOS Developer Library

Developer

Core Data Framework Reference NSPersistentStoreRequest Class Reference

Options
Deployment Target:

On This Page
Language:

NSPersistentStoreRequest

An instance of NSPersistentStoreRequest describes criteria used to retrieve data from or save data to persistent stores.

  • These constants specify the types of fetch request.

    Declaration

    Swift

    enum NSPersistentStoreRequestType : UInt { case FetchRequestType case SaveRequestType case BatchUpdateRequestType case BatchDeleteRequestType }

    Objective-C

    enum { NSFetchRequestType = 1, NSSaveRequestType, }; typedef NSUInteger NSPersistentStoreRequestType;

    Constants

    • fetchRequestType

      NSFetchRequestType

      Specifies that the request returns managed objects.

      Available in iOS 5.0 and later.

    • saveRequestType

      NSSaveRequestType

      Specifies that the request saves managed objects.

      Available in iOS 5.0 and later.

    Discussion

    These constants are used by requestType.

    Import Statement

    Objective-C

    @import CoreData;

    Swift

    import CoreData

    Availability

    Available in iOS 5.0 and later.