Managed Object Model

Managed objects are defined in a managed object model (NSManagedObjectModel). The managed object model includes the list of entities, the attributes associated with each entity, validations associated with attributes and entities, and the relationships established between the entities. Managed object models are typically created using Xcode’s visual modeling editor (see Figure 12.1).

Image

Figure 12.1 Xcode Data Model Editor: Graph style.

In Figure 12.1, two entities are represented. Each entity has attributes associated with it, and there is a one-to-many relationship set up between the two entities. To see more detail about the ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK 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.