Color Panels

The Color Panel is the System-wide user interface for selecting and applying color. The panel itself is a floating utility window, which is divided into four distinct areas: color picker selection; color picker swap view area (which is different for each color picker); the user area (which consists of a color well displaying the current color and the user’s customized colors area); and the optional accessory area, where an application can add functionality to the color panel, as seen in Figure 17.5.

Figure 17.5. The anatomy of an NSColorPanel.

NSColorPanel Class

The NSColorPanel is a subclass of NSPanel, and a shared object, there ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.