2012-07-09 67 views
1

NSTableViewCell內容之一NSImageCell和一個NSTextFieldCell,當添加一個新的細胞NSTableView的,方法設置NSTableViewCell編輯

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

使NSImageCell爲編輯。 我希望它專注於NSTextFieldCell,該怎麼做?

回答

0

只需將NSImageCell Editable設置爲NO;

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

使用本

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

我想文本框在2列。

+0

兩者都在同一列中。 – Mil0R3 2012-07-09 09:07:14