Class

NSColorWell

A control that displays a color value and lets the user change that color value.

Declaration

@interface NSColorWell : NSControl

Overview

Use a color well when you want the user to be able to select a color. For example, an NSColorPanel object uses a color well to display the current color selection.

Topics

Managing Color From Color Wells

color

The color of the receiver.

- takeColorFrom:

Changes the color of the receiver to that of the specified object.

Activating and Deactivating Color Wells

- activate:

Activates the receiver, displays the color panel, and makes the current color the same as its own.

active

A Boolean value that determines whether the color well is active.

- deactivate

Deactivates the receiver and redraws it.

Managing Borders of Color Wells

bordered

A Boolean value that determines whether the receiver has a border.

Drawing a Color Well

- drawWellInside:

Draws the colored area inside the receiver at the specified location without drawing borders.

Relationships

Inherits From

See Also

Controls

NSButton

A control that defines an area on the screen that can be used to trigger actions.

Date Picker

Display a calendar date and provide controls for editing the date value.

NSImageView

A display of image data from an NSImage object in a frame.

NSLevelIndicator

A visual representation of a level or quantity, using discrete values.

Path Control

A display of a file system path or virtual path information.

NSPopUpButton

A control for selecting an item from a list.

NSProgressIndicator

An interface that provides visual feedback to the user about the status of an ongoing task.

NSRuleEditor

An interface for configuring a rule-based list of options.

NSPredicateEditor

A defined set of rules that allows the editing of predicate objects.

Search Field

Provide a text field that is optimized for text-based search interfaces.

NSSegmentedControl

Display one or more buttons in a single horizontal group.

Slider

Display a range of values from which the user selects a single value.

NSStepper

An interface with up and down arrow buttons for incrementing or decrementing a value.

Text Field

Provide a simple interface for displaying and editing text, including support for password fields and secure forms of text entry.

Token Field

Provide a text field whose text can be rendered in a visually distinct way so that users can recognize portions more easily.

Toolbar

Provide a space for controls under a window's title bar and above your custom content.

Combo Box

Display a list of values in a pop-up menu that lets the user select a value or type in a custom value.

NSMatrix

A legacy interface for grouping radio buttons or other types of cells together.

NSSwitch

A control that offers a binary choice.