home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 4.4 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
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
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Sat Feb 18 13:25:49 1989, modified Sat Feb 18 14:56:22 1989, creator Think C, type ASCII, 4262 bytes "TinyEdit.c"
| 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 69 6e 79 45 64 | 69 74 2e 63 00 00 00 00 |..TinyEd|it.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 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 10 a6 00 | 00 00 00 a0 23 65 ad a0 |........|....#e..|
|00000060| 23 7a e6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |#z......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 54 69 6e 79 | 45 64 69 74 20 2d 20 4d |/*..Tiny|Edit - M|
|00000090| 69 6e 69 6d 61 6c 20 54 | 72 61 6e 73 45 64 69 74 |inimal T|ransEdit|
|000000a0| 20 44 65 6d 6f 6e 73 74 | 72 61 74 69 6f 6e 2e 0d | Demonst|ration..|
|000000b0| 0d 09 54 68 65 20 70 72 | 6f 6a 65 63 74 20 73 68 |..The pr|oject sh|
|000000c0| 6f 75 6c 64 20 69 6e 63 | 6c 75 64 65 20 54 69 6e |ould inc|lude Tin|
|000000d0| 79 45 64 69 74 2e 63 20 | 28 74 68 69 73 20 66 69 |yEdit.c |(this fi|
|000000e0| 6c 65 29 2c 20 54 72 61 | 6e 73 45 64 69 74 2e 63 |le), Tra|nsEdit.c|
|000000f0| 20 28 6f 72 0d 09 61 20 | 70 72 6f 6a 65 63 74 20 | (or..a |project |
|00000100| 6d 61 64 65 20 66 72 6f | 6d 20 54 72 61 6e 73 45 |made fro|m TransE|
|00000110| 64 69 74 2e 63 29 2c 20 | 46 61 6b 65 41 6c 65 72 |dit.c), |FakeAler|
|00000120| 74 2e 63 2c 20 54 72 61 | 6e 73 53 6b 65 6c 2e 63 |t.c, Tra|nsSkel.c|
|00000130| 20 28 6f 72 20 61 0d 09 | 70 72 6f 6a 65 63 74 20 | (or a..|project |
|00000140| 6d 61 64 65 20 66 72 6f | 6d 20 54 72 61 6e 73 53 |made fro|m TransS|
|00000150| 6b 65 6c 2e 63 29 20 61 | 6e 64 20 4d 61 63 54 72 |kel.c) a|nd MacTr|
|00000160| 61 70 73 2e 0d 0d 09 30 | 38 20 4e 6f 76 20 38 36 |aps....0|8 Nov 86|
|00000170| 20 50 61 75 6c 20 44 75 | 42 6f 69 73 0d 09 30 32 | Paul Du|Bois..02|
|00000180| 20 46 65 62 20 38 39 20 | 4d 6f 64 69 66 69 65 64 | Feb 89 |Modified|
|00000190| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 54 72 | to work| with Tr|
|000001a0| 61 6e 73 53 6b 65 6c 20 | 32 2e 30 20 61 6e 64 20 |ansSkel |2.0 and |
|000001b0| 54 72 61 6e 73 45 64 69 | 74 20 32 2e 30 2e 0d 09 |TransEdi|t 2.0...|
|000001c0| 09 09 20 20 32 2d 62 79 | 74 65 20 61 6e 64 20 34 |.. 2-by|te and 4|
|000001d0| 2d 62 79 74 65 20 69 6e | 74 65 67 65 72 20 74 79 |-byte in|teger ty|
|000001e0| 70 65 73 20 61 72 65 20 | 74 79 70 65 64 65 66 27 |pes are |typedef'|
|000001f0| 65 64 20 74 6f 0d 09 09 | 09 20 20 49 6e 74 65 67 |ed to...|. Integ|
|00000200| 65 72 20 61 6e 64 20 4c | 6f 6e 67 69 6e 74 20 74 |er and L|ongint t|
|00000210| 6f 20 65 61 73 65 20 70 | 6f 72 74 69 6e 67 2e 0d |o ease p|orting..|
|00000220| 2a 2f 0d 0d 23 20 69 6e | 63 6c 75 64 65 09 3c 4d |*/..# in|clude.<M|
|00000230| 65 6e 75 4d 67 72 2e 68 | 3e 0d 23 20 69 6e 63 6c |enuMgr.h|>.# incl|
|00000240| 75 64 65 09 3c 46 6f 6e | 74 4d 67 72 2e 68 3e 0d |ude.<Fon|tMgr.h>.|
|00000250| 23 20 69 6e 63 6c 75 64 | 65 09 22 54 72 61 6e 73 |# includ|e."Trans|
|00000260| 45 64 69 74 2e 68 22 0d | 0d 0d 74 79 70 65 64 65 |Edit.h".|..typede|
|00000270| 66 09 69 6e 74 09 09 49 | 6e 74 65 67 65 72 3b 09 |f.int..I|nteger;.|
|00000280| 2f 2a 20 63 6f 6d 70 69 | 6c 65 72 20 32 2d 62 79 |/* compi|ler 2-by|
|00000290| 74 65 20 69 6e 74 65 67 | 65 72 20 74 79 70 65 20 |te integ|er type |
|000002a0| 2a 2f 0d 74 79 70 65 64 | 65 66 09 6c 6f 6e 67 09 |*/.typed|ef.long.|
|000002b0| 4c 6f 6e 67 69 6e 74 3b | 09 2f 2a 20 63 6f 6d 70 |Longint;|./* comp|
|000002c0| 69 6c 65 72 20 34 2d 62 | 79 74 65 20 69 6e 74 65 |iler 4-b|yte inte|
|000002d0| 67 65 72 20 74 79 70 65 | 20 2a 2f 0d 0d 0d 23 20 |ger type| */...# |
|000002e0| 64 65 66 69 6e 65 09 61 | 62 6f 75 74 41 6c 72 74 |define.a|boutAlrt|
|000002f0| 09 31 30 30 30 09 2f 2a | 20 22 41 62 6f 75 74 2e |.1000./*| "About.|
|00000300| 2e 2e 22 20 61 6c 65 72 | 74 20 6e 75 6d 62 65 72 |.." aler|t number|
|00000310| 20 2a 2f 0d 0d 0d 74 79 | 70 65 64 65 66 20 65 6e | */...ty|pedef en|
|00000320| 75 6d 09 09 2f 2a 20 46 | 69 6c 65 20 6d 65 6e 75 |um../* F|ile menu|
|00000330| 20 69 74 65 6d 20 6e 75 | 6d 62 65 72 73 20 2a 2f | item nu|mbers */|
|00000340| 0d 7b 0d 09 6e 65 77 20 | 3d 20 31 2c 09 09 2f 2a |.{..new |= 1,../*|
|00000350| 20 62 65 67 69 6e 20 6e | 65 77 20 77 69 6e 64 6f | begin n|ew windo|
|00000360| 77 20 2a 2f 0d 09 6f 70 | 65 6e 2c 09 09 09 2f 2a |w */..op|en,.../*|
|00000370| 20 6f 70 65 6e 20 65 78 | 69 73 74 69 6e 67 20 66 | open ex|isting f|
|00000380| 69 6c 65 20 2a 2f 0d 09 | 63 6c 6f 73 65 2c 09 09 |ile */..|close,..|
|00000390| 09 2f 2a 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |./* clos|e window|
|000003a0| 20 2a 2f 0d 09 2f 2a 20 | 2d 2d 2d 20 2a 2f 0d 09 | */../* |--- */..|
|000003b0| 71 75 69 74 20 3d 20 35 | 0d 7d 3b 0d 0d 0d 74 79 |quit = 5|.};...ty|
|000003c0| 70 65 64 65 66 20 65 6e | 75 6d 09 09 09 2f 2a 20 |pedef en|um.../* |
|000003d0| 45 64 69 74 20 6d 65 6e | 75 20 69 74 65 6d 20 6e |Edit men|u item n|
|000003e0| 75 6d 62 65 72 73 20 2a | 2f 0d 7b 0d 09 75 6e 64 |umbers *|/.{..und|
|000003f0| 6f 20 3d 20 31 2c 0d 09 | 2f 2a 20 2d 2d 2d 20 2a |o = 1,..|/* --- *|
|00000400| 2f 0d 09 63 75 74 20 3d | 20 33 2c 0d 09 63 6f 70 |/..cut =| 3,..cop|
|00000410| 79 2c 0d 09 70 61 73 74 | 65 2c 0d 09 63 6c 65 61 |y,..past|e,..clea|
|00000420| 72 0d 7d 3b 0d 0d 0d 57 | 69 6e 64 6f 77 50 74 72 |r.};...W|indowPtr|
|00000430| 09 6c 61 73 74 46 72 6f | 6e 74 20 3d 20 6e 69 6c |.lastFro|nt = nil|
|00000440| 3b 09 2f 2a 20 6b 65 65 | 70 73 20 74 72 61 63 6b |;./* kee|ps track|
|00000450| 20 6f 66 20 66 72 6f 6e | 74 20 77 69 6e 64 6f 77 | of fron|t window|
|00000460| 20 2a 2f 0d 57 69 6e 64 | 6f 77 50 74 72 09 65 64 | */.Wind|owPtr.ed|
|00000470| 69 74 57 69 6e 64 20 3d | 20 6e 69 6c 3b 09 09 2f |itWind =| nil;../|
|00000480| 2a 20 6e 6f 6e 2d 6e 69 | 6c 20 69 66 20 65 64 69 |* non-ni|l if edi|
|00000490| 74 20 77 69 6e 64 6f 77 | 20 6f 70 65 6e 20 2a 2f |t window| open */|
|000004a0| 0d 4d 65 6e 75 48 61 6e | 64 6c 65 09 66 69 6c 65 |.MenuHan|dle.file|
|000004b0| 4d 65 6e 75 3b 0d 4d 65 | 6e 75 48 61 6e 64 6c 65 |Menu;.Me|nuHandle|
|000004c0| 09 65 64 69 74 4d 65 6e | 75 3b 0d 0d 0d 0d 2f 2a |.editMen|u;..../*|
|000004d0| 0d 09 53 65 74 20 46 69 | 6c 65 2f 45 64 69 74 20 |..Set Fi|le/Edit |
|000004e0| 6d 65 6e 75 20 69 74 65 | 6d 73 20 61 63 63 6f 72 |menu ite|ms accor|
|000004f0| 64 69 6e 67 20 74 6f 20 | 74 79 70 65 20 6f 66 20 |ding to |type of |
|00000500| 66 72 6f 6e 74 20 77 69 | 6e 64 6f 77 2e 0d 0d 09 |front wi|ndow....|
|00000510| 54 68 65 20 67 65 6e 65 | 72 61 6c 20 62 65 68 61 |The gene|ral beha|
|00000520| 76 69 6f 72 20 69 73 3a | 0d 0d 09 4e 65 77 20 61 |vior is:|...New a|
|00000530| 6e 64 20 4f 70 65 6e 20 | 65 6e 61 62 6c 65 64 20 |nd Open |enabled |
|00000540| 69 66 20 61 6e 20 65 64 | 69 74 20 77 69 6e 64 6f |if an ed|it windo|
|00000550| 77 20 69 73 20 6e 6f 74 | 20 6f 70 65 6e 2c 20 6f |w is not| open, o|
|00000560| 74 68 65 72 77 69 73 65 | 20 74 68 65 79 0d 09 61 |therwise| they..a|
|00000570| 72 65 20 64 69 73 61 62 | 6c 65 64 2e 0d 0d 09 43 |re disab|led....C|
|00000580| 6c 6f 73 65 20 65 6e 61 | 62 6c 65 64 20 77 68 65 |lose ena|bled whe|
|00000590| 6e 20 61 6e 20 65 64 69 | 74 20 6f 72 20 44 41 20 |n an edi|t or DA |
|000005a0| 77 69 6e 64 6f 77 20 69 | 73 20 69 6e 20 66 72 6f |window i|s in fro|
|000005b0| 6e 74 20 28 69 2e 65 2e | 2c 0d 09 77 68 65 6e 20 |nt (i.e.|,..when |
|000005c0| 74 68 65 72 65 27 73 20 | 61 20 77 69 6e 64 6f 77 |there's |a window|
|000005d0| 20 61 74 20 61 6c 6c 29 | 2e 0d 0d 09 55 6e 64 6f | at all)|....Undo|
|000005e0| 20 64 69 73 61 62 6c 65 | 64 20 77 68 65 6e 20 74 | disable|d when t|
|000005f0| 68 65 20 65 64 69 74 20 | 77 69 6e 64 6f 77 20 69 |he edit |window i|
|00000600| 73 20 69 6e 20 66 72 6f | 6e 74 2e 0d 2a 2f 0d 0d |s in fro|nt..*/..|
|00000610| 53 65 74 4d 65 6e 75 73 | 20 28 29 0d 7b 0d 09 44 |SetMenus| ().{..D|
|00000620| 69 73 61 62 6c 65 49 74 | 65 6d 20 28 66 69 6c 65 |isableIt|em (file|
|00000630| 4d 65 6e 75 2c 20 63 6c | 6f 73 65 29 3b 09 2f 2a |Menu, cl|ose);./*|
|00000640| 20 61 73 73 75 6d 65 20 | 6e 6f 20 77 69 6e 64 6f | assume |no windo|
|00000650| 77 20 61 74 20 61 6c 6c | 20 2a 2f 0d 09 45 6e 61 |w at all| */..Ena|
|00000660| 62 6c 65 49 74 65 6d 20 | 28 65 64 69 74 4d 65 6e |bleItem |(editMen|
|00000670| 75 2c 20 75 6e 64 6f 29 | 3b 0d 0d 09 69 66 20 28 |u, undo)|;...if (|
|00000680| 46 72 6f 6e 74 57 69 6e | 64 6f 77 20 28 29 20 21 |FrontWin|dow () !|
|00000690| 3d 20 6e 69 6c 29 0d 09 | 7b 0d 09 09 45 6e 61 62 |= nil)..|{...Enab|
|000006a0| 6c 65 49 74 65 6d 20 28 | 66 69 6c 65 4d 65 6e 75 |leItem (|fileMenu|
|000006b0| 2c 20 63 6c 6f 73 65 29 | 3b 0d 09 09 69 66 20 28 |, close)|;...if (|
|000006c0| 49 73 45 57 69 6e 64 6f | 77 20 28 46 72 6f 6e 74 |IsEWindo|w (Front|
|000006d0| 57 69 6e 64 6f 77 20 28 | 29 29 29 09 2f 2a 20 74 |Window (|)))./* t|
|000006e0| 68 65 20 65 64 69 74 20 | 77 69 6e 64 6f 77 27 73 |he edit |window's|
|000006f0| 20 69 6e 20 66 72 6f 6e | 74 20 2a 2f 0d 09 09 09 | in fron|t */....|
|00000700| 44 69 73 61 62 6c 65 49 | 74 65 6d 20 28 65 64 69 |DisableI|tem (edi|
|00000710| 74 4d 65 6e 75 2c 20 75 | 6e 64 6f 29 3b 0d 09 7d |tMenu, u|ndo);..}|
|00000720| 0d 0d 09 69 66 20 28 65 | 64 69 74 57 69 6e 64 20 |...if (e|ditWind |
|00000730| 3d 3d 20 6e 69 6c 29 0d | 09 7b 0d 09 09 45 6e 61 |== nil).|.{...Ena|
|00000740| 62 6c 65 49 74 65 6d 20 | 28 66 69 6c 65 4d 65 6e |bleItem |(fileMen|
|00000750| 75 2c 20 6e 65 77 29 3b | 0d 09 09 45 6e 61 62 6c |u, new);|...Enabl|
|00000760| 65 49 74 65 6d 20 28 66 | 69 6c 65 4d 65 6e 75 2c |eItem (f|ileMenu,|
|00000770| 20 6f 70 65 6e 29 3b 0d | 09 7d 0d 09 65 6c 73 65 | open);.|.}..else|
|00000780| 0d 09 7b 0d 09 09 44 69 | 73 61 62 6c 65 49 74 65 |..{...Di|sableIte|
|00000790| 6d 20 28 66 69 6c 65 4d | 65 6e 75 2c 20 6e 65 77 |m (fileM|enu, new|
|000007a0| 29 3b 0d 09 09 44 69 73 | 61 62 6c 65 49 74 65 6d |);...Dis|ableItem|
|000007b0| 20 28 66 69 6c 65 4d 65 | 6e 75 2c 20 6f 70 65 6e | (fileMe|nu, open|
|000007c0| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 2f 2a 0d 09 47 6f |);..}.}.|../*..Go|
|000007d0| 74 20 61 6e 20 61 63 74 | 69 76 61 74 65 20 6f 72 |t an act|ivate or|
|000007e0| 20 64 65 61 63 74 69 76 | 61 74 65 2e 20 20 49 74 | deactiv|ate. It|
|000007f0| 20 64 6f 65 73 6e 27 74 | 20 6d 61 74 74 65 72 20 | doesn't| matter |
|00000800| 77 68 69 63 68 2c 20 72 | 65 61 6c 6c 79 2e 0d 09 |which, r|eally...|
|00000810| 53 65 74 20 74 68 65 20 | 74 65 78 74 20 6d 65 6e |Set the |text men|
|00000820| 75 73 20 61 70 70 72 6f | 70 72 69 61 74 65 6c 79 |us appro|priately|
|00000830| 20 66 6f 72 20 74 68 65 | 20 66 72 6f 6e 74 20 77 | for the| front w|
|00000840| 69 6e 64 6f 77 2c 20 61 | 6e 64 20 64 72 61 77 0d |indow, a|nd draw.|
|00000850| 09 74 68 65 20 6d 65 6e | 75 20 62 61 72 2c 20 61 |.the men|u bar, a|
|00000860| 73 20 74 68 65 73 65 20 | 6d 65 6e 75 73 20 6d 69 |s these |menus mi|
|00000870| 67 68 74 20 63 68 61 6e | 67 65 20 73 74 61 74 65 |ght chan|ge state|
|00000880| 20 66 72 6f 6d 20 65 6e | 61 62 6c 65 64 20 74 6f | from en|abled to|
|00000890| 0d 09 64 69 73 61 62 6c | 65 64 20 6f 72 20 76 69 |..disabl|ed or vi|
|000008a0| 63 65 2d 76 65 72 73 61 | 2e 0d 2a 2f 0d 0d 41 63 |ce-versa|..*/..Ac|
|000008b0| 74 69 76 61 74 65 20 28 | 61 63 74 69 76 65 29 0d |tivate (|active).|
|000008c0| 42 6f 6f 6c 65 61 6e 09 | 61 63 74 69 76 65 3b 0d |Boolean.|active;.|
|000008d0| 7b 0d 09 53 65 74 4d 65 | 6e 75 73 20 28 29 3b 0d |{..SetMe|nus ();.|
|000008e0| 7d 0d 0d 0d 2f 2a 0d 09 | 43 6c 6f 73 65 20 73 65 |}.../*..|Close se|
|000008f0| 6c 65 63 74 65 64 20 66 | 72 6f 6d 20 46 69 6c 65 |lected f|rom File|
|00000900| 20 6d 65 6e 75 2c 20 6f | 72 20 63 6c 6f 73 65 20 | menu, o|r close |
|00000910| 62 6f 78 20 6f 66 20 65 | 64 69 74 20 77 69 6e 64 |box of e|dit wind|
|00000920| 6f 77 20 77 61 73 0d 09 | 63 6c 69 63 6b 65 64 2e |ow was..|clicked.|
|00000930| 0d 2a 2f 0d 0d 43 6c 6f | 73 65 20 28 29 0d 7b 0d |.*/..Clo|se ().{.|
|00000940| 09 69 66 20 28 45 57 69 | 6e 64 6f 77 43 6c 6f 73 |.if (EWi|ndowClos|
|00000950| 65 20 28 65 64 69 74 57 | 69 6e 64 29 29 0d 09 09 |e (editW|ind))...|
|00000960| 65 64 69 74 57 69 6e 64 | 20 3d 20 6e 69 6c 3b 0d |editWind| = nil;.|
|00000970| 09 53 65 74 4d 65 6e 75 | 73 20 28 29 3b 0d 7d 0d |.SetMenu|s ();.}.|
|00000980| 0d 0d 2f 2a 0d 09 4d 61 | 6b 65 20 61 20 6e 65 77 |../*..Ma|ke a new|
|00000990| 20 65 64 69 74 20 77 69 | 6e 64 6f 77 2e 20 20 53 | edit wi|ndow. S|
|000009a0| 65 74 20 74 68 65 20 74 | 69 74 6c 65 20 74 6f 20 |et the t|itle to |
|000009b0| 22 55 6e 74 69 74 6c 65 | 64 22 20 69 66 20 6e 6f |"Untitle|d" if no|
|000009c0| 74 20 62 6f 75 6e 64 0d | 09 74 6f 20 66 69 6c 65 |t bound.|.to file|
|000009d0| 2c 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 77 69 |, so tha|t the wi|
|000009e0| 6e 64 6f 77 20 74 69 74 | 6c 69 6e 67 20 77 6f 72 |ndow tit|ling wor|
|000009f0| 6b 73 20 74 68 65 20 73 | 61 6d 65 20 77 68 65 74 |ks the s|ame whet|
|00000a00| 68 65 72 0d 09 54 72 61 | 6e 73 45 64 69 74 20 69 |her..Tra|nsEdit i|
|00000a10| 73 20 63 6f 6d 70 69 6c | 65 64 20 69 6e 20 73 69 |s compil|ed in si|
|00000a20| 6e 67 6c 65 20 6f 72 20 | 6d 75 6c 74 69 70 6c 65 |ngle or |multiple|
|00000a30| 20 77 69 6e 64 6f 77 20 | 6d 6f 64 65 2e 0d 2a 2f | window |mode..*/|
|00000a40| 0d 0d 4d 61 6b 65 57 69 | 6e 64 20 28 62 69 6e 64 |..MakeWi|nd (bind|
|00000a50| 54 6f 46 69 6c 65 29 0d | 42 6f 6f 6c 65 61 6e 09 |ToFile).|Boolean.|
|00000a60| 62 69 6e 64 54 6f 46 69 | 6c 65 3b 0d 7b 0d 52 65 |bindToFi|le;.{.Re|
|00000a70| 63 74 09 09 72 3b 0d 0d | 09 53 65 74 52 65 63 74 |ct..r;..|.SetRect|
|00000a80| 20 28 26 72 2c 20 34 2c | 20 34 35 2c 20 35 30 34 | (&r, 4,| 45, 504|
|00000a90| 2c 20 33 33 35 29 3b 0d | 09 65 64 69 74 57 69 6e |, 335);.|.editWin|
|00000aa0| 64 20 3d 20 4e 65 77 45 | 57 69 6e 64 6f 77 20 28 |d = NewE|Window (|
|00000ab0| 26 72 2c 20 6e 69 6c 2c | 20 66 61 6c 73 65 2c 20 |&r, nil,| false, |
|00000ac0| 2d 31 4c 2c 20 74 72 75 | 65 2c 20 30 4c 2c 20 62 |-1L, tru|e, 0L, b|
|00000ad0| 69 6e 64 54 6f 46 69 6c | 65 29 3b 0d 09 69 66 20 |indToFil|e);..if |
|00000ae0| 28 65 64 69 74 57 69 6e | 64 20 21 3d 20 6e 69 6c |(editWin|d != nil|
|00000af0| 29 0d 09 7b 0d 09 09 69 | 66 20 28 21 62 69 6e 64 |)..{...i|f (!bind|
|00000b00| 54 6f 46 69 6c 65 29 0d | 09 09 09 53 65 74 57 54 |ToFile).|...SetWT|
|00000b10| 69 74 6c 65 20 28 65 64 | 69 74 57 69 6e 64 2c 20 |itle (ed|itWind, |
|00000b20| 22 5c 70 55 6e 74 69 74 | 6c 65 64 22 29 3b 0d 09 |"\pUntit|led");..|
|00000b30| 09 53 68 6f 77 57 69 6e | 64 6f 77 20 28 65 64 69 |.ShowWin|dow (edi|
|00000b40| 74 57 69 6e 64 29 3b 0d | 09 7d 0d 7d 0d 0d 0d 2f |tWind);.|.}.}.../|
|00000b50| 2a 0d 09 46 69 6c 65 20 | 6d 65 6e 75 20 68 61 6e |*..File |menu han|
|00000b60| 64 6c 65 72 0d 2a 2f 0d | 0d 44 6f 46 69 6c 65 4d |dler.*/.|.DoFileM|
|00000b70| 65 6e 75 20 28 69 74 65 | 6d 29 0d 49 6e 74 65 67 |enu (ite|m).Integ|
|00000b80| 65 72 09 69 74 65 6d 3b | 0d 7b 0d 57 69 6e 64 6f |er.item;|.{.Windo|
|00000b90| 77 50 74 72 09 74 68 65 | 57 69 6e 64 3b 0d 0d 09 |wPtr.the|Wind;...|
|00000ba0| 74 68 65 57 69 6e 64 20 | 3d 20 46 72 6f 6e 74 57 |theWind |= FrontW|
|00000bb0| 69 6e 64 6f 77 20 28 29 | 3b 0d 09 73 77 69 74 63 |indow ()|;..switc|
|00000bc0| 68 20 28 69 74 65 6d 29 | 0d 09 7b 0d 0d 09 63 61 |h (item)|..{...ca|
|00000bd0| 73 65 20 6e 65 77 3a 0d | 09 09 4d 61 6b 65 57 69 |se new:.|..MakeWi|
|00000be0| 6e 64 20 28 66 61 6c 73 | 65 29 3b 0d 09 09 62 72 |nd (fals|e);...br|
|00000bf0| 65 61 6b 3b 0d 0d 09 63 | 61 73 65 20 6f 70 65 6e |eak;...c|ase open|
|00000c00| 3a 0d 09 09 4d 61 6b 65 | 57 69 6e 64 20 28 74 72 |:...Make|Wind (tr|
|00000c10| 75 65 29 3b 0d 09 09 62 | 72 65 61 6b 3b 0d 0d 09 |ue);...b|reak;...|
|00000c20| 63 61 73 65 20 63 6c 6f | 73 65 3a 0d 09 09 69 66 |case clo|se:...if|
|00000c30| 20 28 49 73 45 57 69 6e | 64 6f 77 20 28 74 68 65 | (IsEWin|dow (the|
|00000c40| 57 69 6e 64 29 29 0d 09 | 09 09 43 6c 6f 73 65 20 |Wind))..|..Close |
|00000c50| 28 29 3b 0d 09 09 65 6c | 73 65 09 2f 2a 20 44 41 |();...el|se./* DA|
|00000c60| 20 69 6e 20 66 72 6f 6e | 74 20 2a 2f 0d 09 09 09 | in fron|t */....|
|00000c70| 43 6c 6f 73 65 44 65 73 | 6b 41 63 63 20 28 28 28 |CloseDes|kAcc (((|
|00000c80| 57 69 6e 64 6f 77 50 65 | 65 6b 29 20 74 68 65 57 |WindowPe|ek) theW|
|00000c90| 69 6e 64 29 2d 3e 77 69 | 6e 64 6f 77 4b 69 6e 64 |ind)->wi|ndowKind|
|00000ca0| 29 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 0d 09 63 61 |);...bre|ak;...ca|
|00000cb0| 73 65 20 71 75 69 74 3a | 0d 09 09 69 66 20 28 43 |se quit:|...if (C|
|00000cc0| 6c 6f 62 62 65 72 45 57 | 69 6e 64 6f 77 73 20 28 |lobberEW|indows (|
|00000cd0| 29 20 3d 3d 20 74 72 75 | 65 29 0d 09 09 09 53 6b |) == tru|e)....Sk|
|00000ce0| 65 6c 57 68 6f 61 20 28 | 29 3b 0d 09 09 62 72 65 |elWhoa (|);...bre|
|00000cf0| 61 6b 3b 0d 0d 09 7d 0d | 09 53 65 74 4d 65 6e 75 |ak;...}.|.SetMenu|
|00000d00| 73 20 28 29 3b 0d 7d 0d | 0d 0d 2f 2a 0d 09 48 61 |s ();.}.|../*..Ha|
|00000d10| 6e 64 6c 65 20 73 65 6c | 65 63 74 69 6f 6e 20 6f |ndle sel|ection o|
|00000d20| 66 20 41 62 6f 75 74 c9 | 20 69 74 65 6d 20 66 72 |f About.| item fr|
|00000d30| 6f 6d 20 41 70 70 6c 65 | 20 6d 65 6e 75 0d 2a 2f |om Apple| menu.*/|
|00000d40| 0d 0d 44 6f 41 62 6f 75 | 74 20 28 29 0d 7b 0d 09 |..DoAbou|t ().{..|
|00000d50| 28 76 6f 69 64 29 20 41 | 6c 65 72 74 20 28 61 62 |(void) A|lert (ab|
|00000d60| 6f 75 74 41 6c 72 74 2c | 20 6e 69 6c 29 3b 0d 7d |outAlrt,| nil);.}|
|00000d70| 0d 0d 0d 2f 2a 0d 09 42 | 61 63 6b 67 72 6f 75 6e |.../*..B|ackgroun|
|00000d80| 64 20 70 72 6f 63 65 64 | 75 72 65 2e 20 20 43 68 |d proced|ure. Ch|
|00000d90| 65 63 6b 20 66 72 6f 6e | 74 20 77 69 6e 64 6f 77 |eck fron|t window|
|00000da0| 2c 20 72 65 73 65 74 20 | 6d 65 6e 75 73 20 69 66 |, reset |menus if|
|00000db0| 20 69 74 0d 09 63 68 61 | 6e 67 65 73 2e 0d 2a 2f | it..cha|nges..*/|
|00000dc0| 0d 0d 43 68 65 63 6b 46 | 72 6f 6e 74 20 28 29 0d |..CheckF|ront ().|
|00000dd0| 7b 0d 09 69 66 20 28 46 | 72 6f 6e 74 57 69 6e 64 |{..if (F|rontWind|
|00000de0| 6f 77 20 28 29 20 21 3d | 20 6c 61 73 74 46 72 6f |ow () !=| lastFro|
|00000df0| 6e 74 29 0d 09 7b 0d 09 | 09 53 65 74 4d 65 6e 75 |nt)..{..|.SetMenu|
|00000e00| 73 20 28 29 3b 0d 09 09 | 6c 61 73 74 46 72 6f 6e |s ();...|lastFron|
|00000e10| 74 20 3d 20 46 72 6f 6e | 74 57 69 6e 64 6f 77 20 |t = Fron|tWindow |
|00000e20| 28 29 3b 0d 09 7d 0d 7d | 0d 0d 0d 6d 61 69 6e 20 |();..}.}|...main |
|00000e30| 28 29 0d 7b 0d 0d 2f 2a | 0d 09 49 6e 69 74 69 61 |().{../*|..Initia|
|00000e40| 6c 69 7a 65 20 54 72 61 | 6e 73 53 6b 65 6c 2c 20 |lize Tra|nsSkel, |
|00000e50| 63 72 65 61 74 65 20 6d | 65 6e 75 73 20 61 6e 64 |create m|enus and|
|00000e60| 20 69 6e 73 74 61 6c 6c | 20 68 61 6e 64 6c 65 72 | install| handler|
|00000e70| 73 2e 0d 2a 2f 0d 0d 09 | 53 6b 65 6c 49 6e 69 74 |s..*/...|SkelInit|
|00000e80| 20 28 36 2c 20 6e 69 6c | 29 3b 0d 0d 09 53 6b 65 | (6, nil|);...Ske|
|00000e90| 6c 41 70 70 6c 65 20 28 | 22 5c 70 41 62 6f 75 74 |lApple (|"\pAbout|
|00000ea0| 20 54 69 6e 79 45 64 69 | 74 c9 22 2c 20 44 6f 41 | TinyEdi|t.", DoA|
|00000eb0| 62 6f 75 74 29 3b 0d 0d | 09 66 69 6c 65 4d 65 6e |bout);..|.fileMen|
|00000ec0| 75 20 3d 20 4e 65 77 4d | 65 6e 75 20 28 31 30 30 |u = NewM|enu (100|
|00000ed0| 30 2c 20 22 5c 70 46 69 | 6c 65 22 29 3b 0d 09 41 |0, "\pFi|le");..A|
|00000ee0| 70 70 65 6e 64 4d 65 6e | 75 20 28 66 69 6c 65 4d |ppendMen|u (fileM|
|00000ef0| 65 6e 75 2c 20 22 5c 70 | 4e 65 77 2f 4e 3b 4f 70 |enu, "\p|New/N;Op|
|00000f00| 65 6e 2e 2e 2e 2f 4f 3b | 28 43 6c 6f 73 65 3b 28 |en.../O;|(Close;(|
|00000f10| 2d 3b 51 75 69 74 2f 51 | 22 29 3b 0d 09 28 76 6f |-;Quit/Q|");..(vo|
|00000f20| 69 64 29 20 53 6b 65 6c | 4d 65 6e 75 20 28 66 69 |id) Skel|Menu (fi|
|00000f30| 6c 65 4d 65 6e 75 2c 20 | 44 6f 46 69 6c 65 4d 65 |leMenu, |DoFileMe|
|00000f40| 6e 75 2c 20 6e 69 6c 2c | 20 66 61 6c 73 65 29 3b |nu, nil,| false);|
|00000f50| 0d 0d 09 65 64 69 74 4d | 65 6e 75 20 3d 20 4e 65 |...editM|enu = Ne|
|00000f60| 77 4d 65 6e 75 20 28 31 | 30 30 31 2c 20 22 5c 70 |wMenu (1|001, "\p|
|00000f70| 45 64 69 74 22 29 3b 0d | 09 41 70 70 65 6e 64 4d |Edit");.|.AppendM|
|00000f80| 65 6e 75 20 28 65 64 69 | 74 4d 65 6e 75 2c 20 22 |enu (edi|tMenu, "|
|00000f90| 5c 70 55 6e 64 6f 2f 5a | 3b 28 2d 3b 43 75 74 2f |\pUndo/Z|;(-;Cut/|
|00000fa0| 58 3b 43 6f 70 79 2f 43 | 3b 50 61 73 74 65 2f 56 |X;Copy/C|;Paste/V|
|00000fb0| 3b 43 6c 65 61 72 22 29 | 3b 0d 09 28 76 6f 69 64 |;Clear")|;..(void|
|00000fc0| 29 20 53 6b 65 6c 4d 65 | 6e 75 20 28 65 64 69 74 |) SkelMe|nu (edit|
|00000fd0| 4d 65 6e 75 2c 20 45 57 | 69 6e 64 6f 77 45 64 69 |Menu, EW|indowEdi|
|00000fe0| 74 4f 70 2c 20 6e 69 6c | 2c 20 74 72 75 65 29 3b |tOp, nil|, true);|
|00000ff0| 0d 0d 2f 2a 0d 09 44 6f | 20 54 72 61 6e 73 45 64 |../*..Do| TransEd|
|00001000| 69 74 2d 73 70 65 63 69 | 66 69 63 20 73 65 74 75 |it-speci|fic setu|
|00001010| 70 3a 20 20 73 65 74 20 | 63 72 65 61 74 6f 72 20 |p: set |creator |
|00001020| 66 6f 72 20 61 6e 79 20 | 66 69 6c 65 73 20 63 72 |for any |files cr|
|00001030| 65 61 74 65 64 2c 0d 09 | 73 65 74 20 64 65 66 61 |eated,..|set defa|
|00001040| 75 6c 74 20 65 76 65 6e | 74 20 6e 6f 74 69 66 69 |ult even|t notifi|
|00001050| 63 61 74 69 6f 6e 20 70 | 72 6f 63 65 64 75 72 65 |cation p|rocedure|
|00001060| 73 20 66 6f 72 20 6e 65 | 77 20 77 69 6e 64 6f 77 |s for ne|w window|
|00001070| 73 2e 0d 2a 2f 0d 0d 09 | 53 65 74 45 57 69 6e 64 |s..*/...|SetEWind|
|00001080| 6f 77 50 72 6f 63 73 20 | 28 6e 69 6c 2c 20 6e 69 |owProcs |(nil, ni|
|00001090| 6c 2c 20 41 63 74 69 76 | 61 74 65 2c 20 43 6c 6f |l, Activ|ate, Clo|
|000010a0| 73 65 29 3b 0d 0d 2f 2a | 0d 09 50 72 6f 63 65 73 |se);../*|..Proces|
|000010b0| 73 20 65 76 65 6e 74 73 | 20 75 6e 74 69 6c 20 75 |s events| until u|
|000010c0| 73 65 72 20 71 75 69 74 | 73 2c 0d 09 74 68 65 6e |ser quit|s,..then|
|000010d0| 20 63 6c 65 61 6e 20 75 | 70 20 61 6e 64 20 65 78 | clean u|p and ex|
|000010e0| 69 74 0d 2a 2f 0d 0d 09 | 53 6b 65 6c 42 61 63 6b |it.*/...|SkelBack|
|000010f0| 67 72 6f 75 6e 64 20 28 | 43 68 65 63 6b 46 72 6f |ground (|CheckFro|
|00001100| 6e 74 29 3b 0d 09 53 6b | 65 6c 4d 61 69 6e 20 28 |nt);..Sk|elMain (|
|00001110| 29 3b 0d 09 53 6b 65 6c | 43 6c 6f 62 62 65 72 20 |);..Skel|Clobber |
|00001120| 28 29 3b 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 |();.}...|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+