NSFetchedResultsController fetching and displaying results combined from two entities iPhone SDK -
I am trying to improve a TODO app for iPhone.
I have two institutions, 1. Project 2. Project
There may be many tasks in one project, but one can not have any project or one in the work.
I am trying to use NSFetchedResultsController in the same UITableView
Is it possible to get two entities and it is possible to display / sort them from the same UITWview?
Definitely I can not fully understand, but you can find projects in the same UITWview and Trying to display Task?
From the top of my head, I would say that you want to create an abstract unit, "displayable" or something like that, and make it the parents of its work and project entities (assuming they have their tables Display the same in the Weave) then get them all and you will have your entire result set.
Note that I have not tried to do this myself, but you should do it in principle.
Alternatively, if this is not an option, then you can use two NSFatted Result Controllers, for each unit, and just add some fancy conditional code in their line forwarded path: ( Or whatever) methods Sorting can be a problem, though.
Comments
Post a Comment