Pregunta

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?

¿Fue útil?

Solución 2

Just set NSImageCell Editable as NO;

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

Otros consejos

use this

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

I think textfield in 2 column.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top