tableView(_:rowViewForRow:)
Asks the delegate for a view to display the specified row.
Declaration
@MainActor optional func tableView(_ tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView?Parameters
- tableView:
The table view that sent the message.
- row:
The row index.
Return Value
An instance or subclass of NSTableRowView. If nil is returned, an NSTableRowView instance will be created and used.
Discussion
The delegate can implement this method to return a custom NSTableRowView for row.
The reuse queue can be used in the same way as documented in tableView(_:viewFor:row:). The returned view will have attributes properly set to it before it’s added to the tableView.