mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Code to add window to top level objects when reading XIB file in GormXibWrapperLoader
This commit is contained in:
parent
5a8a22c027
commit
982e665286
1 changed files with 7 additions and 2 deletions
|
@ -180,10 +180,14 @@
|
|||
|
||||
// make the object deferred/visible...
|
||||
o = [obj nibInstantiate];
|
||||
|
||||
|
||||
[document setObject: o isDeferred: isDeferred];
|
||||
[document setObject: o isVisibleAtLaunch: isVisible];
|
||||
|
||||
// Add to the document...
|
||||
[document attachObject: o
|
||||
toParent: nil];
|
||||
|
||||
// record the custom class...
|
||||
if ([classManager isCustomClass: className])
|
||||
{
|
||||
|
@ -191,7 +195,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
if ([rootObjects containsObject: obj] && obj != nil)
|
||||
if ([rootObjects containsObject: obj] && obj != nil &&
|
||||
[obj isKindOfClass: [GormWindowTemplate class]] == NO)
|
||||
{
|
||||
[document attachObject: obj
|
||||
toParent: nil];
|
||||
|
|
Loading…
Reference in a new issue