Instance Property


The managed object context for the document.


@property(strong) NSManagedObjectContext *managedObjectContext;


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


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.