Platforms to show: All Mac Windows Linux Cross-Platform

NSColorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Drawing MBS MacBase Plugin 7.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: The class for a Cocoa color.
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)

System Effect

Constant Value Description
SystemEffectDeepPressed 2 Deep Pressed
SystemEffectDisabled 3 Disabled
SystemEffectNone 0 No
SystemEffectPressed 1 Pressed
SystemEffectRollover 4 Rollover

Color Types

Constant Value Description
TypeCatalog 2 nColor with a catalog name and a color name. These colors can be dynamic and have multiple underlying color
TypeComponentBased 0 Colors which have a color space (specified as NSColorSpace) and appropriate number of CGFloat components.
TypePattern 1 Colors that draw a pattern, specified as an NSImage.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some events using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine


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

NSColorListMBS   -   NSColorPanelMBS

💬 Ask a question or report a problem
The biggest plugin in space...

Start Chat