Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSColorMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The class for a Cocoa color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)

Feedback, Comments & Corrections

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 values.one
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 examples which use this class:


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


NSColorListMBS   -   NSColorPanelMBS




Links
MBS FileMaker tutorial videos