mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
* 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:
parent
896756ae92
commit
8206719047
4 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
{
|
||||
if ((self = [super initWithContent: content]) != nil)
|
||||
{
|
||||
[self setAutomaticallyRearrangesObjects: YES];
|
||||
[self rearrangeObjects];
|
||||
[self setSelectsInsertedObjects: YES];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
{
|
||||
NSNib *nib;
|
||||
|
||||
if (_vcFlags.nib_is_loaded)
|
||||
if (_vcFlags.nib_is_loaded || ([self nibName] == nil))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue