Pro Core Data for iOS : data access and persistence engine for iPhone, iPad, and iPod touch / Michael Privat and Rob Warner.

Provides information on storing and retrieving application data, covering such topics as creating a data model, working with data objects, refining the results set, versioning and migrating data, and adding encryption.

Saved in:
Bibliographic Details
Online Access: Full Text (via O'Reilly/Safari)
Main Author: Privat, Michael
Other Authors: Warner, Rob, 1969-
Format: eBook
Language:English
Published: New York : Apress, ©2011.
Subjects:
Table of Contents:
  • Title Page; Copyright Page; Contents at a Glance; Table of Content; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Getting Started; What Is Core Data?; Historyof Persistence in iOS; Creating a Basic Core Data Application; Understanding the Core Data Components; Creating a New Project; Running Your New Project; Understanding the Application's Components; Fetching Results; InsertingNew Objects; Initializing the Managed Context; Adding Core Data to an Existing Project; Adding the Core Data Framework; Creating the Data Model.
  • Initializing the Managed Object ContextSummary; Chapter 2: Understanding Core Data; Core Data Framework Classes; The Model Definition Classes; The Data Access Classes; Key-Value Observing; The Query Classes; How the Classes Interact; SQUte Primer; Reading the Data Using Core Data; Summary; Chapter 3: Storing Data: SQUte and Other Options; Using SQUte as the Persistent Store; Configuring the One-to-Many Relationship; Building the User Interface; Configuring the Table; Creating a Team; The Player User Interface; Adding, Editing, and Deleting Players; Seeing the Data in the Persistent Store.
  • Using an In-Memory Persistent StoreCreating Your Own Custom Persistent Store; Initializing the Custom Store; Mapping Between NSManagedObject and NSAtomicStoreCacheNode; Serializing the Data; Using the Custom Store; What About XML Persistent Stores?; Summary; Chapter 4: Creating a Data Model; Designing Your Database; Relational Database Normalization; Using the Xcode Data Modeler; Viewing and Editing Attribute Details; Viewing and Editing Relationship Details; Using Fetched Properties; Creating Entities; Creating Attributes; Creating Relationships; Name; Optional; Transient.
  • Destination and InverseTo-Many Relationship; Min Count and MaxCount; Delete Rule; Summary; Chapter 5: Working with Data Objects; Understanding CRUD; Creating the Shape Application Data Model; Buildingthe Shape Application User Interface; Enabling User Interactionswith the Shapes Application; Generating Classes; Modifying Generated Classes; Using the Transformable Type; Validating Data; Custom Validation; InvokingValidation; Default Values; Undoing and Redoing; Undo Groups; Limiting the Undo Stack; Disabling Undo Tracking; Adding Undo to Shapes; Summary; Chapter 6: Refining Result Sets.
  • Building the Test ApplicationCreating the Org Chart Data; Reading and Outputting the Data; Filtering; Expressions for a Single Value; Expressions for a Collection; Comparison Predicates; Compound Predicates; Subqueries; Aggregating; Sorting; Returning Unsorted Data; Sorting Data on One Criterion; Sorting on Multiple Criteria; Summary; Chapter 7: Tuning Performance and Memory Usage; Buildingthe Application for Testing; Creating the Core Data Project; Creating the Data Model and Data; Creating the Testing View; Building the Testing Framework; Adding the Testing Framework to the Application.