NSColor Class Reference
PDF
Class at a Glance
Overview
Adopted Protocols
Tasks
Creating an NSColor Object from Component Values
Creating an NSColor with Preset Components
Working with Pattern Images
Creating a System Color—an NSColor Whose Value Is Specified by User Preferences
Ignoring Alpha Components
Copying and Pasting
Retrieving a Set of Components
Retrieving Individual Components
Working with the Color Space
Changing the Color
Drawing
Class Methods
alternateSelectedControlColor
alternateSelectedControlTextColor
blackColor
blueColor
brownColor
clearColor
colorForControlTint:
colorFromPasteboard:
colorWithCalibratedHue:saturation:brightness:alpha:
colorWithCalibratedRed:green:blue:alpha:
colorWithCalibratedWhite:alpha:
colorWithCatalogName:colorName:
colorWithCIColor:
colorWithColorSpace:components:count:
colorWithDeviceCyan:magenta:yellow:black:alpha:
colorWithDeviceHue:saturation:brightness:alpha:
colorWithDeviceRed:green:blue:alpha:
colorWithDeviceWhite:alpha:
colorWithPatternImage:
controlAlternatingRowBackgroundColors
controlBackgroundColor
controlColor
controlDarkShadowColor
controlHighlightColor
controlLightHighlightColor
controlShadowColor
controlTextColor
currentControlTint
cyanColor
darkGrayColor
disabledControlTextColor
grayColor
greenColor
gridColor
headerColor
headerTextColor
highlightColor
ignoresAlpha
keyboardFocusIndicatorColor
knobColor
lightGrayColor
magentaColor
orangeColor
purpleColor
redColor
scrollBarColor
secondarySelectedControlColor
selectedControlColor
selectedControlTextColor
selectedKnobColor
selectedMenuItemColor
selectedMenuItemTextColor
selectedTextBackgroundColor
selectedTextColor
setIgnoresAlpha:
shadowColor
textBackgroundColor
textColor
whiteColor
windowBackgroundColor
windowFrameColor
windowFrameTextColor
yellowColor
Instance Methods
alphaComponent
blackComponent
blendedColorWithFraction:ofColor:
blueComponent
brightnessComponent
catalogNameComponent
colorNameComponent
colorSpace
colorSpaceName
colorUsingColorSpace:
colorUsingColorSpaceName:
colorUsingColorSpaceName:device:
colorWithAlphaComponent:
cyanComponent
drawSwatchInRect:
getComponents:
getCyan:magenta:yellow:black:alpha:
getHue:saturation:brightness:alpha:
getRed:green:blue:alpha:
getWhite:alpha:
greenComponent
highlightWithLevel:
hueComponent
localizedCatalogNameComponent
localizedColorNameComponent
magentaComponent
numberOfComponents
patternImage
redComponent
saturationComponent
set
setFill
setStroke
shadowWithLevel:
whiteComponent
writeToPasteboard:
yellowComponent
Constants
AppKit Versions for NSColor Bug Fixes
Notifications
NSSystemColorsDidChangeNotification
Revision History
Index
Companion Guide
Color Programming Topics for Cocoa