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