Skip to Main Content
Core Data in Objective-C, 3rd Edition
book

Core Data in Objective-C, 3rd Edition

by Marcus S. Zarra
June 2016
Beginner to intermediate content levelBeginner to intermediate
240 pages
6h 17m
English
Pragmatic Bookshelf
Content preview from Core Data in Objective-C, 3rd Edition

Progressive Data Migration (An Academic Exercise)

We’re going to wrap up this chapter with a final section that’s primarily a mental and academic exercise, one that demonstrates the flexibility available when working with Core Data migrations. Since it’s possible to insert custom code at nearly every point in a migration, we can do some very interesting things. Let’s take a look at an example.

What happens when our application is at version 5 of its data model and a user at version 1 decides to upgrade? Normally, we’d need to provide a mapping model for every combination of source and destination object models. For the first couple of versions, this isn’t an issue. However, as we get further away from version 1, it becomes increasingly difficult. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

iOS Programming Cookbook

iOS Programming Cookbook

Hossam Ghareeb
Learning Cocoa with Objective-C, 4th Edition

Learning Cocoa with Objective-C, 4th Edition

Paris Buttfield-Addison, Jonathon Manning, Tim Nugent

Publisher Resources

ISBN: 9781680502022Errata Page