문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top