Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.


Inherits From: NSControl : NSView : NSResponder : NSObject

Conforms To: NSCoding (NSResponder) NSObject (NSObject)

Declared In: AppKit/NSColorWell.h

Class Description

NSColorWell is an NSControl for selecting and displaying a single color value. An example of an NSColorWell object (or simply color well) is found in NSColorPanel, which uses a color well to display the current color selection. NSColorWell is available from the Palettes panel of Interface Builder.

An application can have one or more active NSColorWells. You can activate multiple NSColorWells by invoking the activate: method with NO as its argument. When a mouse-down event occurs on an NSColorWell's border, it becomes the only active color well. When a color well becomes active, it brings up the color panel also.

The mouseDown: method enables an instance of NSColorWell to send its color to another NSColorWell or any other subclass of NSView that implements the NSDraggingDestination protocol.

See also: NSColorPanel (class)



Managing Color

Managing Borders