Core Data, 2nd Edition – Updated for OS X Mountain Lion and iOS 6 – #programming #bookreview

Core Data, 2nd Edition
Data Storage and Management for iOS, OS X, and iCloud
Marcus S. Zarra
(Pragmatic Bookshelf – paperback)

“If you plan on writing an application that saves data to disk, then you should take a very long look at Core Data,” urges Marcus S. Zarra, in the new second edition of his Core Data how-to book.

“Core Data,” according to the Mac Developer Library, “provides an infrastructure for change management and for saving objects to and retrieving them from storage.”  It is Apple’s recommended way to persist data. And it is “used daily by millions of customers in a wide variety of applications.”

The new edition of Zarra’s book updates its Core Data development example to an iPhone recipe application (from a desktop recipe application in the first edition). The second edition includes coverage of OS X Mountain Lion and iOS 6 and examines changes to multithreading. The author also has added chapters to explore NSFetchedResultsController and iCloud.

If the structure of some of the book’s code examples appear puzzling, pay special attention to Appendix 2. There, Zarra discusses some of the typographical choices necessary to keep lines of code set to fewer than 80 characters wide. And he shows some macros that he uses in his code to speed up development work.

Whether you are just starting out with Core Data or now an old hand at working with it, you likely can learn new things from this well-written how-to guide. Its author is widely regarded as one of the world’s most experienced Core Data application developers.

Si Dunn