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 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 |
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 |
(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 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 |
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 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 |
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 |
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 |
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.