• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding the path of selected item in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Finding the path of selected item in NSOutlineView
      • From: "Ankur Singhal" <email@hidden>
References: 
 >Finding the path of selected item in NSOutlineView (From: "Ankur Singhal" <email@hidden>)

  • Prev by Date: Finding the path of selected item in NSOutlineView
  • Next by Date: RE: Finding the path of selected item in NSOutlineView
  • Previous by thread: Finding the path of selected item in NSOutlineView
  • Next by thread: RE: Finding the path of selected item in NSOutlineView
  • Index(es):
    • Date
    • Thread