A cell-based NSTableView has Name
column with a NameCell
derived from NSTextFieldCell in which, besides the text it draws a custom pie progress indicator (in the very same cell, not in a separate column).
It mimics the one in Finder's Name column, when a big file is downloaded.
I've bound the column's value to the filesAC
array controller in order to show the text field,
columnName.bind(.value, to: filesAC as Any, withKeyPath: "arrangedObjects.fileName", options: nil)
But how to bind the pieProgress
of the NameCell
to the progress
(of the File
object in the array) ?
tableView(_ : dataCellFor: row: )
andtableView(_ : willDisplayCell: for: row: )
. I think it means that cell-based tables are not entirely deprecated but only the usage of custom subclasses of NSCell is. In other words, one can safely use cell-based table only with "standard" cells. – WorkingClassHero