Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!husc6!unix!stores From: stores@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.programmer Subject: Re: Custom Icons Message-ID: <3401@unix.SRI.COM> Date: 13 Sep 89 15:58:10 GMT References: <15541@dartvax.Dartmouth.EDU> <1373@speedy.mcnc.org> Reply-To: stores@unix.UUCP (Matt Mora) Distribution: comp Organization: SRI International, Menlo Park, CA Lines: 37 In article rang@cs.wisc.edu (Anton Rang) writes: >In article <1373@speedy.mcnc.org> kk@mcnc.org (Krzysztof Kozminski) writes: > [ lots of ideas about how to force icons to be changed in the Desktop ] > >Hmm. I thought this was common knowledge, but maybe not. Doesn't it >always work to do the following? > > 1. Update the ICN# resource in the application. > 2. Make sure the Bundle bit is set. > 3. Turn off the Inited bit. <-- the important part Sorry, Close but no cigar. You forgot one step. 4. Open the desktop file and look for your application's signature. select it and clear it from the desktop file. Save your changes. I just tried your steps and the finder used the old icon. I guess the finder sees your application, gets its sig, and checks to see if it is in the desktop file, if so it uses the icon in the desktop file. If the desktop file doesn't contain your app's sig, then it looks for it in your app's resource fork and marks it as "inited". Just a theory :-) who knows what the hell the finder does! -- ___________________________________________________________ Matthew Mora SRI International stores@unix.sri.com ___________________________________________________________