NSFetchedResultsController Crashes When Navigating from One UITableViewController to Another
Posted
by wgpubs
on Stack Overflow
See other posts from Stack Overflow
or by wgpubs
Published on 2010-03-07T23:10:00Z
Indexed on
2010/03/07
23:26 UTC
Read the original article
Hit count: 664
In my core data model I have a Person entity that has a "to many" relationship a Course entity (I also have an inverse "to one" relationship from Course to Person).
Now I have a subclassed UITableViewController that uses a NSFetchedResultsController to display Person objects which works fine. I have this set up so that when you click on a Person it publishes another subclassed UITableViewController that uses a NSFetchedController as well to display the Courses associated to the person.
PROBLEM: I get this exception whenever I click on the Person and attempt to display the Course UITableViewController ...
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'keypath name not found in entity <NSSQLEntity Course id=2>
'"
Any ideas on how to resolve or troubleshoot?
The code between the two ViewControllers is almost identical except for the NSFetchedResultsController being configured for "Person" entities in one and "Course" entities in another
© Stack Overflow or respective owner