Relative path to file within .app


#1

I am working on a firmware updater that depends on a file external to the XCode project. I need to figure out how to get the file path, programatically, of my .hex file when I place it in the .app/Contents directory.

Can anyone point me in the direction of the system or Juce call that will provide that path regardless of where the .app is sitting. The executable is placed in .app/MacOS/ .

Thanks


#2

http://www.rawmaterialsoftware.com/api/classFile.html#ae3bed04d97f2cb0c1bcf423cc7fdeb05 I think its File::getSpecialLocation(File::currentApplicationFile) that you want.


#3

That is exactly what I needed.

Thanks!