I created a C++ library that I compile as a .framework so other apps can call into it. I'd like to get the path of the calling .app file from within the library. How can I do this?
In Windows, I simply call GetModuleFileName with the processID as NULL and it returns the parent process. I want to do the equivalent on Mac.
Thanks!