init(tableView:cellProvider:)
Creates a diffable data source with the specified cell provider, and connects it to the specified table view.
Declaration
init(tableView: NSTableView, cellProvider: @escaping NSTableViewDiffableDataSourceReferenceCellProvider)Parameters
- tableView:
The initialized table view object to connect to the diffable data source.
- cellProvider:
A closure that creates and returns each of the cells for the table view from the data the diffable data source provides. This replaces the Tableview(_:viewfor:row:) delegate method.