Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSColorMBS.alphaComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The alpha value of the color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.alphaComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.blackComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.blackComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.blueComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a RGB color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.brightnessComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a HSV color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)
MsgBox str(c.brightnessComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.catalogNameComponent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: Returns the name of the catalog containing the receiver's name.
Notes:
This method raises an exception if the receiver's color space isn't NSNamedColorSpace.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.colorNameComponent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: Returns the receiver's name.
Notes:
This method raises an exception if the receiver's color space isn't NSNamedColorSpace.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.colorSpaceName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: Get the color space of the color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)

MsgBox c.colorSpaceName
Notes: (Read only property)

Feedback, Comments & Corrections

NSColorMBS.colorValue as color
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.4 Yes No No Yes, macOS only No
Function: Returns the color value of this color (ignoring color space).
Notes:
The alphaComponent is ignored.
Returns RGB(RedComponent*255, GreenComponent*255, BlueComponent*255).

Plugin converts color to calibrated RGB if needed.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.cyanComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.cyanComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.description as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: The description of the color object.
Example:
dim n as NSColorMBS = NSColorMBS.blueColor

MsgBox n.description // shows "NSCalibratedRGBColorSpace 0 0 1 1"
Notes: (Read only property)

Feedback, Comments & Corrections

NSColorMBS.greenComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a RGB color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.greenComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 16.1 Yes No No Yes, macOS only No
Function: The internal object reference.
Notes:
Useful for declares. Value is a NSColor pointer.
(Read and Write property)

Feedback, Comments & Corrections

NSColorMBS.hueComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a HSV color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)
MsgBox str(c.hueComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.localizedCatalogNameComponent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: Returns the name of the catalog containing the receiver's name as a localized string.
Notes:
This string may be displayed in user interface items like color pickers.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.localizedColorNameComponent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: Returns the name of the receiver as a localized string.
Notes:
The name of color object as a localized string. This string may be displayed in user interface items like color pickers.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.magentaComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.magentaComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.numberOfComponents as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 9.8 Yes No No Yes, macOS only No
Function: Returns the number of components in the receiver.
Example:
dim n as NSColorMBS = NSColorMBS.blueColor

MsgBox str(n.numberOfComponents) // shows 4
Notes:
The number of components in the color object. The floating-point components counted include alpha. This method raises an exception if the receiver doesn't have floating-point components.

Available in Mac OS X v10.4 and later.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.redComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a RGB color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.redComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.saturationComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a HSV color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)
MsgBox str(c.saturationComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.whiteComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a Gray color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceWhite(0.1)
MsgBox str(c.whiteComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

NSColorMBS.yellowComponent as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.yellowComponent)
Notes:
Value is from 0.0 to 1.0.
(Read only property)

Feedback, Comments & Corrections

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




Links
MBS FileMaker Plugins