<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorPanel/setPickerMask(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColorPanel(cm)setPickerMask:"
  },
  "title" : "setPickerMask(_:)"
}
-->

# setPickerMask(_:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)