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

- (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
  • Available in OS X v10.4 and later.
  • Deprecated in OS X v10.5.
Declared In
NSPersistentDocument.h