For the More Curious: The Core Data Stack

NSManagedObjectModel

You worked with the model file earlier in the chapter. The model file is where you define the entities for your application along with their properties. The model file is an instance of NSManagedObjectModel.

NSPersistentStoreCoordinator

Core Data can persist data in several formats:

SQLite

Data is saved to disk using a SQLite database. This is the most commonly used store type.

Atomic

Data is saved to disk using a binary format.

XML

Data is saved to disk using an XML format. This store type is not available on iOS.

In-Memory

Data is not saved to disk, but instead is stored in memory.

The mapping between an object ...

Get iOS Programming: The Big Nerd Ranch Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.