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

  1. 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
  2. From: ksand@apple.com (Kent Sandvik)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Is a resource fork already open?
  5. Message-ID: <ksand-070992112020@wintermute.apple.com>
  6. Date: 7 Sep 92 18:24:33 GMT
  7. References: <39464@imag.imag.fr>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple
  11. Lines: 26
  12.  
  13. In article <39464@imag.imag.fr>, cinquin@imag.fr ( Philippe Cinquin) wrote:
  14. > Sorry if this is a stupid question, but how do you know if the resource fork of
  15. > a file is already open?
  16.  
  17. This is Labor day, and I'm the single idiot working here at DTS,
  18. so I couldn't verify if my ramblings are correct or not. Anyway,
  19. OpenRFPerm is the preferred way to open a resource fork for multiple
  20. read-only accesses.
  21.  
  22. Under MultiFinder, OpenRFPerm will not open a specified file twice 
  23. with write access. It will return a -1 and sets ResError to -49
  24. (opWrErr). So I guess that's one way to check out if any other
  25. applications have the resource fork of a special file open for
  26. writing. I assume we are dealing with a multiple updating of resources
  27. (like preferences) synchronization problem.
  28.  
  29. Just my speculation, I'm no Resource Manager guru.
  30. Kent
  31.  
  32.  
  33. "I would rather have a thousands idiots attacking my position, than
  34. have one idiot helping to defend it."    [Paraphrased from Voltaire]
  35. -------------------
  36. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  37. DISCLAIMER: Private activities on the Net.
  38.