maker@dartvax.UUCP (Steve Maker) (03/06/85)
* SkelR -- Resource definition file for small skeleton application * Written by Steve Maker * Tell RMAKER what to name the resource file Skel.Rsrc * Version data for the finder * Our signature is "SKEL" * res. ID = 0, by convention * finder version data type SKEL = STR ,0 Skel 2.2 -- Mar 6, 1985 * Read application code from this file * filename, ID = 0 for first code Type CODE SkelL,0 * Menus * ID (4 => pre-load the resource; MUST NOT be purgeable!) * menu title: an Apple symbol (in hex) for the Apple menu. * menu entries, one per line. ( means it's initially disabled. * An entry of (- means a disabled line of dashes. * A trailing /Q means a command-key equivalent. * blank line at end of menu. Type MENU ,1(4) \14 About Skel (- Type MENU ,2(4) File Rattle Frighten (- Quit/Q * A Window template * ID,(4 => pre-load the resource; 32 => purgeable) * title * BoundsRect (global Top, Left, Bottom, Right): where it appears on the screen * Vis NoGo: it's visible, but has no close box * ProcId: this is a standard type of window * Refcon, for program's use. Skel doesn't use it. Type WIND ,260(36) A Skeleton Application 85 128 256 384 Visible NoGoAway 0 0 * Strings (kept here for ease of change) * ID,(4 => pre-load the resource) * A string for "About Skel" * Rattle string * Frighten String type STR ,1(4) Skel 2.2, by Steve Maker on March 6, 1985. ,2(4) Too tired to Rattle them bones. ,3(4) Boo! * dialog box for Report * ID (4 => pre-load the resource; MUST NOT be purgeable!) * BoundsRect(global: TLBR) * vis., window type is modal dialog, has no close box, unused user vbl * res. ID of item list * title Type DLOG ,257(4) 80 20 131 492 Visible 1 NoGoAway 0 257 Report Box * dialog item list for Report * ID (4 => pre-loaded; 32 => purgeable - it should always be purgeable.) * # Items * the first item: * a Button you can select * display rect (local coords) * title * the second item: * Static text, disabled (i.e. can't select it) * display rect * text to be set by ParamText Type DITL ,257(36) 2 BtnItem Enabled 25 186 46 286 OK StatText Disabled 5 25 20 450 ^0 **************************************************************************** **** This section contains information for the Finder; **** **** the program SKEL never accesses this information directly. **** **** The entire section can be omitted from the first versions **** **** of a program (you must then set the application's type to **** **** APPL, the creator to ????, and don't set the bundle bit); **** **** the default application icon will be used. **** **** For more info, read "Putting together a Mac Application" **** **** and "The Structure of a Mac Application". **** * * To make the finder show your application's special icon on the desktop, * make documents of your type show their icons, make an * application start when a document is opened, * and move all files associated with your application * when a copy is done, you must: * For documents of new types: * - set the document's type to the new type (here BONE) * (often the program that creates them will do this) * - if you want the application to start when a document file * is opened, set the file's creator to the signature of * the application, here SKEL; otherwise, to ????. * For the application: * - set the application's type to APPL ("it's an application") * - set the creator to its signature, here SKEL * - set the bundle bit. This tells the finder that it should read * this info from the SKEL resource file and use it when displaying * SKEL's icon. * If you use SendOne, these items will have to be set with SetFile the first * time, and then not again; if you use MacCom, they are set every time * (usually in the exec file). * If you change the icon, the change may not have effect on the desktop, * until you reboot with the command and option keys held down. This tells * the Finder to reconstruct the desktop; the correct icons will be displayed, * but all folders will be lost. * a Bundle: contains references to other finder info, (below) * ID (32 => purgeable) * Bundle owner: SKEL (our signature), Res ID of version data = 0 * # of types in bundle = 2: ICN# and FREF * "ICN#" (means icon list), # of icon resources in bndl = 2 * local ID 0 maps to global ID 128 (the FREF uses a local ID, to refer to * an icon which has a global ID. See the FREF resource, below) * local ID 1 maps to global ID 129 * "FREF" (means file reference), # of FREF res in bndl = 2 * local ID 0 maps to global ID 128 * local ID 1 maps to global ID 129 Type BNDL ,128(32) SKEL 0 2 ICN# 2 0 128 1 129 FREF 2 0 128 1 129 * a File Reference * ID, (32 => purgeable) * "APPL" : a file of type APPL (SKEL itself) gets the following icon (a skull) * local icon ID; maps to global ID as specified in BNDL * name of file that must accompany application if transferred; omit if none. Type FREF ,128(32) APPL 0 * Another File Reference * ID, (32 => purgeable) * "BONE" : a file of type BONE gets the following icon (crossbones) * local icon ID * no filename Type FREF ,129(32) BONE 1 * An icon list for the application icon (a skull) * ID (the application icon), (32 => purgeable) * the icon data: 32 lines of 8 hex chars each * the icon mask: 32 lines of 8 hex chars each Type ICN# = HEXA ,128(32) 001FF000 01E00F00 070001C0 0C000060 18783C30 10CC6610 31844318 21044108 21044108 218C6308 20F83E08 30000018 10000010 08000020 04028040 03028180 01828300 00828200 00400400 00400400 00400400 004FE400 005BB400 005BB400 007FFC00 00200800 00301800 00183000 0007E000 00000000 00000000 00000000 001FF000 01FFFF00 07FFFFC0 0FFFFFE0 1FFFFFF0 1FFFFFF0 3FFFFFF8 3FFFFFF8 3FFFFFF8 3FFFFFF8 3FFFFFF8 3FFFFFF8 1FFFFFF0 0FFFFFE0 07FFFFC0 03FFFF80 01FFFF00 00FFFE00 007FFC00 007FFC00 007FFC00 007FFC00 007FFC00 007FFC00 007FFC00 003FF800 003FF800 001FF000 0007E000 00000000 00000000 00000000 * An icon list for a file of type BONE (crossbones) * ID (the icon for BONE files), (32 => purgeable) * the icon data: 32 lines of 8 hex chars each * the icon mask: 32 lines of 8 hex chars each ,129(32) 03C000F0 06600198 04300308 1C30030E 30200103 20300301 20180601 300C0C03 1F06183E 0D83306C 00C1E0C0 0060C180 00306300 00183600 000C1C00 000E0C00 001B0600 00318300 0060C180 00C1E0C0 01833060 03061830 1E0C0C1E 30180603 20300301 20600181 20400081 20400081 30400083 18C000C6 0F80007C 00000000 03C000F0 07E001F8 07F003F8 1FF003FE 3FE001FF 3FF003FF 3FF807FF 3FFC0FFF 1FFE1FFE 0DFF3FEC 00FFFFC0 007FFF80 003FFF00 001FFE00 000FFC00 000FFC00 001FFE00 003FFF00 007FFF80 00FFFFC0 01FF3FE0 03FE1FF0 1FFC0FFE 3FF807FF 3FF003FF 3FE001FF 3FC000FF 3FC000FF 3FC000FF 1FC000FE 0F80007C 00000000 **** end of information for the finder **** ***********************************************************************