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

# attachColorList(_:)

Overriden to attach a color list to a color picker.

```
@MainActor func attachColorList(_ colorList: NSColorList)
```

## Parameters

`colorList`

The color list to attach to the color picker.

---

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)