Contents

drawsBackground

A Boolean that indicates whether the scroll view draws its background.

Declaration

var drawsBackground: Bool { get set }

Discussion

When the value of this property is true, the scroll view cell fills the background with its background color.

If the scroll view encloses an NSClipView, setting this property to false also sets the NSClipView property copiesOnScroll to false. The side effect of setting drawsBackground directly on the NSClipView instead is the appearance of “trails” (vestiges of previous drawing) in the document view as it is scrolled.

See Also

Related Documentation

Managing Graphics Attributes