jtl@mit-vax.UUCP (02/26/87)
Allright, folks. I know there is a way to make custom icons (and at least a half-dozen people out there besides me don't know it.) PLEASE give us a few guidlines to go by, or you'll have to put up with the generic application icon on all the great applications that we build and post to the net. |-) Thanks, again, in advance. (Reply to me and I will post the solution.) -- Joseph T. LaRocca jtl@mit-vax.lcs.mit.edu "Never let your sense of morals keep you from doing what is right."
jtl@mit-vax.LCS.MIT.EDU (Joseph T. LaRocca) (03/04/87)
1.) Register your 4 byte signature with Apple Developer Services. If your 4 byte signature conflicts with one that someone is already using, you'll screw things up for users. 2.) After Apple has okayed it: 3.) Tell LSC V.2 the 4 byte signature of the application. [The signature from step 1. You can also use resedit to set this] 4.) In the application.RSRC file have: a.) a short resource of the same type as the signature (any id will do. I use 0) any contents will do. I use a string with my name. b.) a BNDL resource with (1) that signature (2) an ICN# with local id 128 and other id 128 (3) a FREF with local id 128 and other id 128 c.) an FREF 128 resource with the file type set to APPL and the id to 128 d.) an ICN# 128 resource with the icon and mask of your choice. Remember that if you play games with the mask, like LightSpeed C does, your icon will look crummy when the user drags it to the desktop. 5.) Build the application. Still no icon? the finder is probably still confused by your old mistakes. [ Not surprised; so was I ] Copy the application onto a fresh, and otherwise empty floppy. Drag the image of the floppy to the trashcan to make the Mac forget about it. While holding down both the <option> and the <command> keys, put the floppy back in. The Finder will ask if you want to rebuild the desktop file on the floppy. Say yes. your icon should be there. If you erase the copy on your main disk, empty the trash, and drag the good one onto your main disk, you may even get the icon to appear on your main disk. [ Also, set the bundle bit for the application in ResEdit ] Special thanks to >--- David Phillip Oster -- "We live in a Global Village." >Arpa: oster@lapis.berkeley.edu -- >Uucp: ucbvax!ucblapis!oster -- "You are Number Six." for providing the information, which has been verified and clarified (but not mutilated or spindled). -- Joseph T. LaRocca jtl@mit-vax.lcs.mit.edu "Cats are on the upgrade." "Upgrade?" "Upgrade"