Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!amdahl!ems!andrew From: andrew@ems.Ems.MN.ORG (Andrew C. Esh) Newsgroups: comp.sys.mac.programmer Subject: Re: Help setting application's icon Summary: Read IM-III, summary here. Message-ID: <6581@ems.Ems.MN.ORG> Date: 23 Aug 88 04:14:40 GMT References: <77900005@peterson> Reply-To: andrew@ems.Ems.MN.ORG (Andrew C. Esh) Organization: EMS/McGraw-Hill, Eden Pairie, MN Lines: 31 Inside Macintosh, Volume 3, pages 10-12, summary: Using ResEdit: 1. Create an 'FREF' resource which contains 'APPL', and a local ID number (I use 0). 2. Create a 'vers' resource (any ID number), which contains a Pascal string (length byte, followed by chars), which has your version in it. 3. Create a 'BNDL' which has your program's signature, the version resource ID. 4. Add an icon list to your BNDL with local ID 0 (set above), and the actual resource ID of the desired icon. 5. Add an FREF entry with a local ID, and a resource ID which is the same as the FREF resource's. 6. Now reset (set to zero) the "inited" bit in the file info to tell the Finder that it needs to look at the file again, and copy the file to a new disk. The Finder will see the reset inited bit and reload the icon into the desktop. This step took me a few tries; help, anyone? If it doesn't work, RTFM, and try it again. All the resources must match up, or you get nothing. - Andrew -- Andrew C. Esh DOMAIN: andrew@ems.MN.ORG APPLELINK: D0492 EMS/McGraw-Hill UUCP: ihnp4!meccts!ems!andrew AT&T: (612) 829-8200