10. Managing Persistent Storage with Core Data

Synchronizing data successfully and efficiently often means structuring the data. Once the data is structured in some way, software can keep track of changes to the structures within the data and synchronize those instead of the entire data store. That is how you can easily sync thousands (or even hundreds of thousands) of addresses: you sync the relatively few that have changed since the last sync.

iCloud and the Cocoa frameworks use a variety of tools and techniques to structure data. For relatively small amounts of data (<1MB), key-value coding (KVC) fits the bill. Property lists and the user defaults system are built on top of KVC to provide you with abstractions and tools that you need to support ...

Get Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.