MonobjcMonobjc Documented Class Library
InitWithPickerMaskColorPanel Method (panelModes, owningColorPanel)
NamespacesMonobjc.AppKitINSColorPickingDefaultInitWithPickerMaskColorPanel(NSUInteger, NSColorPanel)

Initializes the receiver with a given color panel and its mode.

Original signature is '- (id)initWithPickerMask:(NSUInteger)panelModes colorPanel:(NSColorPanel *)owningColorPanel'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
Id InitWithPickerMaskColorPanel(
	NSUInteger panelModes,
	NSColorPanel owningColorPanel
)
Function InitWithPickerMaskColorPanel ( _
	panelModes As NSUInteger, _
	owningColorPanel As NSColorPanel _
) As Id
Id^ InitWithPickerMaskColorPanel(
	NSUInteger panelModes, 
	NSColorPanel^ owningColorPanel
)
Parameters
panelModes (NSUInteger)
A mask indicating the various color picker modes supported by the color panel. This is determined by the argument to the NSColorPanel method setPickerMask:. If it has not been set, panelModes is NSColorPanelAllModesMask. If your color picker supports any additional modes, you should invoke the setPickerMask: method when your application initializes to notify the NSColorPanel class. The standard mode constants are defined in “Choosing the Color Pickers in a Color Panel”.
owningColorPanel (NSColorPanel)
The color panel than owns the receiver.
Return Value
If your color picker responds to any of the modes represented in panelModes, it should perform its initialization and return an initialized color picker. Color pickers that do so have their buttons inserted in the color panel and continue to receive messages from the panel as the user manipulates it. If the color picker doesn’t respond to any of the modes represented in panelModes, it should do nothing and return nil.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)