mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +00:00
Fix for loading where the files owner is in a library, framework or bundle,
but the Gorm/NIB file is in the application resources. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9b560ad650
commit
c97b446ffd
2 changed files with 17 additions and 1 deletions
|
@ -344,7 +344,13 @@ Class gmodel_class(void)
|
|||
}
|
||||
table = [NSDictionary dictionaryWithObject: owner forKey: @"NSOwner"];
|
||||
bundle = [self bundleForClass: [owner class]];
|
||||
if (bundle == nil)
|
||||
if (bundle != nil && [bundle loadNibFile: aNibName
|
||||
externalNameTable: table
|
||||
withZone: [owner zone]] == YES)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
bundle = [self mainBundle];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue