Make private functions static.
[MacTF.git] / iLifeControls / EtchedText.m
blob7a24a7c05d7ff7dc6fb11a711309bf5f233bdf1c
1 #import "EtchedText.h"
2 #import "EtchedTextCell.h"
4 @implementation EtchedText
6 + (Class)cellClass
8         return [EtchedTextCell class];
11 - initWithCoder: (NSCoder *)origCoder
13         if(![origCoder isKindOfClass: [NSKeyedUnarchiver class]]){
14                 self = [super initWithCoder: origCoder]; 
15         } else {
16                 NSKeyedUnarchiver *coder = (id)origCoder;
17                 
18                 NSString *oldClassName = [[[self superclass] cellClass] className];
19                 Class oldClass = [coder classForClassName: oldClassName];
20                 if(!oldClass)
21                         oldClass = [[super superclass] cellClass];
22                 [coder setClass: [[self class] cellClass] forClassName: oldClassName];
23                 self = [super initWithCoder: coder];
24                 [coder setClass: oldClass forClassName: oldClassName];
25                 
26                 [self setShadowColor:[NSColor whiteColor]];
27         }
28         
29         return self;
32 -(void)setShadowColor:(NSColor *)color
34         EtchedTextCell *cell = [self cell];
35         [cell setShadowColor:color];
38 @end