Is there a way to programmatically get the absolute path to the executable. While executing this executable, I mean :) Something like reading / proc / pid / * in linux for the current PID
Thanks!
I have no idea why you want to do this, but:
[[NSBundle mainBundle] executablePath];
should get what you need.
You can get closer to NSHomeDirectory .