• 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
How to tell when your row is selected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to tell when your row is selected?


  • Subject: How to tell when your row is selected?
  • From: Mark Dawson <email@hidden>
  • Date: Tue, 01 Aug 2006 14:00:33 -0700

If you have a mulit-column NSOutlineView, and use the arrow keys to run up and down it, how do you tell if "your" row is selected?  I'd like to change the display of the right column for each selection change in the left column.

I know that for each selection change, at least two - (id)outlineView:objectValueForTableColumn:byItem: calls are generated (one for the deselected row and one for the selected row).  I also know that I can call [outlineview selectedRow] from this routine and get the index of the selected row.  However, depending on the  disclosure state, this value varies for any given item.  What I'd really like is something like:  if ([item row] == [outlineView selectedRow]) doStuff.  The outline view should know what row "item" (the byItem parameter) belongs to, but I can't seem to find anyway to track it back.

Thanks,

Mark
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to tell when your row is selected?
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: NSWindowController and custom windows
  • Next by Date: Re: NSWindowController and custom windows
  • Previous by thread: Re: NSWindowController and custom windows [SOLVED]
  • Next by thread: Re: How to tell when your row is selected?
  • Index(es):
    • Date
    • Thread