mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([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:
parent
521e6be868
commit
84011b8649
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Interface for NSBundle for GNUStep
|
/* 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>
|
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||||
Date: 1995
|
Date: 1995
|
||||||
|
@ -55,7 +55,7 @@ extern NSString* NSLoadedClasses;
|
||||||
|
|
||||||
- (NSArray *) pathsForResourcesOfType: (NSString *)extension
|
- (NSArray *) pathsForResourcesOfType: (NSString *)extension
|
||||||
inDirectory: (NSString *)bundlePath;
|
inDirectory: (NSString *)bundlePath;
|
||||||
- (NSString *) pathForResource: (NSString *)name
|
+ (NSString *) pathForResource: (NSString *)name
|
||||||
ofType: (NSString *)ext
|
ofType: (NSString *)ext
|
||||||
inDirectory: (NSString *)bundlePath;
|
inDirectory: (NSString *)bundlePath;
|
||||||
- (NSString *) pathForResource: (NSString *)name
|
- (NSString *) pathForResource: (NSString *)name
|
||||||
|
|
|
@ -504,7 +504,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
||||||
inDirectory: nil];
|
inDirectory: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) pathForResource: (NSString *)name
|
+ (NSString *) pathForResource: (NSString *)name
|
||||||
ofType: (NSString *)ext
|
ofType: (NSString *)ext
|
||||||
inDirectory: (NSString *)bundlePath
|
inDirectory: (NSString *)bundlePath
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue