Correction for "is released when closed."

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26466 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-04-24 00:06:10 +00:00
parent 43cdbe8f98
commit c7b56de0d1
4 changed files with 22 additions and 11 deletions

View file

@ -1,3 +1,10 @@
2008-04-23 20:03-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/1Windows/GormNSWindowInspector.gorm: Connected the
button for "released when closed" button.
* Palettes/1Windows/GormNSWindow.m: Correction for issue where
isReleasedWhenClosed isn't set properly.
2008-04-20 11:47-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormInfo.plist: Minor correction to the plist.

View file

@ -32,17 +32,6 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
| NSResizableWindowMask | NSMiniaturizableWindowMask;
@implementation GormNSWindow
/*
- (void) setFrameForMask: (unsigned int)mask
{
NSRect newFrame;
// Reset the frame with the style...
newFrame = [NSWindow frameRectForContentRect: contentRect styleMask: mask];
[window setFrame: newFrame display: NO];
}
*/
- (void) encodeWithCoder: (NSCoder*)aCoder
{
unsigned oldStyleMask;
@ -58,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