Skip navigation.
 
mlwhat is the best (easiest) way to get the selection in an NSOutlineView?
FROM : Daniel Morrow
DATE : Thu Oct 07 21:21:28 2004

I have an NSOutlineView, and you can only select one row in it. No
multiple selection of any sort.

When someone chooses a row, I want to know, get the object for that
row, and then perform some action.

I'm installing a delegate method, "outlineViewSelectionDidChange", and
this seems to get what I want. However, I've looked at other samples,
Apple's "DragNDropOutlineView" and another one, and neither of them use
this method. Actually, the DragNDropOutlineView way of doing things
looks a bit complex.

Should I just stick with the delegate method, or try something else?

-Dan.

Related mailsAuthorDate
mlwhat is the best (easiest) way to get the selection in an NSOutlineView? Daniel Morrow Oct 7, 21:21
mlRe: what is the best (easiest) way to get the selection in an NSOutlineView? Mike Bolton Oct 8, 00:37