Macintosh PPC custom stack icons

Shari gypsyware at earthlink.net
Thu Mar 27 19:15:01 EST 2003


>I've made my own stand alone using Metacard's Standalone Builder, and it
>runs the stacks.  The stand alone (my app) shows my own custom icon, but the
>stacks don't show theirs.

Ah... gotcha....

Only thing I forgot to ask, was WHICH flavour of Mac you are 
targeting... OSX or PPC.  The following instructions are for PPC.

You need to set the creator of the standalone, and the stacks.

Step 1:

The resource fork of the standalone, and stacks.  Firstly, the stacks 
themselves do NOT need a resource fork.  But the standalone does.  In 
the stack that will become the standalone, you should have an ic14, 
ic18, icns, ics4, and ics8 resource.  If you edit ic18, the rest 
should be edited for you automatically.  Put your standalone icon 
into resource 128 of ic18.  Put your stack icon into resource 129 and 
130.


Step 2:

When you use the Standalone Builder, there is a field "Creator" that 
has "MSTD" in it.  This is Metacard's creator code.

You'll need to use a custom code for this.  Creator codes are 4 
characters, letters or numbers, small or capital.  If you plan to 
distribute the standalone to others, you should make sure not to use 
a code already in use.  You can get creator code info at:

http://developer.apple.com/dev/cftype/faq.html

I register all mine with Apple thru this link.  And check for 
existing codes before using one, to make sure it is not already 
registered.  For Blackjack Gold I used "bJg3".

Enter this code in the "Creator" field when you build the standalone.


Step 3:

Open the resource for of the standalone with ResEdit or a similar 
program.  There should be a resource named your chosen creator code. 
There should be the ic** series, and each one should have 128 as the 
standalone icon, and 129-130 as the stack icon.  Except for icns, 
which you just leave alone.

Open the BNDL resource and edit 128.  The signature field should be 
your creator code.  If it isn't, enter it there.

There should be two types:  APPL and MSTK.  APPL should be your 
standalone icon, MSTK should be your stack icon.  If they aren't, 
double click to edit them.


Step 4:

Set the creator code of your stacks.  To do this, save your external 
stacks with stackfiletype "XXXXMSTK" where "XXXX" is your creator 
code.

In the standalone, every place it saves a stack, set the stackFileType first:

set the stackFileType to "XXXXMSTK"
save stack someStack




-- 
--Shareware Games for the Mac--
http://www.gypsyware.com



More information about the metacard mailing list