home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20796 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.0 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
  4. Subject: Re: Setting Default Directory
  5. Message-ID: <1993Jan6.145800.29027@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: dront.nada.kth.se
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. References: <1iejtiINN8no@rave.larc.nasa.gov>
  10. Date: Wed, 6 Jan 1993 14:58:00 GMT
  11. Lines: 25
  12.  
  13. In <1iejtiINN8no@rave.larc.nasa.gov> wjb@cscsun2.larc.nasa.gov (William J. Bene) writes:
  14.  
  15. >Given the following FSSpec record:
  16.  
  17. >How can I set the default directory to FSSpec.name?  In other words, I have a 
  18.  
  19. It's a bad idea.
  20.  
  21. Anyway, get the dirID of the directory, using PBGetCatInfo,
  22. and then call HSetVol. Leaving HSetVol is dangerous. Try:
  23.  
  24.     HGetVol ( old )
  25.     HSetVol ( new )
  26.     OpenStuff ( )
  27.     HSetVol ( old )
  28.  
  29. Then you can of course use the opened stuff.
  30.  
  31. Cheers,
  32.  
  33.                         / h+
  34. -- 
  35.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  36.  
  37.    Cookie Jar: Vanilla Yoghurt with Crushed Oreos.
  38.