* Source/NSBundle.m ([NSBundle -bundleIdentifier]): New.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16283 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-03-28 03:46:31 +00:00
parent 15d28d8074
commit c832eea8d3
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-03-27 Adam Fedor <fedor@gnu.org>
* Source/NSBundle.m ([NSBundle -bundleIdentifier]): New.
2003-03-27 Stephane Corthesy <stephane@sente.ch>
* Tools/autogsdoc.m, AGSHtml.m, AGSIndex.m, AGSOutput.m: Add

View file

@ -230,6 +230,10 @@ GS_EXPORT NSString* NSLoadedClasses;
/** Returns the absolute path to the resources directory of the bundle. */
- (NSString*) resourcePath;
/** Returns the bundle identifier, as defined by the CFBundleIdentifier
key in the infoDictionary */
- (NSString *)bundleIdentifier;
/** Returns the bundle version. */
- (unsigned) bundleVersion;

View file

@ -1595,6 +1595,11 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return _infoDict;
}
- (NSString *)bundleIdentifier
{
return [[self infoDictionary] objectForKey:@"CFBundleIdentifier"];
}
- (unsigned)bundleVersion
{
return _version;