O'Reilly logo

Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications by Tim Roadley

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

3. Managed Object Model Migration

Anyone who has never made a mistake has never tried anything new.

Albert Einstein

In Chapter 2 the basics of managed object models were introduced, yet you were constrained to just one entity and a few attributes. The next logical step is to add more to the model, however this requires a number of preliminary steps in order to prevent crashes caused by these changes. This chapter will show how to add model versions, model mappings and also demonstrate different migration techniques you can choose when upgrading a model.

Changing a Managed Object Model

As an application evolves, its managed object model will probably need to change. Simple changes such as attribute defaults, validation rules and fetch request ...

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