• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
currentDirectoryPath returns different paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

currentDirectoryPath returns different paths


  • Subject: currentDirectoryPath returns different paths
  • From: <email@hidden>
  • Date: Thu, 27 Jul 2006 16:20:50 +0530
  • Thread-topic: 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: currentDirectoryPath returns different paths
      • From: Sherm Pendley <email@hidden>
    • RE: currentDirectoryPath returns different paths
      • From: Vinay Prabhu <email@hidden>
  • Prev by Date: SetHidden on two objects... Slow to hide
  • Next by Date: RE: currentDirectoryPath returns different paths
  • Previous by thread: Re: SetHidden on two objects... Slow to hide
  • Next by thread: RE: currentDirectoryPath returns different paths
  • Index(es):
    • Date
    • Thread