Just went through the modification of -(NSManagedObjectModel *) managedObjectModel on page 68 of the p1.0 PDF. The code in the book replaces the default implementation of the method from the template.
The text says pathForResource:@”DataModel” while the template project names the model Grokking_Recipes_DataModel. Hence, following the text in the book will make path either x0x or nil, I think.
However, when I ran this with @”DataModel” the app crashed on NSAssert. How come? I cannot get NSAssert(path != nil, …..) to trigger.
For the record, I have also downloaded the latest version of the code, and I am on 10.6.2 and Xcode 3.2.1 running in 64-bit.
Any help, hints, or pointers are greatly appreciated!