[Bf-committers] osx install example 3

Charles Wardlaw bf-committers@blender.org
Thu, 29 May 2003 06:52:07 -0700 (PDT)


> Sorry, this is simplicity itself (err, if you're a Mac weenie):
> 
> CFURLRef pluginRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
> CFStringRef macPath = CFURLCopyFileSystemPath(pluginRef,
>                                                
> kCFURLPOSIXPathStyle);
> const char *pathPtr = CFStringGetCStringPtr(macPath,
>                                              
> CFStringGetSystemEncoding());

Heh, you *could* also just save copies of the argc and argc parameters.
 Argv[0] points to the executable inside the app bundle, I think.

> Okay, I'm away over the weekend but I'll try and get a build going
> and 
> start looking into this (if not, prod me to :-) ... will probably
> drop 
> into irc when the build system confuses me!

Once you get the prereq's set up using fink the process works itself
out.  The list is certainly around if you run into any snags. ^_^;;

- Charles