Path: utzoo!attcan!uunet!husc6!mailrus!ncar!tank!nucsrl!bob From: bob@eecs.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Changing icons using resedit (again!) Message-ID: <10050049@eecs.nwu.edu> Date: 18 Nov 88 15:00:05 GMT References: <1776@goanna.oz> Organization: Northwestern U, Evanston IL, USA Lines: 17 .Now I want to associate an icon with a text documnent which the .application program creates. And I also want to be able to open that .text document by just double-clicking on it. I've gone thru the usual .procedure of creating icon, creating a FREF record for it, setting the .type to 'TEXT', adding the id to the resource BNDL. But when I create .a new document from my application program, it still uses the normal .document icon. I did a 'Get Info' on that document in ResEdit and .found that the creator field is empty. But when I changed that field .into the name of my autograph, it works fine. I suspect the problem is .that it can't find the name of my autograph. How do I get it to find .the name?? Have I missed something?? Thanx in advance. Are you changing the creator and type for the file with GetFileInfo and SetFileInfo? The creator and type of a file are not properly set when a file is created - you have to set them by hand. Bob Hablutzel BOB@NUACC.ACNS.NWU.EDU