mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
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:
parent
43cdbe8f98
commit
c7b56de0d1
4 changed files with 22 additions and 11 deletions
|
@ -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>
|
2008-04-20 11:47-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GormInfo.plist: Minor correction to the plist.
|
* GormInfo.plist: Minor correction to the plist.
|
||||||
|
|
|
@ -32,17 +32,6 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
||||||
| NSResizableWindowMask | NSMiniaturizableWindowMask;
|
| NSResizableWindowMask | NSMiniaturizableWindowMask;
|
||||||
|
|
||||||
@implementation GormNSWindow
|
@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
|
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||||
{
|
{
|
||||||
unsigned oldStyleMask;
|
unsigned oldStyleMask;
|
||||||
|
@ -58,6 +47,21 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
||||||
[self setReleasedWhenClosed: NO];
|
[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
|
- (id) initWithContentRect: (NSRect)contentRect
|
||||||
styleMask: (unsigned int)aStyle
|
styleMask: (unsigned int)aStyle
|
||||||
backing: (NSBackingStoreType)bufferingType
|
backing: (NSBackingStoreType)bufferingType
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue