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

9. Deep Copy

The only sure way to avoid making mistakes is to have no new ideas.

Albert Einstein

In Chapter 8, a default data import from an XML file was demonstrated. This import method is suitable only when the XML source file is small enough to fit into memory. Another option is to use a pre-populated persistent store as the initial persistent store. If customers already have existing data and you want to add a lot more to it, this option isn’t suitable either. When you find yourself in this position, you may need to perform a ‘deep copy’ of managed objects from a source persistent store to an existing persistent store.

Deep Copy

A deep copy involves copying managed objects and their relationships from one persistent store to another. Once ...

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