.fullWidth
actually includes horizontal padding at the row level.
You will need to set tableView.style = .plain
to get back the pre-Big Sur look and feel.
From the NSTableView
header files:
@available(macOS 11.0, *)
public enum Style : Int {
// Automatically infers the effectiveStyle from the table view hierarchy.
case automatic = 0
// Edge-to-edge style with standard content padding at the ends of each row. This content padding is constant and independent of intercellSpacing.
case fullWidth = 1
// Inset style with rounded corners selection
case inset = 2
/* The source list style of NSTableView. Setting this style will have the side effect of setting the background color to "source list".
Additionally in NSOutlineView, the following properties may change to get the standard "source list" look: indentationPerLevel, rowHeight and intercellSpacing. After setting the style it is possible to change any of the other properties as required.
In 10.11, if the background color has been changed from the "source list" background color to something else, the table will no longer draw the selection as a source list blur style, and instead will draw a normal selection highlight.
This replaces NSTableViewSelectionHighlightStyleSourceList which is to be deprecated.
*/
case sourceList = 3
// A plain style. No insets, padding or any other kind of decoration applied to the row or its background. The cells are equally spaced in the row using intercellSpacing.width.
case plain = 4
}