home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 5.1 KB | [TEXT/????] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: menu.c.bin
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Wed Mar 30 15:26:25 1988, modified Sat May 27 10:50:48 1989, creator '????', type ASCII, 4611 bytes "menu.c" , at 0x1283 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| TTComp archive compressed (bin-4K)
| default (weak)
| |
17%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [????] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 6d 65 6e 75 2e 63 | 00 00 00 00 00 00 00 00 |..menu.c|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 12 03 00 | 00 01 7e 9e 77 0a 71 a0 |........|..~.w.q.|
|00000060| a4 66 48 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.fH.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 4d 61 | 63 69 6e 74 6f 73 68 20 |/*. * Ma|cintosh |
|00000090| 54 61 72 0d 20 2a 0d 20 | 2a 20 57 72 69 74 74 65 |Tar. *. |* Writte|
|000000a0| 6e 20 62 79 20 43 72 61 | 69 67 20 52 75 66 66 2e |n by Cra|ig Ruff.|
|000000b0| 0d 20 2a 0d 20 2a 20 4d | 65 6e 75 20 68 61 6e 64 |. *. * M|enu hand|
|000000c0| 6c 69 6e 67 20 72 6f 75 | 74 69 6e 65 73 2e 0d 20 |ling rou|tines.. |
|000000d0| 2a 2f 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 74 61 |*/..#inc|lude "ta|
|000000e0| 72 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 3c 52 |r.h".#in|clude <R|
|000000f0| 65 73 6f 75 72 63 65 73 | 2e 68 3e 0d 0d 2f 2a 0d |esources|.h>../*.|
|00000100| 20 2a 20 52 65 73 6f 75 | 72 63 65 20 49 44 73 20 | * Resou|rce IDs |
|00000110| 66 6f 72 20 6d 65 6e 75 | 73 0d 20 2a 2f 0d 23 64 |for menu|s. */.#d|
|00000120| 65 66 69 6e 65 20 61 70 | 70 6c 65 49 44 09 09 31 |efine ap|pleID..1|
|00000130| 32 38 0d 23 64 65 66 69 | 6e 65 20 66 69 6c 65 49 |28.#defi|ne fileI|
|00000140| 44 09 09 31 32 39 0d 23 | 64 65 66 69 6e 65 20 65 |D..129.#|define e|
|00000150| 64 69 74 49 44 09 09 31 | 33 30 0d 23 64 65 66 69 |ditID..1|30.#defi|
|00000160| 6e 65 20 6f 70 74 69 6f | 6e 49 44 09 31 33 31 0d |ne optio|nID.131.|
|00000170| 0d 2f 2a 0d 20 2a 20 49 | 6e 64 65 78 20 66 6f 72 |./*. * I|ndex for|
|00000180| 20 65 61 63 68 20 6d 65 | 6e 75 0d 20 2a 2f 0d 23 | each me|nu. */.#|
|00000190| 64 65 66 69 6e 65 20 61 | 70 70 6c 65 4d 65 6e 75 |define a|ppleMenu|
|000001a0| 09 30 0d 23 64 65 66 69 | 6e 65 20 66 69 6c 65 4d |.0.#defi|ne fileM|
|000001b0| 65 6e 75 09 31 0d 23 64 | 65 66 69 6e 65 20 65 64 |enu.1.#d|efine ed|
|000001c0| 69 74 4d 65 6e 75 09 32 | 0d 23 64 65 66 69 6e 65 |itMenu.2|.#define|
|000001d0| 20 6f 70 74 69 6f 6e 4d | 65 6e 75 09 33 0d 23 64 | optionM|enu.3.#d|
|000001e0| 65 66 69 6e 65 20 6d 65 | 6e 75 43 6f 75 6e 74 09 |efine me|nuCount.|
|000001f0| 34 0d 0d 2f 2a 0d 20 2a | 20 49 74 65 6d 20 69 6e |4../*. *| Item in|
|00000200| 20 41 70 70 6c 65 20 4d | 65 6e 75 0d 20 2a 2f 0d | Apple M|enu. */.|
|00000210| 23 64 65 66 69 6e 65 20 | 61 62 6f 75 74 49 74 65 |#define |aboutIte|
|00000220| 6d 09 31 0d 0d 2f 2a 0d | 20 2a 20 49 74 65 6d 73 |m.1../*.| * Items|
|00000230| 20 69 6e 20 46 69 6c 65 | 20 4d 65 6e 75 0d 20 2a | in File| Menu. *|
|00000240| 2f 0d 23 64 65 66 69 6e | 65 20 63 72 65 61 74 65 |/.#defin|e create|
|00000250| 49 74 65 6d 09 31 09 09 | 2f 2a 20 43 72 65 61 74 |Item.1..|/* Creat|
|00000260| 65 20 61 72 63 68 69 76 | 65 20 2a 2f 0d 23 64 65 |e archiv|e */.#de|
|00000270| 66 69 6e 65 20 65 78 74 | 72 61 63 74 49 74 65 6d |fine ext|ractItem|
|00000280| 09 32 09 09 2f 2a 20 45 | 78 74 72 61 63 74 20 61 |.2../* E|xtract a|
|00000290| 72 63 68 69 76 65 20 2a | 2f 0d 23 64 65 66 69 6e |rchive *|/.#defin|
|000002a0| 65 20 6c 69 73 74 49 74 | 65 6d 09 33 09 09 2f 2a |e listIt|em.3../*|
|000002b0| 20 4c 69 73 74 20 61 72 | 63 68 69 76 65 20 2a 2f | List ar|chive */|
|000002c0| 0d 23 64 65 66 69 6e 65 | 20 63 6c 6f 73 65 49 74 |.#define| closeIt|
|000002d0| 65 6d 09 35 09 09 2f 2a | 20 43 6c 6f 73 65 20 28 |em.5../*| Close (|
|000002e0| 6f 6e 6c 79 20 66 6f 72 | 20 44 65 73 6b 20 41 63 |only for| Desk Ac|
|000002f0| 63 29 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 70 67 |c) */.#d|efine pg|
|00000300| 73 65 74 49 74 65 6d 09 | 36 09 09 2f 2a 20 50 61 |setItem.|6../* Pa|
|00000310| 67 65 20 73 65 74 75 70 | 20 2a 2f 0d 23 64 65 66 |ge setup| */.#def|
|00000320| 69 6e 65 20 71 75 69 74 | 49 74 65 6d 09 38 0d 0d |ine quit|Item.8..|
|00000330| 2f 2a 0d 20 2a 20 49 74 | 65 6d 73 20 69 6e 20 45 |/*. * It|ems in E|
|00000340| 64 69 74 20 4d 65 6e 75 | 0d 20 2a 0d 20 2a 20 46 |dit Menu|. *. * F|
|00000350| 6f 72 20 75 73 65 20 62 | 79 20 44 65 73 6b 20 41 |or use b|y Desk A|
|00000360| 63 63 65 73 73 6f 72 69 | 65 73 2e 0d 20 2a 2f 0d |ccessori|es.. */.|
|00000370| 23 64 65 66 69 6e 65 20 | 75 6e 64 6f 49 74 65 6d |#define |undoItem|
|00000380| 09 31 0d 23 64 65 66 69 | 6e 65 20 63 75 74 49 74 |.1.#defi|ne cutIt|
|00000390| 65 6d 09 09 33 0d 23 64 | 65 66 69 6e 65 20 63 6f |em..3.#d|efine co|
|000003a0| 70 79 49 74 65 6d 09 34 | 0d 23 64 65 66 69 6e 65 |pyItem.4|.#define|
|000003b0| 20 70 61 73 74 65 49 74 | 65 6d 09 35 0d 23 64 65 | pasteIt|em.5.#de|
|000003c0| 66 69 6e 65 20 63 6c 65 | 61 72 49 74 65 6d 09 36 |fine cle|arItem.6|
|000003d0| 0d 0d 2f 2a 0d 20 2a 20 | 49 74 65 6d 73 20 69 6e |../*. * |Items in|
|000003e0| 20 4f 70 74 69 6f 6e 73 | 20 4d 65 6e 75 0d 20 2a | Options| Menu. *|
|000003f0| 2f 0d 23 64 65 66 69 6e | 65 20 63 6f 6e 76 65 72 |/.#defin|e conver|
|00000400| 74 49 74 65 6d 09 31 09 | 09 2f 2a 20 43 6f 6e 76 |tItem.1.|./* Conv|
|00000410| 65 72 74 20 6e 65 77 6c | 69 6e 65 73 20 2a 2f 0d |ert newl|ines */.|
|00000420| 23 64 65 66 69 6e 65 09 | 6f 6c 64 41 72 63 68 49 |#define.|oldArchI|
|00000430| 74 65 6d 09 32 09 09 2f | 2a 20 4f 6c 64 20 74 61 |tem.2../|* Old ta|
|00000440| 72 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 61 72 63 |r compat|ible arc|
|00000450| 68 69 76 65 20 63 72 65 | 61 74 69 6f 6e 20 2a 2f |hive cre|ation */|
|00000460| 0d 23 64 65 66 69 6e 65 | 20 62 6c 6f 63 6b 49 74 |.#define| blockIt|
|00000470| 65 6d 09 33 09 09 2f 2a | 20 53 65 74 20 62 6c 6f |em.3../*| Set blo|
|00000480| 63 6b 20 73 69 7a 65 20 | 2a 2f 0d 23 64 65 66 69 |ck size |*/.#defi|
|00000490| 6e 65 20 70 61 67 65 49 | 74 65 6d 09 35 09 09 2f |ne pageI|tem.5../|
|000004a0| 2a 20 43 6f 6e 74 72 6f | 6c 20 70 61 67 69 6e 67 |* Contro|l paging|
|000004b0| 20 6f 66 20 73 63 72 65 | 65 6e 20 6c 69 73 74 69 | of scre|en listi|
|000004c0| 6e 67 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 70 72 |ng */.#d|efine pr|
|000004d0| 69 6e 74 49 74 65 6d 09 | 36 09 09 2f 2a 20 55 73 |intItem.|6../* Us|
|000004e0| 65 20 70 72 69 6e 74 65 | 72 20 69 6e 73 74 65 61 |e printe|r instea|
|000004f0| 64 20 6f 66 20 73 63 72 | 65 65 6e 20 2a 2f 0d 23 |d of scr|een */.#|
|00000500| 64 65 66 69 6e 65 20 74 | 79 70 65 49 74 65 6d 09 |define t|ypeItem.|
|00000510| 38 09 09 2f 2a 20 43 72 | 65 61 74 6f 72 2f 54 79 |8../* Cr|eator/Ty|
|00000520| 70 65 20 64 69 61 6c 6f | 67 20 2a 2f 0d 0d 0d 2f |pe dialo|g */.../|
|00000530| 2a 0d 20 2a 20 4d 65 6e | 75 20 72 65 6c 61 74 65 |*. * Men|u relate|
|00000540| 64 20 76 61 72 69 61 62 | 6c 65 73 0d 20 2a 2f 0d |d variab|les. */.|
|00000550| 0d 4d 65 6e 75 48 61 6e | 64 6c 65 09 6d 65 6e 75 |.MenuHan|dle.menu|
|00000560| 73 5b 6d 65 6e 75 43 6f | 75 6e 74 5d 3b 0d 42 6f |s[menuCo|unt];.Bo|
|00000570| 6f 6c 65 61 6e 09 09 6d | 65 6e 75 73 4f 4b 3b 0d |olean..m|enusOK;.|
|00000580| 0d 2f 2a 0d 20 2a 20 4d | 65 6e 75 49 6e 69 74 20 |./*. * M|enuInit |
|00000590| 2d 20 73 65 74 20 75 70 | 20 6d 65 6e 75 20 62 61 |- set up| menu ba|
|000005a0| 72 0d 20 2a 0d 20 2a 09 | 52 65 61 64 73 20 6e 6f |r. *. *.|Reads no|
|000005b0| 6e 2d 61 70 70 6c 65 20 | 6d 65 6e 75 73 20 66 72 |n-apple |menus fr|
|000005c0| 6f 6d 20 72 65 73 6f 75 | 72 63 65 20 66 69 6c 65 |om resou|rce file|
|000005d0| 2e 0d 20 2a 2f 0d 42 6f | 6f 6c 65 61 6e 0d 4d 65 |.. */.Bo|olean.Me|
|000005e0| 6e 75 49 6e 69 74 28 29 | 20 7b 0d 09 69 6e 74 09 |nuInit()| {..int.|
|000005f0| 69 3b 0d 09 63 68 61 72 | 09 2a 72 6f 75 74 69 6e |i;..char|.*routin|
|00000600| 65 20 3d 20 22 5c 70 4d | 65 6e 75 49 6e 69 74 22 |e = "\pM|enuInit"|
|00000610| 3b 0d 0d 09 69 66 20 28 | 28 6d 65 6e 75 73 5b 61 |;...if (|(menus[a|
|00000620| 70 70 6c 65 4d 65 6e 75 | 5d 20 3d 20 47 65 74 4d |ppleMenu|] = GetM|
|00000630| 65 6e 75 28 61 70 70 6c | 65 49 44 29 29 20 3d 3d |enu(appl|eID)) ==|
|00000640| 20 6e 69 6c 29 20 7b 0d | 09 09 4f 53 41 6c 65 72 | nil) {.|..OSAler|
|00000650| 74 28 72 6f 75 74 69 6e | 65 2c 20 22 5c 70 47 65 |t(routin|e, "\pGe|
|00000660| 74 4d 65 6e 75 20 41 70 | 70 6c 65 20 4d 65 6e 75 |tMenu Ap|ple Menu|
|00000670| 22 2c 20 6e 69 6c 2c 20 | 52 65 73 45 72 72 6f 72 |", nil, |ResError|
|00000680| 28 29 29 3b 0d 09 09 72 | 65 74 75 72 6e 28 74 72 |());...r|eturn(tr|
|00000690| 75 65 29 3b 0d 09 7d 0d | 0d 09 41 64 64 52 65 73 |ue);..}.|..AddRes|
|000006a0| 4d 65 6e 75 28 6d 65 6e | 75 73 5b 61 70 70 6c 65 |Menu(men|us[apple|
|000006b0| 4d 65 6e 75 5d 2c 20 27 | 44 52 56 52 27 29 3b 0d |Menu], '|DRVR');.|
|000006c0| 09 69 66 20 28 28 6d 65 | 6e 75 73 5b 66 69 6c 65 |.if ((me|nus[file|
|000006d0| 4d 65 6e 75 5d 20 3d 20 | 47 65 74 4d 65 6e 75 28 |Menu] = |GetMenu(|
|000006e0| 66 69 6c 65 49 44 29 29 | 20 3d 3d 20 6e 69 6c 29 |fileID))| == nil)|
|000006f0| 20 7b 0d 09 09 4f 53 41 | 6c 65 72 74 28 72 6f 75 | {...OSA|lert(rou|
|00000700| 74 69 6e 65 2c 20 22 5c | 70 47 65 74 4d 65 6e 75 |tine, "\|pGetMenu|
|00000710| 20 46 69 6c 65 20 4d 65 | 6e 75 22 2c 20 6e 69 6c | File Me|nu", nil|
|00000720| 2c 20 52 65 73 45 72 72 | 6f 72 28 29 29 3b 0d 09 |, ResErr|or());..|
|00000730| 09 72 65 74 75 72 6e 28 | 74 72 75 65 29 3b 0d 09 |.return(|true);..|
|00000740| 7d 0d 0d 09 69 66 20 28 | 28 6d 65 6e 75 73 5b 65 |}...if (|(menus[e|
|00000750| 64 69 74 4d 65 6e 75 5d | 20 3d 20 47 65 74 4d 65 |ditMenu]| = GetMe|
|00000760| 6e 75 28 65 64 69 74 49 | 44 29 29 20 3d 3d 20 6e |nu(editI|D)) == n|
|00000770| 69 6c 29 20 7b 0d 09 09 | 4f 53 41 6c 65 72 74 28 |il) {...|OSAlert(|
|00000780| 72 6f 75 74 69 6e 65 2c | 20 22 5c 70 47 65 74 4d |routine,| "\pGetM|
|00000790| 65 6e 75 20 45 64 69 74 | 20 4d 65 6e 75 22 2c 20 |enu Edit| Menu", |
|000007a0| 6e 69 6c 2c 20 52 65 73 | 45 72 72 6f 72 28 29 29 |nil, Res|Error())|
|000007b0| 3b 0d 09 09 72 65 74 75 | 72 6e 28 74 72 75 65 29 |;...retu|rn(true)|
|000007c0| 3b 0d 09 7d 0d 0d 09 69 | 66 20 28 28 6d 65 6e 75 |;..}...i|f ((menu|
|000007d0| 73 5b 6f 70 74 69 6f 6e | 4d 65 6e 75 5d 20 3d 20 |s[option|Menu] = |
|000007e0| 47 65 74 4d 65 6e 75 28 | 6f 70 74 69 6f 6e 49 44 |GetMenu(|optionID|
|000007f0| 29 29 20 3d 3d 20 6e 69 | 6c 29 20 7b 0d 09 09 4f |)) == ni|l) {...O|
|00000800| 53 41 6c 65 72 74 28 72 | 6f 75 74 69 6e 65 2c 20 |SAlert(r|outine, |
|00000810| 22 5c 70 47 65 74 4d 65 | 6e 75 20 4f 70 74 69 6f |"\pGetMe|nu Optio|
|00000820| 6e 20 4d 65 6e 75 22 2c | 20 6e 69 6c 2c 20 52 65 |n Menu",| nil, Re|
|00000830| 73 45 72 72 6f 72 28 29 | 29 3b 0d 09 09 72 65 74 |sError()|);...ret|
|00000840| 75 72 6e 28 74 72 75 65 | 29 3b 0d 09 7d 0d 0d 0d |urn(true|);..}...|
|00000850| 09 43 68 65 63 6b 49 74 | 65 6d 28 6d 65 6e 75 73 |.CheckIt|em(menus|
|00000860| 5b 6f 70 74 69 6f 6e 4d | 65 6e 75 5d 2c 20 70 61 |[optionM|enu], pa|
|00000870| 67 65 49 74 65 6d 2c 20 | 61 75 74 6f 50 61 67 65 |geItem, |autoPage|
|00000880| 29 3b 0d 09 66 6f 72 20 | 28 69 20 3d 20 61 70 70 |);..for |(i = app|
|00000890| 6c 65 4d 65 6e 75 3b 20 | 69 20 3c 20 6d 65 6e 75 |leMenu; |i < menu|
|000008a0| 43 6f 75 6e 74 3b 20 69 | 2b 2b 29 0d 09 09 49 6e |Count; i|++)...In|
|000008b0| 73 65 72 74 4d 65 6e 75 | 28 6d 65 6e 75 73 5b 69 |sertMenu|(menus[i|
|000008c0| 5d 2c 20 30 29 3b 0d 0d | 09 44 44 61 4d 65 6e 75 |], 0);..|.DDaMenu|
|000008d0| 73 28 29 3b 0d 09 44 72 | 61 77 4d 65 6e 75 42 61 |s();..Dr|awMenuBa|
|000008e0| 72 28 29 3b 0d 09 72 65 | 74 75 72 6e 28 66 61 6c |r();..re|turn(fal|
|000008f0| 73 65 29 3b 0d 7d 0d 0d | 2f 2a 0d 20 2a 20 4d 65 |se);.}..|/*. * Me|
|00000900| 6e 75 43 6d 64 20 2d 20 | 68 61 6e 64 6c 65 20 61 |nuCmd - |handle a|
|00000910| 20 6d 65 6e 75 20 70 69 | 63 6b 20 6f 72 20 6b 65 | menu pi|ck or ke|
|00000920| 79 62 6f 61 72 64 20 65 | 71 75 69 76 61 6c 65 6e |yboard e|quivalen|
|00000930| 74 0d 20 2a 2f 0d 4d 65 | 6e 75 43 6d 64 28 72 65 |t. */.Me|nuCmd(re|
|00000940| 73 75 6c 74 29 0d 6c 6f | 6e 67 09 72 65 73 75 6c |sult).lo|ng.resul|
|00000950| 74 3b 0d 7b 0d 09 57 69 | 6e 64 6f 77 50 65 65 6b |t;.{..Wi|ndowPeek|
|00000960| 09 77 70 3b 0d 09 73 68 | 6f 72 74 09 09 74 68 65 |.wp;..sh|ort..the|
|00000970| 49 74 65 6d 20 3d 20 72 | 65 73 75 6c 74 20 26 20 |Item = r|esult & |
|00000980| 30 78 66 66 66 66 3b 0d | 09 73 68 6f 72 74 09 09 |0xffff;.|.short..|
|00000990| 74 68 65 4d 65 6e 75 20 | 3d 20 28 72 65 73 75 6c |theMenu |= (resul|
|000009a0| 74 20 3e 3e 20 31 36 29 | 20 26 20 30 78 66 66 66 |t >> 16)| & 0xfff|
|000009b0| 66 3b 0d 09 63 68 61 72 | 09 09 6e 61 6d 65 5b 32 |f;..char|..name[2|
|000009c0| 35 36 5d 3b 0d 09 4f 53 | 45 72 72 09 09 65 72 72 |56];..OS|Err..err|
|000009d0| 3b 0d 09 63 68 61 72 09 | 09 2a 72 6f 75 74 69 6e |;..char.|.*routin|
|000009e0| 65 20 3d 20 22 5c 70 4d | 65 6e 75 43 6d 64 22 3b |e = "\pM|enuCmd";|
|000009f0| 0d 09 47 72 61 66 50 74 | 72 09 09 73 61 76 65 64 |..GrafPt|r..saved|
|00000a00| 50 6f 72 74 3b 0d 0d 09 | 73 77 69 74 63 68 20 28 |Port;...|switch (|
|00000a10| 74 68 65 4d 65 6e 75 29 | 20 7b 0d 09 63 61 73 65 |theMenu)| {..case|
|00000a20| 20 61 70 70 6c 65 49 44 | 3a 0d 09 09 69 66 20 28 | appleID|:...if (|
|00000a30| 74 68 65 49 74 65 6d 20 | 3d 3d 20 61 62 6f 75 74 |theItem |== about|
|00000a40| 49 74 65 6d 29 0d 09 09 | 09 44 6f 41 62 6f 75 74 |Item)...|.DoAbout|
|00000a50| 42 6f 78 28 29 3b 0d 09 | 09 65 6c 73 65 20 7b 0d |Box();..|.else {.|
|00000a60| 09 09 09 2f 2a 0d 09 09 | 09 20 2a 20 4f 68 20 62 |.../*...|. * Oh b|
|00000a70| 6f 79 2c 20 73 65 74 20 | 75 70 20 66 6f 72 20 61 |oy, set |up for a|
|00000a80| 20 64 65 73 6b 20 61 63 | 63 65 73 73 6f 72 79 2e | desk ac|cessory.|
|00000a90| 0d 09 09 09 20 2a 2f 0d | 09 09 09 47 65 74 49 74 |.... */.|...GetIt|
|00000aa0| 65 6d 28 6d 65 6e 75 73 | 5b 61 70 70 6c 65 4d 65 |em(menus|[appleMe|
|00000ab0| 6e 75 5d 2c 20 74 68 65 | 49 74 65 6d 2c 20 6e 61 |nu], the|Item, na|
|00000ac0| 6d 65 29 3b 0d 09 09 09 | 47 65 74 50 6f 72 74 28 |me);....|GetPort(|
|00000ad0| 26 73 61 76 65 64 50 6f | 72 74 29 3b 0d 09 09 09 |&savedPo|rt);....|
|00000ae0| 69 66 20 28 28 65 72 72 | 20 3d 20 5a 65 72 6f 53 |if ((err| = ZeroS|
|00000af0| 63 72 61 70 28 29 29 20 | 21 3d 20 6e 6f 45 72 72 |crap()) |!= noErr|
|00000b00| 29 20 7b 0d 09 09 09 09 | 4f 53 41 6c 65 72 74 28 |) {.....|OSAlert(|
|00000b10| 72 6f 75 74 69 6e 65 2c | 20 22 5c 70 5a 65 72 6f |routine,| "\pZero|
|00000b20| 53 63 72 61 70 22 2c 20 | 6e 69 6c 2c 20 65 72 72 |Scrap", |nil, err|
|00000b30| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |);.....b|reak;...|
|00000b40| 09 7d 0d 0d 09 09 09 69 | 66 20 28 28 65 72 72 20 |.}.....i|f ((err |
|00000b50| 3d 20 54 45 54 6f 53 63 | 72 61 70 28 29 29 20 21 |= TEToSc|rap()) !|
|00000b60| 3d 20 6e 6f 45 72 72 29 | 20 7b 0d 09 09 09 09 4f |= noErr)| {.....O|
|00000b70| 53 41 6c 65 72 74 28 72 | 6f 75 74 69 6e 65 2c 20 |SAlert(r|outine, |
|00000b80| 22 5c 70 54 45 54 6f 53 | 63 72 61 70 22 2c 20 6e |"\pTEToS|crap", n|
|00000b90| 69 6c 2c 20 65 72 72 29 | 3b 0d 09 09 09 09 62 72 |il, err)|;.....br|
|00000ba0| 65 61 6b 3b 0d 09 09 09 | 7d 0d 0d 09 09 09 28 76 |eak;....|}.....(v|
|00000bb0| 6f 69 64 29 20 4f 70 65 | 6e 44 65 73 6b 41 63 63 |oid) Ope|nDeskAcc|
|00000bc0| 28 6e 61 6d 65 29 3b 0d | 09 09 09 53 65 74 50 6f |(name);.|...SetPo|
|00000bd0| 72 74 28 73 61 76 65 64 | 50 6f 72 74 29 3b 0d 09 |rt(saved|Port);..|
|00000be0| 09 09 69 66 20 28 46 72 | 6f 6e 74 57 69 6e 64 6f |..if (Fr|ontWindo|
|00000bf0| 77 28 29 20 21 3d 20 6e | 69 6c 29 20 7b 0d 09 09 |w() != n|il) {...|
|00000c00| 09 09 45 44 61 4d 65 6e | 75 73 28 29 3b 0d 09 09 |..EDaMen|us();...|
|00000c10| 09 7d 0d 09 09 7d 0d 09 | 09 62 72 65 61 6b 3b 0d |.}...}..|.break;.|
|00000c20| 0d 09 63 61 73 65 20 66 | 69 6c 65 49 44 3a 0d 09 |..case f|ileID:..|
|00000c30| 09 73 77 69 74 63 68 20 | 28 74 68 65 49 74 65 6d |.switch |(theItem|
|00000c40| 29 20 7b 0d 09 09 63 61 | 73 65 20 63 72 65 61 74 |) {...ca|se creat|
|00000c50| 65 49 74 65 6d 3a 0d 09 | 09 09 41 72 43 72 65 61 |eItem:..|..ArCrea|
|00000c60| 74 65 28 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |te();...|.break;.|
|00000c70| 0d 09 09 63 61 73 65 20 | 65 78 74 72 61 63 74 49 |...case |extractI|
|00000c80| 74 65 6d 3a 0d 09 09 09 | 45 78 74 72 61 63 74 28 |tem:....|Extract(|
|00000c90| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 0d 09 09 |);....br|eak;....|
|00000ca0| 63 61 73 65 20 6c 69 73 | 74 49 74 65 6d 3a 0d 09 |case lis|tItem:..|
|00000cb0| 09 09 4c 69 73 74 28 29 | 3b 0d 09 09 09 62 72 65 |..List()|;....bre|
|00000cc0| 61 6b 3b 0d 0d 09 09 63 | 61 73 65 20 63 6c 6f 73 |ak;....c|ase clos|
|00000cd0| 65 49 74 65 6d 3a 0d 09 | 09 09 2f 2a 0d 09 09 09 |eItem:..|../*....|
|00000ce0| 20 2a 20 49 66 20 74 68 | 65 20 66 72 6f 6e 74 20 | * If th|e front |
|00000cf0| 77 69 6e 64 6f 77 20 62 | 65 6c 6f 6e 67 73 20 74 |window b|elongs t|
|00000d00| 6f 20 61 20 44 65 73 6b | 20 41 63 63 2c 20 63 6c |o a Desk| Acc, cl|
|00000d10| 6f 73 65 20 69 74 21 0d | 09 09 09 20 2a 2f 0d 09 |ose it!.|... */..|
|00000d20| 09 09 69 66 20 28 28 77 | 70 20 3d 20 28 57 69 6e |..if ((w|p = (Win|
|00000d30| 64 6f 77 50 65 65 6b 29 | 20 46 72 6f 6e 74 57 69 |dowPeek)| FrontWi|
|00000d40| 6e 64 6f 77 28 29 29 20 | 3d 3d 20 6e 69 6c 29 0d |ndow()) |== nil).|
|00000d50| 09 09 09 09 62 72 65 61 | 6b 3b 0d 0d 09 09 09 69 |....brea|k;.....i|
|00000d60| 66 20 28 77 70 2d 3e 77 | 69 6e 64 6f 77 4b 69 6e |f (wp->w|indowKin|
|00000d70| 64 20 3c 20 30 29 20 7b | 0d 09 09 09 09 43 6c 6f |d < 0) {|.....Clo|
|00000d80| 73 65 44 65 73 6b 41 63 | 63 28 77 70 2d 3e 77 69 |seDeskAc|c(wp->wi|
|00000d90| 6e 64 6f 77 4b 69 6e 64 | 29 3b 0d 09 09 09 09 44 |ndowKind|);.....D|
|00000da0| 44 61 4d 65 6e 75 73 28 | 29 3b 0d 09 09 09 7d 0d |DaMenus(|);....}.|
|00000db0| 09 09 09 62 72 65 61 6b | 3b 0d 0d 09 09 63 61 73 |...break|;....cas|
|00000dc0| 65 20 70 67 73 65 74 49 | 74 65 6d 3a 0d 09 09 09 |e pgsetI|tem:....|
|00000dd0| 69 66 20 28 21 50 72 53 | 65 74 75 70 28 29 29 0d |if (!PrS|etup()).|
|00000de0| 09 09 09 09 28 76 6f 69 | 64 29 20 50 72 53 74 6c |....(voi|d) PrStl|
|00000df0| 44 69 61 6c 6f 67 28 70 | 72 52 65 63 48 64 6c 29 |Dialog(p|rRecHdl)|
|00000e00| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 0d 09 09 63 |;....bre|ak;....c|
|00000e10| 61 73 65 20 71 75 69 74 | 49 74 65 6d 3a 0d 09 09 |ase quit|Item:...|
|00000e20| 09 64 6f 6e 65 46 6c 61 | 67 20 3d 20 74 72 75 65 |.doneFla|g = true|
|00000e30| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |;....bre|ak;...}.|
|00000e40| 09 09 62 72 65 61 6b 3b | 0d 0d 09 63 61 73 65 20 |..break;|...case |
|00000e50| 65 64 69 74 49 44 3a 0d | 09 09 2f 2a 0d 09 09 20 |editID:.|../*... |
|00000e60| 2a 20 53 65 6e 64 20 74 | 6f 20 61 20 44 65 73 6b |* Send t|o a Desk|
|00000e70| 20 41 63 63 2e 0d 09 09 | 20 2a 2f 0d 09 09 28 76 | Acc....| */...(v|
|00000e80| 6f 69 64 29 20 53 79 73 | 74 65 6d 45 64 69 74 28 |oid) Sys|temEdit(|
|00000e90| 74 68 65 49 74 65 6d 20 | 2d 20 31 29 3b 0d 09 09 |theItem |- 1);...|
|00000ea0| 62 72 65 61 6b 3b 0d 0d | 09 63 61 73 65 20 6f 70 |break;..|.case op|
|00000eb0| 74 69 6f 6e 49 44 3a 0d | 09 09 73 77 69 74 63 68 |tionID:.|..switch|
|00000ec0| 20 28 74 68 65 49 74 65 | 6d 29 20 7b 0d 09 09 63 | (theIte|m) {...c|
|00000ed0| 61 73 65 20 63 6f 6e 76 | 65 72 74 49 74 65 6d 3a |ase conv|ertItem:|
|00000ee0| 0d 09 09 09 63 76 74 4e | 6c 20 5e 3d 20 74 72 75 |....cvtN|l ^= tru|
|00000ef0| 65 3b 0d 09 09 09 43 68 | 65 63 6b 49 74 65 6d 28 |e;....Ch|eckItem(|
|00000f00| 6d 65 6e 75 73 5b 6f 70 | 74 69 6f 6e 4d 65 6e 75 |menus[op|tionMenu|
|00000f10| 5d 2c 20 63 6f 6e 76 65 | 72 74 49 74 65 6d 2c 20 |], conve|rtItem, |
|00000f20| 63 76 74 4e 6c 29 3b 0d | 09 09 09 62 72 65 61 6b |cvtNl);.|...break|
|00000f30| 3b 0d 0d 09 09 63 61 73 | 65 20 6f 6c 64 41 72 63 |;....cas|e oldArc|
|00000f40| 68 49 74 65 6d 3a 0d 09 | 09 09 6f 6c 64 41 72 63 |hItem:..|..oldArc|
|00000f50| 68 20 5e 3d 20 74 72 75 | 65 3b 0d 09 09 09 43 68 |h ^= tru|e;....Ch|
|00000f60| 65 63 6b 49 74 65 6d 28 | 6d 65 6e 75 73 5b 6f 70 |eckItem(|menus[op|
|00000f70| 74 69 6f 6e 4d 65 6e 75 | 5d 2c 20 6f 6c 64 41 72 |tionMenu|], oldAr|
|00000f80| 63 68 49 74 65 6d 2c 20 | 6f 6c 64 41 72 63 68 29 |chItem, |oldArch)|
|00000f90| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 0d 09 09 63 |;....bre|ak;....c|
|00000fa0| 61 73 65 20 62 6c 6f 63 | 6b 49 74 65 6d 3a 0d 09 |ase bloc|kItem:..|
|00000fb0| 09 09 44 6f 42 6c 6f 63 | 6b 53 69 7a 65 28 29 3b |..DoBloc|kSize();|
|00000fc0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 0d 09 09 63 61 |....brea|k;....ca|
|00000fd0| 73 65 20 70 61 67 65 49 | 74 65 6d 3a 0d 09 09 09 |se pageI|tem:....|
|00000fe0| 61 75 74 6f 50 61 67 65 | 20 5e 3d 20 74 72 75 65 |autoPage| ^= true|
|00000ff0| 3b 0d 09 09 09 43 68 65 | 63 6b 49 74 65 6d 28 6d |;....Che|ckItem(m|
|00001000| 65 6e 75 73 5b 6f 70 74 | 69 6f 6e 4d 65 6e 75 5d |enus[opt|ionMenu]|
|00001010| 2c 20 70 61 67 65 49 74 | 65 6d 2c 20 61 75 74 6f |, pageIt|em, auto|
|00001020| 50 61 67 65 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |Page);..|..break;|
|00001030| 0d 0d 09 09 63 61 73 65 | 20 70 72 69 6e 74 49 74 |....case| printIt|
|00001040| 65 6d 3a 0d 09 09 09 64 | 6f 50 72 69 6e 74 20 5e |em:....d|oPrint ^|
|00001050| 3d 20 74 72 75 65 3b 0d | 09 09 09 43 68 65 63 6b |= true;.|...Check|
|00001060| 49 74 65 6d 28 6d 65 6e | 75 73 5b 6f 70 74 69 6f |Item(men|us[optio|
|00001070| 6e 4d 65 6e 75 5d 2c 20 | 70 72 69 6e 74 49 74 65 |nMenu], |printIte|
|00001080| 6d 2c 20 64 6f 50 72 69 | 6e 74 29 3b 0d 09 09 09 |m, doPri|nt);....|
|00001090| 62 72 65 61 6b 3b 0d 0d | 09 09 63 61 73 65 20 74 |break;..|..case t|
|000010a0| 79 70 65 49 74 65 6d 3a | 0d 09 09 09 44 6f 43 72 |ypeItem:|....DoCr|
|000010b0| 65 61 74 6f 72 54 79 70 | 65 28 29 3b 0d 09 09 09 |eatorTyp|e();....|
|000010c0| 62 72 65 61 6b 3b 0d 09 | 09 7d 0d 09 09 62 72 65 |break;..|.}...bre|
|000010d0| 61 6b 3b 0d 09 7d 0d 0d | 09 48 69 6c 69 74 65 4d |ak;..}..|.HiliteM|
|000010e0| 65 6e 75 28 30 29 3b 0d | 09 46 6c 75 73 68 45 76 |enu(0);.|.FlushEv|
|000010f0| 65 6e 74 73 28 65 76 65 | 72 79 45 76 65 6e 74 2c |ents(eve|ryEvent,|
|00001100| 20 30 29 3b 0d 7d 0d 0d | 2f 2a 0d 20 2a 20 44 44 | 0);.}..|/*. * DD|
|00001110| 61 4d 65 6e 75 73 20 2d | 20 64 69 73 61 62 6c 65 |aMenus -| disable|
|00001120| 20 44 65 73 6b 20 41 63 | 63 20 73 70 65 63 69 66 | Desk Ac|c specif|
|00001130| 69 63 20 6d 65 6e 75 20 | 61 6e 64 20 6d 65 6e 75 |ic menu |and menu|
|00001140| 20 69 74 65 6d 0d 20 2a | 2f 0d 44 44 61 4d 65 6e | item. *|/.DDaMen|
|00001150| 75 73 28 29 20 7b 0d 09 | 44 69 73 61 62 6c 65 49 |us() {..|DisableI|
|00001160| 74 65 6d 28 6d 65 6e 75 | 73 5b 65 64 69 74 4d 65 |tem(menu|s[editMe|
|00001170| 6e 75 5d 2c 20 30 29 3b | 0d 09 44 69 73 61 62 6c |nu], 0);|..Disabl|
|00001180| 65 49 74 65 6d 28 6d 65 | 6e 75 73 5b 66 69 6c 65 |eItem(me|nus[file|
|00001190| 4d 65 6e 75 5d 2c 20 63 | 6c 6f 73 65 49 74 65 6d |Menu], c|loseItem|
|000011a0| 29 3b 0d 09 44 72 61 77 | 4d 65 6e 75 42 61 72 28 |);..Draw|MenuBar(|
|000011b0| 29 3b 0d 09 6d 65 6e 75 | 73 4f 4b 20 3d 20 74 72 |);..menu|sOK = tr|
|000011c0| 75 65 3b 0d 7d 0d 0d 2f | 2a 0d 20 2a 20 45 44 61 |ue;.}../|*. * EDa|
|000011d0| 4d 65 6e 75 73 20 2d 20 | 65 6e 61 62 6c 65 20 44 |Menus - |enable D|
|000011e0| 65 73 6b 20 41 63 63 20 | 73 70 65 63 69 66 69 63 |esk Acc |specific|
|000011f0| 20 6d 65 6e 75 20 61 6e | 64 20 6d 65 6e 75 20 69 | menu an|d menu i|
|00001200| 74 65 6d 0d 20 2a 2f 0d | 45 44 61 4d 65 6e 75 73 |tem. */.|EDaMenus|
|00001210| 28 29 20 7b 0d 09 45 6e | 61 62 6c 65 49 74 65 6d |() {..En|ableItem|
|00001220| 28 6d 65 6e 75 73 5b 65 | 64 69 74 4d 65 6e 75 5d |(menus[e|ditMenu]|
|00001230| 2c 20 30 29 3b 0d 09 45 | 6e 61 62 6c 65 49 74 65 |, 0);..E|nableIte|
|00001240| 6d 28 6d 65 6e 75 73 5b | 66 69 6c 65 4d 65 6e 75 |m(menus[|fileMenu|
|00001250| 5d 2c 20 63 6c 6f 73 65 | 49 74 65 6d 29 3b 0d 09 |], close|Item);..|
|00001260| 44 72 61 77 4d 65 6e 75 | 42 61 72 28 29 3b 0d 09 |DrawMenu|Bar();..|
|00001270| 6d 65 6e 75 73 4f 4b 20 | 3d 20 66 61 6c 73 65 3b |menusOK |= false;|
|00001280| 0d 7d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001310| 54 61 72 0d 20 2a 0d 20 | 2a 20 57 72 69 74 74 65 |Tar. *. |* Writte|
|00001320| 6e 20 62 79 20 43 72 61 | 69 67 20 52 75 66 66 2e |n by Cra|ig Ruff.|
|00001330| 06 6d 65 6e 75 2e 63 2e | 02 00 00 00 00 00 00 00 |.menu.c.|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 10 39 |........|.......9|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 a0 cb 8f ab 00 00 | 00 00 00 00 01 7e 0d 20 |........|.....~. |
|00001380| 2a 20 52 65 73 6f 75 72 | 63 65 20 49 44 73 20 66 |* Resour|ce IDs f|
|00001390| 6f 72 20 6d 65 6e 75 73 | 0d 20 2a 2f 0d 23 64 65 |or menus|. */.#de|
|000013a0| 66 69 6e 65 20 61 70 70 | 6c 65 49 44 09 09 31 32 |fine app|leID..12|
|000013b0| 38 0d 23 64 65 66 69 6e | 65 20 66 69 6c 65 49 44 |8.#defin|e fileID|
|000013c0| 09 09 31 32 39 0d 23 64 | 65 66 69 6e 65 20 65 64 |..129.#d|efine ed|
|000013d0| 69 74 49 44 09 09 31 33 | 30 0d 23 64 65 66 69 6e |itID..13|0.#defin|
|000013e0| 65 20 6f 70 74 69 6f 6e | 49 44 09 31 33 31 0d 0d |e option|ID.131..|
|000013f0| 2f 2a 0d 20 2a 20 49 6e | 64 65 78 20 66 6f 72 20 |/*. * In|dex for |
|00001400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2a 20 4d |...H..Mo|naco.* M|
|00001410| 65 6e 75 20 68 61 6e 64 | 6c 69 6e 67 20 72 6f 75 |enu hand|ling rou|
|00001420| 74 69 6e 65 73 2e 00 06 | 00 08 00 3c 00 24 01 53 |tines...|...<.$.S|
|00001430| 01 bd 00 3c 00 24 01 53 | 01 bd a0 a4 66 48 00 00 |...<.$.S|....fH..|
|00001440| 06 12 00 00 06 12 00 00 | 05 04 01 00 00 00 01 00 |........|........|
|00001450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1a 66 0e |...L...L|...2..f.|
|00001460| 05 e2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001470| 00 0a 03 ed ff ff 00 00 | 00 00 00 1b 9f 6c 00 00 |........|.....l..|
+--------+-------------------------+-------------------------+--------+--------+