I have a NSTableView and I want to disable row selection.
NSTableView
The columns of the table view are bound to a NSArrayController and the content of
NSArrayController
I think
- (BOOL)selectionShouldChangeInTableView:(NSTableView *)aTableView { return NO; }
is better than
- (NSIndexSet *)tableView:(NSTableView *)tableView selectionIndexesForProposedSelection:(NSIndexSet *)proposedSelectionIndexes