Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!mit-eddie!uw-beaver!zephyr.ens.tek.com!wrgate!midas!herbw From: herbw@midas.WR.TEK.COM (Herb Weiner) Newsgroups: comp.sys.mac.programmer Subject: Re: PaletteManager vs. CopyBits (long; gurus only) Summary: You need to install a custom search procedure Keywords: Palette Manager, CopyBits, Custom Search Procedure Message-ID: <1919@wrgate.WR.TEK.COM> Date: 22 Feb 90 21:53:27 GMT References: <10713@zodiac.ADS.COM> Sender: news@wrgate.WR.TEK.COM Reply-To: herbw@midas.WR.TEK.COM (Herb Weiner) Distribution: na Organization: Tektronix, Inc., Beaverton, OR. Lines: 20 In Article <10713@zodiac.ADS.COM> jdevries@zodiac.ADS.COM (Jeff De Vries) writes: > If I set the pmUsage to pmAnimated, (so I can animate the colormap), the > following events occur: > 2) CopyBits from pixmap to window. Result? A black and white image and a > black and white color_watcher. ... See (obvious) question #3. > > Questions - > > 3) How do you use CopyBits with an animated palette? In my opinion, Apple screwed up badly on this one. To make it work, you need to implement a custom search procedure. If your window is active (you have received an Activate Event, but have not received a deactivate event), You need to install it immediately before you do your CopyBits, and you need to remove it immediately after your CopyBits. (If you do all this, you do not need to worry about the client ID, because your CopyBits is the only possible client.) Refer to Inside Mac Volume V for more info on all this.