mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Add mechanism for determinig if a window will be visible when loaded from nib.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5643 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7bb001fa02
commit
0cabb2b5d3
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Dec 31 10:49:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSBundleAdditions.m: When decoding nib container, check for a
|
||||
'NSVisible' array, and order the windows it contains to the front.
|
||||
|
||||
Wed Dec 29 7:11:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSSliderCell.m: Fix so that setting and taking values from the
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include <AppKit/NSControl.h>
|
||||
#include <AppKit/NSImage.h>
|
||||
#include <AppKit/NSView.h>
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <AppKit/NSNibConnector.h>
|
||||
#include <AppKit/NSNibLoading.h>
|
||||
|
||||
|
@ -219,6 +220,7 @@
|
|||
NSEnumerator *enumerator;
|
||||
NSNibConnector *connection;
|
||||
NSString *key;
|
||||
NSArray *visible;
|
||||
|
||||
/*
|
||||
* Go through the table of objects in the nib and
|
||||
|
@ -274,6 +276,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* See if there are objects that should be made visible.
|
||||
*/
|
||||
visible = [nameTable objectForKey: @"NSVisible"];
|
||||
if (visible != nil
|
||||
&& [visible isKindOfClass: [NSArray class]] == YES)
|
||||
{
|
||||
unsigned pos = [visible count];
|
||||
|
||||
while (pos-- > 0)
|
||||
{
|
||||
[[visible objectAtIndex: pos] orderFront: self];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Ok - it's all done now - the nib container will
|
||||
* be released when the unarchiver is released, so
|
||||
|
|
Loading…
Reference in a new issue