I’ve been having trouble getting NSFetchedResultsController working in my app. I bought Core Data recently, and attempted to make the simplest possible Nav/tableview example, following Recipe, but find Recipe is a rather complex example, and I cannot get it to run. I keep getting ‘persistent store not created’ errors. Even starting from scratch, and using the exact code from the code sample, altered for the simpler example, I keep getting various errors. I’m about to throw up my hands and do a workaround with arrays. A bit awkward, but I do understand how to make that work.
I wish that someone did a simple tutorial on NSFRC that reduced it to basics, with a simple flat SQLite database, no add or edit, so you could get it running and see the essence of how it works clearly, and then go from there. This book is very nice, but does not clearly explain some of the essentials (such as how to handle selecting a subset of the SQLite data, sorting it, how exactly it arranges the data into sections, etc., in the way Bill Dudney does in iPhone SDK Development) Unfortunately, Bill doesn’t do a simple NSFRC example, either. The SQLite database in Recipes is rather elaborate, with confusing entity/attribute naming (Zxxx) that obscures (for me) what’s going on.
If anyone knows of such a code example or tutorial, please email me at email@example.com