home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12802 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.2 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!network.ucsd.edu!ucsbcsl!mcl!scott
  2. From: scott@mcl.ucsb.edu (Scott Bronson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Loading Resources into MF Temp Mem.
  5. Message-ID: <scott.711755847@mcl>
  6. Date: 21 Jul 92 21:57:27 GMT
  7. References: <1992Jul15.173135.13005@athena.mit.edu> <1992Jul16.195728.15866@dcs.qmw.ac.uk> <1992Jul17.044152.12630@pcnntp.apple.com>
  8. Sender: root@ucsbcsl.ucsb.edu
  9. Lines: 14
  10.  
  11. If I recall, the original reson for pulling this huge resource into a small
  12. application heap was to draw a color about box with a PICT.  If so, IM-V
  13. describes around page 90 or so how to spool a picture in from the disk.
  14. I was hoping someone who knows more about this than I would mention this,
  15. as the one time I tried to get this code to work I couldn't get it to stop
  16. crashing.  I'm fairly certain that it was my fault, but as such, I don't
  17. feel like an expert with PICT spooling.
  18.  
  19. You could probably rewrite GetPICTData to pull the opcodes in using partial
  20. resource calls, but, personally, I would just stick the PICT data into the
  21. application's data fork and spool from that using (almost?) the exact code
  22. from the book.  Very compatible, suitably fast, and it's all in IM-V page 88.
  23.  
  24.     - Scott
  25.