1.1 --- a/src/cocoaui/paths_osx.m Wed Jun 03 11:37:10 2009 +0000
1.2 +++ b/src/cocoaui/paths_osx.m Sat Jun 13 00:50:48 2009 +0000
1.4 #include <AppKit/AppKit.h>
1.6 static char *bundle_resource_path = NULL;
1.7 +static char *bundle_plugin_path = NULL;
1.9 static char *get_bundle_resource_path()
1.12 return get_bundle_resource_path();
1.15 +const char *get_plugin_path()
1.17 + if( bundle_plugin_path == NULL ) {
1.18 + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
1.19 + NSString *pluginPath = [[NSBundle mainBundle] builtInPlugInsPath];
1.20 + bundle_plugin_path = strdup([pluginPath UTF8String]);
1.23 + return bundle_plugin_path;