Hi,

Am 08.08.11 18:22, schrieb Guido Lucci Baldassari:
> Does anyone know how I can obtain the path of @loader_path at runtime
> (a better solution than getenv(PWD))? Thanks in advance

you can try one of the NSBundle-methods:

        NSBundle* bundle = [NSBundle bundleForClass: [self class]];
        std::string plugin_path( [ [bundle builtInPlugInsPath] cString]);

This will give you the path to the PlugIns-folder inside your bundle.

cheers,
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to