Files
cappuccino/Tools/nib2cib/NSControl.j
T
Francisco Ryan Tolmasky I a97bb72800 Initial commit.
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00

44 lines
665 B
Plaintext

import <AppKit/CPControl.j>
import "NSCell.j"
import "NSView.j"
@implementation CPControl (NSCoding)
- (id)NS_initWithCoder:(CPCoder)aCoder
{
self = [super NS_initWithCoder:aCoder];
if (self)
{
var cell = [aCoder decodeObjectForKey:@"NSCell"];
_value = [cell contents];
[self setFont:[cell font]];
[self setEnabled:[aCoder decodeObjectForKey:@"NSEnabled"]];
}
return self;
}
@end
@implementation NSControl : CPControl
{
}
- (id)initWithCoder:(CPCoder)aCoder
{
return [self NS_initWithCoder:aCoder];
}
- (Class)classForKeyedArchiver
{
return [CPControl class];
}
@end