home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21163 < prev    next >
Encoding:
Text File  |  1993-01-11  |  2.8 KB  |  66 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: HOpenResFile and HOpenRF supported by glue in System 6?
  5. Message-ID: <1993Jan11.095339.12219@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: <1993Jan9.201619.1240@netcom.com> <C0Ltw3.FrH@news.udel.edu> <1993Jan10.060648.3821@netcom.com> <C0nBF7.I2C@news.udel.edu>
  10. Date: Mon, 11 Jan 1993 09:53:39 GMT
  11. Lines: 53
  12.  
  13. In <C0nBF7.I2C@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
  14.  
  15. >In article <1993Jan10.060648.3821@netcom.com> jimlynch@netcom.com (Jim Lynch) writes:
  16. >>In article <C0Ltw3.FrH@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
  17.  
  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.  
  21. >Sorry, I didn't word that very clearly.  System 7 supports the FS calls;
  22. >System 6 does not, so if you want to support both 6 and 7 you can't use
  23.  
  24. You're confusing the FS calls (FSOpen, FSRead, ...) with the FSp
  25. calls (FSpOpenDF, ...)
  26.  
  27. The FS calls are the "old" glue calls for PBXXX, and did run out
  28. of fashion in System 3.2 when the HOpen ... calls entered the scene,
  29. but they are still supported.
  30.  
  31. >structure, and it's fine for your application to use it internally to keep
  32. >track of files under System 6 or 7.  Yesterday I went through and changed
  33.  
  34. But under System 7, you should always create an FSSpec using
  35. FSMakeFSSpec - so you have to create a glue routine (called
  36. MyMakeFSSpec) that, under System 7, calls the trap, and under
  37. System 6 uses assignment and pascal-string-copy.
  38.  
  39. >only exist for backward compatibility.  If you do receive an old-style
  40. >file specification (as from SFGetFile and SFPutFile), you should
  41. >immediately call GetWDInfo to convert it to the new scheme.
  42.  
  43. Definately!
  44.  
  45. >I wish someone would have made this clear sooner!
  46.  
  47. I've tried the last two years :-)
  48.  
  49. >P.S. A few people told me that FindFolder is supported by glue under
  50. >System 6 by both Think and MPW.  This must mean Think C but not Think
  51. >Pascal 4.0, because I got an unimplemented trap error when I called it
  52.  
  53. Yes, I think Pascal has problems with alternate definitions; if
  54. you #define SystemSevenOrLater before including Folders.h in Think
  55. or MPW, you get an unimplemented trap on System 6. However, that
  56. symbol is by default NOT defined, so you get an external declaration
  57. that pulls FindFolder from glue.
  58.  
  59. Switch languages :-)
  60.  
  61. -- 
  62.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  63.  Engineering: "How will this work?" Science: "Why will this work?" Management:
  64.  "When will this work?"  Liberal Arts: "Do you want fries with that?"
  65.                      -- Jesse N. Schell
  66.