home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: HOpenResFile and HOpenRF supported by glue in System 6?
- Message-ID: <1993Jan11.095339.12219@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <1993Jan9.201619.1240@netcom.com> <C0Ltw3.FrH@news.udel.edu> <1993Jan10.060648.3821@netcom.com> <C0nBF7.I2C@news.udel.edu>
- Date: Mon, 11 Jan 1993 09:53:39 GMT
- Lines: 53
-
- In <C0nBF7.I2C@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
-
- >In article <1993Jan10.060648.3821@netcom.com> jimlynch@netcom.com (Jim Lynch) writes:
- >>In article <C0Ltw3.FrH@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
-
- >>>low-level call.) I want to support both System 6 and 7, which means I can't
- >>>use the FS... calls, but I also don't want to use the old calls which don't
-
- >Sorry, I didn't word that very clearly. System 7 supports the FS calls;
- >System 6 does not, so if you want to support both 6 and 7 you can't use
-
- You're confusing the FS calls (FSOpen, FSRead, ...) with the FSp
- calls (FSpOpenDF, ...)
-
- The FS calls are the "old" glue calls for PBXXX, and did run out
- of fashion in System 3.2 when the HOpen ... calls entered the scene,
- but they are still supported.
-
- >structure, and it's fine for your application to use it internally to keep
- >track of files under System 6 or 7. Yesterday I went through and changed
-
- But under System 7, you should always create an FSSpec using
- FSMakeFSSpec - so you have to create a glue routine (called
- MyMakeFSSpec) that, under System 7, calls the trap, and under
- System 6 uses assignment and pascal-string-copy.
-
- >only exist for backward compatibility. If you do receive an old-style
- >file specification (as from SFGetFile and SFPutFile), you should
- >immediately call GetWDInfo to convert it to the new scheme.
-
- Definately!
-
- >I wish someone would have made this clear sooner!
-
- I've tried the last two years :-)
-
- >P.S. A few people told me that FindFolder is supported by glue under
- >System 6 by both Think and MPW. This must mean Think C but not Think
- >Pascal 4.0, because I got an unimplemented trap error when I called it
-
- Yes, I think Pascal has problems with alternate definitions; if
- you #define SystemSevenOrLater before including Folders.h in Think
- or MPW, you get an unimplemented trap on System 6. However, that
- symbol is by default NOT defined, so you get an external declaration
- that pulls FindFolder from glue.
-
- Switch languages :-)
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- Engineering: "How will this work?" Science: "Why will this work?" Management:
- "When will this work?" Liberal Arts: "Do you want fries with that?"
- -- Jesse N. Schell
-