Synchronize access to transfer queues.
[MacTF.git] / iLifeControls / NFIButton.m
blob88198d077e05333daf85d9572a8d89c52909f0d0
1 //
2 //  NFIButton.m
3 //  iLife Button
4 //
5 //  Created by Sean Patrick O'Brien on 9/25/06.
6 //  Copyright 2006 Sean Patrick O'Brien. All rights reserved.
8 #import "NFIButton.h"
9 #import "NFIButtonCell.h"
11 @implementation NFIButton
13 + (Class)cellClass
15         return [NFIButtonCell class];
18 - initWithCoder: (NSCoder *)origCoder
20         if(![origCoder isKindOfClass: [NSKeyedUnarchiver class]]){
21                 self = [super initWithCoder: origCoder]; 
22         } else {
23                 NSKeyedUnarchiver *coder = (id)origCoder;
24                 
25                 NSString *oldClassName = [[[self superclass] cellClass] className];
26                 Class oldClass = [coder classForClassName: oldClassName];
27                 if(!oldClass)
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]];
33         }
34         
35         return self;
38 @end