What's the most efficient way to expand all objects of a specific class in a NSOutlineView
? (The datasource of my outline view is a NSTreeController
).
Let's say I have
classA
classA
- classA
- classC
- classC
- classB
- classC
- classC
classB
- classC
I want to expand classA objects only. Do I need to iterate through the entire three checking which class belong each object?
UPDATE Sorry I have to make a correction. The outlineView objects are NSTreeNodes from NSTreeController data source. And only the "representedObject" are those my custom classes.
So the structure with those classes is correct, but they are not directly accessible as nodes of the outline view.