Instance Method

changeDocumentBackgroundColor:

An action method used to set the background color.

Declaration

- (void)changeDocumentBackgroundColor:(id)sender;

Parameters

sender

The control that wants to set the background color.

Discussion

This method gets the new color by sending a color message to sender.

This will only set the background color if allowsDocumentBackgroundColorChangereturns YES.

See Also

Setting Graphics Attributes

backgroundColor

The receiver’s background color.

drawsBackground

A Boolean value that indicates whether the receiver draws its background.

allowsDocumentBackgroundColorChange

A Boolean value that indicates whether the receiver allows its background color to change.