mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 04:41:00 +00:00
Moved awakeFromNib to later in the nib loading process.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e2f2a194e6
commit
a0f78cd62f
2 changed files with 16 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-24 12:38-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/GSNibCompatibility.m: Call awakeFromNib later in the nib
|
||||||
|
unarchiving process.
|
||||||
|
|
||||||
2007-11-22 Fred Kiefer <FredKiefer@gmx.de>
|
2007-11-22 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSNibBindingConnector.m: Completed implementation.
|
* Source/NSNibBindingConnector.m: Completed implementation.
|
||||||
|
|
|
@ -1050,11 +1050,6 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
if ([obj respondsToSelector: @selector(nibInstantiate)])
|
if ([obj respondsToSelector: @selector(nibInstantiate)])
|
||||||
{
|
{
|
||||||
newObject = [obj nibInstantiate];
|
newObject = [obj nibInstantiate];
|
||||||
if ([newObject respondsToSelector: @selector(awakeFromNib)])
|
|
||||||
{
|
|
||||||
// awaken the object.
|
|
||||||
[newObject awakeFromNib];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return newObject;
|
return newObject;
|
||||||
}
|
}
|
||||||
|
@ -1084,16 +1079,18 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// instantiate all windows and fill in the top level array.
|
// iterate over all objects instantiate windows, awaken objects and fill
|
||||||
|
// in top level array.
|
||||||
en = [objs objectEnumerator];
|
en = [objs objectEnumerator];
|
||||||
while ((obj = [en nextObject]) != nil)
|
while ((obj = [en nextObject]) != nil)
|
||||||
{
|
{
|
||||||
|
// instantiate all windows and fill in the top level array.
|
||||||
if ([obj isKindOfClass: [NSWindowTemplate class]])
|
if ([obj isKindOfClass: [NSWindowTemplate class]])
|
||||||
{
|
{
|
||||||
if ([obj realObject] == nil)
|
if ([obj realObject] == nil)
|
||||||
{
|
{
|
||||||
id o = [self instantiateObject: obj];
|
obj = [self instantiateObject: obj];
|
||||||
[topLevelObjects addObject: o];
|
[topLevelObjects addObject: obj];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1104,6 +1101,12 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
[topLevelObjects addObject: obj];
|
[topLevelObjects addObject: obj];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// awaken the object.
|
||||||
|
if ([obj respondsToSelector: @selector(awakeFromNib)])
|
||||||
|
{
|
||||||
|
[obj awakeFromNib];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// bring visible windows to front...
|
// bring visible windows to front...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue