When I use the code in the book with iOS 4.3 I get the following error:
2011-04-26 12:02:56.470 Tasks[379:207] FATAL ERROR: The persistent cache of section information does not match the current configuration. You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:
2011-04-26 12:02:56.471 Tasks[379:207] fetch request = <NSFetchRequest: 0x4d2a910> (entity: Task; predicate: (priority == 3); sortDescriptors: ((
"(text, descending, compare:)"
)); batch size: 20; type: NSManagedObjectResultType; )
From some googling it appears that I needed to add the following at the top of the method:
Am I doing something wrong or is this something that changed in a version of iOS between the book's development and now?