From 7d43b41457795a07a9893d39e5ca317f5a85e322 Mon Sep 17 00:00:00 2001
From: Fabien_ Creates ( if needed ) and returns the shared NSColorPanel Creates ( if needed ) and returns the shared NSColorPanel. Returns whether the NSColorPanel has been already created Returns whether the NSColorPanel has been already created. Returns the NSColorPanel's accessory view if it exists,
- nil otherwise See Also: -setAccessoryView:
See Also: -setAccessoryView:
*/ - (NSView *) accessoryView { return _accessoryView; } -/**Returns whether the NSColorPanel continuously sends the action message. - The default is ...
See Also: -setContinuous:-setAction: -setTarget: -
+/**Returns whether the NSColorPanel continuously sends its action message. +
See Also: -setContinuous:-setAction: -setTarget:
*/ - (BOOL) isContinuous { @@ -528,6 +527,11 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel; [_splitView addSubview: _accessoryView]; } +/**Sets the NSColorPanl action method to aSelector The + action message is usally send in -setColor:, when the picker is updated, + when a new picker is show, when the alpha is changed or when one of the + color well at the bottom is selected
+ */ - (void) setAction: (SEL)aSelector { _action = aSelector; @@ -564,6 +568,9 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel; } } +/**Sets whether the NSColorPanel shows alpha values and the alpha + slider
See Also: -showsAlpha
+ */ - (void) setShowsAlpha: (BOOL)flag { if (flag == _showsAlpha) @@ -596,11 +603,16 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel; [_topView setNeedsDisplay: YES]; } +/**Sets the target object to anObject
+ */ - (void) setTarget: (id)anObject { _target = anObject; } +/**Returns whether the NSColorPanel shows alpha values and the alpha + slider
See Also: -setShowsAlpha:
+ */ - (BOOL) showsAlpha { return _showsAlpha;