Created
June 8, 2011 11:58
-
-
Save mafis/1014285 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <AppKit/CPTokenField.j> | |
@implementation CPTokenField (NSCoding) | |
-(id)NS_initWithCoder:(CPCoder)aCoder | |
{ | |
self = [super NS_initWithCoder:aCoder]; | |
if(self) | |
{ | |
_completionDelay = [aCoder decodeDoubleForKey:@"NSCompletionDelay"]; | |
} | |
return self; | |
} | |
@end | |
@implementation NSTokenField : CPTokenField | |
{ | |
} | |
-(id)initWithCoder:(CPCoder)aCoder | |
{ | |
return [self NS_initWithCoder:aCoder]; | |
} | |
-(Class)classForKeyedArchiver | |
{ | |
return [CPTokenField class]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment