([NSBundle +pathForResource:ofType:inDirectory:]): Change it from an

instance method to a class method, in order to conform to spec.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-05-03 17:17:08 +00:00
parent 4bbcf235d0
commit 930eac70a3
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/* Interface for NSBundle for GNUStep
Copyright (C) 1995 Free Software Foundation, Inc.
Copyright (C) 1995, 1997 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu>
Date: 1995
@ -55,7 +55,7 @@ extern NSString* NSLoadedClasses;
- (NSArray *) pathsForResourcesOfType: (NSString *)extension
inDirectory: (NSString *)bundlePath;
- (NSString *) pathForResource: (NSString *)name
+ (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath;
- (NSString *) pathForResource: (NSString *)name

View file

@ -504,7 +504,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
inDirectory: nil];
}
- (NSString *) pathForResource: (NSString *)name
+ (NSString *) pathForResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
{