🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #39142

Re: New Mac Programmer -- HELP!

#39142
From: Pierce T. Wetter
Date: Sat, 11 Mar 1989 10:40
37 lines
2359 bytes
> 1. Change the desktop icons from the defaults to custom icons?

    1. Decide what creator type your application will have. Applications have
    type APPL and creator '????'.
    2. Make a resource of whatever type. Lets call it 'THSS'. Put into this
     resource some sort of version information, like "This is my senior thesis"
     Remember that this is a pascal string, so the first byte is a length.
    3. Make a BNDL resource. Make references for and FREF and a ICN# resource.
       Call them local id 0 and local id 0 with actual id 128 and 128.
    4. Make the FREF and ICN# resources. The first FREF should reference type 
       APPL. Any others should reference data files. The ICN# resouce should
       be your desired icon.
    5. Set the 'bundle' flag on your application, and clear the 'Inited" flag.

  That's it. Here's some help for litte stuff. 
     To create a new resource of a specific type, open the file with resedit and
choose new. Then type in the type name (i.e. BNDL). This will make a 'slot
for resources of that type. Then open that type and select new again. This will
make a new resource of that type. Use get info on a selected resource to change
id numbers. In a BNDL resource, select the astrix and select new to add more
items to the BNDL. Do get info on a file to change the file flags.
 
 
> 2. Change the font of text in a window?
> 
	Call TextFont(fontnum) to change the current grafports font.
        Call SetDAFont(fontnum) to change the font that dialogs use.

Pierce

P.S. There dammit. Even if I don't know how many clock cycles the non-existant
multiply instruction on the 6502 takes to execute, I know how to add an icon to
an application.  
-- 
wetter@tybalt.caltech.edu or wetter@csvax.caltech.edu or pwetter@caltech.bitnet
   Rule to live by #32796: Act consistently in one persona until people have
characterized your reactions, then change personas.
Technical Details
Message-ID: <9975@cit-vax.Caltech.Edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ncar!ames!elroy!cit-vax!wetter
References: <64@sppy00.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ncar!ames!elroy!cit-vax!wetter
From: wetter@cit-vax.Caltech.Edu (Pierce T. Wetter)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Re: New Mac Programmer -- HELP!
Message-ID: <9975@cit-vax.Caltech.Edu>
Date: 11 Mar 89 10:40:15 GMT
References: <64@sppy00.UUCP>
Distribution: na
Organization: California Institute of Technology
Lines: 37