I have the following relationship defined in Core Data
Person --> Worked <-- Job
I have a view that shows Person information in a tableview. The user can then click on Worked Items to see all worked items for that person (Worked entity shows hours worked and related job). I then push a view showing worked jobs for that person. I also show, in a picker view, a list of jobs that can be added to the Worked list.
I've tried to do this every which way, but I'm not sure if I'm going about the right way, so I'd like the experts' input on this.
What should I pass into the Worked view? I currently pass in the Person object containing the Worked NSSet to load the table view. Then I use a NSFetchedResultsController to load the picker. So I got the add functionality working, by using the Person and Job addWorkedObject: methods. But I need to let the user delete a worked item from the table view.
Should I be using two NSFetchedResults? If so, how?
I'm really at my witt's end with this one, so if anyone can help, I'd really appreciate it.
Thanks,
Rod