Preliminary implementation of NSCollectionView.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36183 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Frank Le Grand 2013-02-21 22:23:36 +00:00
parent b40571e9c5
commit c9f3f71f41
7 changed files with 839 additions and 1 deletions

View file

@ -28,6 +28,7 @@
#import <Foundation/NSBundle.h>
#import <Foundation/NSString.h>
#import <Foundation/NSArray.h>
#import <Foundation/NSKeyedArchiver.h>
#import "AppKit/NSKeyValueBinding.h"
#import "AppKit/NSNib.h"
#import "AppKit/NSViewController.h"
@ -62,6 +63,7 @@
DESTROY(_editors);
DESTROY(_autounbinder);
DESTROY(_designNibBundleIdentifier);
DESTROY(view);
[super dealloc];
}
@ -97,7 +99,11 @@
- (void)setView:(NSView *)aView
{
view = aView;
if (aView != view)
{
[view release];
view = [aView retain];
}
}
- (void)loadView
@ -188,4 +194,23 @@
[self notImplemented: _cmd];
}
- (id)initWithCoder:(NSCoder *)aCoder
{
self = [super initWithCoder:aCoder];
if (self)
{
NSView *aView = [aCoder decodeObjectForKey:@"NSView"];
[self setView:aView];
}
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeObject:[self view] forKey:@"NSView"];
}
@end