Instance Method

tableView(_:isGroupRow:)

Returns whether the specified row is a group row.

Declaration

optional func tableView(_ tableView: NSTableView, isGroupRow row: Int) -> Bool

Parameters

tableView

The table view that sent the message.

row

The row index.

Return Value

true if the specified row should have the group row style drawn, false otherwise.

Discussion

If the cell in row is an NSTextFieldCell object and contains only a string, the group row style attributes are automatically applied to the cell.

Group rows in NSView-based table views can be made to visually “float” by setting the table view method floatsGroupRows to true.

See Also