Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpcea!hpfcdc!hpfclm!brian From: brian@hpfclm.HP.COM (Brian Rauchfuss) Newsgroups: comp.sys.mac Subject: Re: LSC custom document icons (question) Message-ID: <10620015@hpfclm.HP.COM> Date: Thu, 22-Oct-87 19:50:28 EST Article-I.D.: hpfclm.10620015 Posted: Thu Oct 22 19:50:28 1987 Date-Received: Sun, 25-Oct-87 23:48:28 EST References: <870021@hpcilzb.HP.COM> Organization: Hewlett-Packard - Fort Collins, CO Lines: 17 Since I don't have Inside Mac or any source code here, this explanation is going to be a little vague, but here goes... The method of attaching an icon to a document is simular to the method of attaching an icon to a program. First decide the file type id you are going to use for your documents, like 'WORD' for MacWrite documents. Then in your program you need to call the toolbox after you create your document to attach this as the file type and your program id as the owner. Now go into ResEdit and add three new resources to your program, a new bundle, a new FREF and the ICN# you want to use. These should be simular to the ones you created for your program icon, the FREF specifying the file id, and the bundle specifying the FREF and the attached ICN#. Now just set the bundle bit and rebuild the desktop and the finder should give the documents the proper icon. Brian Rauchfuss