O'Reilly logo

Xcode® 4 Unleashed, Second Edition by Frederic F. Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required