[futurebasic] Re: [FB] FB4 r4 problems

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2006 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Sat, 25 Nov 2006 17:43:19 +1300
Walter Lenk wrote:

> I got my copy of Futurebasic 4 release 4 some days ago, but I have  
> not been able to get it to build my apps with my custom icon -  
> instead it uses the FB leaf icon. I recall that I also had this  
> problem with release 2, which was solved by adding these lines to  
> my Main file:
>
> ' fix as per FB web site instructions, with stock 'Finder  
> BNDL.rsrc' file
> Resources "plst us.rsrc"
> ' get rid of the FB leaf icon
> kill resources "icl4",129, "icl8",129, "ICN#",129
> kill resources "icm#",129, "icm4",129, "icm8",129
> kill resources "ics#",129, "ics4",129, "ics8",129
>
> These same incantations don't seem to work with release 4.

The incantations above are for removing the document icon only (note  
the 129).

To remove the leaf as well, you need to attack more widely:
kill resources "FB3a", 0
kill resources "PICT", 30333
kill resources "BNDL", 128
kill resources "FREF", 128, "FREF", 129
kill resources "icns", 128
kill resources "icm#", 128, "icm#", 129
kill resources "icm4", 128, "icm4", 129
kill resources "icm8", 128, "icm8", 129
kill resources "ics#", 128, "ics#" ,129
kill resources "ics4", 128, "ics4" ,129
kill resources "ics8", 128, "ics8" ,129
kill resources "ICN#", 128, "ICN#", 129
kill resources "icl4", 128, "icl4" ,129
kill resources "icl8", 128, "icl8" ,129

A plain demo app (i.e. one that does not include its own *.rsrc file)  
with the kill statements above, should show up in the Finder with the  
default OS X application icon.  If it doesn't, move it to another  
folder then back again so that the new icon-less state gets noticed.  
(Or Command-D duplicate the app, and look at the copy).

Robert P.