mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +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
48b5614739
commit
9069bb7a7a
1 changed files with 7 additions and 2 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue