• 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: Brian Barnes <email@hidden>
  • Date: Sun, 7 Dec 2003 17:50:49 -0500

On Dec 7, 2003, at 3:55 PM, Clark Cox wrote:

Actually, it is not a change. I can assure you that in 10.2 (and probably before), the Finder used "/" as the current working directory when launching applications. And, of course, if you launch your app from the command line, the current working directory is whatever directory you were working in in the shell.

Not to carry on this argument too long, but all I can tell you is that in 10.2, my app, which used getcwd(), always returned the directory of the app when launching from the finder or from the dock. Maybe it was magic, but it did :) And it only stopped working on 10.3.


Maybe I was just getting lucky. I get the current bundle and get it's directory from there, and that works now.

[>] Brian
_______________________________________________
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>)
 >Re: getcwd acts different in xcode/finder (From: Alastair Houghton <email@hidden>)
 >Re: getcwd acts different in xcode/finder (From: Brian Barnes <email@hidden>)
 >Re: getcwd acts different in xcode/finder (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: getcwd acts different in xcode/finder
  • Next by Date: Re: First click ignored
  • Previous by thread: Re: getcwd acts different in xcode/finder
  • Next by thread: Re: getcwd acts different in xcode/finder
  • Index(es):
    • Date
    • Thread