• 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: Problem with NSButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSButtonCell


  • Subject: Re: Problem with NSButtonCell
  • From: David Watanabe <email@hidden>
  • Date: Sun, 4 Nov 2001 19:55:55 -0800

On Sunday, November 4, 2001, at 07:13 PM, Jeff LaMarche wrote:

I've set up an NSTableView with an NSButtonCell for one of the columns. I've set up the target and action so that when the button is clicked the appropriate method in my control object is called.

What I don't know, however, is how to determine which row of the NSTableView they clicked in. I had expected that the sender would somehow indicate the row clicked, but the sender is simply the NSTableView that contains the cell.

How can I determine which row's button was pressed?


int row = [tableview selectedRow];

?



Dave Watanabe
sciforums.com | webfansite.com | xlife.org


  • Follow-Ups:
    • Re: Problem with NSButtonCell
      • From: Jeff LaMarche <email@hidden>
References: 
 >Problem with NSButtonCell (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Problem with NSButtonCell
  • Next by Date: Re: Problem with NSButtonCell
  • Previous by thread: Problem with NSButtonCell
  • Next by thread: Re: Problem with NSButtonCell
  • Index(es):
    • Date
    • Thread