1 #import "EtchedTextCell.h"
3 @implementation EtchedTextCell
5 -(void)setShadowColor:(NSColor *)color
7 mShadowColor = [color retain];
10 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(id)controlView
12 [NSGraphicsContext saveGraphicsState];
13 NSShadow* theShadow = [[NSShadow alloc] init];
14 [theShadow setShadowOffset:NSMakeSize(0, -1)];
15 [theShadow setShadowBlurRadius:0.3];
17 [theShadow setShadowColor:mShadowColor];
21 [super drawInteriorWithFrame:cellFrame inView:controlView];
23 [NSGraphicsContext restoreGraphicsState];