home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20410 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1018 b   |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!hemul.nada.kth.se!d88-jwa
  3. From: d88-jwa@hemul.nada.kth.se (Jon WΣtte)
  4. Subject: Re: FSOpen or HOpen ?
  5. Message-ID: <1992Dec29.234409.4513@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: hemul.nada.kth.se
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. References: <85918@ut-emx.uucp>
  10. Date: Tue, 29 Dec 1992 23:44:09 GMT
  11. Lines: 21
  12.  
  13. In <85918@ut-emx.uucp> tequila@ccwf.cc.utexas.edu (Mario Garcia) writes:
  14.  
  15. >What is the preferred way to open a file?  I have always used
  16. >FSOpen but I have seen code which calls HOpen.  What are the
  17. >advantages/disadvantages of each method ?
  18.  
  19. FSOpen only takes a wdRefNum, that's uncool.
  20.  
  21. Instead, as soon as you get a wdRefNum (say from standard
  22. file) convert it to a vRefNum / dirID pair, and use HOpen
  23. to open the file. See other post by me in this group.
  24.  
  25. Cheers,
  26.  
  27.                         / h+
  28.  
  29.  
  30. -- 
  31.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  32.  
  33.  -- I don't fear death, it's dying that scares me.
  34.