Re: Help! with NSFileManager's currentDirectoryPath
Re: Help! with NSFileManager's currentDirectoryPath
- Subject: Re: Help! with NSFileManager's currentDirectoryPath
- From: Kurt Revis <email@hidden>
- Date: Thu, 14 Mar 2002 19:52:48 -0800
On Thursday, March 14, 2002, at 07:34 PM, John McGruer wrote:
I'm having a problem with NSFileManager's currentDirectoryPath. Using
NSLog
I find that when I run my application from within project builder
currentDirectoryPath gives me the "build" folder that my app resides in
as I
would expect; however, when I copy the application to my "/Applications"
folder it gives me "/" ie the hard disk root, not the folder my app is
in.
This is the normal behavior. You shouldn't rely on the current directory
to be anything in particular when your app is launched.
All I'm trying to do is find the folder that my app is in.
Use this:
[[NSBundle mainBundle] bundlePath]
--
Kurt Revis
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.