< Previous PageNext Page > Hide TOC

Deprecated NSPersistentDocument Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.5

configurePersistentStoreCoordinatorForURL:ofType:error:

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

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 NSError object 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
See Also
Declared In
NSPersistentDocument.h

< Previous PageNext Page > Hide TOC


© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-02-08)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.