Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!crdgw1!ge-dab!peora!petsd!hill From: hill@petsd.UUCP (John S. Hill) Newsgroups: comp.sys.mac.system Subject: Re: How to add startup icon to one that doesn't? Message-ID: <1841@petsd.UUCP> Date: 3 Aug 90 15:37:27 GMT References: <29956.26a4beb0@vaxb.acs.unt.edu> <1990Jul20.001136.6842@midway.uchicago.edu> Reply-To: hill@petsd.UUCP (John S. Hill) Organization: Perkin-Elmer DSG, Tinton Falls, N.J. Lines: 37 In article <1990Jul20.001136.6842@midway.uchicago.edu> dwal@midway.UUCP writes: >In article <29956.26a4beb0@vaxb.acs.unt.edu> mouse@vaxb.acs.unt.edu (Dhanapong Saengrussamee-University of North Texas) writes: >> [...stuff deleted...] >> What about those INITs and cdevs that do not show their startup icon? Is >>their a way to patch/add something to it so that it will show its icon (at >>least) at startup? (As mentioned in previous posted, I am very good at >>peeking & poking with ResEdit and stuffs....) > > >If an INIT doesn't show an icon at startup, it's not really possible >to hack it up so it does. This sort of thing isn't managed by the >system, but by a procedure which Apple distributes (to anybody who >asks for it) for anybody who wants to include in in his her INIT. For >that reason, if the routine wasn't included when the program was >linked, you wouldn't be able to just twiddle some bits and make the >call. As it is, the icon that is displayed is generally based upon >runtime conditions (i.e., whether a certain installation procedure >succeeds), and hacking that in bit-wise would be a pain in the **s. > It is possible and in fact very easy to add icons to most inits/cdevs that don't have start up icons. First, find an init/cdev that does show its icon, then with ResEdit open that file. Look in the INIT resource, where you may find a resource called ShowINIT. Copy this resource and paste it into the target init/cdev, changing it's resource id to match the resource id of the ICN# that you want to display. That's all there's to it. You may of course have to add an ICN# if it doesn't have one, but that's also no big deal if you're the least bit artistically inclined. -- +=====================================+=======================================+ | Mustang GT, there is no substitute. | Go Eagles, Flyers, Phillies, Sixers, | | - "Risky Business", paraphrased. | and Wings! There's always next year! | +----------------------------------+--+---------------------------------------+ | UUCP: {att,princeton}!petsd!hill | ...if I go insane, please don't put your | | or hill@petsd.tinton.ccur.com | wires in my brain... -- If, Pink Floyd | +==================================+==========================================+