Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorSpaceMBS class.

NSColorSpaceMBS.colorSpaceModel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the model on which the color space of the receiver is based.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox str(n.colorSpaceModel)

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

NSColorSpaceMBS.colorSpaceName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The name of the colorspace.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.genericRGBColorSpace
MsgBox n.colorSpaceName

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)

NSColorSpaceMBS.description as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the description of the color space.

(Read only property)

NSColorSpaceMBS.File as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The reference to file if available.

Will be nil for profiles created from string/MemoryBlock.
(Read only property)

NSColorSpaceMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 17.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The internal object reference.

(Read and Write property)

NSColorSpaceMBS.localizedName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the localized name of the receiver.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox n.localizedName

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)

NSColorSpaceMBS.numberOfColorComponents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the number of components supported by the receiver.
Example
dim n as NSColorSpaceMBS = NSColorSpaceMBS.sRGBColorSpace
MsgBox str(n.numberOfColorComponents) // shows 3

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)

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


The biggest plugin in space...