mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
call awakeFromNib
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6649 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8dbc6372d1
commit
8aeb8af007
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-06-07 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Model/IMLoading.m ([GMModel -_makeConnections]): Call awakeFromNib
|
||||
if object doesn't respond to awakeFromModel (patch from
|
||||
Gregory Casamento <borgheron@yahoo.com>).
|
||||
|
||||
2000-05-04 Georg Fleischmann
|
||||
|
||||
* gui/Model/GMAppKit.m ([NSWindow -createObjectForModelUnarchiver:]):
|
||||
|
|
|
@ -154,8 +154,19 @@ BOOL _fileOwnerDecoded = NO;
|
|||
for (i = 0, count = [objects count]; i < count; i++) {
|
||||
id object = [[objects objectAtIndex:i] nibInstantiate];
|
||||
|
||||
// If the object responds to the awakeFromModel
|
||||
// method, send that message. If it doesn't then
|
||||
// check for the awakeFromNib selector and send that.
|
||||
// This ensures compatibility w/ apps ported from OPENSTEP.
|
||||
if ([object respondsToSelector:@selector(awakeFromModel)])
|
||||
[object awakeFromModel];
|
||||
{
|
||||
[object awakeFromModel];
|
||||
}
|
||||
else
|
||||
if ([object respondsToSelector:@selector(awakeFromNib)])
|
||||
{
|
||||
[object awakeFromNib];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue