* Palettes/1Windows/GormNSPanel.m

* Palettes/1Windows/GormNSWindow.m: Cleanup and fix for 
	release when closed on panel.
	* Palettes/2Controls/ControlsPalette.gorm: Minor adjustment


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-05-03 17:40:55 +00:00
parent cea1fcb28d
commit 607d01c9ee
5 changed files with 24 additions and 12 deletions

View file

@ -1,3 +1,10 @@
2008-05-03 13:40-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/1Windows/GormNSPanel.m
* Palettes/1Windows/GormNSWindow.m: Cleanup and fix for
release when closed on panel.
* Palettes/2Controls/ControlsPalette.gorm: Minor adjustment
2008-04-28 19:06-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormPalettePanel.gorm

View file

@ -4,8 +4,7 @@
Author: Gregory John Casamento <greg_casamento@yahoo.com>
Date: 2003
Adapted from GormNSWindow.m
(Adapted from GormNSWindow.m)
This file is part of GNUstep.
This program is free software; you can redistribute it and/or modify
@ -28,6 +27,7 @@
#include <InterfaceBuilder/InterfaceBuilder.h>
#include "GormNSPanel.h"
// the default style mask we start with.
static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
| NSResizableWindowMask | NSMiniaturizableWindowMask;
@ -47,6 +47,21 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
[self setReleasedWhenClosed: NO];
}
- (id) initWithCoder: (NSCoder *)coder
{
self = [super initWithCoder: coder];
if (self == nil)
{
return nil;
}
// preserve the setting and set the actual window to NO.
_gormReleasedWhenClosed = [self isReleasedWhenClosed];
[self setReleasedWhenClosed: NO];
return self;
}
- (id) initWithContentRect: (NSRect)contentRect
styleMask: (unsigned int)aStyle
backing: (NSBackingStoreType)bufferingType

View file

@ -69,7 +69,6 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
screen: (NSScreen*)aScreen
{
_gormStyleMask = aStyle;
// _originalContentRect = contentRect;
self = [super initWithContentRect: contentRect
styleMask: defaultStyleMask
backing: bufferingType
@ -159,13 +158,4 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
{
// do nothing...
}
/*
- (void) release
{
NSLog(@"Someone is releasing %@",self);
[super release];
}
*/
@end