【发布时间】:2019-05-15 14:16:18
【问题描述】:
我需要在不使用 tableview 函数的情况下获取指定行的列中包含的单元格。例如:
for a in 0...tableview!.numberOfRows {
let column = tableview.tableColumns[2]
let cell = cell in column at the row a
}
你有什么解决办法吗?
编辑:在可可中
【问题讨论】:
-
使用
0..<tableview!.numberOfRows -
“细胞”是
NSTableCellView吗?为什么不能使用NSTableView方法view(atColumn:row:makeIfNecessary:)?
标签: swift nstableview