i have this simplified Model: https://i.stack.imgur.com/d2WsV.png
I have these Elements ordered in an NSOutlineView and Controlled by an NSTreeController.
So I created some dummy data:
Folder1 |___ SubFolder1 |___Element1 |___Element2 |___ SubFolder2 |___SubSubFolder1 |___Element3
The Problem is now: How can I get an array that holds Element1, Element2, Element3 if I select Folder1 and that holds Element1 and Element2 if I select Subfolder1?
My first approach was to create a new NSArrayController bound to an custom property of my NSTreeController Object (Iderived a class for that) but that property only called once and not updated anymore after that. My second approach was to write a Fetch Predicate, but I wasnt successfull... :(
Any ideas?