Fix bug where some objects loaded from a .nib file were not sent an

-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30361 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-05-12 07:59:57 +00:00
parent 0ecdeae752
commit 20a4078572
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-05-12 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/GSNibLoading.m (-nibInstantiateWithOwner:topLevelObjects:):
Fix bug where some objects from the nib file were not sent an
-awakeFromNib message.
2010-05-11 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSTheme.h:

View file

@ -1917,8 +1917,13 @@ static BOOL _isInInterfaceBuilder = NO;
// objects on behalf of the owner.
RETAIN(obj);
}
}
// awaken the object.
// awaken all objects.
objs = NSAllMapTableKeys(_objects);
en = [objs objectEnumerator];
while ((obj = [en nextObject]) != nil)
{
if ([obj respondsToSelector: @selector(awakeFromNib)])
{
[obj awakeFromNib];