Core Data in Objective-C: Data Storage and Management for iOS and OS X
Core Data is Apple's data storage framework: it's powerful, built-in, and can integrate with iCloud. Discover all of Core Data's powerful capabilities, learn fundamental principles including thread and memory management, and add Core Data to both your iOS and OS X projects. All examples in this edition are based on Objective-C and are up-to-date for the latest versions of OS X El Capitan and iOS 9.

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 principles 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 third edition updates all examples for OS X El Capitan and iOS 9, and gets you up to speed on changes in multithreading and batch processing. There's a new chapter on efficiently importing data from a network location, and a new discussion of how best to pre-load data into your application.

What You Need:

Mac OS X El Capitan and iOS 9 and a basic working knowledge of Objective-C
1123253493
Core Data in Objective-C: Data Storage and Management for iOS and OS X
Core Data is Apple's data storage framework: it's powerful, built-in, and can integrate with iCloud. Discover all of Core Data's powerful capabilities, learn fundamental principles including thread and memory management, and add Core Data to both your iOS and OS X projects. All examples in this edition are based on Objective-C and are up-to-date for the latest versions of OS X El Capitan and iOS 9.

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 principles 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 third edition updates all examples for OS X El Capitan and iOS 9, and gets you up to speed on changes in multithreading and batch processing. There's a new chapter on efficiently importing data from a network location, and a new discussion of how best to pre-load data into your application.

What You Need:

Mac OS X El Capitan and iOS 9 and a basic working knowledge of Objective-C
38.0 In Stock
Core Data in Objective-C: Data Storage and Management for iOS and OS X

Core Data in Objective-C: Data Storage and Management for iOS and OS X

by Marcus Zarra
Core Data in Objective-C: Data Storage and Management for iOS and OS X

Core Data in Objective-C: Data Storage and Management for iOS and OS X

by Marcus Zarra

Paperback

$38.00 
  • SHIP THIS ITEM
    In stock. Ships in 1-2 days.
  • PICK UP IN STORE

    Your local store may have stock of this item.

Related collections and offers


Overview

Core Data is Apple's data storage framework: it's powerful, built-in, and can integrate with iCloud. Discover all of Core Data's powerful capabilities, learn fundamental principles including thread and memory management, and add Core Data to both your iOS and OS X projects. All examples in this edition are based on Objective-C and are up-to-date for the latest versions of OS X El Capitan and iOS 9.

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 principles 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 third edition updates all examples for OS X El Capitan and iOS 9, and gets you up to speed on changes in multithreading and batch processing. There's a new chapter on efficiently importing data from a network location, and a new discussion of how best to pre-load data into your application.

What You Need:

Mac OS X El Capitan and iOS 9 and a basic working knowledge of Objective-C

Product Details

ISBN-13: 9781680501230
Publisher: Pragmatic Bookshelf
Publication date: 06/23/2016
Pages: 240
Product dimensions: 7.50(w) x 9.20(h) x 0.40(d)

About the Author

Marcus S. Zarra has spoken at numerous conferences around the globe and has taught Objective-C at top U.S. colleges. Marcus has been developing iOS applications since day one, and was one of the few developers to have an application available in the App Store on the first day. Outside of Apple, no one has been working with Core Data longer or on more applications.

Table of Contents

Introduction ix

1 Building a Foundation 1

The Storyboard 2

The Recipe List 3

The Recipe Detail 5

The Edit Workflow 6

Ready for Core Data 10

2 Under the Hood of Core Data 11

Introducing the NSManagedObjectModel 12

Integrating with the NSPersistentStoreCoordinator 15

Adding the NSManagedObjectContext 19

Working with NSManagedObject Instances 20

Building an NSFetchRequest 27

NSSortDescriptor 30

Wrapping Up 31

3 IOS: NSFetchedResultsController 33

How to Use the NSFetchedResultsController 33

Under the Hood of the NSFetchedResultsController 41

Building Our Own: ZSContextWatcher 43

Wrapping Up 47

4 Versioning and Migration 49

Some Maintenance Before We Migrate 50

A Simple Migration 52

The Difference Between Light and Heavy Migrations 54

A Heavy/Manual Migration 55

Fundamentals of Core Data Versioning 62

Progressive Data Migration (An Academic Exercise) 65

Wrapping Up 70

5 Performance Tuning 71

Persistent Store Types 71

Optimizing Your Data Model 73

Fetching 77

Faulting 81

Access Patterns 84

Wrapping Up 85

6 Threading 87

Threading and Core Data 88

Working on the Main Queue 89

Working off the Main Queue 91

Interqueue Communication 91

Parent/Child NSManagedObjectContext Design 94

Export Operation 95

Import Operation 102

Asynchronous Saving 107

Debug Concurrency Checking 110

Wrapping Up 110

7 Bulk Changes 113

Running with Scissors 113

Doing Bulk Updates 114

Notifying the Application of Changes 117

Bulk Deletes 119

Things to Consider When Using the Bulk Change APIs 120

Wrapping Up 122

8 Using Core Data with iCloud 123

Introducing the UIManagedDocument 124

Direct NSManagedObjectContext to iCloud 130

Consuming Changes from iCloud 133

Under the Hood 134

Migrating an Existing Application 137

Desktop iCloud Integration 140

Issues with Data Quantities 142

Sharing Data Between iOS and OS X 142

Wrapping Up 144

9 Adding a Desktop Foundation 145

Our Application 145

Our Application Design 146

Sharing the Data Model 146

Building the Controller Layer 147

Building the User Interface 149

Adding a Splash of Code 154

Wrapping Up 158

10 OS X: Bindings, KVC, and KVO 159

Key Value Coding 160

Key Value Observing 163

Cocoa Bindings and Core Data 165

Other Interface Elements That Use KVO, KVC, and Core Data 168

Wrapping Up 172

11 Spotlight, Quick Look, and Core Data 173

Integrating with Spotlight 174

Integrating with Quick Look 188

Putting It All Together 195

Wrapping Up 196

12 Dynamic Parameters 197

Building the Xcode Example Project 199

The DocumentPreferences Object 199

Using Document Preferences 204

Wrapping Up 205

Bibliography 207

Index 209

From the B&N Reads Blog

Customer Reviews