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: "Ankur Singhal" <email@hidden>
- Date: Sat, 28 Feb 2009 10:40:58 +0530
Hi,
By path I mean to say the actual path of the object present on my Pc like
/users/ankur/desktop
Thanks & Regards,
Ankur Singhal
-----Original Message-----
From: Graham Cox [mailto:email@hidden]
Sent: Saturday, February 28, 2009 10:36 Morning
To: Ankur Singhal
Cc: email@hidden
Subject: Re: Finding the path of selected item in NSOutlineView
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/NSNotif
ication
> > *) 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