Re: Select an Item in NSOutlineView
Re: Select an Item in NSOutlineView
- Subject: Re: Select an Item in NSOutlineView
- From: Corbin Dunn <email@hidden>
- Date: Thu, 9 Mar 2006 10:18:13 -0800
I have a NSOutlineView, already read all the documentation and I'm
able to use it... but I have a problem.
How can I get the value of selectedRow?
I have only two level of items: root and child, and I need to
retrieve only the child value (NSString).
Your selected item will be:
id item = [ov itemAtRow:[ov selectedRow]];
If you allow multiple selection, use selectedRowIndexes, and translate
the row index to the item, as needed.
--corbin
_______________________________________________
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