[_initWithoutGModel] set target and action for the main colour well.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9188 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2001-02-20 01:02:06 +00:00
parent 771677e59e
commit bef7e3dc54

View file

@ -232,7 +232,8 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
_colorWell = [[NSColorWell alloc] initWithFrame: wellRect];
[_colorWell setAutoresizingMask: (NSViewWidthSizable | NSViewMinYMargin)];
[_colorWell setBordered: NO];
// FIXME: How can we monitor colours that get dropped here?
[_colorWell setTarget: self];
[_colorWell setAction: @selector(_updatePicker:)];
[_topView addSubview: _colorWell];
// Prototype cell for the matrix
@ -343,6 +344,11 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
NSLog(@"Magnification is not implemented");
}
- (void) _updatePicker: (id) sender
{
[_currentPicker setColor: [_colorWell color]];
}
@end
@implementation NSColorPanel