mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* Headers/Foundation/NSBundle.h (builtInPlugInsPath): New method.
* Source/NSBundle (builtInPlugInsPath): Imeplement (based on patch #3483). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20341 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8879270729
commit
ee92fa6367
3 changed files with 28 additions and 0 deletions
|
@ -1624,6 +1624,25 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
return _infoDict;
|
||||
}
|
||||
|
||||
- (NSString *)builtInPlugInsPath
|
||||
{
|
||||
NSString *version = _frameworkVersion;
|
||||
|
||||
if (!version)
|
||||
version = @"Current";
|
||||
|
||||
if (_bundleType == NSBUNDLE_FRAMEWORK)
|
||||
{
|
||||
return [_path stringByAppendingPathComponent:
|
||||
[NSString stringWithFormat:@"Versions/%@/PlugIns",
|
||||
version]];
|
||||
}
|
||||
else
|
||||
{
|
||||
return [_path stringByAppendingPathComponent: @"PlugIns"];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSString *)bundleIdentifier
|
||||
{
|
||||
return [[self infoDictionary] objectForKey:@"CFBundleIdentifier"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue