Re: getcwd acts different in xcode/finder
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.