mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:20:37 +00:00
Enhance NIB loading compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8167ce1caf
commit
32978cf148
2 changed files with 11 additions and 6 deletions
|
@ -418,6 +418,10 @@ Class gmodel_class(void)
|
|||
|
||||
ext = [fileName pathExtension];
|
||||
fileName = [fileName stringByDeletingPathExtension];
|
||||
if ([ext isEqualToString: @"nib"] == YES)
|
||||
{
|
||||
ext = @"";
|
||||
}
|
||||
|
||||
/*
|
||||
* Build an array of resource paths that differs from the normal order -
|
||||
|
@ -457,14 +461,10 @@ Class gmodel_class(void)
|
|||
path = [rootPath stringByAppendingPathExtension: @"gorm"];
|
||||
if ([mgr isReadableFileAtPath: path] == NO)
|
||||
{
|
||||
path = [rootPath stringByAppendingPathExtension: @"nib"];
|
||||
path = [rootPath stringByAppendingPathExtension: @"gmodel"];
|
||||
if ([mgr isReadableFileAtPath: path] == NO)
|
||||
{
|
||||
path = [rootPath stringByAppendingPathExtension: @"gmodel"];
|
||||
if ([mgr isReadableFileAtPath: path] == NO)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue