Instance Property

managedObjectContext

The managed object context for the document.

Declaration

@property(strong) NSManagedObjectContext *managedObjectContext;

Discussion

If a managed object context for the document does not exist, one is created automatically. If you want to customize the creation of the persistence stack, reimplement this property in your custom subclass and use your implementation to create the appropriate objects.

See Also

Managing the Persistence Objects

managedObjectModel

The managed object model of the document.

- configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:

Configures the receiver’s persistent store coordinator with the appropriate stores for a given URL.

- persistentStoreTypeForFileType:

Returns the type of persistent store associated with the specified file type.