Contents

backgroundStyle

The cell’s background style.

Declaration

var backgroundStyle: NSView.BackgroundStyle { get set }

Discussion

The background describes the surface the cell is drawn onto in the draw(withFrame:in:) method. A control typically sets the value of this property before it asks the cell to draw. A cell may draw differently based on background characteristics. For example, a table view drawing a cell in a selected row might set the value to dark. A text cell might decide to render its text white as a result. A rating-style level indicator might draw its stars white instead of gray.

See Also

Managing Display Attributes