mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/NSBundle.m:
* Headers/Foundation/NSBundle.h: add -resourceURL git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37602 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9dc6cb8ef2
commit
80f925978a
3 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-01-14 Lubos Dolezel <lubos@dolezel.info>
|
||||
* Source/NSBundle.m:
|
||||
* Headers/Foundation/NSBundle.h: add -resourceURL
|
||||
|
||||
2014-01-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source\NSPathUtilities.m:
|
||||
|
|
|
@ -345,6 +345,11 @@ GS_EXPORT NSString* const NSLoadedClasses;
|
|||
/** Returns the absolute path to the resources directory of the bundle. */
|
||||
- (NSString*) resourcePath;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6,GS_API_LATEST)
|
||||
/** Returns the absolute path to the resources directory of the bundle. */
|
||||
- (NSURL *) resourceURL;
|
||||
#endif
|
||||
|
||||
/** Returns the full path to the plug-in subdirectory of the bundle. */
|
||||
- (NSString *) builtInPlugInsPath;
|
||||
|
||||
|
|
|
@ -2816,6 +2816,12 @@ IF_NO_GC(
|
|||
}
|
||||
}
|
||||
|
||||
- (NSURL *) resourceURL
|
||||
{
|
||||
return [NSURL fileURLWithPath: [self resourcePath]];
|
||||
}
|
||||
|
||||
|
||||
- (NSDictionary *) infoDictionary
|
||||
{
|
||||
NSString* path;
|
||||
|
|
Loading…
Reference in a new issue