3 // iLife HUD PopUpButton
5 // Created by Sean Patrick O'Brien on 9/23/06.
6 // Copyright 2006 Sean Patrick O'Brien. All rights reserved.
9 #import "NFHUDPopUpButton.h"
10 #import "NFHUDPopUpButtonCell.h"
12 @implementation NFHUDPopUpButton
16 return [NFHUDPopUpButtonCell class];
19 - initWithCoder: (NSCoder *)origCoder
21 if(![origCoder isKindOfClass: [NSKeyedUnarchiver class]]){
22 self = [super initWithCoder: origCoder];
24 NSKeyedUnarchiver *coder = (id)origCoder;
26 NSString *oldClassName = [[[self superclass] cellClass] className];
27 Class oldClass = [coder classForClassName: oldClassName];
29 oldClass = [[super superclass] cellClass];
30 [coder setClass: [[self class] cellClass] forClassName: oldClassName];
31 self = [super initWithCoder: coder];
32 [coder setClass: oldClass forClassName: oldClassName];