what is the best (easiest) way to get the selection in an NSOutlineView?
what is the best (easiest) way to get the selection in an NSOutlineView?
- Subject: what is the best (easiest) way to get the selection in an NSOutlineView?
- From: Daniel Morrow <email@hidden>
- Date: Thu, 7 Oct 2004 15:21:28 -0400
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden