The right mouse click events are mostly used to show context menus based on underlying cell. Therefore I think the cell should also be selected when right clicking on the cell.
In the current implementation the cell is only selected when left clicking on the cell.
You can make it a optional delegate method
Right, would be a nice solution!
works for me, but one change - method should be of the form: -(BOOL)tableViewShouldSelectRowOnRightClick:(TUITableView *)tableView;
I think it would be even better if the delegate method also included the indexPath that is about to be selected. It might be desirable to have a different behavior for different rows.
We could make a more generic method where a selection can be restricted based on the event.
For example: - (BOOL)tableView:(TUITableView*)tableView shouldSelectRowAtIndexPath:(TUIFastIndexPath*)indexPath forEvent:(NSEvent*)event;
- (BOOL)tableView:(TUITableView*)tableView shouldSelectRowAtIndexPath:(TUIFastIndexPath*)indexPath forEvent:(NSEvent*)event;
Pull request #38 merged. Done!