1 #import "ITTableCornerView.h"
3 @implementation ITTableCornerView
5 - (id)initWithFrame:(NSRect)frame {
6 self = [super initWithFrame:frame];
8 headerCell = [[NSTableHeaderCell alloc] init];
13 - (void)drawRect:(NSRect)rect {
15 rect.size.height = 17;
18 [headerCell setState: ([[self cell] isHighlighted]) ? NSOnState : NSOffState];
19 [headerCell drawWithFrame:rect inView:nil];
22 [[self image] drawAtPoint:rect.origin fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];