Properly resize window after loading .nib file.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23076 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-06-17 16:46:24 +00:00
parent 6ce43e3549
commit 2ab6ac351b
3 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2006-06-17 12:45 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormInternalViewEditor.m: Removed previous resize
in activate method.
* GormCore/GormNibWrapperLoader.m: Code to properly resize the
window after loading.
2006-06-17 10:54 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormCustomView.m: Return self in the conditional that

View file

@ -139,7 +139,8 @@ static NSImage *horizontalImage;
}
else if ([[superview window] contentView] == _editedObject)
{
[self setFrame: [_editedObject frame]];
// NSRect frame = [_editedObject frame];
// [self setFrame: frame];
[[superview window] setContentView: self];
}
else if ([superview isKindOfClass: [NSClipView class]])

View file

@ -236,9 +236,11 @@
// make the object deferred/visible...
obj = [o nibInstantiate];
[obj setFrame: [NSWindow frameRectForContentRect: [o windowRect] styleMask: [o windowStyle]]
display: NO];
[document setObject: obj isDeferred: isDeferred];
[document setObject: obj isVisibleAtLaunch: isVisible];
// record the custom class...
if([classManager isCustomClass: className])
{
@ -367,6 +369,10 @@
[obj setTarget: nil];
[obj setAction: NULL];
}
else if([obj isKindOfClass: [NSView class]])
{
[self setSuperView: nil];
}
return obj;
}