The Managed Object Model
A managed object model is an instance ofNSManagedObjectModel
. It’s an object representation of a schema that describes your database, and so the managed objects you use in your application. A model is a collection of entity description objects (instances of
NSEntityDescription
).
Every managed object has a reference to the entity of which it is an instance.
Core Data uses the model to map between managed objects in your application and records in the database
Persistent Store Coordinator
The persistent store coordinator plays a central role in how Core Data manages data; however, you don’t often interact with the coordinator directly when you use the framework. This section describes the persistent store coordinator in detail, so if you prefer you can skip it and refer to it later as necessary.