Given model objects that NSTreeController represents, how do you find their index paths in the tree and subsequently select them? This seems to be a blindingly obvious problem, but I can’t seem to find any reference to it. Any ideas?
Given model objects that NSTreeController represents, how do you find their index paths in
Share
There’s no “easy” way, you have to walk the tree nodes and find a matching index path, something like:
Objective-C:
Category
Swift:
Extension