RE: currentDirectoryPath returns different paths
RE: currentDirectoryPath returns different paths
- Subject: RE: currentDirectoryPath returns different paths
- From: Vinay Prabhu <email@hidden>
- Date: Thu, 27 Jul 2006 16:26:16 +0530
- Importance: Normal
you can use NSBundle class to get the application bundle path
-----Original Message-----
From: cocoa-dev-bounces+vinayprabhu=email@hidden
[mailto:cocoa-dev-bounces+vinayprabhu=email@hidden]On
Behalf Of email@hidden
Sent: Thursday, July 27, 2006 4:21 PM
To: email@hidden
Subject: currentDirectoryPath returns different paths
Hi All,
I am newbie developing a Cocoa Application with ObjC++ using X Code
2.3.
I use the method currentDirectoryPath to get the current location of my
app.
When I run the application from X Code itself i.e a build and go the
currentDirectoryPath returns the correct path say for e.g
/Users/amrit//MyApplication/build/Debug
For the same application when i go to the directory
/Users/amrit//MyApplication/build/Debug and click on the application
icon
the method currentDirectoryPath returns " / " .The same is the case if
I try to launch the application from any other directory.
Why is it so?
How do I get the actual current working directory?
Looking for some guidance.
Thanks & Regards,
Amrit.
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
www.wipro.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
in
This email sent to email@hidden
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
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