mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fixes for XIB file loading and Storyboards.
This commit is contained in:
parent
c6aa964149
commit
a405498686
1 changed files with 10 additions and 1 deletions
|
@ -121,6 +121,12 @@
|
|||
if ([userLabel isEqualToString: @"File's Owner"])
|
||||
{
|
||||
[co setRealObject: owner];
|
||||
continue;
|
||||
}
|
||||
else if ([userLabel isEqualToString: @"First Responder"] ||
|
||||
[userLabel isEqualToString: @"Application"])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if ([obj isKindOfClass: [NSCustomObject class]] &&
|
||||
|
@ -129,7 +135,10 @@
|
|||
[obj setRealObject: owner]; // set on first object in list...
|
||||
ownerSetForOldXib = YES;
|
||||
}
|
||||
else if ([obj isKindOfClass: [NSApplication class]] == NO)
|
||||
|
||||
// Some custom objects should be stored in topLevelObjects, the ones which
|
||||
// shouldn't are skipped above.
|
||||
if ([obj isKindOfClass: [NSApplication class]] == NO)
|
||||
{
|
||||
[topLevelObjects addObject: obj];
|
||||
|
||||
|
|
Loading…
Reference in a new issue