//
//  ColorWell.m
//  Afficheur
//
//  Created by kichi on 09/03/07.
//  Copyright 2009 Katsuhiko Ichinose. All rights reserved.
//

#import "ColorWell.h"


@implementation ColorWell

- (void)setColor:(NSColor *)color
{
	//LOG(@"[%@ setColor]\n%@", [self className], color);
	[super setColor:color];
	if ([self window] && [[self window] delegate])
	{
		//LOG(@"[%@ setColor]\n%@\n%@", [self className], [self window], [[self window] delegate]);
		id delegate = [[self window] delegate];
		if ([delegate respondsToSelector:@selector(changeColorWell:)])
		{
			[delegate performSelector:@selector(changeColorWell:) withObject:self];
		}
	}
}

@end
