mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +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
338507c3c2
commit
a0b8e62a61
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ BOOL _fileOwnerDecoded = NO;
|
|||
id previousNibOwner = _nibOwner;
|
||||
GMModel* decoded;
|
||||
|
||||
if (![path hasSuffix:@".gmodel"])
|
||||
if (![[path pathExtension] isEqualToString:@"gmodel"])
|
||||
path = [path stringByAppendingPathExtension:@"gmodel"];
|
||||
|
||||
/* First check to see if path is an absolute path; if so try to load the
|
||||
|
|
Loading…
Reference in a new issue