NSColor
E900212
NSColor is a fundamental AppKit class in macOS development that represents and manages color objects for drawing and user interface elements.
Statements (60)
| Predicate | Object |
|---|---|
| instanceOf |
AppKit class
ⓘ
Cocoa class ⓘ Objective-C class ⓘ macOS framework type ⓘ |
| conformsTo |
NSCopying
NERFINISHED
ⓘ
NSSecureCoding NERFINISHED ⓘ |
| definedIn | AppKit.framework NERFINISHED ⓘ |
| hasClassMethod |
colorNamed:
ⓘ
colorWithCGColor: ⓘ colorWithCalibratedRed:green:blue:alpha: ⓘ colorWithCalibratedWhite:alpha: ⓘ colorWithDeviceRed:green:blue:alpha: ⓘ colorWithDeviceWhite:alpha: ⓘ colorWithDisplayP3Red:green:blue:alpha: ⓘ colorWithHue:saturation:brightness:alpha: ⓘ colorWithSRGBRed:green:blue:alpha: ⓘ |
| hasInstanceMethod |
CGColor
NERFINISHED
ⓘ
blendedColorWithFraction:ofColor: ⓘ colorUsingColorSpace: ⓘ colorUsingColorSpaceName: ⓘ getHue:saturation:brightness:alpha: ⓘ getRed:green:blue:alpha: ⓘ getWhite:alpha: ⓘ set ⓘ setFill ⓘ setStroke ⓘ |
| hasProperty |
alphaComponent
ⓘ
blueComponent ⓘ brightnessComponent ⓘ colorSpace ⓘ greenComponent ⓘ hueComponent ⓘ redComponent ⓘ saturationComponent ⓘ whiteComponent ⓘ |
| headerFile | <AppKit/NSColor.h> ⓘ |
| inheritsFrom | NSObject ⓘ |
| language |
Objective-C
NERFINISHED
ⓘ
Swift NERFINISHED ⓘ |
| partOf |
AppKit
NERFINISHED
ⓘ
Cocoa NERFINISHED ⓘ |
| platform | macOS ⓘ |
| provides |
calibrated color spaces support
ⓘ
color space conversion ⓘ component-based color access ⓘ device color spaces support ⓘ named colors support ⓘ pattern colors support ⓘ system color access ⓘ |
| relatedTo | UIColor NERFINISHED ⓘ |
| supports |
appearance-aware colors
ⓘ
dynamic system colors ⓘ named color assets ⓘ |
| usedFor |
drawing operations
ⓘ
managing color objects ⓘ representing colors ⓘ user interface elements ⓘ |
| usedIn |
AppKit drawing APIs
ⓘ
NSAttributedString attributes ⓘ NSView rendering ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.