Relative path to file within .app


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/ .


#2 I think its File::getSpecialLocation(File::currentApplicationFile) that you want.


That is exactly what I needed.