Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!ceres.physics.uiowa.edu!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!rutgers!cs.utexas.edu!wuarchive!usc!ucsd!ames!ptolemy!eos!jenlan Newsgroups: comp.sys.mac.programmer Subject: Re: COLOR PALETTES Message-ID: <8134@eos.arc.nasa.gov> From: jenlan@eos.arc.nasa.gov (Jennifer S Lanham) Date: 20 May 91 16:23:06 GMT Sender: jenaln@eos.arc.nasa.gov (Jennifer S. Lanham) Followup-To: comp.sys.mac.programmer References: <14374.282B3424@fidogate.FIDONET.ORG> Organization: Sterling Software @ NASA Ames Research Center, CA Keywords: color, palette Lines: 27 In article <14374.282B3424@fidogate.FIDONET.ORG> Sheldon.Keala@f444.n161.z1.FIDONET.ORG (Sheldon Keala) writes: >I am beginning to experiment with custom palettes. My problem is this: how >do I reset everything when my program exits so that the desktop looks right? >I presently reload the default QD color table and reset the palette, but that >is clearly not enough. Thanks, S. Keala. > I have used palettes quite often and have not had a problem with simply exiting my program...the Color and Palette Managers clean everything up once my palette entries are released. Definitely never had to reset the color table, and my palette was disposed of, so no resetting was necessary. I thought that was the idea behind palettes: the Mac keeps track of color priorities ( e.g. give front window priority), it "knows" when your application quits and reprioritizes the color allocations. Are you doing things behind the color or palette manager's back? If it doesn't "know" the environment has changed, it won't update. Finally, I could be flaunting my ignorance here, so can some one clear this up? Will color QD take care of re-allocation, when one follows the rules for using color and palettes? Thanx Jennifer Lanham *****legally I am required to say "I AM NOT A NASA EMPLOYEE-I DO NOT REPRESENT NASA"********