From cbc68d7c073bc59af949a1d17241b4ac50a317ce Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Fri, 21 Dec 2001 18:30:09 +0000 Subject: [PATCH] Added +bundleForLibrary: and +bundleForTool: APIs git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11873 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/NSBundle.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Headers/gnustep/base/NSBundle.h b/Headers/gnustep/base/NSBundle.h index d691d25b7..a6ea260d7 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, 1997, 1999 Free Software Foundation, Inc. +/* Interface for NSBundle for GNUStep -*-objc-*- + Copyright (C) 1995, 1997, 1999, 2001 Free Software Foundation, Inc. Written by: Adam Fedor Date: 1995 @@ -91,6 +91,9 @@ GS_EXPORT NSString* NSLoadedClasses; #ifndef NO_GNUSTEP @interface NSBundle (GNUstep) ++ (NSBundle *) bundleForLibrary: (NSString *)libraryName; ++ (NSBundle *) bundleForTool: (NSString *)toolName; + + (NSString *) _absolutePathOfExecutable: (NSString *)path; + (NSString*) _gnustep_target_cpu; + (NSString*) _gnustep_target_dir; @@ -102,6 +105,8 @@ GS_EXPORT NSString* NSLoadedClasses; inDirectory: (NSString*)bundlePath; @end + +/* Warning - the following should never be used. */ #define GSLocalizedString(key, comment) \ [[NSBundle gnustepBundle] localizedStringForKey:(key) value:@"" table:nil] #define GSLocalizedStringFromTable(key, tbl, comment) \