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

  1. Path: sparky!uunet!spool.mu.edu!caen!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!apple!NewsWatcher!user
  2. From: REEKES@applelink.apple.com (Jim Reekes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: new icon suite calls slow?
  5. Message-ID: <REEKES-150992134346@90.10.20.67>
  6. Date: 15 Sep 92 20:48:25 GMT
  7. References: <s-zn5_f.gurgle@netcom.com>
  8. Sender: usenet@Apple.COM
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 35
  12.  
  13. In article <s-zn5_f.gurgle@netcom.com>, gurgle@netcom.com (Pete Gontier)
  14. wrote:
  15. > Have been experimenting lately with the icon suite calls recently
  16. > documented in a tech note. I defined a big grid in which to draw
  17. > a fair amount of icons. The grid resizes with the window, so I am
  18. > able to see what it's like to paint a whole screenful of icons. I've
  19. > one word for it: slow.
  20. > At first I thought it was the fact I was
  21. > calling a routine which drew the appropriate icon resource
  22. > given a resource ID. I figured the resource manager calls were slowing
  23. > things down. So I pre-loaded the resources into an array of
  24. > handles and used calls which accepted handles as parameters.
  25. > Still the overall effect was slow.
  26. > Are these calls just slow or is there something that can be done?
  27. > Granted nobody said _SweetIcons was a spreadsheet manager, but it
  28. > would be nice if I could do an icon grid like this.
  29. > Email me and I will summarize later.
  30. > -- 
  31. >  Pete Gontier // EC Technology // gurgle@netcom.com
  32.  
  33. Consider this.  The _IconDispatch trap is what the Finder uses to draw all
  34. of it's icons.  Now there's a bit of a delay in getting the icon out of the
  35. file's resource fork, but once it has it you can see that the window is
  36. quick to update and scroll around in.  This would lead me to believe that
  37. you can use the Icon Utility routines to draw icon efficiently.
  38.  
  39. -----------------------------------------------------------------------
  40. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  41.                              |          Sound Manager Expert
  42. Apple Computer, Inc.         | RAll opinions expressed are mine, and do
  43. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  44. Cupertino, CA 95014          |       employer, Apple Computer Inc.S
  45.