Pro Core Data for iOS [electronic resource] : Data Access and Persistence Engine for iPhone, iPad, and iPod touch  /
Privat, Michael.author.
Warner, Robert.author.
The power of Core Data allows iOS developers to efficiently store and retrieve application data using familiar object-oriented paradigms. Pro Core Data for iOS explains both how and why to use Core Data for data storage, from simple to advanced techniques. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and proficiently. Lots of iOS development books touch on Core Data, taking you through a few mainstream use cases for storing and retrieving data in your iOS applications. In Pro Core Data for iOS, however, we take you further into Core Data and show you how to leverage the power of this data framework. After reading this book, you’ll be able to answer all of these questions: What are all the parts of Core Data, and how do they interact? How do I create my own custom store? Should I use plain NSManagedObject instances or custom classes? How do I undo and redo Core Data actions? How do I filter, sort, and aggregate data? What is “faulting,” and why should I care? Suppose I want to change my data model; how do I migrate my users’ data? Pro Core Data for iOS delves into these and other Core Data questions. With explanations, diagrams, code samples, and working explanations, this book will make you a Core Data pro!
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?; History of 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; Inserting New 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 andMaxCount; 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 andRedoing; 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 andOutputting 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
Running Your First Test
Includes index.
The power of Core Data allows iOS developers to efficiently store and retrieve application data using familiar object-oriented paradigms. Pro Core Data for iOS explains both how and why to use Core Data for data storage, from simple to advanced techniques. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and proficiently. Lots of iOS development books touch on Core Data, taking you through a few mainstream use cases for storing and retrieving data in your iOS applications. In Pro Core Data for iOS, however, we take you further into Core Data and show you how to leverage the power of this data framework. After reading this book, you’ll be able to answer all of these questions: What are all the parts of Core Data, and how do they interact? How do I create my own custom store? Should I use plain NSManagedObject instances or custom classes? How do I undo and redo Core Data actions? How do I filter, sort, and aggregate data? What is “faulting,” and why should I care? Suppose I want to change my data model; how do I migrate my users’ data? Pro Core Data for iOS delves into these and other Core Data questions. With explanations, diagrams, code samples, and working explanations, this book will make you a Core Data pro!
iOS (Electronic resource)
Apple computer.
Application software.
Programming languages (Electronic computers).
Apple and iOS.
Computer Applications.
Programming Languages, Compilers, Interpreters.