5 // Created by Joseph Spiros on Wed Jan 22 2003.
6 // Copyright (c) 2003 __MyCompanyName__. All rights reserved.
9 #import "ITTableCornerView.h"
11 @implementation ITTableCornerView
13 - (id)initWithFrame:(NSRect)frame {
14 self = [super initWithFrame:frame];
16 headerCell = [[NSTableHeaderCell alloc] init];
21 - (void)drawRect:(NSRect)rect {
23 rect.size.height = 17;
26 [headerCell setState: ([[self cell] isHighlighted]) ? NSOnState : NSOffState];
27 [headerCell drawWithFrame:rect inView:nil];
30 [[self image] drawAtPoint:rect.origin fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];