Eliminate NSApplication from being added to topLevelObjects

This commit is contained in:
Gregory John Casamento 2020-06-23 15:22:00 -04:00
parent d0c1d7f403
commit c6aa964149

View file

@ -123,12 +123,13 @@
[co setRealObject: owner];
}
}
else if ([obj class] == [NSCustomObject class] && ownerSetForOldXib == NO)
else if ([obj isKindOfClass: [NSCustomObject class]] &&
ownerSetForOldXib == NO)
{
[obj setRealObject: owner]; // set on first object in list...
ownerSetForOldXib = YES;
}
else
else if ([obj isKindOfClass: [NSApplication class]] == NO)
{
[topLevelObjects addObject: obj];