I want to make a Navigation interface, where a user can tap on a cell and have a new navigation controller the same as the previous one come up. My managed objects have the following structure:
name (string)
orderId (int)
orderBy (string, a key path indicating what to order the table with)
dateCreated (date)
items (a relationship pointing to the items for the next table)
On tapping an item with a non-nil items, the next controller get's a reference to the tapped item and use its "items", "orderBy" and "orderId" to construct a fetched results controller (with its items as data) and a sort descriptor (using the orderBy and OrderId).
How can I tell the fetched results controller to use the NSSet returned by items as its data? Can I use a predicate to limit results to the items of just one object? Thanks