Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorPanelMBS class.

NSColorPanelMBS.accessoryView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The accessory view displayed in the panel.

The accessory view can be any custom view you want to display with NSColorPanel, such as a view offering color blends in a drawing program. The accessory view is displayed below the color picker and above the color swatches in the NSColorPanel. The NSColorPanel automatically resizes to accommodate the accessory view.
(Read and Write property)

NSColorPanelMBS.alpha as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the receiver's current alpha value based on its opacity slider.

Value is in the range between 0.0 and 1.0.
This is 1.0 (opaque) if the panel has no opacity slider.
(Read only property)

NSColorPanelMBS.ColorValue as Color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The current color as a Xojo color in the RGB model.

(Read and Write property)

NSColorPanelMBS.getColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The current color.

The color returned can be RGB or something else.
(Read and Write property)

See also:

NSColorPanelMBS.getColorAsRGB as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The current color.

Returned NSColorMBS object is in RGB color mode.
(Read only property)

NSColorPanelMBS.isContinuous as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value indicating whether the class continuously calls the Changed event.

Returns true if the receiver continuouslycalls the Changed event as the user manipulates the color picker; otherwise false.
(Read and Write property)

NSColorPanelMBS.mode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the color picker mode.

Constants:

const NSGrayModeColorPanel= 0
const NSRGBModeColorPanel= 1
const NSCMYKModeColorPanel= 2
const NSHSBModeColorPanel= 3
const NSCustomPaletteModeColorPanel= 4
const NSColorListModeColorPanel= 5
const NSWheelModeColorPanel= 6
const NSCrayonModeColorPanel= 7
(Read and Write property)

NSColorPanelMBS.showsAlpha as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value indicating whether or not the panel shows alpha values and an opacity slider.

Note that calling the NSColor method setIgnoresAlpha with a value of true overrides any value set with setShowsAlpha.
(Read and Write property)

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


The biggest plugin in space...