I've tried numerous combinations of suggested options from other posts, but I can't seem to get a cell-bassed NSTableView populated with non-editable NSTextFieldCell to select the CELL and not the row.
I've tried:
[[col dataCell] setEditable:NO];
[[col dataCell] setSelectable:YES];
[col setEditable:YES];
and tried delegates:
- (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(NSInteger)rowIndex;
and
- (BOOL)shouldFocusCell:(NSCell *)cell atColumn:(NSInteger)column row:(NSInteger)row;
The reason for permitting selecting of the cell (and not editing the text) is that I allow the user to double-click on the cell to perform a navigation function. Double-clicking works great, but the user should be able to see that a single click (or even the first click) selects the cell. But all I get is the row being selected, and even if the delegate inhibits this, no cell selection.
Is the only way to do this to force the cell to draw its background in the selection highlight color? (seems hackish).
BTW, COLUMN selection IS permitted, too. That presently works.
Anyone have any experience with this issue? Or some sage guesses?
Stephen