• 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: Select an Item in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Select an Item in NSOutlineView (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: montreal cocoa dev
  • Next by Date: Re: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • Previous by thread: Re: Select an Item in NSOutlineView
  • Next by thread: Re: Select an Item in NSOutlineView
  • Index(es):
    • Date
    • Thread