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
.
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.