East Baton Rouge Parish Library

Pro Core Data for iOS, data access and persistence engine for iPhone, iPad, and iPod touch, Michael Privat and Robert Warner

Label
Pro Core Data for iOS, data access and persistence engine for iPhone, iPad, and iPod touch, Michael Privat and Robert Warner
Language
eng
Illustrations
portraitsillustrations
Index
index present
Literary Form
non fiction
Main title
Pro Core Data for iOS
Nature of contents
dictionaries
Oclc number
1775786136
Responsibility statement
Michael Privat and Robert Warner
Sub title
data access and persistence engine for iPhone, iPad, and iPod touch
Summary
Fully updated for Xcode 4.2, Pro Core Data for iOS explains how to use the Core Data framework for iOS SDK 5 using Xcode 4.2. The book explains both how and why to use Core Data, from simple to advanced techniques. 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
Table Of Contents
Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Why a Second Edition?; What You'll Need; What You'll Find; How This Book Is Organized; Source Code and Errata; How to Contact Us; 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 ObjectsInitializing the Managed ContextAdding Core Data to an Existing Project; Adding the Core Data Framework; Creating the Data Model; Initializing the Managed Object Context; Summary; 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; SQLite Primer; Reading the Data Using Core Data; Summary; Chapter 3 Storing Data: SQLite and Other Options; Visualizing the User Interface; Using SQLite as the Persistent Store; Configuring the One-to-Many RelationshipBuilding the User InterfaceConfiguring 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 Store; Creating 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 DetailsViewing and Editing Relationship DetailsUsing Fetched Properties; Creating Entities; Creating Attributes; Creating Relationships; Name; Destination and Inverse; Transient; Optional; To-Many Relationship; Count (Minimum and Maximum); Delete Rule; Summary; Chapter 5 Working with Data Objects; Understanding CRUD; Creating the Shape Application Data Model; Building the Shape Application User Interface; Enabling User Interactions with the Shapes Application; Generating Classes; Modifying Generated Classes; Using the Transformable Type; Validating Data; Custom Validation; Invoking ValidationDefault ValuesUndoing and Redoing; Undo Groups; Limiting the Undo Stack; Disabling Undo Tracking; Adding Undo to Shapes; Summary; Chapter 6 Refining Result Sets; Building the Test Application; Creating 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; Building the Application for Testing
Contributor
Content
Mapped to