Cells are a little different from full-fledged controls. NSTableView
reuses a single cell for all the rows of a column. When NSTableView
draws a row, or when it handles user input, it configures the cell for the row/column in question.
It sounds like in your case you have an NSButtonCell
and you want to know which row was clicked. You can determine which row was clicked by checking the table view's clickedRow
property in the button cell's action method. The answer to this question explains how to do this.