mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:47:39 +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
|
@ -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…
Add table
Add a link
Reference in a new issue