Instance Property

drawsBackground

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

Declaration

@property BOOL drawsBackground;

Discussion

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

If the scroll view encloses an NSClipView, setting this property to NO also sets the NSClipView property copiesOnScroll to NO. 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

Managing Graphics Attributes

backgroundColor

The color of the content view’s background.

borderType

A value that specifies the appearance of the scroll view’s border.

documentCursor

The content view’s document cursor.