我在 IB 中为 NSTableCellView 添加了一个额外的新标签。
如何连接这个新字段,我可以像 tableView.make( withIdentifier ..
let cell = tableView.make(withIdentifier: "myCell", owner: self) as! NSTableCellView
cell.textField?.stringValue = data[row].firstName
cell.XXX?.stringValue = data[row].lastName
第二个问题:我在尺寸检查器中将 IB 中 TableCellView 的高度更改为 60。IB 中的高度发生变化,但编译后的程序中没有。