Creates a new color object that represents a blend between the current color and the highlight color.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
Parameters
highlightLevel
The amount of the highlight color that is blended with the receiver's color. This should be a number from
0
through.0 1
. A.0 highlight
belowLevel 0
is interpreted as.0 0
; a.0 highlight
aboveLevel 1
is interpreted as.0 1
..0
Return Value
The new NSColor
object. Returns nil
if the colors can’t be converted.
Discussion
The highlight color is provided by the highlight
property. Call this method when you want to brighten the current color for use in highlights.