Core Data is intricate, powerful, and necessary, and this book is your guide to harnessing its power. Core Data is Apple's recommended way to persist data: it's easy to use, built-in, and can integrate with iCloud. Learn fundamental Core Data principles such as thread and memory management. Discover the powerful capabilities integrated into Core Data, and how to use Core Data in your iOS and OS X projects. All examples are updated for OS X El Capitan, iOS 9, and for the latest release of Core Data. In this third edition, the focus remains on Objective-C. Core Data expert Marcus Zarra walks you through a fully developed application based around the Core Data APIs. You'll build on this application throughout the book, learning key Core Data principles such as NSPredicate, NSFetchRequest, thread management, and memory management.
Start with the basics of Core Data and learn how to use it to develop your application. Then delve deep into the API details. Explore how to get Core Data integrated into your application properly, and work with this flexible API to create convenience methods to improve your application's maintainability. Reduce your migration difficulties, integrate your Core Data app with iCloud and Watch Kit, and use Core Data in a queue-based environment. By the end of the book, you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate your application into the iPhone/iPad platform. This third edition updates all examples for OS X El Capitan and iOS 9, and gets you up to speed on changes in multithreading and batch processing. There's a new chapter on efficiently importing data from a network location, and a new discussion of how best to pre-load data into your application. What You Need: Mac OS X El Capitan and iOS 9 and a basic working knowledge of Objective-C.