fix broken tool resource lookup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30212 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-04-21 21:49:12 +00:00
parent 7ca7f7318a
commit 4707e0b7e4
2 changed files with 7 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2010-04-21 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: ([mainBundle]) Fix error determining whether
the bundle is an app or not ... was breaking lookup of tool resources.
2010-04-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/cifframe.m (cifframe_type): Fix the cached information

View file

@ -1054,17 +1054,12 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
&& [s hasSuffix: @".gswa"] == NO // GNUstep Web
&& [s hasSuffix: @".woa"] == NO // GNUstep Web
)
{
/* Well known file extension ... app wrapper format.
*/
isApplication = YES;
}
else
{
NSFileManager *mgr = manager();
BOOL f;
/* Might be an app wrapper with another extension...
/* Not one of the common extensions, but
* might be an app wrapper with another extension...
* Look for Info-gnustep.plist or Info.plist in a
* Resources subdirectory.
*/