I am developing a Mac app which uses Core data. I am using NSOutlineView and NSTreeController to bind data on view.
You can assume the structure of my data as
- Parent Item 1
- Child Item 1
- Child Item 2
- Child Item 3
- Parent Item 2
- Child Item 4
- Child Item 5
I am applying a fetchPredicate to my NSTreeController to filter the data successfully. On the other hand, the fetchPredicate is applied only to the first level of the data (to parent Items).
I need a method which I can apply a fetchPredicate also to the child items. For example if my criteria matches to Child Item 1 and Child Item 4 the result should be
- Parent Item 1
- Child Item 1
- Parent Item 2
- Child Item 4
Any help will be appreciated.