I hope to disable NSTableView row double click and forbid row item edit.
Is it possible to disable NSTableView row开发者_开发技巧 double click?
Welcome any comment
Try including this method and return NO:
- (BOOL)tableView:(NSTableView *)aTableView
shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex {
return NO;
}
Also check out the documentation for NSTableView
.
- You can use Tableview delegate method `tableView:shouldEditTableColumn:row
- Or you can also disable this from Interface builder
- or you can also overwrite mouse click event of tableview
.
精彩评论