home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / menustuf.sit / FindMenuItem.p.bin < prev    next >
MacBinary  |  1990-04-16  |  2.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext 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 Text File (text/txt) fallback Supported
100% file MacBinary, Sat Oct 29 11:29:38 1988, modified Fri May 26 09:32:38 1989, creator 'MPS ', type ASCII, 1532 bytes "FindMenuItem.p" , at 0x67c 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 46 69 6e 64 4d 65 | 6e 75 49 74 65 6d 2e 70 |..FindMe|nuItem.p|
|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 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 05 fc 00 | 00 01 7e 9f 8f 94 62 a0 |........|..~...b.|
|00000060| a3 02 76 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..v.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 50 72 6f 67 72 61 6d 20 | 46 69 6e 64 4d 65 6e 75 |Program |FindMenu|
|00000090| 49 74 65 6d 3b 0d 7b 0d | 09 54 68 69 73 20 70 72 |Item;.{.|.This pr|
|000000a0| 6f 67 72 61 6d 20 69 73 | 20 61 6e 20 4d 50 57 20 |ogram is| an MPW |
|000000b0| 74 6f 6f 6c 20 77 68 69 | 63 68 20 72 65 74 75 72 |tool whi|ch retur|
|000000c0| 6e 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ns the n|umber of|
|000000d0| 20 61 20 6d 65 6e 75 20 | 69 74 65 6d 0d 09 6d 61 | a menu |item..ma|
|000000e0| 74 63 68 69 6e 67 20 74 | 68 65 20 73 70 65 63 69 |tching t|he speci|
|000000f0| 66 69 65 64 20 74 65 78 | 74 2e 20 43 61 6c 6c 20 |fied tex|t. Call |
|00000100| 69 74 20 66 72 6f 6d 20 | 74 68 65 20 4d 50 57 20 |it from |the MPW |
|00000110| 53 68 65 6c 6c 20 61 73 | 20 66 6f 6c 6c 6f 77 73 |Shell as| follows|
|00000120| 3a 0d 0d 09 09 46 69 6e | 64 4d 65 6e 75 49 74 65 |:....Fin|dMenuIte|
|00000130| 6d 20 6d 65 6e 75 4e 61 | 6d 65 20 69 74 65 6d 54 |m menuNa|me itemT|
|00000140| 65 78 74 0d 0d 09 77 68 | 65 72 65 20 6d 65 6e 75 |ext...wh|ere menu|
|00000150| 4e 61 6d 65 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |Name is |the name|
|00000160| 20 6f 66 20 74 68 65 20 | 6d 65 6e 75 20 74 6f 20 | of the |menu to |
|00000170| 62 65 20 73 65 61 72 63 | 68 65 64 2c 20 61 6e 64 |be searc|hed, and|
|00000180| 20 69 74 65 6d 54 65 78 | 74 0d 09 69 73 20 74 68 | itemTex|t..is th|
|00000190| 65 20 74 65 78 74 20 6f | 66 20 74 68 65 20 69 74 |e text o|f the it|
|000001a0| 65 6d 20 74 6f 20 73 65 | 61 72 63 68 20 66 6f 72 |em to se|arch for|
|000001b0| 2e 20 54 68 65 20 74 6f | 6f 6c 20 77 69 6c 6c 20 |. The to|ol will |
|000001c0| 77 72 69 74 65 20 74 68 | 65 20 64 65 63 69 6d 61 |write th|e decima|
|000001d0| 6c 0d 09 69 74 65 6d 20 | 6e 75 6d 62 65 72 20 74 |l..item |number t|
|000001e0| 6f 20 69 74 73 20 73 74 | 61 6e 64 61 72 64 20 6f |o its st|andard o|
|000001f0| 75 74 70 75 74 2c 20 6f | 72 20 7a 65 72 6f 20 69 |utput, o|r zero i|
|00000200| 66 20 74 68 65 20 74 65 | 78 74 20 77 61 73 20 6e |f the te|xt was n|
|00000210| 6f 74 20 66 6f 75 6e 64 | 2e 0d 0d 09 57 72 69 74 |ot found|....Writ|
|00000220| 74 65 6e 20 62 79 20 4c | 44 4f 20 31 39 38 39 20 |ten by L|DO 1989 |
|00000230| 4d 61 79 20 32 36 2e 0d | 09 4d 6f 64 69 66 69 65 |May 26..|.Modifie|
|00000240| 64 20 31 39 38 39 20 4a | 61 6e 75 61 72 79 20 34 |d 1989 J|anuary 4|
|00000250| 20 74 6f 20 69 6e 69 74 | 69 61 6c 69 73 65 20 51 | to init|ialise Q|
|00000260| 75 69 63 6b 44 72 61 77 | 20 28 6a 75 73 74 20 69 |uickDraw| (just i|
|00000270| 6e 20 63 61 73 65 29 20 | 61 6e 64 0d 09 6d 6f 76 |n case) |and..mov|
|00000280| 65 20 75 73 65 66 75 6c | 20 73 74 75 66 66 20 74 |e useful| stuff t|
|00000290| 6f 20 4d 65 6e 75 53 74 | 75 66 66 43 6f 6d 6d 6f |o MenuSt|uffCommo|
|000002a0| 6e 20 66 6f 72 20 75 73 | 65 20 62 79 20 74 68 65 |n for us|e by the|
|000002b0| 20 6f 74 68 65 72 20 74 | 6f 6f 6c 73 20 69 6e 20 | other t|ools in |
|000002c0| 74 68 69 73 20 73 65 74 | 2e 0d 7d 0d 0d 09 55 73 |this set|..}...Us|
|000002d0| 65 73 0d 09 09 4d 65 6d | 54 79 70 65 73 2c 0d 09 |es...Mem|Types,..|
|000002e0| 09 51 75 69 63 6b 44 72 | 61 77 2c 0d 09 09 4f 53 |.QuickDr|aw,...OS|
|000002f0| 49 6e 74 66 2c 0d 09 09 | 54 6f 6f 6c 49 6e 74 66 |Intf,...|ToolIntf|
|00000300| 2c 0d 09 09 50 61 63 6b | 49 6e 74 66 2c 0d 09 09 |,...Pack|Intf,...|
|00000310| 49 6e 74 45 6e 76 2c 0d | 09 09 4d 65 6e 75 53 74 |IntEnv,.|..MenuSt|
|00000320| 75 66 66 43 6f 6d 6d 6f | 6e 3b 0d 0d 09 56 61 72 |uffCommo|n;...Var|
|00000330| 0d 09 09 54 68 65 4d 65 | 6e 75 20 3a 20 4d 65 6e |...TheMe|nu : Men|
|00000340| 75 48 61 6e 64 6c 65 3b | 0d 09 09 54 68 69 73 49 |uHandle;|...ThisI|
|00000350| 74 65 6d 2c 20 4e 72 49 | 74 65 6d 73 20 3a 20 49 |tem, NrI|tems : I|
|00000360| 6e 74 65 67 65 72 3b 0d | 09 09 54 68 69 73 49 74 |nteger;.|..ThisIt|
|00000370| 65 6d 54 65 78 74 20 3a | 20 53 74 72 32 35 35 3b |emText :| Str255;|
|00000380| 0d 0d 20 20 42 65 67 69 | 6e 0d 09 49 6e 69 74 47 |.. Begi|n..InitG|
|00000390| 72 61 66 28 40 54 68 65 | 50 6f 72 74 29 3b 0d 09 |raf(@The|Port);..|
|000003a0| 49 66 20 41 72 67 43 20 | 3e 20 32 20 74 68 65 6e |If ArgC |> 2 then|
|000003b0| 0d 09 20 20 42 65 67 69 | 6e 0d 09 09 54 68 65 4d |.. Begi|n...TheM|
|000003c0| 65 6e 75 20 3a 3d 20 46 | 69 6e 64 4d 65 6e 75 28 |enu := F|indMenu(|
|000003d0| 41 72 67 56 5e 5b 31 5d | 5e 29 3b 0d 09 09 49 66 |ArgV^[1]|^);...If|
|000003e0| 20 54 68 65 4d 65 6e 75 | 20 3c 3e 20 4e 69 6c 20 | TheMenu| <> Nil |
|000003f0| 74 68 65 6e 0d 09 09 20 | 20 42 65 67 69 6e 0d 09 |then... | Begin..|
|00000400| 09 09 4e 72 49 74 65 6d | 73 20 3a 3d 20 43 6f 75 |..NrItem|s := Cou|
|00000410| 6e 74 4d 49 74 65 6d 73 | 28 54 68 65 4d 65 6e 75 |ntMItems|(TheMenu|
|00000420| 29 3b 0d 09 09 09 54 68 | 69 73 49 74 65 6d 20 3a |);....Th|isItem :|
|00000430| 3d 20 30 3b 0d 09 09 09 | 52 65 70 65 61 74 20 7b |= 0;....|Repeat {|
|00000440| 75 6e 74 69 6c 20 6c 65 | 66 74 7d 0d 09 09 09 09 |until le|ft}.....|
|00000450| 49 66 20 54 68 69 73 49 | 74 65 6d 20 3d 20 4e 72 |If ThisI|tem = Nr|
|00000460| 49 74 65 6d 73 20 74 68 | 65 6e 0d 09 09 09 09 20 |Items th|en..... |
|00000470| 20 42 65 67 69 6e 0d 09 | 09 09 09 09 54 68 69 73 | Begin..|....This|
|00000480| 49 74 65 6d 20 3a 3d 20 | 30 3b 20 7b 20 6e 6f 74 |Item := |0; { not|
|00000490| 20 66 6f 75 6e 64 20 7d | 0d 09 09 09 09 09 4c 65 | found }|......Le|
|000004a0| 61 76 65 0d 09 09 09 09 | 20 20 45 6e 64 20 7b 49 |ave.....| End {I|
|000004b0| 66 7d 3b 0d 09 09 09 09 | 54 68 69 73 49 74 65 6d |f};.....|ThisItem|
|000004c0| 20 3a 3d 20 54 68 69 73 | 49 74 65 6d 20 2b 20 31 | := This|Item + 1|
|000004d0| 3b 0d 09 09 09 09 47 65 | 74 49 74 65 6d 28 54 68 |;.....Ge|tItem(Th|
|000004e0| 65 4d 65 6e 75 2c 20 54 | 68 69 73 49 74 65 6d 2c |eMenu, T|hisItem,|
|000004f0| 20 54 68 69 73 49 74 65 | 6d 54 65 78 74 29 3b 0d | ThisIte|mText);.|
|00000500| 09 09 09 09 49 66 20 54 | 68 69 73 49 74 65 6d 54 |....If T|hisItemT|
|00000510| 65 78 74 20 3d 20 41 72 | 67 56 5e 5b 32 5d 5e 20 |ext = Ar|gV^[2]^ |
|00000520| 74 68 65 6e 0d 09 09 09 | 09 09 4c 65 61 76 65 20 |then....|..Leave |
|00000530| 7b 20 66 6f 75 6e 64 20 | 7d 0d 09 09 09 55 6e 74 |{ found |}....Unt|
|00000540| 69 6c 0d 09 09 09 09 46 | 61 6c 73 65 3b 0d 09 09 |il.....F|alse;...|
|00000550| 09 57 72 69 74 65 6c 6e | 28 4f 75 74 70 75 74 2c |.Writeln|(Output,|
|00000560| 20 54 68 69 73 49 74 65 | 6d 20 3a 20 31 29 3b 0d | ThisIte|m : 1);.|
|00000570| 09 09 09 49 45 45 78 69 | 74 28 30 29 0d 09 09 20 |...IEExi|t(0)... |
|00000580| 20 45 6e 64 0d 09 09 65 | 6c 73 65 0d 09 09 20 20 | End...e|lse... |
|00000590| 42 65 67 69 6e 0d 09 09 | 09 57 72 69 74 65 6c 6e |Begin...|.Writeln|
|000005a0| 28 44 69 61 67 6e 6f 73 | 74 69 63 2c 20 27 23 23 |(Diagnos|tic, '##|
|000005b0| 23 20 27 2c 20 41 72 67 | 56 5e 5b 30 5d 5e 2c 20 |# ', Arg|V^[0]^, |
|000005c0| 27 20 2d 20 6d 65 6e 75 | 20 22 27 2c 20 41 72 67 |' - menu| "', Arg|
|000005d0| 56 5e 5b 31 5d 5e 2c 20 | 27 22 20 6e 6f 74 20 66 |V^[1]^, |'" not f|
|000005e0| 6f 75 6e 64 27 29 3b 0d | 09 09 09 49 45 45 78 69 |ound');.|...IEExi|
|000005f0| 74 28 32 29 0d 09 09 20 | 20 45 6e 64 0d 09 20 20 |t(2)... | End.. |
|00000600| 45 6e 64 0d 09 65 6c 73 | 65 0d 09 20 20 42 65 67 |End..els|e.. Beg|
|00000610| 69 6e 0d 09 09 57 72 69 | 74 65 6c 6e 28 44 69 61 |in...Wri|teln(Dia|
|00000620| 67 6e 6f 73 74 69 63 2c | 20 27 23 23 23 20 27 2c |gnostic,| '### ',|
|00000630| 20 41 72 67 56 5e 5b 30 | 5d 5e 2c 20 27 20 2d 20 | ArgV^[0|]^, ' - |
|00000640| 6e 6f 74 20 65 6e 6f 75 | 67 68 20 61 72 67 75 6d |not enou|gh argum|
|00000650| 65 6e 74 73 27 29 3b 0d | 09 09 49 45 45 78 69 74 |ents');.|..IEExit|
|00000660| 28 31 29 0d 09 20 20 45 | 6e 64 0d 20 20 45 6e 64 |(1).. E|nd. End|
|00000670| 20 7b 53 65 74 4d 65 6e | 75 7d 2e 0d 00 00 00 00 | {SetMen|u}......|
|00000680| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000690| 0d 0d 20 20 20 20 55 73 | 65 73 0d 09 4d 65 6d 54 |.. Us|es..MemT|
|000006a0| 79 70 65 73 2c 0d 09 51 | 75 69 63 6b 44 72 61 77 |ypes,..Q|uickDraw|
|000006b0| 0e 46 69 6e 64 4d 65 6e | 75 49 74 65 6d 2e 70 49 |.FindMen|uItem.pI|
|000006c0| 02 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 a2 46 60 85 00 00 | 00 00 00 00 01 7e 64 20 |...F`...|.....~d |
|00000700| 7b 53 65 74 4d 65 6e 75 | 7d 2e 0d 6f 78 28 4d 79 |{SetMenu|}..ox(My|
|00000710| 53 74 6f 72 61 67 65 29 | 3b 0d 09 09 53 65 74 53 |Storage)|;...SetS|
|00000720| 65 6c 65 63 74 28 4d 79 | 53 74 6f 72 61 67 65 2c |elect(My|Storage,|
|00000730| 20 30 29 3b 0d 09 09 4d | 79 57 69 6e 64 6f 77 5e | 0);...M|yWindow^|
|00000740| 2e 57 69 6e 64 6f 77 4b | 69 6e 64 20 3a 3d 20 4d |.WindowK|ind := M|
|00000750| 79 44 43 45 2e 44 43 74 | 6c 52 65 66 4e 75 6d 3b |yDCE.DCt|lRefNum;|
|00000760| 0d 09 09 53 68 6f 77 57 | 69 6e 64 6f 77 28 57 69 |...ShowW|indow(Wi|
|00000770| 6e 64 6f 77 50 74 72 28 | 4d 79 57 69 6e 64 6f 77 |ndowPtr(|MyWindow|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 49 6e 74 |...H..Mo|naco.Int|
|00000790| 66 2c 0d 09 54 6f 6f 6c | 49 6e 74 66 2c 0d 09 50 |f,..Tool|Intf,..P|
|000007a0| 61 63 6b 49 6e 74 00 06 | 00 04 00 6b 00 0c 01 d5 |ackInt..|...k....|
|000007b0| 02 50 00 6b 00 0c 01 d5 | 02 50 a0 a3 02 76 00 00 |.P.k....|.P...v..|
|000007c0| 04 ce 00 00 04 ce 00 00 | 03 31 01 00 00 00 01 00 |........|.1......|
|000007d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 2f 6a 74 |...L...L|...2./jt|
|000007e0| 03 ae 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000007f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 30 a3 84 00 00 |........|...0....|
+--------+-------------------------+-------------------------+--------+--------+