Instance Property

gradientType

The gradient of the button’s border.

Declaration

@property NSGradientType gradientType;

Discussion

The value of this property is a constant that specifies the gradient used for the button's border. See NSGradientType for a list of possible values.

If the button has no border, setting this property has no effect on the button’s appearance. A concave gradient is darkest in the top-left corner; a convex gradient is darkest in the bottom-right corner. Weak versus strong is how much contrast exists between the colors used in opposite corners.

See Also

Managing Graphics Attributes

backgroundColor

The background color of the button.

bezelStyle

The appearance of the button’s border, if it has one.

imageDimsWhenDisabled

A Boolean value that indicates if the button’s image and text appear “dim” when the button is disabled.

opaque

A Boolean value that indicates if the button is opaque.

transparent

A Boolean value that indicates if the button is transparent.

showsBorderOnlyWhileMouseInside

A Boolean value that indicates if the button displays its border only when the pointer is over it.