mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 01:11:01 +00:00
Use NSString path method to check a path extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6455 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
66975a1f55
commit
77e33d8d43
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ BOOL _fileOwnerDecoded = NO;
|
||||||
id previousNibOwner = _nibOwner;
|
id previousNibOwner = _nibOwner;
|
||||||
GMModel* decoded;
|
GMModel* decoded;
|
||||||
|
|
||||||
if (![path hasSuffix:@".gmodel"])
|
if (![[path pathExtension] isEqualToString:@"gmodel"])
|
||||||
path = [path stringByAppendingPathExtension:@"gmodel"];
|
path = [path stringByAppendingPathExtension:@"gmodel"];
|
||||||
|
|
||||||
/* First check to see if path is an absolute path; if so try to load the
|
/* First check to see if path is an absolute path; if so try to load the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue