Frage

NSTableViewCell contents one NSImageCell and one NSTextFieldCell, When add a new cell to NSTableView, method

[tableView editColumn:0 row:100 withEvent:nil select:YES];

make NSImageCell as editing. I want it focus on NSTextFieldCell, how to do it?

War es hilfreich?

Lösung 2

Just set NSImageCell Editable as NO;

[imageCell setEnabled:NO];
[textFieldCell setEnabled:YES];

Andere Tipps

use this

[tableView editColumn:1 row:100 withEvent:nil select:YES];

I think textfield in 2 column.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top