mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
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:
parent
428f9e3995
commit
cbc68d7c07
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Interface for NSBundle for GNUStep
|
/* Interface for NSBundle for GNUStep -*-objc-*-
|
||||||
Copyright (C) 1995, 1997, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1995, 1997, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||||
Date: 1995
|
Date: 1995
|
||||||
|
@ -91,6 +91,9 @@ GS_EXPORT NSString* NSLoadedClasses;
|
||||||
#ifndef NO_GNUSTEP
|
#ifndef NO_GNUSTEP
|
||||||
@interface NSBundle (GNUstep)
|
@interface NSBundle (GNUstep)
|
||||||
|
|
||||||
|
+ (NSBundle *) bundleForLibrary: (NSString *)libraryName;
|
||||||
|
+ (NSBundle *) bundleForTool: (NSString *)toolName;
|
||||||
|
|
||||||
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
|
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
|
||||||
+ (NSString*) _gnustep_target_cpu;
|
+ (NSString*) _gnustep_target_cpu;
|
||||||
+ (NSString*) _gnustep_target_dir;
|
+ (NSString*) _gnustep_target_dir;
|
||||||
|
@ -102,6 +105,8 @@ GS_EXPORT NSString* NSLoadedClasses;
|
||||||
inDirectory: (NSString*)bundlePath;
|
inDirectory: (NSString*)bundlePath;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
/* Warning - the following should never be used. */
|
||||||
#define GSLocalizedString(key, comment) \
|
#define GSLocalizedString(key, comment) \
|
||||||
[[NSBundle gnustepBundle] localizedStringForKey:(key) value:@"" table:nil]
|
[[NSBundle gnustepBundle] localizedStringForKey:(key) value:@"" table:nil]
|
||||||
#define GSLocalizedStringFromTable(key, tbl, comment) \
|
#define GSLocalizedStringFromTable(key, tbl, comment) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue