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:
Jonathan Gapen 2000-04-12 17:23:52 +00:00
parent 338507c3c2
commit a0b8e62a61

View file

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