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