Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorMBS class.

NSColorMBS.alternateSelectedControlColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for the face of a selected control.
Example
Var c as NSColorMBS = NSColorMBS.alternateSelectedControlColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

The system color used for the face of a selected control—a control being clicked or dragged. This color can be used where iApp-like highlighting is desired.

NSColorMBS.alternateSelectedControlTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for text in a selected control.
Example
Var c as NSColorMBS = NSColorMBS.alternateSelectedControlTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

The system color used for text in a selected control—a control being clicked or dragged. This color can be used where iApp-like highlighting is desired.

NSColorMBS.alternatingContentBackgroundColors as NSColorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The background colors for alternating content items: such as table view rows, collection view items.

Available on MacOS 10.14 or newer.
This function calls controlAlternatingRowBackgroundColors when alternatingContentBackgroundColors is not available.

Some examples using this method:

NSColorMBS.blackColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose grayscale value is 0.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.blackColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.blueColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.blueColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.brownColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0.

Var c as NSColorMBS = NSColorMBS.brownColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.darkGrayColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose grayscale value is 1/3 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.darkGrayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.disabledControlTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for text on disabled controls.
Example
Var c as NSColorMBS = NSColorMBS.disabledControlTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.findHighlightColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Background color of find indicators: the bubbles that show inline search result hits.

Requires MacOS 10.13 or newer.

NSColorMBS.grayColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose grayscale value is 0.5 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.grayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.greenColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.greenColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.gridColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for the optional gridlines in, for example, a table view.
Example
Var c as NSColorMBS = NSColorMBS.gridColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.headerColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used as the background color for header cells in table views and outline views.
Example
Var c as NSColorMBS = NSColorMBS.headerColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

The system color used as the background for header cells in table and outline views.

NSColorMBS.headerTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for text in header cells in table views and outline views.
Example
Var c as NSColorMBS = NSColorMBS.headerTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.highlightColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color that represents the virtual light source on the screen.
Example
Var c as NSColorMBS = NSColorMBS.highlightColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.keyboardFocusIndicatorColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color that represents the keyboard focus ring around controls.
Example
Var c as NSColorMBS = NSColorMBS.keyboardFocusIndicatorColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.knobColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for the flat surface of a slider knob that hasn't been selected.
Example
Var c as NSColorMBS = NSColorMBS.knobColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

The knob's beveled edges, which set it in relief, are drawn in highlighted and shadowed versions of the face color. When a knob is selected, its color changes to selectedKnobColor.

NSColorMBS.labelColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Foreground color for static text and related elements.

Requires MacOS 10.10 or newer.

NSColorMBS.lightGrayColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose grayscale value is 2/3 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.lightGrayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.linkColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Foreground color for standard system links

Requires MacOS 10.10 or newer.

NSColorMBS.magentaColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.magentaColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.orangeColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.orangeColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.placeholderTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Foreground color for placeholder text in controls or text views.

Requires MacOS 10.10 or newer.

NSColorMBS.purpleColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.purpleColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.quaternaryLabelColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Foreground color for large secondary or disabled static text, separators, large glyphs/icons, etc.

Requires MacOS 10.10 or newer.

NSColorMBS.redColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.redColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.tertiaryLabelColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Foreground color for disabled static text and related elements.

Requires MacOS 10.10 or newer.

NSColorMBS.textBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for the text background.
Example
Var c as NSColorMBS = NSColorMBS.textBackgroundColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

The system color used for the background of text. When text is selected, its background color changes to the return value of selectedTextBackgroundColor.

Some examples using this method:

NSColorMBS.textColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for text.
Example
Var c as NSColorMBS = NSColorMBS.textColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

The system color used for text. When text is selected, its color changes to the return value of selectedTextColor.

NSColorMBS.underPageBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Background areas revealed behind documents. This should not be used for drawing, and NSVisualEffectMaterialUnderPageBackground should be used instead.

Requires MacOS 10.8 or newer.

NSColorMBS.unemphasizedSelectedContentBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The background color of selected and unemphasized content: table views rows, collection views, etc.

Requires MacOS 10.14 or newer.
Alias for secondarySelectedControlColor

NSColorMBS.unemphasizedSelectedTextBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The background for unemphasized text selection (e.g. when the associated control/view/window is not key)

Requires MacOS 10.14 or newer.

NSColorMBS.unemphasizedSelectedTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The foreground for unemphasized text selection (e.g. when the associated control/view/window is not key)

Requires MacOS 10.14 or newer.

NSColorMBS.whiteColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose grayscale and alpha values are both 1.0.
Example
Var c as NSColorMBS = NSColorMBS.whiteColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.windowBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a pattern color that will draw the ruled lines for the window background.
Example
Var c as NSColorMBS = NSColorMBS.windowBackgroundColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.windowFrameColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for window frames, except for their text.
Example
Var c as NSColorMBS = NSColorMBS.windowFrameColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.windowFrameTextColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the system color used for the text in window frames.
Example
Var c as NSColorMBS = NSColorMBS.windowFrameTextColor

// convert to Calibrated RGB ColorSpace
c=c.colorUsingColorSpaceName("NSCalibratedRGBColorSpace")

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

NSColorMBS.yellowColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an NSColor object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0.
Example
Var c as NSColorMBS = NSColorMBS.yellowColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...