• 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: NSOutlineView: Which row is selected.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView: Which row is selected.


  • Subject: Re: NSOutlineView: Which row is selected.
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 14 Sep 2008 16:25:10 -0600


On Sep 14, 2008, at 9:58 AM, John Cebasek wrote:

I've got an NSOutlineView and am trying to determine which row is selected. I thought [super selectedRow]; (calling NSTableView's selectedRow method) would do the trick, but all I'm getting back from that call is -1.

How does one determine which row is selected in an outline view?


In this scenario, you shouldn't invoke the superclass unless you are overriding the method. If the outline view is "self", then call [self selectedRow] instead.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: NSOutlineView: Which row is selected.
      • From: John Cebasek <email@hidden>
References: 
 >NSOutlineView: Which row is selected. (From: John Cebasek <email@hidden>)

  • Prev by Date: NSOutlineView: Which row is selected.
  • Next by Date: brain-dead NSThread question ...
  • Previous by thread: NSOutlineView: Which row is selected.
  • Next by thread: Re: NSOutlineView: Which row is selected.
  • Index(es):
    • Date
    • Thread