From 84011b8649822a521f97fb58ff067cbc40ea2cc1 Mon Sep 17 00:00:00 2001 From: mccallum Date: Sat, 3 May 1997 17:17:08 +0000 Subject: [PATCH] ([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 --- Headers/gnustep/base/NSBundle.h | 4 ++-- Source/NSBundle.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Headers/gnustep/base/NSBundle.h b/Headers/gnustep/base/NSBundle.h index e13640178..f2c01725c 100644 --- a/Headers/gnustep/base/NSBundle.h +++ b/Headers/gnustep/base/NSBundle.h @@ -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 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 diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 2240f59ad..ff3f447a1 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -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 {