home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25745 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.4 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ucbvax!cxr_rs6000.med.ge.com!marc
  2. From: marc@cxr_rs6000.med.ge.com (Marc Wolfgram)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: OpenResourceFile problem...bug?
  5. Message-ID: <9212181448.AA10194@cxr_rs6000>
  6. Date: 18 Dec 92 14:48:19 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 22
  11.  
  12.  
  13. Paul Benson replies...
  14.  
  15. >In <jmk3.724405703@crux1.cit.cornell.edu> Jay M. Krell writes:
  16. >>I use OpenResourceFile to open it. If I ask for only write access (2), I get
  17. >>error $4E, access not allowed. If I ask for read and write (3), no problem.
  18.  
  19. >This sounds familiar, now what did I do about it?  Make sure you have the
  20. >"don't load auto-load resources" bit set, this may be a problem.  Other
  21. >than that, it might not be possible to just write, since the system has
  22. >to read in the resource map et al.
  23.  
  24. Bingo... Opening a resource fork "write-only" is analagous to having a disk be
  25. "write-only"... like a disk's directory, a resoure fork's map must be able to
  26. be read.  One concept that clears a lot of things up is this:  Think of the
  27. resource manager as an operating system, a resource fork as a online volume,
  28. and individual resources within the fork as files... it's an analogy that does
  29. work quite well :)
  30.  
  31. Marc Wolfgram
  32. AOL: M Wolfgram   GEnie: M.WOLFGRAM2   inet: marc@cxr_rs6000.med.ge.com
  33. There are two ways to write bug-free code and only the third one works!
  34.