Leave a rating/review
In this part of the course, you learned about the different classes that play a role in creating the core data stack. Let’s recap what you have learned:
You start with the object graph layer of the stack - represented by two main parts: the managed object model and the managed object context.
One or more managed objects, each of which represents a data type in your app, make up the managed object model.
You define an entity in a visual editor and Core Data creates a managed object for you that provides an interface for the underlying generic data container
You much register each of these managed objects with the managed object context. Its job is to keep track of all the changes to the managed object model.
When the program saves the context, it hands off these changes to the persistent store coordinator.
The coordinator facilitates communication between the context and the data store.
It either creates the instances of the data based of off changes requested by the context or
It fetches data from the store as requested by the context.
The persistent store coordinator hides most of the implementation details away from the context so that it doesn’t know what the underlying data store is or how many there are.
The final object, which is technically not part of the stack, is the persistent container that handles the creation of the entire stack with minimal setup.
Now that you’re up to speed on the the Core Data stack, it’s time to use it! In the next part of the course, you’ll store some Launches!