Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File and Working directories... Message-ID: <54411@apple.Apple.COM> Date: 27 Jun 91 22:57:11 GMT References: <1991Jun26.084825.9019@dartvax.dartmouth.edu> <14699@dog.ee.lbl.gov> Organization: Apple Computer Inc., Cupertino, CA Lines: 27 In article shores@fergvax.unl.edu (Shores) writes: >In <14699@dog.ee.lbl.gov> eastman@csa2.lbl.gov (JACK EASTMAN) writes: >>Let us also not forget tech note #140, "Why PBHSetVol is Dangerous", wherein >>we learn that using _HSetVol to change the default directory is a no-no. If >>you want to change the default directory to a given vRefNum+dirID, and you >>want to be compatible with all post-HFS systems, you have to compose a working >>directory and pass it to PBSetVol instead. > >What? Then why did they even bother with HSetVol if you're not supposed >to use it? If I recall, all that needs to be done is set ioFVersNum to >zero before calling PBHSetVol. Surely the glue code takes care of this >for you when you want to use HSetVol. Tom, You recall incorrectly. The problems with HSetVol have nothing to do with ioFVersNum. They have to do with setting the default directory to a directory that doesn't have a corresponding working directory (did I say "directory" enough times?). -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "But where the senses fail us, reason must step in." - Galileo