mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Conflicts: AppKit/CPTableColumn.j Tools/nib2cib/NSTableColumn.j
35 lines
618 B
Plaintext
35 lines
618 B
Plaintext
@import <Foundation/CPSortDescriptor.j>
|
|
|
|
@implementation CPSortDescriptor (NSCoding)
|
|
{
|
|
}
|
|
|
|
- (id)NS_initWithCoder:(CPCoder)aCoder
|
|
{
|
|
if (self = [super init])
|
|
{
|
|
_key = [aCoder decodeObjectForKey:@"NSKey"];
|
|
_selector = CPSelectorFromString([aCoder decodeObjectForKey:@"NSSelector"]);
|
|
_ascending = [aCoder decodeBoolForKey:@"NSAscending"];
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
|
|
@implementation NSSortDescriptor : CPSortDescriptor
|
|
{
|
|
}
|
|
|
|
- (id)initWithCoder:(CPCoder)aCoder
|
|
{
|
|
return [self NS_initWithCoder:aCoder];
|
|
}
|
|
|
|
- (Class)classForKeyedArchiver
|
|
{
|
|
return [CPSortDescriptor class];
|
|
}
|
|
|
|
@end |