Disable double-click NSTableView

I hope to disable the double click of the NSTableView row and prevent row editing.

Is it possible to disable the NSTableView double loop?

Welcome any comment

+4
source share
2 answers

Try enabling this method and return NO:

- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { return NO; } 

Also check out the documentation for NSTableView .

+9
source
  • You can use the delegate method Tableview `tableView: shouldEditTableColumn: string
  • Or you can also disable this from the interface constructor
  • or you can also overwrite the mouse click event on the table.

.

+3
source

All Articles