* Source/NSPanel.m: Override

-initWithContentRect:styleMask:backing:defer: so that if
NSUtilityWindowMask is part of the style mask, we can
set the panel to be a floating panel (which is the definition
of NSUtilityWindowMask, in addition to making the panel
have a thin title bar.)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31079 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-08-04 04:36:53 +00:00
parent e6f4c736b8
commit 8ead2b67dd
2 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2010-08-03 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSPanel.m: Override
-initWithContentRect:styleMask:backing:defer: so that if
NSUtilityWindowMask is part of the style mask, we can
set the panel to be a floating panel (which is the definition
of NSUtilityWindowMask, in addition to making the panel
have a thin title bar.)
2010-08-03 Riccardo Mottola
* Source/NSScrollView.m :

View file

@ -60,7 +60,27 @@
backing: NSBackingStoreBuffered
defer: NO];
}
- (id) initWithContentRect: (NSRect)contentRect
styleMask: (unsigned int)aStyle
backing: (NSBackingStoreType)bufferingType
defer: (BOOL)flag
{
self = [super initWithContentRect: contentRect
styleMask: aStyle
backing: bufferingType
defer: flag];
if (nil == self)
{
return nil;
}
if ((_styleMask & NSUtilityWindowMask) == NSUtilityWindowMask)
{
[self setFloatingPanel: YES];
}
return self;
}
- (void) _initDefaults
{
[super _initDefaults];