mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
0ecdeae752
commit
20a4078572
2 changed files with 12 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue