title: How to get a path where the cocoa program runs?
body: <p>In main function body, I need to call system(RELATIVE_PATH + /MyShellScript.sh). The script and other related stuff resides in main project bundle. How to get relative path? IMHO it should be possible to extract it from main parameter - "char *argv[]"...</p>