Re: Problem with NSButtonCell
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