Deprecated NSPersistentDocument Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X v10.5
configurePersistentStoreCoordinatorForURL:ofType:error:
Configures the receiver’s persistent store coordinator for a given URL and document type. (Deprecated in OS X v10.5. Use configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: instead.)
Parameters
- url
An URL that specifies the location of the document's store.
- fileType
The document type.
- error
If the method does not complete successfully, upon return contains an
NSErrorobject that describes the problem.
Return Value
YES if the method completes successfully, otherwise NO.
Discussion
This method is invoked automatically when an existing document is opened. You override this method to customize creation of a persistent store for a given document or store type. You can retrieve the persistent store coordinator with the following code:
[[self managedObjectContext] persistentStoreCoordinator]; |
Availability
- Available in OS X v10.4 and later.
- Deprecated in OS X v10.5.
See Also
Declared In
NSPersistentDocument.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-05-14)