精通Objective-C的Core Data:iOS与OS X的数据存储与管理

需积分: 10 21 下载量 54 浏览量 更新于2024-07-20 收藏 9.88MB PDF 举报
"Core Data in Objective-C: Data Storage and Management for iOS and OS X 3rd" 是一本关于苹果数据存储框架Core Data的专业书籍,适用于iOS和OS X平台,特别是针对El Capitan和iOS 9的最新版本。作者Marcus Zarra是一名Core Data专家,他通过一个完整的基于Objective-C的应用程序实例,引导读者深入了解Core Data的各种功能和核心原则,包括NSPredicate、NSFetchRequest、线程管理以及内存管理。 书中涵盖了从Core Data的基本概念到高级特性的全面讲解,例如如何正确地将Core Data整合到你的应用程序中,利用灵活的API创建便捷方法以提升应用的可维护性。此外,它还涉及数据迁移的简化、与iCloud的集成、在WatchKit中的应用,以及在队列环境中使用Core Data的方法。书的结尾,读者将构建一个功能完备的应用,并对Core Data有深入的理解,学会如何将其融入iPhone/iPad平台。 本书第三版更新了所有示例,适应了OS X El Capitan和iOS 9的新特性,特别关注了多线程和批量处理的改变。新增章节介绍了从网络位置高效导入数据,以及最佳的数据预加载策略。 读者需要具备的基础条件是:Mac OS X El Capitan和iOS 9的操作系统,以及Objective-C的基本编程知识。 目录包括: 1. 建立基础 2. Core Data的内部机制 3. iOS:NSFetchedResultsController 4. 版本控制与迁移 5. 性能优化 6. 线程管理 7. 批量更改 8. 结合Core Data使用iCloud 9. 添加桌面基础 10. OS X:绑定、KVC和KVO 11. 搜索light、快速查看与Core Data 12. 动态参数 这本书被赞誉为初学者和专家学习Core Data的首选,提供了关于如何有效利用Core Data及其功能的深度见解。对于开发数据密集型应用程序的开发者来说,是一本不可或缺的读物。通过阅读,读者将能够自信地应对任何持久化机制的问题。
2016-10-19 上传
Core Data is intricate, powerful, and necessary. Discover the powerful capabilities integrated into Core Data, and how to use Core Data in your iOS and OS X projects. All examples are current for OS X El Capitan, iOS 9, and the latest release of Core Data. All the code is written in Swift, including numerous examples of how best to integrate Core Data with Apple's newest programming language. 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 elements 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 book is based on Core Data in Objective-C, Third Edition. It focuses on Swift and adds an additional chapter on how to integrate Core Data with an efficient network implementation, with best practices on how to load and pre-load data into your Swift application. What You Need: Mac OS X El Capitan and iOS 9 and a basic working knowledge of Swift Table of Contents Chapter 1. Before We Begin Chapter 2. Under the Hood Chapter 3. iOS: NSFetchedResultsController Chapter 4. Versioning and Migration Chapter 5. Performance Tuning Chapter 6. Threading Chapter 7. Bulk Changes Chapter 8. Network Operations Chapter 9. Using Core Data with iCloud Chapter 10. Adding a Desktop Foundation Chapter 11. Bindings, KVC, and KVO Chapter 12. Spotlight, Quick Look, and Core Data