Path: utzoo!attcan!uunet!ncrlnk!ncrcae!ece-csc!mcnc!thorin!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac.programmer Subject: Re: Changing Icons using ResEdit Message-ID: <4685@thorin.cs.unc.edu> Date: 13 Oct 88 23:38:11 GMT References: <1675@goanna.oz> Sender: news@thorin.cs.unc.edu Reply-To: steele@unc.UUCP (Oliver Steele) Organization: University Of North Carolina, Chapel Hill Lines: 29 ckl@goanna.oz (Chee Kheong Lin) writes that he's trying to give an application an icon: >1) Create autograph resource (I called it CLIN, ID 0) containing string >identifying program version and date. >2) Create a file reference (resource type FREF, ID 128) with >associating type APPL and icon number 0. >3) Create an icon (resource type ICN#, ID 128) that I want my application >to be represented as. >3) Create a bundle (resource type BNDL, ID 0) giving owner name and ID >of autograph resource (in this case, CLIN and ID 0) and associating >icon list 0 with actual ID 128. 4) Set the Bundle bit of the file ("Get Info" on the file from ResEdit, for instance), and unset the Inited bit, if the latter is set. LSC, at least, does this automatically if the .rsrc file from which it built the APPL had the appropriate resources. 5) If you were changing the icon for a file that already had one, or adding new file type icons, you'd need to either perform appropriate surgery on or rebuild the Desktop. It's a lot easier just to rebuild it. You also need to put FREF 0/128 in the BNDL, as well as ICN# 0/128. Couldn't tell if you'd done that. --------------------------------------------------------------------------- Oliver Steele ...!decnet!mcnc!unc!steele UNC-CH steele@cs.unc.edu "It's not the easy way -- but it's the cowboy way!" - Riders in the Sky