Enumeration

NSGradientType

Specify the gradients used by the gradientType property.

Declaration

typedef enum NSGradientType : NSUInteger {
    ...
} NSGradientType;

Topics

Constants

NSGradientNone

There is no gradient, so the button looks flat.

NSGradientConcaveWeak

The top-left corner is light gray, and the bottom-right corner is dark gray, so the button appears to be pushed in.

NSGradientConcaveStrong

As with NSGradientConcaveWeak, the top-left corner is light gray, and the bottom-right corner is dark gray, but the difference between the grays is greater, so the appearance of being pushed in is stronger.

NSGradientConvexWeak

The top-left corner is dark gray, and the bottom-right corner is light gray, so the button appears to be sticking out.

NSGradientConvexStrong

As with NSGradientConvexWeak, the top-left corner is dark gray, and the bottom-right corner is light gray, but the difference between the grays is greater, so the appearance of sticking out is stronger.