Author(s): Aaron Douglas, Saul Mora, Matthew Morey, Pietro Rea
Edition: 3rd Edition
Publisher: Razeware
Year: 2016
Language: English
Pages: 241
Introduction......Page 10
What you need......Page 11
What’s in store......Page 12
Source code and forums......Page 13
License......Page 14
About the cover......Page 15
Getting started......Page 16
Modeling your data......Page 25
Saving to Core Data......Page 28
Fetching from Core Data......Page 33
Where to go from here?......Page 35
Getting started......Page 36
Modeling your data......Page 39
Storing non-standard data types in Core Data......Page 43
Managed object subclasses......Page 44
Propagating a managed context......Page 47
Data validation in Core Data......Page 56
Tying everything up......Page 60
Where to go from here?......Page 61
Getting started......Page 62
Rolling your own Core Data stack......Page 63
The persistent store......Page 64
The persistent store coordinator......Page 65
The managed object context......Page 66
The persistent store container......Page 67
Modeling your data......Page 70
Adding managed object subclasses......Page 73
A walk down persistence lane......Page 75
Deleting objects from Core Data......Page 80
Where to go from here?......Page 82
NSFetchRequest: the star of the show......Page 84
Introducing the Bubble Tea app......Page 86
Stored fetch requests......Page 88
Fetching different result types......Page 92
Sorting fetched results......Page 107
Asynchronous fetching......Page 110
Batch updates: no fetching required......Page 112
Where to go from here?......Page 114
Introducing the World Cup app......Page 115
It all begins with a fetch request......Page 117
Grouping results into sections......Page 125
“Cache” the ball......Page 128
Monitoring changes......Page 129
Inserting an underdog......Page 134
Where to go from here?......Page 138
When to migrate......Page 139
Types of migrations......Page 140
Getting started......Page 141
A lightweight migration......Page 143
Inferred mapping models......Page 145
A manual migration......Page 150
A complex mapping model......Page 158
Migrating non-sequential versions......Page 164
A self-migrating stack......Page 165
Testing sequential migrations......Page 173
Where to go from here?......Page 174
Getting started......Page 177
Core Data stack for testing......Page 178
Asynchronous tests......Page 183
Tests first......Page 185
Validation and refactoring......Page 189
Where to go from here?......Page 192
Getting started......Page 193
Measure, change, verify......Page 195
Fetching and performance......Page 205
Where to go from here?......Page 222
Chapter 9: Multiple Managed Object Contexts......Page 223
Introducing SurfJournal......Page 224
Doing work in the background......Page 228
Editing on a scratchpad......Page 234
Where to go from here?......Page 240
Conclusion......Page 241