🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #14930

Re: Icons and LSC (the answer is here!)

#14930
From: Joseph T. LaRocca
Date: Wed, 04 Mar 1987 00:07
44 lines
2516 bytes
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"
Technical Details
Message-ID: <1703@mit-vax.LCS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!mit-eddie!mit-vax!jtl

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!mit-eddie!mit-vax!jtl
From: jtl@mit-vax.LCS.MIT.EDU (Joseph T. LaRocca)
Newsgroups: comp.sys.mac
Subject: Re: Icons and LSC (the answer is here!)
Message-ID: <1703@mit-vax.LCS.MIT.EDU>
Date: Tue, 3-Mar-87 19:07:58 EST
Article-I.D.: mit-vax.1703
Posted: Tue Mar  3 19:07:58 1987
Date-Received: Mon, 9-Mar-87 20:15:07 EST
Organization: MIT LCS, Cambridge, MA
Lines: 44