Question

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?

Was it helpful?

Solution 2

Just set NSImageCell Editable as NO;

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

OTHER TIPS

use this

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

I think textfield in 2 column.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top