Alex Rivera | Logout

NSTableView - Disable Row Selection

Asked 2011-09-02T15:05:15.470
21

I have a NSTableView and I want to disable row selection.

The columns of the table view are bound to a NSArrayController and the content of the array does show up in the table view.

How can I do this just using bindings?

Edit
Report

1 Answer

23

I think you'll need to use a TableViewDelegate and implement

- (NSIndexSet *)tableView:(NSTableView *)tableView 
    selectionIndexesForProposedSelection:(NSIndexSet *)proposedSelectionIndexes
answered 2011-09-02T19:57:05.773

Your Answer