get the selection in an NSOutlineView
get the selection in an NSOutlineView
- Subject: get the selection in an NSOutlineView
- From: Rua Haszard Morris <email@hidden>
- Date: Wed, 9 Jun 2010 16:29:32 +1200
I have an NSOutlineView which has a single column, and 2 levels of tree - each item in the list can have child items but those subitems don't have children.
How can I determine the selected items?
NSTableView -selectedRow returns row indices that change dependent on whether parent items are expanded, so that won't do.
I could attempt to keep track of the selection via delegate method outlineView:shouldSelectItem: but this seems a bad idea.
Am I missing something? Surely it is possible to ask an NSOutlineView which items are selected?
thanks
Rua Haszard Morris._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden