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

NSColorSpaceMBS.colorSpaceModel as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 8.6 Yes No No Yes, macOS only No
Function: Returns the model on which the color space of the receiver is based.
Example:
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox str(n.colorSpaceModel)
Notes:
Available in Mac OS X v10.4 and later.
(Read only property)

Feedback, Comments & Corrections

NSColorSpaceMBS.colorSpaceName 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 name of the colorspace.
Example:
dim n as NSColorSpaceMBS = NSColorSpaceMBS.genericRGBColorSpace
MsgBox n.colorSpaceName
Notes:
This plugin function uses an undocumented method from Apple's AppKit framework. Seems like they use it only internally.

Works well on Mac OS X 10.6.
Returns an empty string for some color spaces.
(Read only property)

Feedback, Comments & Corrections

NSColorSpaceMBS.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: Returns the description of the color space.
Notes: (Read only property)

Feedback, Comments & Corrections

NSColorSpaceMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 17.2 Yes No No Yes, macOS only No
Function: The internal object reference.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSColorSpaceMBS.localizedName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 8.6 Yes No No Yes, macOS only No
Function: Returns the localized name of the receiver.
Example:
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox n.localizedName
Notes:
The name of the color space as a localized string or nil if no localized name exists.

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

Feedback, Comments & Corrections

NSColorSpaceMBS.numberOfColorComponents as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacBase Plugin 8.6 Yes No No Yes, macOS only No
Function: Returns the number of components supported by the receiver.
Example:
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox str(n.numberOfColorComponents) // shows 3
Notes:
The number of components (excluding alpha) the receiver supports or zero if the receiver is not based on float components.

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

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins