NSPersistentStoreRequest Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/CoreData.framework |
| Availability | Available in OS X v10.7 and later. |
| Companion guide | |
| Declared in | NSPersistentStoreRequest.h |
Overview
An instance of NSPersistentStoreRequest describes criteria used to retrieve data from or save data to persistent stores.
Instance Methods
affectedStores
Returns the stores the request should be sent to.
Return Value
The stores the request should be sent to.
Discussion
The array contains instances of NSPersistentStore.
Availability
- Available in OS X v10.7 and later.
Declared In
NSPersistentStoreRequest.hrequestType
Returns the type of the fetch request.
Return Value
The type of the fetch request.
Discussion
For possible values, see “NSFetchRequestResultType.”
Availability
- Available in OS X v10.7 and later.
Declared In
NSPersistentStoreRequest.hsetAffectedStores:
Sets the stores the request should be sent to.
Parameters
- stores
The stores the request should be sent to.
The array should contain instances of
NSPersistentStore.
Discussion
Availability
- Available in OS X v10.7 and later.
Declared In
NSPersistentStoreRequest.hConstants
NSFetchRequestResultType
These constants specify the types of fetch request.
enum {
NSFetchRequestType = 1,
NSSaveRequestType,
};
typedef NSUInteger NSPersistentStoreRequestType;
Constants
NSFetchRequestTypeSpecifies that the request returns managed objects.
Available in OS X v10.7 and later.
Declared in
NSPersistentStoreRequest.h.NSSaveRequestTypeSpecifies that the request.
Available in OS X v10.7 and later.
Declared in
NSPersistentStoreRequest.h.
Discussion
These constants are used by requestType.
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-10-12)