Added +bundleForLibrary: and +bundleForTool: APIs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11873 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-12-21 18:30:09 +00:00
parent 48b5614739
commit 9069bb7a7a

View file

@ -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 <fedor@boulder.colorado.edu>
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) \