PDA

View Full Version : My Application Path




satyam90
Nov 26, 2007, 01:03 AM
Hi,
I am using Cocoa with Obj-C.
Can any one tell me how to get programatically the path of the executable I am running.
Regards,
Satya.



kainjow
Nov 26, 2007, 01:47 AM
[[NSBundle mainBundle] bundlePath]

satyam90
Nov 26, 2007, 06:31 AM
[[NSBundle mainBundle] bundlePath]

Before posting the thread, I tried the same, the application is crashing. I doubted whether I am using correct method or not and posted the thread.

robbieduncan
Nov 26, 2007, 06:36 AM
If you don't post the code we can't really help...