Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocoa 如何跟踪表视图单元格中按钮的选定行?_Cocoa_Nstableview_Nstableviewcell - Fatal编程技术网

Cocoa 如何跟踪表视图单元格中按钮的选定行?

Cocoa 如何跟踪表视图单元格中按钮的选定行?,cocoa,nstableview,nstableviewcell,Cocoa,Nstableview,Nstableviewcell,与此类似,, 我们是否有**任何方法可以在单击表格单元格中的按钮时选择**NSTableView****的行索引 执行下面的委托方法,在这种情况下,您可以确定选择了哪个单元格:- - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row 决议:1。为按钮

与此类似,,


我们是否有**任何方法可以在单击表格单元格中的按钮时选择**NSTableView****的行索引

执行下面的委托方法,在这种情况下,您可以确定选择了哪个单元格:-

- (void)tableView:(NSTableView *)tableView
  willDisplayCell:(id)cell
   forTableColumn:(NSTableColumn *)tableColumn
              row:(NSInteger)row

决议:1。为按钮创建了一个出口。2.将标记动态添加到其中。3.在操作中,获取sender标记,它只是行索引。