home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!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: Is a resource fork already open?
- Message-ID: <ksand-070992112020@wintermute.apple.com>
- Date: 7 Sep 92 18:24:33 GMT
- References: <39464@imag.imag.fr>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: Apple
- Lines: 26
-
- In article <39464@imag.imag.fr>, cinquin@imag.fr ( Philippe Cinquin) wrote:
- >
- > Sorry if this is a stupid question, but how do you know if the resource fork of
- > a file is already open?
-
- This is Labor day, and I'm the single idiot working here at DTS,
- so I couldn't verify if my ramblings are correct or not. Anyway,
- OpenRFPerm is the preferred way to open a resource fork for multiple
- read-only accesses.
-
- Under MultiFinder, OpenRFPerm will not open a specified file twice
- with write access. It will return a -1 and sets ResError to -49
- (opWrErr). So I guess that's one way to check out if any other
- applications have the resource fork of a special file open for
- writing. I assume we are dealing with a multiple updating of resources
- (like preferences) synchronization problem.
-
- Just my speculation, I'm no Resource Manager guru.
- Kent
-
-
- "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.
-