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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!munnari.oz.au!uniwa!cujo!peter
  3. From: peter@cujo.curtin.edu.au (Peter N Lewis)
  4. Subject: Re: HOpenResFile and HOpenRF supported by glue in System 6?
  5. Message-ID: <1993Jan11.032740.19123@cujo.curtin.edu.au>
  6. Organization: Curtin University of Technology
  7. References: <1993Jan4.180928.1@lure.latrobe.edu.au> <1993Jan9.201619.1240@netcom.com> <C0Ltw3.FrH@news.udel.edu> <1993Jan10.060648.3821@netcom.com>
  8. Date: Mon, 11 Jan 1993 03:27:40 GMT
  9. Lines: 32
  10.  
  11. jimlynch@netcom.com (Jim Lynch) writes:
  12.  
  13. >In article <C0Ltw3.FrH@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
  14. >>Well, the title basically says it all: are all of the various H... calls
  15. >>supported by glue when my application is running in System 6.x?  IM VI
  16. >>documents these calls (pg. 23-36) but doesn't make it clear when these calls
  17. >>began to be supported. (HOpenRF didn't exist in IM IV, where it was a
  18. >>low-level call.)  I want to support both System 6 and 7, which means I can't
  19. >>use the FS... calls, but I also don't want to use the old calls which don't
  20. >>support a dirID.
  21.  
  22. >Question: Is this accurate, the FS... file system calls don't work under system
  23. >7? Or, are there other reasons to avoid them in syst. 7?
  24.  
  25. I think Sean meant the FSp calls.
  26.  
  27. The FS calls are supported by the glue in both 6 & 7
  28. The H calls are supported by the glue in both 6 & 7.
  29. The FSp calls are supported only under 7 (I think they are traps, but
  30. its not really relevent).
  31.  
  32. IMO, the best solution is to use FSSpecs, and then call the H routines,
  33. eg:
  34. err := HOpen(fs.vRefNum, fs.parID, fs.name, fsRdPerm, refnum);
  35. (assuming you want System 6 compatibility.  Cal FSpOpen if you don't
  36. want System 6 compatibility).
  37.  
  38. Have fun,
  39.    Peter.
  40. -- 
  41. _______________________________________________________________________
  42. Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
  43.