Contents

managedObjectModel

The document’s managed object model.

Declaration

var managedObjectModel: NSManagedObjectModel { get }

Discussion

Persistent documents always have a managed object model. The default model is the union of all models in the main bundle. You can specify a configuration to use with modelConfiguration. You can subclass UIManagedDocument to override this method if you need custom behavior.

See Also

Managing the Core Data stack