Chapter 8. Creating Core Data Models

Xcode comes with an integrated data model editor tool. In this chapter, you’ll learn how to use the data modeler to give your application the ability to create, manage, manipulate, save, and load its data with a minimal amount of code.

Introducing Core Data

A data model gives your application a well-defined structure for managing and persisting its data. The model corresponds with the Model layer of the Model-View-Controller design pattern. There are a number of ways to manage your application’s model layer, but Apple has created a solution that works well in many situations: Core Data. This facility is well integrated with Xcode.

Apple is very careful to specify Core Data as an “object graph management ...

Get Mastering Xcode: Develop and Design, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.