2 #import "EtchedTextCell.h"
4 @implementation EtchedText
8 return [EtchedTextCell class];
11 - initWithCoder: (NSCoder *)origCoder
13 if(![origCoder isKindOfClass: [NSKeyedUnarchiver class]]){
14 self = [super initWithCoder: origCoder];
16 NSKeyedUnarchiver *coder = (id)origCoder;
18 NSString *oldClassName = [[[self superclass] cellClass] className];
19 Class oldClass = [coder classForClassName: oldClassName];
21 oldClass = [[super superclass] cellClass];
22 [coder setClass: [[self class] cellClass] forClassName: oldClassName];
23 self = [super initWithCoder: coder];
24 [coder setClass: oldClass forClassName: oldClassName];
26 [self setShadowColor:[NSColor whiteColor]];
32 -(void)setShadowColor:(NSColor *)color
34 EtchedTextCell *cell = [self cell];
35 [cell setShadowColor:color];