home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15483 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.2 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  2. From: ksand@apple.com (Kent Sandvik)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: HFS Calls in IM6?
  5. Message-ID: <ksand-140992210104@wintermute.apple.com>
  6. Date: 15 Sep 92 04:25:36 GMT
  7. References: <keagGhC00UhWM6nGQa@andrew.cmu.edu> <1992Aug26.032707.9139@terminator.cc.umich.edu>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple
  11. Lines: 35
  12.  
  13. In article <1992Aug26.032707.9139@terminator.cc.umich.edu>,
  14. leonardr@ccs.itd.umich.edu wrote:
  15. > In article <keagGhC00UhWM6nGQa@andrew.cmu.edu> ba0k+@andrew.cmu.edu (Brian Patrick Arnold) writes:
  16. > >I noticed that
  17. > >MacApp 3.0's TFile class uses these HOpenDF etc. without checking for
  18. > >System 7 or File Manager Gestalt.  TFile does check for Alias manager
  19. > >using Gestalt, to filter out whether it will do certain FSp, Finder and
  20. > >Alias Manager calls, but it doesn't filter on the H calls.  
  21. > >
  22. >     that would mean that MacApp 3 programs won't work under System 6!
  23.  
  24. Huh? MacApp 3.0.1 TFile uses PBHOpenDenySync OR PBHOpenSync for opening the
  25. data fork, and HOpenResFile for opening the resource fork System 6-wise,
  26. and FSpOpenResFile if System 7 is present. The last thing is also
  27. a little bit questionable, because HOpenResFile works fine in both
  28. environments (looking at the code the MacApp engineers saved one
  29. link assignment for the file name, so I guess they saved 20-30 cycles
  30. on that one).
  31.  
  32. So there are no known problems as I know of opening files with
  33. the MacApp provided TFile Open routines. Using PBHOpenDenySync before
  34. PBHOpenSync is also smart; MacApp tests if the file has file
  35. access permissions OK (shared volume) before trying PBHOpenSync
  36. on a normal HFS based volume. I guess anyone else looking at 
  37. File I/O routines could take a look at the code inside UFile.cp 
  38. in the MacApp library folder.
  39.  
  40. Cheers,
  41. Kent Sandvik/DTS
  42.  
  43. "I would rather have a thousands idiots attacking my position, than
  44. have one idiot helping to defend it."    [Paraphrased from Voltaire]
  45. -------------------
  46. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  47. DISCLAIMER: Private activities on the Net.
  48.