Code to add window to top level objects when reading XIB file in GormXibWrapperLoader

This commit is contained in:
Gregory John Casamento 2021-04-23 06:48:09 -04:00
parent 5a8a22c027
commit 982e665286

View file

@ -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];