* Source/NSCollectionView.m (+initialize): Add binding for

content.
        * Source/NSViewController.m (-loadView): Don't try to load the
        view if there is no name for the NIB.
        * Source/NSArrayController.m (-initWithContent:): Sets
        automaticallyRearrangesObjects to true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38384 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-03-06 22:40:27 +00:00
parent 896756ae92
commit 8206719047
4 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2015-03-06 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCollectionView.m (+initialize): Add binding for content.
* Source/NSViewController.m (-loadView): Don't try to load the
view if there is no name for the NIB.
* Source/NSArrayController.m (-initWithContent:): Sets
automaticallyRearrangesObjects to true.
2015-03-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCollectionView.m (-drawRect:): Work around strange

View file

@ -55,6 +55,7 @@
{
if ((self = [super initWithContent: content]) != nil)
{
[self setAutomaticallyRearrangesObjects: YES];
[self rearrangeObjects];
[self setSelectsInsertedObjects: YES];
}

View file

@ -37,6 +37,7 @@
#import "AppKit/NSEvent.h"
#import "AppKit/NSGraphics.h"
#import "AppKit/NSImage.h"
#import "AppKit/NSKeyValueBinding.h"
#import "AppKit/NSPasteboard.h"
#import "AppKit/NSWindow.h"
@ -94,7 +95,11 @@ static NSString *placeholderItem = nil;
//
+ (void) initialize
{
placeholderItem = @"Placeholder";
if (self == [NSCollectionView class])
{
placeholderItem = @"Placeholder";
[self exposeBinding: NSContentBinding];
}
}
- (id) initWithFrame: (NSRect)frame

View file

@ -108,7 +108,7 @@
{
NSNib *nib;
if (_vcFlags.nib_is_loaded)
if (_vcFlags.nib_is_loaded || ([self nibName] == nil))
{
return;
}