Path To Folder Where App Is
Path To Folder Where App Is
- Subject: Path To Folder Where App Is
- From: Adam <email@hidden>
- Date: Mon, 21 Mar 2005 22:28:06 -0500
I am trying to get the path to the folder where my application is.
I have tried [[NSFileManager defaultManager] currentDirectoryPath]
which works great during a run inside of xcode, but returns the root of
the hard drive when the app launches on its own.
[[NSBundle mainBundle] executablePath] returns
/Users/adam/Desktop/AGFIBS .0002/build/AGFIBS1.app
and
[[NSBundle mainBundle] executablePath] returns
/Users/adam/Desktop/AGFIBS
.0002/build/AGFIBS1.app/Contents/MacOS/AGFIBS1
The path I want is
/Users/adam/Desktop/AGFIBS .0002/build/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden