Mac Developer Library

Developer

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

Inheritance


Conforms To


Import Statement


import CoreData @import CoreData;

Availability


Available in OS X v10.7 and later.
  • These constants specify the types of fetch request.

    Declaration

    Swift

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

    Objective-C

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

    Constants

    • FetchRequestType

      NSFetchRequestType

      Specifies that the request returns managed objects.

      Available in OS X v10.7 and later.

    • SaveRequestType

      NSSaveRequestType

      Specifies that the request saves managed objects.

      Available in OS X v10.7 and later.

    Discussion

    These constants are used by requestType.

    Import Statement

    import CoreData

    Availability

    Available in OS X v10.7 and later.