---
title: "setPickerMask(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nscolorpanel/setpickermask(_:)"
---

# setPickerMask(_:)

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

## Declaration

```swift
class func setPickerMask(_ mask: NSColorPanel.Options)
```

## Parameters

- `mask`: One or more logically ORed color mode masks described in Color Picker Mode Masks.

## Discussion

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

- [setPickerMode(_:)](appkit/nscolorpanel/setpickermode(_:).md)
- [mode](appkit/nscolorpanel/mode-swift.property.md)
- [NSColorPanel.Mode](appkit/nscolorpanel/mode-swift.enum.md)
- [NSColorPanel.Options](appkit/nscolorpanel/options.md)
