Pro iOS Persistence [electronic resource] : Using Core Data /
Privat, Michael.author.
Warner, Robert.author.
Pro iOS Persistence explains how to build apps in Objective-C and Swift that persist and use data most effectively including the popular Core Data framework. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and efficiently. This book starts by giving you a solid grounding in Core Data, providing a foundation for the rest of the book. With this knowledge, you'll have all you need to master Core Data and power your data-driven applications. You'll see how to work with SQLite and how to create an efficient data model to represent your data. Once you've established your data model, you'll learn how to work with data objects and refine result sets to get the most out of the stored data. The advanced portions of the book begin by showing you how to tune your apps' performance and memory usage, to give you a truly professional edge. You'll see how to version and migrate your data as well, to ensure your data stays organized and efficient. Finally, the book covers managing table views with NSFetchedResultsController.
Contents at a Glance; Contents; About the Authors; About the Technical Reviewers; Acknowledgments; Introduction; Chapter 1: Touring Core Data; What Is Core Data?; Core Data Components; Creating a New Core Data Project; Creating the Project; Touring the Core Data Components; Initializing the Core Data Components; Creating a Managed Object Model; Adding Some Objects; Viewing the Data; Adding Core Data to an Existing Project; Creating a Core Data-less Application; Adding the Core Data Framework; Adding a Managed Object Model; Adding and Initializing the Core Data Stack; Creating the Object Model
Adding Objects to PersistenceAppWrapping Up; Chapter 2: Building Data Models; Designing Your Database; Relational Database Normalization; Building a Simple Model; Entities; Attribues; Key-Value Coding; Generating Classes; Relationships; Relationship Properties; Delete Rule; Ordered Properties; Storing and Retrieving Data; Inserting New Managed Objects; Retrieving Managed Objects; Predicates; Fetched Properties; Notifications; Notification upon Creation; Notification upon Fetch; Notification upon Change; Registering an Observer; Receiving the Notifications; Conclusion
Chapter 3: Advanced QueryingBuilding WordList; Creating the Application; Building the Data Model; Creating the User Interface; Loading and Analyzing the Word List; Getting a Count; Displaying the Statistics; Querying Relationships; Understanding Predicates and Expressions; Viewing Your SQL Queries; Creating Single-Value Expressions; Creating Collection Expressions; Comparing Expressions Using Different Predicate Types; Using Different Comparison Modifiers; Using Different Options; Adding It Up: Using Compound Predicates; Aggregating; Using @count to Retrieve Counts
Getting the Average Length of All Words-Two WaysUsing a Function as an Rvalue; Using Subqueries; Sorting; Summary; Chapter 4: Attending to Data Quality; Seeding Data; Using the Seed Store; Updating Seeded Data in Subsequent Releases; Updating the Seed Data Store; Updating Existing Users; Undoing and Redoing; Undo Groups; Limiting the Undo Stack; Disabling Undo Tracking; Adding Undo to BookStore; Experimenting with the Undo Groups; Dealing with Errors; Handling Core Data Operational Errors; Handling Validation Errors; Handling Validation Errors in BookStore
Implementing the Validation Error-Handling RoutineSummary; Chapter 5: Integrating with the User Interface; Displaying Table Data with NSFetchedResultController; Creating a Fetched Results Controller; The Fetch Request; The Managed Object Context; The Section Name Key Path; The Cache Name; Creating the Fetched Results Controller Delegate; Building the CoreDump Application; Examining the NSFetchedResultsController in the CoreDump Application; Accessing fetchedResultsController; Displaying Data in the Table; Adding an Event; Deleting an Event; Showing the Detail; Updating the Core Data Model
Generating the Model Classes
Includes index.
"Includes iOs 8 SDK"--Cover.
Pro iOS Persistence explains how to build apps in Objective-C and Swift that persist and use data most effectively including the popular Core Data framework. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and efficiently. This book starts by giving you a solid grounding in Core Data, providing a foundation for the rest of the book. With this knowledge, you'll have all you need to master Core Data and power your data-driven applications. You'll see how to work with SQLite and how to create an efficient data model to represent your data. Once you've established your data model, you'll learn how to work with data objects and refine result sets to get the most out of the stored data. The advanced portions of the book begin by showing you how to tune your apps' performance and memory usage, to give you a truly professional edge. You'll see how to version and migrate your data as well, to ensure your data stays organized and efficient. Finally, the book covers managing table views with NSFetchedResultsController.
iOS (Electronic resource)
iOS (Electronic resource)
Apple computer.
Application software.
Apple and iOS.
Computer Applications.
Computer Appl. in Administrative Data Processing.