Filesystem change

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16565 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2003-04-28 02:29:49 +00:00
parent 16e25ec2a4
commit 32ae9a0f45
34 changed files with 1712 additions and 2890 deletions

View file

@ -1721,7 +1721,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return _gnustep_bundle;
}
+ (NSString *) pathForGNUstepResource: (NSString *)name
+ (NSString *) pathForLibraryResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
{
@ -1732,7 +1732,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
NSEnumerator *enumerator;
/* Gather up the paths */
paths = NSSearchPathForDirectoriesInDomains(GSLibrariesDirectory,
paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSAllDomainsMask, YES);
enumerator = [paths objectEnumerator];
@ -1747,6 +1747,16 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return path;
}
+ (NSString *) pathForGNUstepResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
{
NSLog(@"Warninig: Depreciated %@ called. Use +pathForLibraryResource:ofType:inDirectory: or +bundleForLibrary: instead",
NSStringFromSelector(_cmd));
return [self pathForLibraryResource: name ofType: ext
inDirectory: bundlePath];
}
+ (NSString*) _gnustep_target_cpu
{
return gnustep_target_cpu;