5 // Created by Sean Patrick O'Brien on 9/25/06.
6 // Copyright 2006 Sean Patrick O'Brien. All rights reserved.
9 #import "NFIButtonCell.h"
11 @implementation NFIButton
15 return [NFIButtonCell class];
18 - initWithCoder: (NSCoder *)origCoder
20 if(![origCoder isKindOfClass: [NSKeyedUnarchiver class]]){
21 self = [super initWithCoder: origCoder];
23 NSKeyedUnarchiver *coder = (id)origCoder;
25 NSString *oldClassName = [[[self superclass] cellClass] className];
26 Class oldClass = [coder classForClassName: oldClassName];
28 oldClass = [[super superclass] cellClass];
29 [coder setClass: [[self class] cellClass] forClassName: oldClassName];
30 self = [super initWithCoder: coder];
31 [coder setClass: oldClass forClassName: oldClassName];
32 [self setFont:[NSFont boldSystemFontOfSize:11.5]];