• 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
Re: getcwd acts different in xcode/finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getcwd acts different in xcode/finder


  • Subject: Re: getcwd acts different in xcode/finder
  • From: Justin Walker <email@hidden>
  • Date: Sat, 6 Dec 2003 18:10:31 -0800

On Saturday, December 6, 2003, at 02:04 PM, Brian Barnes wrote:

I don't know if this happened because of xcode or 10.3; but that's when it changed for me.

I'm building an application into a pre-build bundle in the directory /users/bbarnes/dim3. When running under XCode, getcwd returns "/users/bbarnes/dim3". When running from the finder, it returns "/"!

It's possible this changed, but as I recall, this is a long-standing issue for developers of GUI apps on Mac OS X. The environment while "testing in an IDE" and "running live" can be quite different. Apps should not depend on this, and instead, determine their own environment.


Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >getcwd acts different in xcode/finder (From: Brian Barnes <email@hidden>)

  • Prev by Date: Internal error on launch
  • Next by Date: Preventing DebugStr() Breaks
  • Previous by thread: getcwd acts different in xcode/finder
  • Next by thread: Re: getcwd acts different in xcode/finder
  • Index(es):
    • Date
    • Thread