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

# setPickerMode(_:)

Specifies the color panel’s initial picker.

```
class func setPickerMode(_ mode: NSColorPanel.Mode)
```

## Parameters

`mode`

A constant specifying which color picker mode is initially visible. This is one of the symbolic constants described in `Color Panel Modes`.

## Discussion

This method may be called at any time, whether or not an application’s `NSColorPanel` has been instantiated.

---

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)