Chapter 9. An iOS Application: Model

In This Chapter

• Understanding the Data Model editor

• Creating entities, attributes, and relationships

• Making entities into classes

• Generating data with a script phase

It’s time to put some flesh on Passer Rating’s data design. The Core Data framework for iOS and Mac OS X provides a powerful system for managing object-relational graphs and persisting them in an SQLite database.

Xcode includes essential support for Core Data. In this chapter, you’ll see how to use Xcode’s graphical editor to turn a data design into an executable data model.

Implementing the Model

Core Data stores the model objects for you and tracks their relationships to each other. To do that it needs a managed-object model, which ...

Get Xcode® 4 Unleashed, Second 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.