[comp.sys.mac.programmer] Document Icon Stopped Working

holland@m2.csc.ti.com (Fred Hollander) (04/27/89)

I've got an INIT that I've recently changed to type 'cdev' (from 'INIT').
Now the icon no longer shows up in Finder.  I've changed the 'BNDL', 'FREF'
and 'ICN#' resource ID's to -4064.  Is there anything else that's different?
Does anybody have any ideas on what I might be doing wrong?

Thanks,

Fred Hollander
Computer Science Center
Texas Instruments, Inc.
hollander@ti.com

The above statements are my own and not representative of Texas Instruments.

Marriott1@AppleLink.Apple.Com (Greggy) (04/28/89)

In article <75966@ti-csl.csc.ti.com> holland@m2.csc.ti.com (Fred 
Hollander) writes:
> I've got an INIT that I've recently changed to type 'cdev' (from 'INIT').
> Now the icon no longer shows up in Finder.  I've changed the 'BNDL', 
'FREF'
> and 'ICN#' resource ID's to -4064.  Is there anything else that's 
different?

You probably forgot to change the file type in the FREF from 'INIT' to 
'cdev'


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Greg Marriott               +                      AppleLink: Marriott1 +
+ Just Some Guy               +                                           +
+ "My phone is always busy"   +   Internet: Marriott1@AppleLink.Apple.Com +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Just in case disclaimers mean anything at all:                          +
+    What I say comes from my own twisted perception of the world         +
+    and does not represent the policy or opinion of Apple Computer, Inc. +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

thecloud@dhw68k.cts.com (Ken McLeod) (04/28/89)

In article <75966@ti-csl.csc.ti.com> holland@m2.csc.ti.com (Fred Hollander) writes:
>I've got an INIT that I've recently changed to type 'cdev' (from 'INIT').
>Now the icon no longer shows up in Finder.  I've changed the 'BNDL', 'FREF'
>and 'ICN#' resource ID's to -4064.  Is there anything else that's different?

    Simply changing the IDs is not enough, as you guessed. You'll also need
to open the FREF resource and change the filetype it contains (from 'INIT'
to 'cdev'). Then, open the BNDL resource and change the ID numbers for
the ICN# and FREF that appear there (in the "Resource ID" fields) to -4064.
Finally, rebuild the Desktop file (or else copy the INIT to a blank floppy
and rebuild *its* Desktop file; much quicker).


-- 
==========     .......     =============================================
Ken McLeod    :.     .:    UUCP: ...{spsd,zardoz,felix}!dhw68k!thecloud
==========   :::.. ..:::   INTERNET: thecloud@dhw68k.cts.com
                ////       =============================================

holland@m2.csc.ti.com (Fred Hollander) (04/30/89)

In article <22526@dhw68k.cts.com> thecloud@dhw68k.cts.com (Ken McLeod) writes:
>In article <75966@ti-csl.csc.ti.com> holland@m2.csc.ti.com (Fred Hollander) writes:
>>I've got an INIT that I've recently changed to type 'cdev' (from 'INIT').
>>Now the icon no longer shows up in Finder.  I've changed the 'BNDL', 'FREF'
>>and 'ICN#' resource ID's to -4064.  Is there anything else that's different?
>
>    Simply changing the IDs is not enough, as you guessed. You'll also need
>to open the FREF resource and change the filetype it contains (from 'INIT'
>to 'cdev'). Then, open the BNDL resource and change the ID numbers for
>the ICN# and FREF that appear there (in the "Resource ID" fields) to -4064.
>Finally, rebuild the Desktop file (or else copy the INIT to a blank floppy
>and rebuild *its* Desktop file; much quicker).

I should have been more thorough on the changes that I made, but, I did all
of the above.  Someone else (sorry, lost the msg) suggested that I add a 
signature resource and now it works.  It seems strange that it worked
before without the signature.  Feels like messing around with black magic.
Thanks to all who sent me suggestions.

Fred Hollander
Computer Science Center
Texas Instruments, Inc.
hollander@ti.com

The above statements are my own and not representative of Texas Instruments.