Summary
This chapter showed you how to implement a relatively simple Core Data database that stores family members and their favorite movies. You used the Core Data model editor in Xcode to configure the models you wanted to store and define the relationship between these models. Once the models were set up, you implemented code that created instances of your models so that they could be stored in the database and retrieved later.
Next, you retrieved the data from the database and saw that your table views don't automatically update when the underlying data changes. You used an NSFetchedResult
controller to fetch family members and listen to changes on the list of family members. You saw that this setup is very powerful because you can respond to changes in your data quite easily.
Finally, you improved the Core Data code by using different managed object contexts, using the background object context to persist data, and the main queue object context to react to the changes...