Declaration

class GSPaletteColor

Declaration

@interface GSPaletteColor : NSColor

Declaration

class GSPaletteColor(NSColor)

Overview

Before using the color, update effective color values using update(for:)updateForEnvironment:updateForEnvironment_. A palette color with an invalid palette container or color index renders as NSColor/errorReplacementColor (bright pink).

Palette colors are not immutable, as changes to the referenced palette affect the value of the color. Access must happen on the main thread.

Topics

Initializers

Instance Properties

  • A factor that is multiplied with the alpha component of the base color to create the effective color.

  • The index into a color palette referencing the base color.

  • Resolves the palette color to a regular color object.

Instance Methods

Type Properties

Type Methods

Topics

Instance Properties

  • A factor that is multiplied with the alpha component of the base color to create the effective color.

  • The index into a color palette referencing the base color.

  • Resolves the palette color to a regular color object.

Instance Methods

Type Properties

  • Dynamic color that adapts to the user-selected foreground color.

Type Methods

Other

Relationships

Inherits From

  • NSColor

Conforms To

  • AppKit.NSAccessibilityColor
  • AppKit.NSPasteboardReading
  • AppKit.NSPasteboardWriting
  • CoreTransferable.Transferable
  • Foundation.NSCoding
  • Foundation.NSCopying
  • Foundation.NSSecureCoding
  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype

Relationships

Inherits From

  • NSColor