* Source/NSBundle.m: Use CFBundleExecutable if NSExecutable isn't

present when loading the bundle object code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27526 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-01-05 22:51:48 +00:00
parent 9aadf1d411
commit 130e8f5592
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-01-05 17:58-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSBundle.m: Use CFBundleExecutable if NSExecutable isn't
present when loading the bundle object code.
2009-01-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSKeyValueObserving.m (-overrideSetterFor:): Only output

View file

@ -2156,7 +2156,11 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
object = [[self infoDictionary] objectForKey: @"NSExecutable"];
if (object == nil || [object length] == 0)
{
return nil;
object = [[self infoDictionary] objectForKey: @"CFBundleExecutable"];
if(object == nil || [object length] == 0)
{
return nil;
}
}
if (_bundleType == NSBUNDLE_FRAMEWORK)
{