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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com