NSTableViewDelegate.tableView(_:sizeToFitWidthOfColumn:) does nothing

Hello,

According to the documentation, I could use this method to override the default calculation of a column width based on cells width. The doc says it's using a random sampling for large tables.

I have a view based table, and it just doesn't work - not for small tables (dozes of rows), not for large tables (thousands of rows.)

Also, I see this method is only invoked when I doubleckick on a column separator element (resize cursor), not automatically when the table is populated. Could you please confirm?

Thanks!

NSTableViewDelegate.tableView(_:sizeToFitWidthOfColumn:) does nothing
 
 
Q