[comp.sys.mac] Changing Icons.

graifer@net1.UUCP (02/18/87)

I have a test version of an application (no name can be cited) that will save
a text version of it's documents.  Unfortunately, it types them DATA not TEXT
so I have to use something like Developer's Tools to change the type before I
can get any other application to read these files.  If I do this, the 
application's DATA document icon is replaced by the generic TEXT icon.  I would
like to have an application specific TEXT icon. 

I used ResEdit to add my new icon to the ICN# resource of the application, and
to add an FREF by copying the one for DATA and changing the type to TEXT. I am
not sure its correct, but I used the zero based index of my icon in the ICN# as
the local icon #.

Anyways, this doesn't seem to work, I still get the generic Icon.  Can anybody
tell me how to do what I want to do, or what I am doing wrong?

Thanks in advance
Dan Graifer
graifer@net1.UCSD.EDU

graifer@net1.UUCP (02/23/87)

I got a response from matt@ws.locus.ucla.edu on my request for info on getting
the finder to recognize a new type of Icon, but ucla's postmaster bounced my
response back.  I had already discovered Matt's suggestion of correcting the 
BNDL resource and rebuilding the desktop. Neither helped. Thanks also to
tcgould.tn.cornell.edu, who made the same suggestion.
 
Any  other ideas?
 
(since I forgot to say it, Thanks Matt)
-- 
                              Dan Graifer
                              graifer@net1.UCSD.EDU
Disclaimer: Nobody ever listens to me anyways; Why should they start now?

snell@orstcs2.UUCP (02/26/87)

It is very simple, check the values you stored for the ICON resource
ID number and the number you use in the file refrencing section.  You
might also (this is important any time you decide to change the ICON
for your program) need to change the program signiture.  ie the four
letter signiture that identifies your program to the desktop.

Vance Snell
Oregon St. U.