Contents

setPickerMask(_:)

Determines which color selection modes are available in an application’s NSColorPanel.

Declaration

class func setPickerMask(_ mask: NSColorPanel.Options)

Parameters

  • mask:

    One or more logically ORed color mode masks described in Color Picker Mode Masks.

Discussion

This method has an effect only before an NSColorPanel object is instantiated.

If you create a class that implements the color-picking protocols (NSColorPickingDefault and NSColorPickingCustom), you may want to give it a unique mask—one different from those defined for the standard color pickers. To display your color picker, your application will need to logically OR that unique mask with the standard color mask constants when invoking this method.

See Also

Setting color picker modes