---
title: NSColorPicker
framework: appkit
role: symbol
role_heading: Class
path: appkit/nscolorpicker
---

# NSColorPicker

An abstract superclass that implements the default color picking protocol.

## Declaration

```swift
class NSColorPicker
```

## Overview

Overview The NSColorPickingDefault and NSColorPickingCustom protocols define a way to add color pickers (custom user interfaces for color selection) to the color panel.

## Topics

### Initializing the Color Picker Object

- [init(pickerMask:colorPanel:)](appkit/nscolorpicker/init(pickermask:colorpanel:).md)

### Getting the Color Panel

- [colorPanel](appkit/nscolorpicker/colorpanel.md)

### Adding Button Images

- [insertNewButtonImage(_:in:)](appkit/nscolorpicker/insertnewbuttonimage(_:in:).md)
- [provideNewButtonImage](appkit/nscolorpicker/providenewbuttonimage.md)

### Setting the Mode

- [setMode(_:)](appkit/nscolorpicker/setmode(_:).md)

### Managing Color Lists

- [attachColorList(_:)](appkit/nscolorpicker/attachcolorlist(_:).md)
- [detachColorList(_:)](appkit/nscolorpicker/detachcolorlist(_:).md)

### Responding to View Changes

- [viewSizeChanged(_:)](appkit/nscolorpicker/viewsizechanged(_:).md)

### Customizing the Color Picker

- [buttonToolTip](appkit/nscolorpicker/buttontooltip.md)
- [minContentSize](appkit/nscolorpicker/mincontentsize.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSColorPickingDefault](appkit/nscolorpickingdefault.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Color Selection

- [NSColorWell](appkit/nscolorwell.md)
- [NSColorPickerTouchBarItem](appkit/nscolorpickertouchbaritem.md)
