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

  1. Path: sparky!uunet!stanford.edu!apple!dlyons
  2. From: dlyons@Apple.COM (David A Lyons)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: OpenResourceFile problem...bug?
  5. Message-ID: <75658@apple.apple.COM>
  6. Date: 16 Dec 92 02:59:48 GMT
  7. References: <jmk3.724405703@crux1.cit.cornell.edu>
  8. Organization: Apple Computer Inc, Cupertino, CA
  9. Lines: 19
  10.  
  11. In article <jmk3.724405703@crux1.cit.cornell.edu> jmk3@crux3.cit.cornell.edu (Jay M. Krell) writes:
  12. >I am creating a resource file with CreateResourceFile. It has normal access:
  13. >$C3. This works fine.
  14. >I use OpenResourceFile to open it. If I ask for only write access (2), I get
  15. >error $4E, access not allowed. If I ask for read and write (3), no problem.
  16. >[...] 
  17.  
  18. It's working as designed...even though *you* don't want to read any resources
  19. from the file, the Resource Manager still needs to read the resource map from
  20. the fork when you open the file (CreateResourceFile wrote the map there).
  21.  
  22. Asking for write-only on OpenResourceFile just isn't useful.
  23. -- 
  24. David A. Lyons, Apple Computer, Inc.      |   DAL Systems
  25. Apple II System Software Engineer         |   P.O. Box 875
  26. Internet:dlyons@apple.com                 |   Cupertino, CA 95015-0875
  27.  
  28. My opinions are my own, not Apple's.
  29.