> > The default directory of a Carbon OS X application as used by stdio
> > seems to be [...]
>
> do not assume any particular directory will be the default when your app is
> started. it can be different from one run to the next, depending on how the
> app is launched.
OK. I discovered that myself once I started launching my trial builds
from the Finder and command line instead of just the XCode debugger.
> this is probably the single-most-asked FAQ in the mac
> programming groups. you can google for it if you want details, personally i'm
> too tired from the last fifty times this topic came up to go into it again.
What search terms do you recommend? I tried googling on mixing
old FSSpec calls and stdio , but didn't find much about directory
defaults before I asked here.
> what you want to do is determine what folder it is you're really looking for,
> and construct a path that points there unequivocally. say what it is you're
> interested in in a follow-up question, and somebody can probably come up with
> how you can locate said directory.
I know what to do when the use specifies a folder, either by full
posix path or Navigation services. Now I'm trying to figure out some
simple thing to do when the user types in only a file name without a
directory, and not not save their data (and which works with both the
legacy Mac Classic or the unix stdio code base portions of the app).
chdir() & HSetVol to the users Documents directory? Or ?
Thanks.

Signature
Ron
http://www.nicholson.com/rhn/basic