A method identified as deprecated has been superseded and may become unsupported in the future.
Configures the receiver’s persistent store coordinator for a given URL and document type. (Deprecated in Mac OS X v10.5. Use configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:
instead.)
- (BOOL)configurePersistentStoreCoordinatorForURL:(NSURL *)url ofType:(NSString *)fileType error:(NSError **)error
An URL that specifies the location of the document's store.
The document type.
If the method does not complete successfully, upon return contains an NSError
object that describes the problem.
YES
if the method completes successfully, otherwise NO
.
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]; |
– persistentStoreTypeForFileType:
– configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:
NSPersistentDocument.h
© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-02-08)