Re: Finding the path of selected item in NSOutlineView
Re: Finding the path of selected item in NSOutlineView
- Subject: Re: Finding the path of selected item in NSOutlineView
- From: Graham Cox <email@hidden>
- Date: Sat, 28 Feb 2009 16:06:06 +1100
On 28/02/2009, at 3:24 PM, Ankur Singhal wrote:
I am facing a problem in finding the path of the selected item from
NSOutlineView. Can any one help me out in solving this problem?
I am trying to use
- (void)outlineViewSelectionDidChange:(NSNotification <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNotification_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSNotification
> *) notification
When an item is selected and wants to find the path for that item.
No idea what you mean by "path" here, but if you want to get the
selected rows, use:
-selectedRowIndexes
and to get the object at a given row, use -itemAtRow:
The [notification object] is the outline view itself, on which you can
call the above methods.
--Graham
_______________________________________________
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