mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Handle empty path nicely and be more tolerant of lack of resources.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bec8a74a6e
commit
6299b1f9b4
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
* Source/NSDebug.m: Implemented _NSNewStringFromCString() for gdb.
|
* Source/NSDebug.m: Implemented _NSNewStringFromCString() for gdb.
|
||||||
* Source/GSFormat.m: Fix %S format.
|
* Source/GSFormat.m: Fix %S format.
|
||||||
* Source/NSObject.m: ([conformsToProtocol:]) return NO if passed nul.
|
* Source/NSObject.m: ([conformsToProtocol:]) return NO if passed nul.
|
||||||
|
* Source/NSBundle.m: be more tolerant.
|
||||||
|
|
||||||
2005-07-24 Richard Frith-Macdonald <rfm@gnu.org>
|
2005-07-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -390,7 +390,8 @@ _find_framework(NSString *name)
|
||||||
name, @".framework"]])
|
name, @".framework"]])
|
||||||
{
|
{
|
||||||
/* Try creating the bundle. */
|
/* Try creating the bundle. */
|
||||||
bundle = [[self alloc] initWithPath: bundlePath];
|
if (bundlePath)
|
||||||
|
bundle = [[self alloc] initWithPath: bundlePath];
|
||||||
}
|
}
|
||||||
#if !defined(__MINGW__)
|
#if !defined(__MINGW__)
|
||||||
}
|
}
|
||||||
|
@ -431,7 +432,7 @@ _find_framework(NSString *name)
|
||||||
|
|
||||||
if (bundle == nil)
|
if (bundle == nil)
|
||||||
{
|
{
|
||||||
NSLog (@"Could not find framework %@ in any standard location", name);
|
NSWarnMLog (@"Could not find framework %@ in any standard location", name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue