Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorPanelMBS class.

NSColorPanelMBS.GetColorFromDrag as color

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns color values from the drag.

If you receive a drag flavor which can't be handled, it may be a NSColor.
In this case only this method will be successfull.

See also:

NSColorPanelMBS.GetColorFromDrag(byref red as single, byref green as single, byref blue as single, byref alpha as single) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns color values from the drag.

If you receive a drag flavor which can't be handled, it may be a NSColor.
In this case only this method will be successfull.

See also:

NSColorPanelMBS.orderFrontColorPanel

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Brings up the color panel, an instance of NSColorPanel.

If the NSColorPanel object does not exist yet, this method creates one. This method is typically invoked when the user chooses Colors from a menu.

NSColorPanelMBS.SharedColorPanelExists as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value indicating whether the NSColorPanel has been created already.

True if the NSColorPanel has been created already; otherwise false.

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


The biggest plugin in space...