* 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:
Luboš Doležel 2014-01-14 14:13:31 +00:00
parent 9dc6cb8ef2
commit 80f925978a
3 changed files with 15 additions and 0 deletions

View file

@ -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:

View file

@ -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;

View file

@ -2816,6 +2816,12 @@ IF_NO_GC(
}
}
- (NSURL *) resourceURL
{
return [NSURL fileURLWithPath: [self resourcePath]];
}
- (NSDictionary *) infoDictionary
{
NSString* path;