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) ?
A cell-based solution would imply overriding
dataCell(forRow:)from NSTableColumn in order to return the custom subclassed cellNameCelland set the binding for theNameCell.progress, as per row. ButdataCell(forRow:)is deprecated.A view-based solution is, inside FilesTable class: