NSColorWell Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSColorWell.h |
Overview
An NSColorWell object is an NSControl for selecting and displaying a single color value. An example of an NSColorWell object (or simply color well) is found in an NSColorPanel, which uses a color well to display the current color selection. A color well is available from the Palettes panel of Interface Builder.
Tasks
Managing Color From Color Wells
Activating and Deactivating Color Wells
Managing Borders of Color Wells
Drawing a Color Well
Instance Methods
activate:
Activates the receiver, displays the color panel, and makes the current color the same as its own.
Parameters
Discussion
This method redraws the receiver. An active color well will have its color updated when the current color of the NSColorPanel changes. Any color well that shows its border highlights the border when it’s active.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.hcolor
Returns the color of the receiver.
Return Value
The color of the receiver.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.hdeactivate
Deactivates the receiver and redraws it.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.hdrawWellInside:
Draws the colored area inside the receiver at the specified location without drawing borders.
Parameters
- insideRect
The rectangle specifying the area within which to draw.
Availability
- Available in OS X v10.0 and later.
Declared In
NSColorWell.hisActive
Returns a Boolean value indicating whether the receiver is active.
Availability
- Available in OS X v10.0 and later.
Declared In
NSColorWell.hisBordered
Returns a Boolean value indicating whether the receiver has a border.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.hsetBordered:
Places or removes a border on the receiver and redraws the receiver.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.hsetColor:
Sets the color of the receiver and redraws the receiver.
Parameters
- color
The new color for the color well.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSColorWell.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-28)