Fixes for nsbundle

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-02-24 22:16:53 +00:00
parent 2c626f70f3
commit 0de19eab35
4 changed files with 1490 additions and 0 deletions

View file

@ -401,6 +401,12 @@ _bundle_load_callback(Class theClass, Category *theCategory)
NSLog(@"No path specified for bundle");
return nil;
}
if ([path isAbsolutePath] == NO)
{
NSLog(@"WARNING: NSBundle -initWithPath: requires absolute path names!");
path = [[[NSFileManager defaultManager] currentDirectoryPath]
stringByAppendingPathComponent: path];
}
/* Check if we were already initialized for this directory */
if (_bundles)