small medium large xlarge

Errata for Core Data (2nd edition)

 

The latest version of the book is P2.0, released about 2 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (21-Jan-14)
#76322
PDF page: 1
In the extract (no page numbers, so I entered "1"), under: 6.1 Introducing the UIManagedDocument, Manually Saving a UIManagedDocument, I find: ...more...
  • Reported in: P1.0 (21-Oct-13)
#53055
Paper page: 3,10
Sec 1.4 The interface property for "serves" should be a NSUInteger type instead of an NSString. This would be consistent with the CD model presented...more...
  • Reported in: P1.0 (26-Mar-13)
#51137
Paper page: 9
NSManagedObjectContext ... Therefor, we hand off the reference to it to our AppDelegate so the the rest of the application can access it. This is g...more...
  • Reported in: B4.0 (18-Jan-13)
#50484
Paper page: 18/26
I've been unable to run the sample code because of the lack of initialization of the data base. I could not find a section of the book or notes in the...more...
  • Reported in: P1.0 (20-Oct-13)
#53039
Paper page: 20

The screenshot shows a highlighted fetch request name "bigMeals". The code snippet below it calls for "allIngredients".--Bruce Payan

  • Reported in: P1.0 (05-May-13)
#51451
PDF page: 20
Under the section on StoreFetchedRequests, the code snippet includes an example of using NSSortDescriptors, which are not covered until the next secti...more...
  • Reported in: P1.0 (18-Oct-13)
#53036
Paper page: 26
In the section on wiring up the UITableView ("Wiring the NSFetchedResultsController to a UITableView"), the data source protocol is referred to as UIT...more...
  • Reported in: P1.0 (24-Feb-13)
#50847
PDF page: 28
Paper page: 14
In Chapter 1. Under the Hood of Core Data, subsection Property Accessors there is a wrong reference in the following text: --- Relationships can...more...
  • Reported in: B4.0 (21-Jan-13)
#50503
Paper page: 29
These two lines are not correct: NSArray *newArray = [NSArray arrayWithObject:newIndexPath]; NSArray *oldArray = [NSArray arrayWithObject:indexPat...more...
  • Reported in: P1.0 (31-Jan-13)
#50626
PDF page: 29
[REF: Pete Hopkins B4 Note] Within the first printing the tech. error noted by Pete Hopkins in B4 still remains. NSArray *newArray = [NSArray ar...more...
  • Reported in: P1.0 (19-Feb-13)
#50838
PDF page: 34
finalPredicate never declared either in the class or within the local method scope. You might want to check the code being posted on media.pragprog.co...more...
  • Reported in: P1.0 (04-Mar-14)
#76477
PDF page: 34
In the code snippet you define NSPredicate *final; but then go on and use an undefined predicate called finalPredicate. - (void)addEntityToWatch:(...more...
  • Reported in: P1.0 (28-May-13)
#51654
Paper page: 35
(Or a suggestion) 1) The results mDictionary is local to -contextUpdated and never assigned/passed so how does it "...pass the newly created NSDicti...more...
  • Reported in: B4.0 (21-Jan-13)
#50502
Paper page: 39
The creation of the UIAlertView is done within the dispatch_async block on the global queue, which causes an error. It should be done on a block that'...more...
  • Reported in: P2.0 (21-Apr-14)
#76713
PDF page: 39

The `UIAlertView` is created and displayed from a background thread.--Incorrect UI thread

  • Reported in: P1.0 (08-Feb-13)
#50774
PDF page: 43

Screen shots of data models are equal, screen shot for version 2 is missing the Author entity and the lastUsed property.

  • Reported in: P1.0 (08-May-13)
#51476
PDF page: 47

"NSEntityMigrationPolicy is designed to be subclasses..."

"Subclasses" should be "subclassed".--Zachary Klein

  • Reported in: P1.0 (13-Jan-14)
#76288
Paper page: 63
Figure 13 is named "Turn on the external record flag," which suggests the Spotlight flag. Combined with the previously-noted fact that the figure show...more...
  • Reported in: P1.0 (15-May-13)
#51523
Paper page: 63
5th Paragraph. Text mentions to "turn on external binary storage," however the corresponding image referenced (figure 13, pg. 64) shows the "external...more...
  • Reported in: B4.0 (19-Jan-13)
#50486
PDF page: 67
In the book on page 67/336 in the code for ZSContextWatcher.m, the sample shows, NSPredicate *final = nil; Where in the Github copy of ZSContext...more...
  • Reported in: P1.0 (13-Jan-14)
#76286
Paper page: 82
Since this is all about getting the export off the main thread, adding the export operation to the mainQueue makes no sense. (The import code has the ...more...
  • Reported in: P1.0 (24-Jun-13)
#52057
PDF page: 86
In the first code example on the page, this line is incorrect: [dict addEntriesFromDictionary:[self moToDictionary:childMO]]; It should read: [di...more...
  • Reported in: P1.0 (13-Jan-14)
#76287
Paper page: 86

If the lastUsed attribute of the Recipe entity is set, JSON serialization will fail here, since NSDate isn't supported.--Randy Saldinger

  • Reported in: P1.0 (03-Apr-13)
#51215
PDF page: 92
Book describes 5.5 Parent-Child NSManagedObjectContext Instances With the release of iOS 6.0 and Mac OS X 10.8 Mountain Lion, a number of new feat...more...
  • Reported in: B4.0 (17-Jan-13)
#50481
PDF page: 95
[self setValue:childSet forKey:key]; This line of code is VERY likely not what's wanted here (it's broken). Calling setValue on "self" refers to th...more...
  • Reported in: P1.0 (11-Mar-13)
#51005
PDF page: 211

At the bottom of the page it says "seques" instead of "segues".--koen

  • Reported in: P2.0 (15-Apr-15)
#78327
PDF page: 211

"Right now we are concerned with the seques of this UIViewController." It should be "segues" instead of "seques."--Chrisna Aing

  • Reported in: P1.0 (20-May-13)
#51548
PDF page: 219
Last line in the page begins with "The seques of this UIViewController." It should be "The segues of this UIViewController." (i.e. segues instead o...more...
  • Reported in: P1.0 (20-Aug-13)
#52430
PDF page: 221
Reading ePub version, so page number won't work. Chapter 3.5, last paragraph: “Is it of vital importance…" I think it should be: "It is of vital im...more...
  • Reported in: P1.0 (24-Jun-13)
#52058
PDF page: 229
Paper page: 222
I'm using Xcode 4.6.2. I'm having problems with your nifty Macros. Note: I have actually manually typed in the Macros (you provide in Appendix 2) in...more...