From 026e28114e75de8fbf944f9a328d680be8f88e33 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Wed, 4 Jun 2014 16:29:45 -0700 Subject: [PATCH] Added : added default NSTextView for nib2cib --- Tools/nib2cib/NSAppKit.j | 1 + Tools/nib2cib/NSTextView.j | 62 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Tools/nib2cib/NSTextView.j diff --git a/Tools/nib2cib/NSAppKit.j b/Tools/nib2cib/NSAppKit.j index 8dbc498ee..24dd6b0e1 100644 --- a/Tools/nib2cib/NSAppKit.j +++ b/Tools/nib2cib/NSAppKit.j @@ -73,6 +73,7 @@ @import "NSTabView.j" @import "NSTabViewItem.j" @import "NSTextField.j" +@import "NSTextView.j" @import "NSTokenField.j" @import "NSToolbar.j" @import "NSToolbarFlexibleSpaceItem.j" diff --git a/Tools/nib2cib/NSTextView.j b/Tools/nib2cib/NSTextView.j new file mode 100644 index 000000000..346589c07 --- /dev/null +++ b/Tools/nib2cib/NSTextView.j @@ -0,0 +1,62 @@ +/* + * NSTextView.j + * nib2cib + * + * Created by Alexendre Wilhelm. + * Copyright 2014 The Cappuccino Foundation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +@import + +@class Nib2Cib + +@implementation CPTextView (NSCoding) + +- (id)NS_initWithCoder:(CPCoder)aCoder +{ + if (self = [super NS_initWithCoder:aCoder]) + { + + } + + return self; +} + +@end + +@implementation NSTextView : CPTextView +{ +} + +- (id)initWithCoder:(CPCoder)aCoder +{ + self = [self NS_initWithCoder:aCoder]; + + if (self) + { + + } + + return self; +} + +- (Class)classForKeyedArchiver +{ + return [CPTextView class]; +} + +@end \ No newline at end of file