home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
lang
/
skel_azt.sha
/
app.r
< prev
next >
Wrap
Text File
|
1986-07-08
|
11KB
|
527 lines
* SkelR -- Resource definition file for small skeleton application
* Written by Steve Maker
* Modified for Macintosh RMaker program
* by Bill Jefferys 3/8/85
* Modified for Summac by Charlie C. Kim 3/17/85
* Modified for Aztec C and RGen by Dale Carstensen 5/28/86
* Tell RMAKER what to name the resource file
app
APPLCAPP
* Version data for the finder
* Our signature is "SKEL"
* res. ID = 0, by convention
* finder version data
* Note that the blank in 'STR ' is significant 3/8/85 WHJ
Type CAPP = STR
,0
C Application 1.0 -- November 24, 1985
* 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 C-app
(-
Type MENU
,2(4)
File
(New Text
(Open Text
Save Text
Save As I
Open Paint
Close Text
(Close Paint
(-
Quit/Q
Type MENU
,3(4)
Edit
Undo/Z
(-
Cut/X
Copy/C
Paste/V
Clear
* 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, does not have close box
* ProcId: this is a standard type of window
* Refcon, for program's use. Skel doesn't use it.
Type WIND
,260(36)
Paint Window
85 128 256 384
Visible NoGoAway
0
0
Type WIND
,261(36)
Untitled
95 138 266 394
Visible GoAway
0
0
* A Control for Scroll Bars, ID = 128, ProcID = 16 for scrollBar
type CNTL
,128
0
0 0 48 16
Invisible
16
0
0 48 0
* Strings (kept here for ease of change or language translation)
* ID,(4 => pre-load the resource)
* A string for "About Skel"
* strings for "operation error"
* strings for Apple error codes
Type STR
,1(4)
C Application based on "SKEL" from Dartmouth, plus text edit menu
Type STR
,2(4)
Address of main is |
Type STR
,3
File open error
Type STR
,4
File read error
Type STR
,5
Incorrect length read:
Type STR
,6
File create error
Type STR
,7
File write error
Type STR
,8
Incorrect length written:
Type STR
,9
File seek error
Type STR
,10
Not enough memory to read paint file
Type STR
,11
Not a paint file
Type STR
,12
Premature end of file
Type STR
,13
-- no description for this error number
Type STR
,53
Directory full
Type STR
,54
disk full
Type STR
,55
volume doesn't exist
Type STR
,56
I/O error
Type STR
,57
bad or NIL name
Type STR
,58
file not open
Type STR
,59
logical end-of-file during read
Type STR
,60
attempt to seek beyond beginning of file
Type STR
,61
too many files open
Type STR
,62
too many files open
Type STR
,63
file not found
Type STR
,64
volume locked by hardware
Type STR
,65
file locked
Type STR
,66
volume locked by software
Type STR
,67
file busy
Type STR
,68
duplicate file name and version
Type STR
,69
already open for write on another path
Type STR
,70
parameter error (volume, position, or drive)
Type STR
,71
file not open (bad reference number)
Type STR
,72
get position error
Type STR
,73
volume off-line
Type STR
,74
file locked, can't open for write
Type STR
,75
volume already on-line
Type STR
,76
drive doesn't exist
Type STR
,77
not a Macintosh disk
Type STR
,78
external file system
Type STR
,79
rename error
Type STR
,80
bad master directory block
Type STR
,81
read-only, can't write
Type STR
,84
drive not connected
Type STR
,85
no disk in drive
Type STR
,86
disk is probably blank
Type STR
,87
can't find an address mark
Type STR
,88
read-verify failed
Type STR
,89
bad address checksum
Type STR
,90
bad address bit slip
Type STR
,91
can't find a data mark
Type STR
,92
bad data checksum
Type STR
,93
bad data bit slip
Type STR
,94
write under-run
Type STR
,95
can't step drive
Type STR
,96
can't find track 0
Type STR
,97
can't initialize disk controller (IWM)
Type STR
,98
single-sided drive, can't read side 2
Type STR
,99
can't correctly adjust disk speed
Type STR
,100
drive seek error
Type STR
,101
can't find sector
Type STR
,128
out of heap memory
Type STR
,129
NIL master pointer
Type STR
,131
memory block is free, operation not allowed
Type STR
,132
memory block is locked, can't purge
Type STR
,137
memory block is locked
* dialog box for Report
* ID (4 => pre-load the resource; MUST NOT be purgeable!)
* title
* BoundsRect(global: TLBR)
* Vis NoGo: it's visible, but has no close box
* ProcID: Window type is modal dialog
* RefCon: Unused user variable
* res. ID of item list
Type DLOG
,257(4)
Report Box
80 20 146 492
Visible NoGoAway
1
0
257
* 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
button
45 186 66 286
OK
staticText Disabled
5 25 40 450
^0
* Note that most of the following is not directly implemented in the
* sumac resource maker - you can do it, but ....
****************************************************************************
**** 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
* "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)
CAPP 0
ICN#
0 128 1 129
FREF
0 128 1 129
* a Fi
le 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)
* Data is Hex data (.H) - not need when using HEXA
* the icon data: 32 lines of 8 hex chars each
* the icon mask: 32 lines of 8 hex chars each
Type ICN# = GNRL
,128(32)
.H
*Type ICN# = HEXA
* ,128(32)
001F F000 01E0 0F00 0700 01C0 0C00 0060
1878 3C30 10CC 6610 3184 4318 2104 4108
2104 4108 218C 6308 20F8 3E08 3000 0018
1000 0010 0800 0020 0402 8040 0302 8180
0182 8300 0082 8200 0040 0400 0040 0400
0040 0400 004F E400 005B B400 005B B400
007F FC00 0020 0800 0030 1800 0018 3000
0007 E000 0000 0000 0000 0000 0000 0000
001F F000 01FF FF00 07FF FFC0 0FFF FFE0
1FFF FFF0 1FFF FFF0 3FFF FFF8 3FFF FFF8
3FFF FFF8 3FFF FFF8 3FFF FFF8 3FFF FFF8
1FFF FFF0 0FFF FFE0 07FF FFC0 03FF FF80
01FF FF00 00FF FE00 007F FC00 007F FC00
007F FC00 007F FC00 007F FC00 007F FC00
007F FC00 003F F800 003F F800 001F F000
0007 E000 0000 0000 0000 0000 0000 0000
* An icon list for a file of type BONE (crossbones)
* ID (the icon for BONE files), (32 => purgeable)
* Data is Hex data (.H)
* the icon data: 32 lines of 8 hex chars each
* the icon mask: 32 lines of 8 hex chars each
Type ICN# = GNRL
,129(32)
.H
03C0 00F0 0660 0198 0430 0308 1C30 030E
3020 0103 2030 0301 2018 0601 300C 0C03
1F06 183E 0D83 306C 00C1 E0C0 0060 C180
0030 6300 0018 3600 000C 1C00 000E 0C00
001B 0600 0031 8300 0060 C180 00C1 E0C0
0183 3060 0306 1830 1E0C 0C1E 3018 0603
2030 0301 2060 0181 2040 0081 2040 0081
3040 0083 18C0 00C6 0F80 007C 0000 0000
03C0 00F0 07E0 01F8 07F0 03F8 1FF0 03FE
3FE0 01FF 3FF0 03FF 3FF8 07FF 3FFC 0FFF
1FFE 1FFE 0DFF 3FEC 00FF FFC0 007F FF80
003F FF00 001F FE00 000F FC00 000F FC00
001F FE00 003F FF00 007F FF80 00FF FFC0
01FF 3FE0 03FE 1FF0 1FFC 0FFE 3FF8 07FF
3FF0 03FF 3FE0 01FF 3FC0 00FF 3FC0 00FF
3FC0 00FF 1FC0 00FE 0F80 007C 0000 0000
**** end of information for the finder ****
***********************************************************************
*Type CODE
* skel,0
INCLUDE app.code