Skip to content

Instantly share code, notes, and snippets.

@mafis
Created June 8, 2011 11:58
Show Gist options
  • Save mafis/1014285 to your computer and use it in GitHub Desktop.
Save mafis/1014285 to your computer and use it in GitHub Desktop.
@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