0

Similar to this, How can I keep track of the index path of a button in a table view cell?

Do we have **any way we can select the row index of a **NSTableView**** when clicking on the button in the table cell.

Community
  • 1
  • 1
Raghav
  • 625
  • 1
  • 12
  • 31
  • Resolved : 1. Created a outlet for button. 2. Added the tags to it dynamically. 3. In action get the sender tag which is nothing but row index. – Raghav Oct 24 '13 at 12:36

1 Answers1

1

Implement below delegate method in this you can identify which cell you have selected:-

- (void)tableView:(NSTableView *)tableView
  willDisplayCell:(id)cell
   forTableColumn:(NSTableColumn *)tableColumn
              row:(NSInteger)row
Hussain Shabbir
  • 14,801
  • 5
  • 40
  • 56