Contents

drawsBackground

A Boolean value that controls whether the text field’s cell draws a background color behind the text.

Declaration

var drawsBackground: Bool { get set }

Discussion

If true, the text field’s cell draws a background; if false, it draws nothing behind the text.

To prevent inconsistent rendering, NSTextField disables background color rendering for text fields with rounded bezels.

See Also

Controlling the Background