@implementation ColorView @synthesize color = color; -(void)drawRect:(NSRect)rect { NSLog(@"Need to draw"); if(self.color) [color drawSwatchInRect:rect]; } @end