home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 5 / develop Issue 5 code / Lisp Mini-App.sea / Lisp Mini-App / Instructions < prev   
MacBinary  |  1992-04-08  |  12.9 KB  |  [TEXT/CCL2]

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
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Apr 8 18:02:46 1992, modified Wed Apr 8 18:02:46 1992, creator Common Lisp 2, type ASCII, 12492 bytes "Instructions" , at 0x314c 441 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 49 6e 73 74 72 75 | 63 74 69 6f 6e 73 00 00 |..Instru|ctions..|
|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 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 30 cc 00 | 00 01 b9 a6 09 1e 06 a6 |.....0..|........|
|00000060| 09 1e 06 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 51 bd 00 00 |........|....Q...|
|00000080| 52 75 62 65 6e 20 4b 6c | 65 69 6d 61 6e 27 73 20 |Ruben Kl|eiman's |
|00000090| 4d 69 6e 69 2d 41 70 70 | 6c 69 63 61 74 69 6f 6e |Mini-App|lication|
|000000a0| 0d 0d 49 6e 73 74 72 75 | 63 74 69 6f 6e 73 0d 3d |..Instru|ctions.=|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 0d 4c 61 73 |========|===..Las|
|000000c0| 74 20 65 64 69 74 20 33 | 2f 31 32 2f 39 32 20 73 |t edit 3|/12/92 s|
|000000d0| 6c 6d 2e 0d 0d 0d 49 6e | 74 72 6f 64 75 63 74 69 |lm....In|troducti|
|000000e0| 6f 6e 2e 0d 0d 20 20 20 | 54 68 65 20 4d 69 6e 69 |on... |The Mini|
|000000f0| 2d 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 |-Applica|tion is |
|00000100| 61 20 73 6d 61 6c 6c 20 | 61 70 70 6c 69 63 61 74 |a small |applicat|
|00000110| 69 6f 6e 20 64 65 73 69 | 67 6e 65 64 20 61 73 20 |ion desi|gned as |
|00000120| 61 20 74 75 74 6f 72 69 | 61 6c 0d 20 20 20 69 6e |a tutori|al. in|
|00000130| 20 4d 61 63 69 6e 74 6f | 73 68 20 43 6f 6d 6d 6f | Macinto|sh Commo|
|00000140| 6e 20 4c 69 73 70 20 76 | 65 72 73 69 6f 6e 20 32 |n Lisp v|ersion 2|
|00000150| 2e 30 3b 20 69 74 20 69 | 73 20 69 6e 74 65 6e 64 |.0; it i|s intend|
|00000160| 65 64 20 74 6f 20 61 63 | 63 6f 6d 70 61 6e 79 0d |ed to ac|company.|
|00000170| 20 20 20 74 68 65 20 61 | 72 74 69 63 6c 65 20 69 | the a|rticle i|
|00000180| 6e 20 44 20 65 20 76 20 | 65 20 6c 20 6f 20 70 20 |n D e v |e l o p |
|00000190| 6d 61 67 61 7a 69 6e 65 | 20 28 73 65 65 20 74 68 |magazine| (see th|
|000001a0| 65 20 66 69 6c 65 20 22 | 41 62 6f 75 74 20 4d 69 |e file "|About Mi|
|000001b0| 6e 69 2d 41 70 70 22 29 | 2e 0d 0d 20 20 20 46 75 |ni-App")|... Fu|
|000001c0| 6c 6c 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |ll docum|entation|
|000001d0| 20 63 61 6e 20 62 65 20 | 66 6f 75 6e 64 20 69 6e | can be |found in|
|000001e0| 20 66 69 6c 65 20 22 41 | 6c 6c 20 61 62 6f 75 74 | file "A|ll about|
|000001f0| 20 74 68 65 20 4d 69 6e | 69 2d 41 70 70 22 3b 0d | the Min|i-App";.|
|00000200| 20 20 20 69 74 20 69 73 | 20 6e 6f 74 20 6e 65 63 | it is| not nec|
|00000210| 65 73 73 61 72 79 20 74 | 6f 20 72 65 61 64 20 74 |essary t|o read t|
|00000220| 68 65 20 64 65 76 65 6c | 6f 70 20 61 72 74 69 63 |he devel|op artic|
|00000230| 6c 65 2e 20 0d 0d 20 20 | 20 54 68 65 20 4d 69 6e |le. .. | The Min|
|00000240| 69 2d 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |i-Applic|ation is|
|00000250| 20 61 6e 20 22 61 70 70 | 6c 69 63 61 74 69 6f 6e | an "app|lication|
|00000260| 22 20 69 6e 20 74 68 65 | 20 73 65 6e 73 65 20 74 |" in the| sense t|
|00000270| 68 61 74 20 69 74 20 69 | 73 20 61 0d 20 20 20 63 |hat it i|s a. c|
|00000280| 6f 6d 70 6c 65 74 65 20 | 70 72 6f 67 72 61 6d 20 |omplete |program |
|00000290| 74 68 61 74 20 64 6f 65 | 73 20 73 6f 6d 65 74 68 |that doe|s someth|
|000002a0| 69 6e 67 20 73 70 65 63 | 69 66 69 63 2e 20 41 20 |ing spec|ific. A |
|000002b0| 22 73 74 61 6e 64 2d 61 | 6c 6f 6e 65 0d 20 20 20 |"stand-a|lone. |
|000002c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 22 20 63 61 6e |applicat|ion" can|
|000002d0| 20 62 65 20 63 72 65 61 | 74 65 64 20 76 69 61 20 | be crea|ted via |
|000002e0| 4d 43 4c 27 73 20 22 73 | 61 76 65 2d 61 70 70 6c |MCL's "s|ave-appl|
|000002f0| 69 63 61 74 69 6f 6e 22 | 20 66 75 6e 63 74 69 6f |ication"| functio|
|00000300| 6e 2e 0d 20 20 20 0d 20 | 20 20 54 68 69 73 20 66 |n.. . | This f|
|00000310| 69 6c 65 20 73 75 70 65 | 72 73 65 64 65 73 20 66 |ile supe|rsedes f|
|00000320| 69 6c 65 73 20 22 52 45 | 41 44 20 4d 45 20 46 49 |iles "RE|AD ME FI|
|00000330| 52 53 54 2e 6d 77 22 2c | 20 61 6e 64 20 0d 20 20 |RST.mw",| and . |
|00000340| 20 22 52 45 41 44 20 4d | 45 20 46 49 52 53 54 2e | "READ M|E FIRST.|
|00000350| 77 6f 72 64 22 20 62 79 | 20 52 75 62 65 6e 20 4b |word" by| Ruben K|
|00000360| 6c 65 69 6d 61 6e 20 31 | 30 2f 32 35 2f 39 30 2c |leiman 1|0/25/90,|
|00000370| 20 77 68 69 63 68 20 63 | 6f 6e 74 61 69 6e 65 64 | which c|ontained|
|00000380| 0d 20 20 20 74 68 65 20 | 73 61 6d 65 20 74 65 78 |. the |same tex|
|00000390| 74 2c 20 73 61 76 65 64 | 20 69 6e 20 4d 61 63 57 |t, saved| in MacW|
|000003a0| 72 69 74 65 20 61 6e 64 | 20 57 6f 72 64 20 66 6f |rite and| Word fo|
|000003b0| 72 6d 61 74 2c 20 72 65 | 73 70 65 63 74 69 76 65 |rmat, re|spective|
|000003c0| 6c 79 2e 0d 20 20 20 28 | 4e 6f 74 65 20 74 68 61 |ly.. (|Note tha|
|000003d0| 74 20 61 20 74 6f 74 61 | 6c 6c 79 20 64 69 66 66 |t a tota|lly diff|
|000003e0| 65 72 65 6e 74 20 66 69 | 6c 65 20 22 52 65 61 64 |erent fi|le "Read|
|000003f0| 20 4d 65 20 46 69 72 73 | 74 2e 6c 69 73 70 22 20 | Me Firs|t.lisp" |
|00000400| 77 61 73 20 0d 20 20 20 | 61 70 70 61 72 65 6e 74 |was . |apparent|
|00000410| 6c 79 20 64 69 73 74 72 | 69 62 75 74 65 64 20 75 |ly distr|ibuted u|
|00000420| 6e 64 65 72 20 74 68 65 | 20 6e 61 6d 65 20 22 65 |nder the| name "e|
|00000430| 78 61 6d 70 6c 65 2e 6c | 69 73 70 22 29 2e 0d 0d |xample.l|isp")...|
|00000440| 20 20 20 41 73 20 66 61 | 72 20 61 73 20 70 6f 73 | As fa|r as pos|
|00000450| 73 69 62 6c 65 2c 20 52 | 75 62 65 6e 27 73 20 6f |sible, R|uben's o|
|00000460| 72 69 67 69 6e 61 6c 20 | 74 65 78 74 20 68 61 73 |riginal |text has|
|00000470| 20 62 65 65 6e 20 70 72 | 65 73 65 72 76 65 64 2e | been pr|eserved.|
|00000480| 20 54 68 65 0d 20 20 20 | 73 65 63 74 69 6f 6e 20 | The. |section |
|00000490| 22 48 6f 77 20 54 68 69 | 73 20 45 78 61 6d 70 6c |"How Thi|s Exampl|
|000004a0| 65 20 57 6f 72 6b 73 22 | 20 66 72 6f 6d 20 74 68 |e Works"| from th|
|000004b0| 65 20 66 69 6c 65 20 22 | 65 78 61 6d 70 6c 65 2e |e file "|example.|
|000004c0| 6c 69 73 70 22 20 68 61 | 73 0d 20 20 20 62 65 65 |lisp" ha|s. bee|
|000004d0| 6e 20 6d 65 72 67 65 64 | 20 69 6e 20 28 22 65 78 |n merged| in ("ex|
|000004e0| 61 6d 70 6c 65 2e 6c 69 | 73 70 22 20 69 73 20 73 |ample.li|sp" is s|
|000004f0| 75 70 65 72 73 65 64 65 | 64 20 2d 20 73 65 65 20 |upersede|d - see |
|00000500| 22 41 62 6f 75 74 20 4d | 69 6e 69 2d 41 70 70 22 |"About M|ini-App"|
|00000510| 29 2e 0d 0d 20 20 20 50 | 6c 65 61 73 65 20 72 65 |)... P|lease re|
|00000520| 61 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ad the f|ollowing|
|00000530| 20 62 65 66 6f 72 65 20 | 74 72 79 69 6e 67 20 6f | before |trying o|
|00000540| 75 74 20 74 68 65 20 4d | 69 6e 69 2d 41 70 70 6c |ut the M|ini-Appl|
|00000550| 69 63 61 74 69 6f 6e 2e | 0d 0d 0d 57 68 61 74 20 |ication.|...What |
|00000560| 69 73 20 74 68 65 20 4d | 69 6e 69 2d 41 70 70 6c |is the M|ini-Appl|
|00000570| 69 63 61 74 69 6f 6e 3f | 0d 0d 20 20 20 54 68 65 |ication?|.. The|
|00000580| 20 4d 69 6e 69 2d 41 70 | 70 6c 69 63 61 74 69 6f | Mini-Ap|plicatio|
|00000590| 6e 20 69 73 20 61 20 70 | 72 6f 67 72 61 6d 20 77 |n is a p|rogram w|
|000005a0| 72 69 74 74 65 6e 20 62 | 79 20 52 75 62 65 6e 20 |ritten b|y Ruben |
|000005b0| 4b 6c 65 69 6d 61 6e 20 | 69 6e 74 65 6e 64 65 64 |Kleiman |intended|
|000005c0| 0d 20 20 20 74 6f 20 62 | 65 20 61 20 73 74 72 61 |. to b|e a stra|
|000005d0| 69 67 68 74 66 6f 72 77 | 61 72 64 20 61 6e 64 20 |ightforw|ard and |
|000005e0| 63 6c 65 61 72 20 74 75 | 74 6f 72 69 61 6c 20 6f |clear tu|torial o|
|000005f0| 66 20 74 68 65 20 75 73 | 65 72 20 69 6e 74 65 72 |f the us|er inter|
|00000600| 66 61 63 65 20 61 6e 64 | 0d 20 20 20 6c 61 6e 67 |face and|. lang|
|00000610| 75 61 67 65 20 63 61 70 | 61 62 69 6c 69 74 69 65 |uage cap|abilitie|
|00000620| 73 20 6f 66 20 4d 61 63 | 69 6e 74 6f 73 68 20 43 |s of Mac|intosh C|
|00000630| 6f 6d 6d 6f 6e 20 4c 69 | 73 70 20 32 2e 30 2e 20 |ommon Li|sp 2.0. |
|00000640| 20 0d 0d 20 20 20 49 74 | 20 69 73 20 6f 72 67 61 | .. It| is orga|
|00000650| 6e 69 7a 65 64 20 61 73 | 20 61 20 63 6f 72 65 20 |nized as| a core |
|00000660| 74 65 63 68 6e 6f 6c 6f | 67 79 2c 20 77 69 74 68 |technolo|gy, with|
|00000670| 20 61 20 73 61 6d 70 6c | 65 20 61 70 70 6c 69 63 | a sampl|e applic|
|00000680| 61 74 69 6f 6e 0d 20 20 | 20 74 68 61 74 20 72 75 |ation. | that ru|
|00000690| 6e 73 20 6f 6e 20 74 6f | 70 20 6f 66 20 69 74 2e |ns on to|p of it.|
|000006a0| 20 54 68 65 20 63 6f 72 | 65 2c 20 63 6f 6d 70 72 | The cor|e, compr|
|000006b0| 69 73 69 6e 67 20 6d 6f | 73 74 20 6f 66 20 74 68 |ising mo|st of th|
|000006c0| 65 20 66 69 6c 65 73 20 | 69 6e 0d 20 20 20 74 68 |e files |in. th|
|000006d0| 65 20 22 50 72 6f 67 72 | 61 6d 22 20 73 75 62 66 |e "Progr|am" subf|
|000006e0| 6f 6c 64 65 72 2c 20 69 | 6d 70 6c 65 6d 65 6e 74 |older, i|mplement|
|000006f0| 73 20 61 6c 6c 20 74 68 | 65 20 72 65 71 75 69 73 |s all th|e requis|
|00000700| 69 74 65 20 63 6c 61 73 | 73 65 73 2c 20 74 68 65 |ite clas|ses, the|
|00000710| 69 72 0d 20 20 20 64 65 | 66 61 75 6c 74 20 62 65 |ir. de|fault be|
|00000720| 68 61 76 69 6f 72 20 61 | 6e 64 20 74 68 65 20 61 |havior a|nd the a|
|00000730| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 6d 65 6e |pplicati|on's men|
|00000740| 75 62 61 72 20 61 6e 64 | 20 6d 65 6e 75 73 2e 20 |ubar and| menus. |
|00000750| 54 68 65 20 0d 20 20 20 | 61 70 70 6c 69 63 61 74 |The . |applicat|
|00000760| 69 6f 6e 2c 20 66 69 6c | 65 20 22 6d 69 6e 69 2d |ion, fil|e "mini-|
|00000770| 61 70 70 2d 65 78 61 6d | 70 6c 65 2e 6c 69 73 70 |app-exam|ple.lisp|
|00000780| 22 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 70 |" contai|ns the p|
|00000790| 61 6c 65 74 74 65 20 69 | 74 65 6d 0d 20 20 20 69 |alette i|tem. i|
|000007a0| 6e 73 74 61 6e 63 65 73 | 20 61 6e 64 20 74 68 65 |nstances| and the|
|000007b0| 69 72 20 73 70 65 63 69 | 61 6c 69 7a 65 64 20 62 |ir speci|alized b|
|000007c0| 65 68 61 76 69 6f 72 2e | 20 0d 0d 20 20 20 54 68 |ehavior.| .. Th|
|000007d0| 65 20 63 6f 72 65 2c 20 | 69 66 20 6c 6f 61 64 65 |e core, |if loade|
|000007e0| 64 20 77 69 74 68 20 61 | 20 6e 75 6c 6c 20 61 70 |d with a| null ap|
|000007f0| 70 6c 69 63 61 74 69 6f | 6e 2c 20 64 6f 65 73 20 |plicatio|n, does |
|00000800| 6e 6f 74 68 69 6e 67 20 | 75 73 65 66 75 6c 2e 0d |nothing |useful..|
|00000810| 20 20 20 57 68 65 6e 20 | 74 68 65 20 61 70 70 6c | When |the appl|
|00000820| 69 63 61 74 69 6f 6e 20 | 69 73 20 6c 6f 61 64 65 |ication |is loade|
|00000830| 64 20 6f 6e 20 74 6f 70 | 20 6f 66 20 74 68 65 20 |d on top| of the |
|00000840| 63 6f 72 65 2c 20 76 61 | 72 69 6f 75 73 20 74 79 |core, va|rious ty|
|00000850| 70 65 73 0d 20 20 20 6f | 66 20 74 6f 6f 6c 73 20 |pes. o|f tools |
|00000860| 61 6e 64 20 64 72 61 77 | 69 6e 67 20 69 74 65 6d |and draw|ing item|
|00000870| 73 20 77 69 6c 6c 20 61 | 70 70 65 61 72 20 69 6e |s will a|ppear in|
|00000880| 20 74 68 65 20 74 6f 6f | 6c 20 70 61 6c 65 74 74 | the too|l palett|
|00000890| 65 2e 20 20 20 0d 0d 20 | 20 20 41 6c 74 68 6f 75 |e. .. | Althou|
|000008a0| 67 68 20 6e 6f 74 20 69 | 6e 74 65 6e 64 65 64 20 |gh not i|ntended |
|000008b0| 61 73 20 61 6e 20 65 6e | 64 2d 75 73 65 72 20 61 |as an en|d-user a|
|000008c0| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 79 6f 75 20 |pplicati|on, you |
|000008d0| 63 61 6e 20 62 75 69 6c | 64 0d 20 20 20 77 69 6e |can buil|d. win|
|000008e0| 64 6f 77 73 20 6f 6e 20 | 77 68 69 63 68 20 79 6f |dows on |which yo|
|000008f0| 75 20 63 61 6e 20 64 72 | 61 77 2c 20 6d 61 6e 69 |u can dr|aw, mani|
|00000900| 70 75 6c 61 74 65 2c 20 | 61 6e 64 20 73 63 72 69 |pulate, |and scri|
|00000910| 70 74 20 61 20 76 61 72 | 69 65 74 79 20 6f 66 0d |pt a var|iety of.|
|00000920| 20 20 20 6f 62 6a 65 63 | 74 73 20 28 65 2e 67 2e | objec|ts (e.g.|
|00000930| 2c 20 6f 76 61 6c 73 2c | 20 72 65 63 74 61 6e 67 |, ovals,| rectang|
|00000940| 6c 65 73 2c 20 65 64 69 | 74 61 62 6c 65 20 74 65 |les, edi|table te|
|00000950| 78 74 20 62 6f 78 65 73 | 2c 20 70 69 63 74 75 72 |xt boxes|, pictur|
|00000960| 65 73 2c 0d 20 20 20 69 | 63 6f 6e 73 29 20 75 73 |es,. i|cons) us|
|00000970| 69 6e 67 20 61 20 70 61 | 6c 65 74 74 65 20 61 6e |ing a pa|lette an|
|00000980| 64 20 6d 65 6e 75 73 20 | 69 6e 20 61 20 64 69 72 |d menus |in a dir|
|00000990| 65 63 74 2d 6d 61 6e 69 | 70 75 6c 61 74 69 6f 6e |ect-mani|pulation|
|000009a0| 20 73 74 79 6c 65 2e 0d | 0d 20 20 20 48 61 6e 64 | style..|. Hand|
|000009b0| 6c 65 72 73 20 6d 61 79 | 20 62 65 20 64 65 66 69 |lers may| be defi|
|000009c0| 6e 65 64 20 66 6f 72 20 | 63 6c 61 73 73 65 73 20 |ned for |classes |
|000009d0| 6f 66 20 6f 72 20 69 6e | 73 74 61 6e 63 65 73 20 |of or in|stances |
|000009e0| 6f 66 20 74 68 65 73 65 | 0d 20 20 20 6f 62 6a 65 |of these|. obje|
|000009f0| 63 74 73 2c 20 70 65 72 | 6d 69 74 74 69 6e 67 20 |cts, per|mitting |
|00000a00| 79 6f 75 20 74 6f 20 61 | 73 73 6f 63 69 61 74 65 |you to a|ssociate|
|00000a10| 20 63 6f 64 65 20 77 69 | 74 68 20 75 73 65 72 20 | code wi|th user |
|00000a20| 69 6e 74 65 72 66 61 63 | 65 0d 20 20 20 62 65 68 |interfac|e. beh|
|00000a30| 61 76 69 6f 72 20 28 65 | 2e 67 2e 2c 20 6d 6f 75 |avior (e|.g., mou|
|00000a40| 73 65 20 63 6c 69 63 6b | 73 20 61 73 73 6f 63 69 |se click|s associ|
|00000a50| 61 74 65 64 20 77 69 74 | 68 20 6d 6f 75 73 65 2d |ated wit|h mouse-|
|00000a60| 64 6f 77 6e 0d 20 20 20 | 65 76 65 6e 74 2d 68 61 |down. |event-ha|
|00000a70| 6e 64 6c 69 6e 67 20 63 | 6f 64 65 20 6f 6e 20 61 |ndling c|ode on a|
|00000a80| 20 72 65 63 74 61 6e 67 | 6c 65 29 2e 20 20 0d 0d | rectang|le). ..|
|00000a90| 20 20 20 54 68 65 20 61 | 70 70 6c 69 63 61 74 69 | The a|pplicati|
|00000aa0| 6f 6e 20 69 73 20 77 72 | 69 74 74 65 6e 20 74 6f |on is wr|itten to|
|00000ab0| 20 62 65 20 65 61 73 69 | 6c 79 20 6d 6f 64 69 66 | be easi|ly modif|
|00000ac0| 69 65 64 20 61 6e 64 20 | 65 78 74 65 6e 64 65 64 |ied and |extended|
|00000ad0| 0d 20 20 20 28 6d 61 6e | 79 20 66 65 61 74 75 72 |. (man|y featur|
|00000ae0| 65 73 20 2d 20 65 2e 67 | 2e 2c 20 63 75 74 2f 70 |es - e.g|., cut/p|
|00000af0| 61 73 74 65 2c 20 69 6e | 66 6f 72 6d 61 74 69 6f |aste, in|formatio|
|00000b00| 6e 20 62 6f 78 65 73 20 | 2d 20 61 72 65 20 6f 6e |n boxes |- are on|
|00000b10| 6c 79 20 70 61 72 74 6c | 79 0d 20 20 20 69 6d 70 |ly partl|y. imp|
|00000b20| 6c 65 6d 65 6e 74 65 64 | 20 74 6f 20 73 68 6f 77 |lemented| to show|
|00000b30| 20 70 6f 69 6e 74 73 20 | 6f 66 20 64 65 70 61 72 | points |of depar|
|00000b40| 74 75 72 65 20 77 68 65 | 72 65 20 74 68 65 20 75 |ture whe|re the u|
|00000b50| 73 65 72 20 6d 61 79 20 | 65 78 74 65 6e 64 0d 20 |ser may |extend. |
|00000b60| 20 20 74 68 65 20 63 6f | 64 65 29 3a 20 20 74 68 | the co|de): th|
|00000b70| 65 20 61 69 6d 20 69 73 | 20 74 6f 20 69 6e 76 69 |e aim is| to invi|
|00000b80| 74 65 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 67 |te the u|ser to g|
|00000b90| 61 69 6e 20 65 78 70 65 | 72 74 69 73 65 20 69 6e |ain expe|rtise in|
|00000ba0| 0d 20 20 20 4d 61 63 69 | 6e 74 6f 73 68 20 43 6f |. Maci|ntosh Co|
|00000bb0| 6d 6d 6f 6e 20 4c 69 73 | 70 20 28 56 65 72 73 69 |mmon Lis|p (Versi|
|00000bc0| 6f 6e 20 32 2e 30 29 20 | 61 6e 64 20 68 61 76 65 |on 2.0) |and have|
|00000bd0| 20 73 6f 6d 65 20 66 75 | 6e 2e 0d 0d 0d 52 65 71 | some fu|n....Req|
|00000be0| 75 69 72 65 6d 65 6e 74 | 73 2e 0d 0d 20 20 20 59 |uirement|s... Y|
|00000bf0| 6f 75 20 73 68 6f 75 6c | 64 20 68 61 76 65 20 74 |ou shoul|d have t|
|00000c00| 68 65 20 72 65 6c 65 61 | 73 65 20 76 65 72 73 69 |he relea|se versi|
|00000c10| 6f 6e 20 6f 66 20 4d 61 | 63 69 6e 74 6f 73 68 20 |on of Ma|cintosh |
|00000c20| 43 6f 6d 6d 6f 6e 20 4c | 69 73 70 20 32 2e 30 2e |Common L|isp 2.0.|
|00000c30| 0d 0d 20 20 20 4d 43 4c | 32 20 69 73 20 61 76 61 |.. MCL|2 is ava|
|00000c40| 69 6c 61 62 6c 65 20 66 | 72 6f 6d 20 41 50 44 41 |ilable f|rom APDA|
|00000c50| 20 28 73 65 65 20 66 69 | 6c 65 20 22 57 68 65 72 | (see fi|le "Wher|
|00000c60| 65 20 74 6f 20 62 75 79 | 20 4d 43 4c 22 29 2e 0d |e to buy| MCL")..|
|00000c70| 20 20 20 54 68 65 20 4d | 69 6e 69 2d 61 70 70 20 | The M|ini-app |
|00000c80| 77 69 6c 6c 20 6e 6f 74 | 20 77 6f 72 6b 20 77 69 |will not| work wi|
|00000c90| 74 68 20 65 61 72 6c 69 | 65 72 20 76 65 72 73 69 |th earli|er versi|
|00000ca0| 6f 6e 73 20 73 75 63 68 | 20 61 73 20 32 2e 30 62 |ons such| as 2.0b|
|00000cb0| 31 2e 20 0d 20 20 20 54 | 68 65 20 4d 69 6e 69 2d |1. . T|he Mini-|
|00000cc0| 61 70 70 20 69 73 20 75 | 6e 6c 69 6b 65 6c 79 20 |app is u|nlikely |
|00000cd0| 74 6f 20 77 6f 72 6b 20 | 77 69 74 68 20 6c 61 74 |to work |with lat|
|00000ce0| 65 72 20 76 65 72 73 69 | 6f 6e 73 20 77 69 74 68 |er versi|ons with|
|00000cf0| 6f 75 74 20 61 64 6a 75 | 73 74 6d 65 6e 74 2e 20 |out adju|stment. |
|00000d00| 0d 0d 20 20 20 34 4d 42 | 20 6f 66 20 61 70 70 6c |.. 4MB| of appl|
|00000d10| 69 63 61 74 69 6f 6e 20 | 73 70 61 63 65 20 69 73 |ication |space is|
|00000d20| 20 72 65 63 6f 6d 6d 65 | 6e 64 65 64 2c 20 61 6c | recomme|nded, al|
|00000d30| 74 68 6f 75 67 68 20 61 | 20 6d 69 6e 69 6d 61 6c |though a| minimal|
|00000d40| 20 4d 43 4c 0d 20 20 20 | 63 6f 6e 66 69 67 75 72 | MCL. |configur|
|00000d50| 61 74 69 6f 6e 20 69 73 | 20 73 75 66 66 69 63 69 |ation is| suffici|
|00000d60| 65 6e 74 20 74 6f 20 72 | 75 6e 20 74 68 65 20 4d |ent to r|un the M|
|00000d70| 69 6e 69 2d 41 70 70 6c | 69 63 61 74 69 6f 6e 2e |ini-Appl|ication.|
|00000d80| 0d 0d 0d 49 6e 73 74 61 | 6c 6c 69 6e 67 20 74 68 |...Insta|lling th|
|00000d90| 65 20 4d 69 6e 69 2d 41 | 70 70 6c 69 63 61 74 69 |e Mini-A|pplicati|
|00000da0| 6f 6e 2e 0d 0d 20 20 20 | 4d 61 6b 65 20 73 75 72 |on... |Make sur|
|00000db0| 65 20 74 68 65 20 4d 69 | 6e 69 2d 41 70 70 6c 69 |e the Mi|ni-Appli|
|00000dc0| 63 61 74 69 6f 6e 20 66 | 6f 6c 64 65 72 20 69 73 |cation f|older is|
|00000dd0| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 66 6f 6c | in the |same fol|
|00000de0| 64 65 72 0d 20 20 20 61 | 73 20 74 68 65 20 4d 43 |der. a|s the MC|
|00000df0| 4c 32 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |L2 appli|cation, |
|00000e00| 61 6e 64 20 69 73 20 6e | 61 6d 65 64 20 22 4d 69 |and is n|amed "Mi|
|00000e10| 6e 69 2d 41 70 70 6c 69 | 63 61 74 69 6f 6e 22 2e |ni-Appli|cation".|
|00000e20| 0d 0d 20 20 20 54 6f 20 | 6c 6f 61 64 20 4d 43 4c |.. To |load MCL|
|00000e30| 2c 20 64 6f 75 62 6c 65 | 2d 63 6c 69 63 6b 20 6f |, double|-click o|
|00000e40| 6e 20 74 68 65 20 4d 43 | 4c 20 61 70 70 6c 69 63 |n the MC|L applic|
|00000e50| 61 74 69 6f 6e 20 69 63 | 6f 6e 2e 0d 0d 0d 52 75 |ation ic|on....Ru|
|00000e60| 6e 6e 69 6e 67 20 74 68 | 65 20 4d 69 6e 69 2d 41 |nning th|e Mini-A|
|00000e70| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 0d 20 20 20 |pplicati|on... |
|00000e80| 54 6f 20 74 72 79 20 6f | 75 74 20 74 68 65 20 4d |To try o|ut the M|
|00000e90| 69 6e 69 2d 41 70 70 6c | 69 63 61 74 69 6f 6e 2c |ini-Appl|ication,|
|00000ea0| 20 73 69 6d 70 6c 79 20 | 6c 6f 61 64 20 69 74 20 | simply |load it |
|00000eb0| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0d 0d 20 20 20 |as follo|ws:.. |
|00000ec0| 20 20 20 20 20 43 68 6f | 6f 73 65 20 4c 6f 61 64 | Cho|ose Load|
|00000ed0| 2e 2e 2e 20 69 6e 20 74 | 68 65 20 45 76 61 6c 20 |... in t|he Eval |
|00000ee0| 4d 65 6e 75 2c 20 61 6e | 64 0d 20 20 20 20 20 20 |Menu, an|d. |
|00000ef0| 20 20 6c 6f 61 64 20 66 | 69 6c 65 20 22 62 75 69 | load f|ile "bui|
|00000f00| 6c 64 2d 61 6e 64 2d 72 | 75 6e 2d 6d 69 6e 69 2d |ld-and-r|un-mini-|
|00000f10| 61 70 70 2e 6c 69 73 70 | 22 2c 0d 0d 20 20 20 20 |app.lisp|",.. |
|00000f20| 20 20 20 20 20 20 20 20 | 20 6f 72 20 65 76 61 6c | | or eval|
|00000f30| 75 61 74 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |uate the| followi|
|00000f40| 6e 67 20 69 6e 20 74 68 | 65 20 4c 69 73 74 65 6e |ng in th|e Listen|
|00000f50| 65 72 3a 0d 0d 09 28 6c | 6f 61 64 20 22 63 63 6c |er:...(l|oad "ccl|
|00000f60| 3a 4d 69 6e 69 2d 41 70 | 70 6c 69 63 61 74 69 6f |:Mini-Ap|plicatio|
|00000f70| 6e 3b 62 75 69 6c 64 2d | 61 6e 64 2d 72 75 6e 2d |n;build-|and-run-|
|00000f80| 6d 69 6e 69 2d 61 70 70 | 2e 6c 69 73 70 22 29 0d |mini-app|.lisp").|
|00000f90| 0d 20 20 20 20 20 20 20 | 20 4e 6f 74 65 20 74 68 |. | Note th|
|00000fa0| 61 74 20 43 4c 54 4c 32 | 27 73 20 68 6f 73 74 20 |at CLTL2|'s host |
|00000fb0| 73 79 6e 74 61 78 20 28 | 61 6e 64 20 68 65 6e 63 |syntax (|and henc|
|00000fc0| 65 20 4d 43 4c 32 27 73 | 20 73 79 6e 74 61 78 29 |e MCL2's| syntax)|
|00000fd0| 20 72 65 73 75 6c 74 73 | 20 0d 20 20 20 20 20 20 | results| . |
|00000fe0| 20 20 69 6e 20 74 68 65 | 20 63 6f 6c 6f 6e 20 61 | in the| colon a|
|00000ff0| 6e 64 20 70 65 72 69 6f | 64 20 69 6e 20 74 68 65 |nd perio|d in the|
|00001000| 20 70 61 74 68 6e 61 6d | 65 20 62 65 69 6e 67 20 | pathnam|e being |
|00001010| 73 77 61 70 70 65 64 0d | 20 20 20 20 20 20 20 20 |swapped.| |
|00001020| 72 65 6c 61 74 69 76 65 | 20 74 6f 20 74 68 65 69 |relative| to thei|
|00001030| 72 20 70 6f 73 69 74 69 | 6f 6e 73 20 69 6e 20 4d |r positi|ons in M|
|00001040| 43 4c 20 32 2e 30 62 31 | 2e 20 49 66 20 79 6f 75 |CL 2.0b1|. If you|
|00001050| 20 61 72 65 20 6e 6f 74 | 20 0d 20 20 20 20 20 20 | are not| . |
|00001060| 20 20 66 61 6d 69 6c 69 | 61 72 20 77 69 74 68 20 | famili|ar with |
|00001070| 74 68 69 73 20 73 79 6e | 74 61 78 20 73 65 65 20 |this syn|tax see |
|00001080| 74 68 65 20 46 69 6c 65 | 20 53 79 73 74 65 6d 20 |the File| System |
|00001090| 63 68 61 70 74 65 72 73 | 20 69 6e 20 74 68 65 0d |chapters| in the.|
|000010a0| 20 20 20 20 20 20 20 20 | 4d 43 4c 32 20 52 65 66 | |MCL2 Ref|
|000010b0| 65 72 65 6e 63 65 20 61 | 6e 64 20 43 4c 54 4c 32 |erence a|nd CLTL2|
|000010c0| 2e 0d 0d 0d 53 77 69 74 | 63 68 69 6e 67 20 62 65 |....Swit|ching be|
|000010d0| 74 77 65 65 6e 20 74 68 | 65 20 4d 69 6e 69 2d 41 |tween th|e Mini-A|
|000010e0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 61 6e 64 20 4d |pplicati|on and M|
|000010f0| 43 4c 32 2e 0d 0d 20 20 | 20 46 72 6f 6d 20 74 68 |CL2... | From th|
|00001100| 65 20 4d 69 6e 69 2d 41 | 70 70 6c 69 63 61 74 69 |e Mini-A|pplicati|
|00001110| 6f 6e 20 74 6f 20 73 77 | 69 74 63 68 20 62 61 63 |on to sw|itch bac|
|00001120| 6b 20 74 6f 20 4d 43 4c | 32 27 73 20 6d 65 6e 75 |k to MCL|2's menu|
|00001130| 73 3a 0d 20 20 20 20 20 | 2d 20 63 68 6f 6f 73 65 |s:. |- choose|
|00001140| 20 51 75 69 74 20 69 6e | 20 74 68 65 20 46 69 6c | Quit in| the Fil|
|00001150| 65 20 6d 65 6e 75 2c 20 | 6f 72 20 0d 20 20 20 20 |e menu, |or . |
|00001160| 20 2d 20 63 68 6f 6f 73 | 65 20 47 6f 20 54 6f 20 | - choos|e Go To |
|00001170| 4c 69 73 70 20 4d 65 6e | 75 62 61 72 20 69 6e 20 |Lisp Men|ubar in |
|00001180| 74 68 65 20 4f 70 74 69 | 6f 6e 73 20 6d 65 6e 75 |the Opti|ons menu|
|00001190| 2e 0d 20 20 20 54 6f 20 | 73 77 69 74 63 68 20 62 |.. To |switch b|
|000011a0| 61 63 6b 20 74 6f 20 74 | 68 65 20 4d 69 6e 69 2d |ack to t|he Mini-|
|000011b0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 3a 0d 20 20 20 |Applicat|ion:. |
|000011c0| 20 20 2d 20 63 68 6f 6f | 73 65 20 47 6f 20 54 6f | - choo|se Go To|
|000011d0| 20 4d 69 6e 69 2d 41 70 | 70 6c 69 63 61 74 69 6f | Mini-Ap|plicatio|
|000011e0| 6e 20 69 6e 20 74 68 65 | 20 54 6f 6f 6c 73 20 6d |n in the| Tools m|
|000011f0| 65 6e 75 2e 0d 20 20 20 | 20 20 2d 20 65 76 61 6c |enu.. | - eval|
|00001200| 75 61 74 65 20 28 73 68 | 6f 77 2d 6d 65 6e 75 73 |uate (sh|ow-menus|
|00001210| 29 2c 20 6f 72 20 69 66 | 20 79 6f 75 27 76 65 20 |), or if| you've |
|00001220| 6d 61 64 65 20 63 68 61 | 6e 67 65 73 0d 20 20 20 |made cha|nges. |
|00001230| 20 20 2d 20 65 76 61 6c | 75 61 74 65 20 28 6c 6f | - eval|uate (lo|
|00001240| 61 64 20 22 63 63 6c 3a | 4d 69 6e 69 2d 41 70 70 |ad "ccl:|Mini-App|
|00001250| 6c 69 63 61 74 69 6f 6e | 3b 62 75 69 6c 64 2d 61 |lication|;build-a|
|00001260| 6e 64 2d 72 75 6e 2d 6d | 69 6e 69 2d 61 70 70 2e |nd-run-m|ini-app.|
|00001270| 6c 69 73 70 22 29 0d 0d | 20 20 20 4e 6f 74 65 20 |lisp")..| Note |
|00001280| 74 68 61 74 20 63 6c 69 | 63 6b 69 6e 67 20 74 68 |that cli|cking th|
|00001290| 65 20 51 75 69 74 20 74 | 6f 6f 6c 20 69 63 6f 6e |e Quit t|ool icon|
|000012a0| 20 69 6e 20 74 68 65 20 | 4d 69 6e 69 2d 41 70 70 | in the |Mini-App|
|000012b0| 6c 69 63 61 74 69 6f 6e | 27 73 20 54 6f 6f 6c 73 |lication|'s Tools|
|000012c0| 0d 20 20 20 20 20 20 70 | 61 6c 65 74 74 65 20 61 |. p|alette a|
|000012d0| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 71 75 69 |llows yo|u to qui|
|000012e0| 74 20 74 68 65 20 4d 69 | 6e 69 2d 41 70 70 6c 69 |t the Mi|ni-Appli|
|000012f0| 63 61 74 69 6f 6e 20 41 | 4e 44 20 4d 43 4c 32 2e |cation A|ND MCL2.|
|00001300| 0d 0d 0d 4d 6f 64 69 66 | 79 69 6e 67 20 74 68 65 |...Modif|ying the|
|00001310| 20 4d 69 6e 69 2d 41 70 | 70 6c 69 63 61 74 69 6f | Mini-Ap|plicatio|
|00001320| 6e 2e 0d 0d 20 20 20 54 | 68 65 20 4d 69 6e 69 2d |n... T|he Mini-|
|00001330| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 61 73 20 |Applicat|ion was |
|00001340| 64 65 73 69 67 6e 65 64 | 20 61 73 20 61 20 77 6f |designed| as a wo|
|00001350| 72 6b 69 6e 67 20 61 70 | 70 6c 69 63 61 74 69 6f |rking ap|plicatio|
|00001360| 6e 20 74 6f 20 62 65 20 | 0d 20 20 20 69 6e 63 72 |n to be |. incr|
|00001370| 65 6d 65 6e 74 61 6c 6c | 79 20 6d 6f 64 69 66 69 |ementall|y modifi|
|00001380| 65 64 20 62 79 20 74 68 | 65 20 72 65 61 64 65 72 |ed by th|e reader|
|00001390| 20 69 6e 74 65 72 65 73 | 74 65 64 20 69 6e 20 73 | interes|ted in s|
|000013a0| 65 6c 66 2d 64 69 72 65 | 63 74 65 64 0d 20 20 20 |elf-dire|cted. |
|000013b0| 6c 65 61 72 6e 69 6e 67 | 2e 0d 0d 20 20 20 46 69 |learning|... Fi|
|000013c0| 6c 65 20 6f 70 65 6e 2d | 61 6c 6c 2d 74 65 78 74 |le open-|all-text|
|000013d0| 2d 66 69 6c 65 73 2e 6c | 69 73 70 20 68 61 73 20 |-files.l|isp has |
|000013e0| 62 65 65 6e 20 61 64 64 | 65 64 2e 20 49 74 20 64 |been add|ed. It d|
|000013f0| 65 66 69 6e 65 73 20 61 | 20 6e 65 77 0d 20 20 20 |efines a| new. |
|00001400| 46 72 65 64 20 63 6f 6d | 6d 61 6e 64 20 6d 65 74 |Fred com|mand met|
|00001410| 61 2d 61 20 74 68 61 74 | 20 6f 70 65 6e 73 20 61 |a-a that| opens a|
|00001420| 6c 6c 20 74 65 78 74 20 | 66 69 6c 65 73 20 69 6e |ll text |files in|
|00001430| 20 61 20 73 70 65 63 69 | 66 69 65 64 0d 20 20 20 | a speci|fied. |
|00001440| 64 69 72 65 63 74 6f 72 | 79 2e 20 54 68 69 73 20 |director|y. This |
|00001450| 69 73 20 76 65 72 79 20 | 75 73 65 66 75 6c 20 66 |is very |useful f|
|00001460| 6f 72 20 6f 70 65 6e 69 | 6e 67 20 61 6c 6c 20 74 |or openi|ng all t|
|00001470| 68 65 20 70 72 6f 67 72 | 61 6d 20 66 69 6c 65 73 |he progr|am files|
|00001480| 0d 20 20 20 61 74 20 6f | 6e 63 65 20 77 68 65 6e |. at o|nce when|
|00001490| 20 62 72 6f 77 73 69 6e | 67 2e 0d 0d 20 20 20 49 | browsin|g... I|
|000014a0| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |n additi|on to th|
|000014b0| 65 20 4c 69 73 74 20 44 | 65 66 69 6e 69 74 69 6f |e List D|efinitio|
|000014c0| 6e 73 20 6d 65 6e 75 20 | 69 74 65 6d 20 6d 65 6e |ns menu |item men|
|000014d0| 74 69 6f 6e 65 64 20 69 | 6e 20 74 68 65 0d 20 20 |tioned i|n the. |
|000014e0| 20 61 72 74 69 63 6c 65 | 2c 20 64 6f 6e 27 74 20 | article|, don't |
|000014f0| 66 6f 72 67 65 74 20 74 | 6f 20 75 73 65 20 22 6d |forget t|o use "m|
|00001500| 65 74 61 2d 70 6f 69 6e | 74 22 20 74 6f 20 68 65 |eta-poin|t" to he|
|00001510| 6c 70 20 79 6f 75 20 77 | 68 69 6c 65 20 62 72 6f |lp you w|hile bro|
|00001520| 77 73 69 6e 67 3a 0d 20 | 20 20 70 75 74 20 74 68 |wsing:. | put th|
|00001530| 65 20 69 6e 73 65 72 74 | 69 6f 6e 20 62 61 72 20 |e insert|ion bar |
|00001540| 69 6e 20 61 20 66 75 6e | 63 74 69 6f 6e 2c 20 63 |in a fun|ction, c|
|00001550| 6c 61 73 73 20 6f 72 20 | 67 6c 6f 62 61 6c 20 76 |lass or |global v|
|00001560| 61 72 69 61 62 6c 65 20 | 6e 61 6d 65 2c 0d 20 20 |ariable |name,. |
|00001570| 20 68 6f 6c 64 20 64 6f | 77 6e 20 74 68 65 20 6f | hold do|wn the o|
|00001580| 70 74 69 6f 6e 20 6b 65 | 79 2c 20 61 6e 64 20 74 |ption ke|y, and t|
|00001590| 79 70 65 20 70 65 72 69 | 6f 64 2e 20 54 68 69 73 |ype peri|od. This|
|000015a0| 20 77 69 6c 6c 20 62 72 | 69 6e 67 20 75 70 20 74 | will br|ing up t|
|000015b0| 68 65 0d 20 20 20 64 65 | 66 69 6e 69 74 69 6f 6e |he. de|finition|
|000015c0| 2e 0d 0d 0d 48 6f 77 20 | 74 68 65 20 4d 69 6e 69 |....How |the Mini|
|000015d0| 2d 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 77 6f 72 |-Applica|tion wor|
|000015e0| 6b 73 2e 0d 0d 20 20 20 | 54 68 69 73 20 65 78 61 |ks... |This exa|
|000015f0| 6d 70 6c 65 20 6f 66 20 | 74 68 65 20 75 73 65 20 |mple of |the use |
|00001600| 6f 66 20 74 68 65 20 63 | 6f 72 65 20 66 75 6e 63 |of the c|ore func|
|00001610| 74 69 6f 6e 61 6c 69 74 | 79 20 6f 66 20 74 68 65 |tionalit|y of the|
|00001620| 0d 20 20 20 6d 69 6e 69 | 2d 61 70 70 6c 69 63 61 |. mini|-applica|
|00001630| 74 69 6f 6e 20 63 6f 64 | 65 20 73 75 70 70 6f 72 |tion cod|e suppor|
|00001640| 74 73 20 74 68 65 20 63 | 72 65 61 74 69 6f 6e 20 |ts the c|reation |
|00001650| 6f 66 20 61 20 70 61 6c | 65 74 74 65 20 63 6f 6e |of a pal|ette con|
|00001660| 74 61 69 6e 69 6e 67 0d | 20 20 20 64 72 61 77 2d |taining.| draw-|
|00001670| 69 74 65 6d 73 20 61 6e | 64 20 74 6f 6f 6c 73 2e |items an|d tools.|
|00001680| 20 41 20 70 61 6c 65 74 | 74 65 20 63 61 72 72 69 | A palet|te carri|
|00001690| 65 73 20 74 68 65 20 74 | 6f 6f 6c 73 20 61 6e 64 |es the t|ools and|
|000016a0| 20 64 72 61 77 2d 69 74 | 65 6d 73 2e 0d 20 20 20 | draw-it|ems.. |
|000016b0| 54 68 69 73 20 69 73 20 | 6a 75 73 74 20 6f 6e 65 |This is |just one|
|000016c0| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 68 6f 77 20 | example| of how |
|000016d0| 74 68 65 20 4d 69 6e 69 | 2d 41 70 70 6c 69 63 61 |the Mini|-Applica|
|000016e0| 74 69 6f 6e 20 63 6f 72 | 65 20 63 6f 64 65 20 6d |tion cor|e code m|
|000016f0| 61 79 0d 20 20 20 62 65 | 20 62 75 69 6c 74 20 75 |ay. be| built u|
|00001700| 70 6f 6e 2e 20 20 20 0d | 0d 20 20 20 54 68 65 20 |pon. .|. The |
|00001710| 75 73 65 72 20 63 72 65 | 61 74 65 73 20 61 20 74 |user cre|ates a t|
|00001720| 6f 6f 6c 20 70 61 6c 65 | 74 74 65 20 62 79 20 73 |ool pale|tte by s|
|00001730| 65 6c 65 63 74 69 6e 67 | 20 74 68 65 20 22 50 61 |electing| the "Pa|
|00001740| 6c 65 74 74 65 22 20 6d | 65 6e 75 20 69 74 65 6d |lette" m|enu item|
|00001750| 0d 20 20 20 69 6e 20 74 | 68 65 20 22 4f 70 74 69 |. in t|he "Opti|
|00001760| 6f 6e 73 22 20 6d 65 6e | 75 2e 20 54 68 65 20 75 |ons" men|u. The u|
|00001770| 73 65 72 20 63 61 6e 20 | 63 72 65 61 74 65 20 61 |ser can |create a|
|00001780| 6e 79 20 6e 75 6d 62 65 | 72 20 6f 66 20 77 69 6e |ny numbe|r of win|
|00001790| 64 6f 77 73 20 62 79 0d | 20 20 20 63 68 6f 6f 73 |dows by.| choos|
|000017a0| 69 6e 67 20 22 4e 65 77 | 22 20 66 72 6f 6d 20 74 |ing "New|" from t|
|000017b0| 68 65 20 22 46 69 6c 65 | 22 20 6d 65 6e 75 20 61 |he "File|" menu a|
|000017c0| 6e 64 20 70 6c 61 63 65 | 20 69 74 65 6d 73 20 66 |nd place| items f|
|000017d0| 72 6f 6d 20 74 68 65 20 | 70 61 6c 65 74 74 65 0d |rom the |palette.|
|000017e0| 20 20 20 6f 6e 20 74 68 | 65 6d 2e 20 20 0d 0d 0d | on th|em. ...|
|000017f0| 54 68 65 20 4d 69 6e 69 | 2d 41 70 70 6c 69 63 61 |The Mini|-Applica|
|00001800| 74 69 6f 6e 20 54 6f 6f | 6c 20 50 61 6c 65 74 74 |tion Too|l Palett|
|00001810| 65 2e 0d 0d 20 20 20 54 | 68 65 20 66 69 72 73 74 |e... T|he first|
|00001820| 20 74 77 6f 20 69 74 65 | 6d 73 20 61 72 65 20 69 | two ite|ms are i|
|00001830| 63 6f 6e 73 3a 0d 20 20 | 20 20 20 20 20 2d 20 74 |cons:. | - t|
|00001840| 68 65 20 42 72 6f 77 73 | 65 2d 6d 6f 64 65 20 74 |he Brows|e-mode t|
|00001850| 6f 6f 6c 20 69 63 6f 6e | 2c 20 61 6e 64 0d 20 20 |ool icon|, and. |
|00001860| 20 20 20 20 20 2d 20 74 | 68 65 20 51 75 69 74 20 | - t|he Quit |
|00001870| 74 6f 6f 6c 20 69 63 6f | 6e 2e 0d 0d 20 20 20 54 |tool ico|n... T|
|00001880| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 69 74 65 |he follo|wing ite|
|00001890| 6d 73 20 61 72 65 20 22 | 64 72 61 77 2d 69 74 65 |ms are "|draw-ite|
|000018a0| 6d 73 22 20 61 6e 64 20 | 61 72 65 2c 20 69 6e 20 |ms" and |are, in |
|000018b0| 64 65 73 63 65 6e 64 69 | 6e 67 20 6f 72 64 65 72 |descendi|ng order|
|000018c0| 3a 0d 20 20 20 20 20 20 | 20 2d 20 72 6f 75 6e 64 |:. | - round|
|000018d0| 20 62 75 74 74 6f 6e 0d | 20 20 20 20 20 20 20 2d | button.| -|
|000018e0| 20 72 61 64 69 6f 20 62 | 75 74 74 6f 6e 0d 20 20 | radio b|utton. |
|000018f0| 20 20 20 20 20 2d 20 63 | 68 65 63 6b 20 62 6f 78 | - c|heck box|
|00001900| 0d 20 20 20 20 20 20 20 | 2d 20 74 65 78 74 20 66 |. |- text f|
|00001910| 69 65 6c 64 0d 20 20 20 | 20 20 20 20 2d 20 72 65 |ield. | - re|
|00001920| 63 74 61 6e 67 6c 65 20 | 28 51 75 69 63 6b 44 72 |ctangle |(QuickDr|
|00001930| 61 77 29 0d 20 20 20 20 | 20 20 20 2d 20 6f 76 61 |aw). | - ova|
|00001940| 6c 20 28 51 75 69 63 6b | 44 72 61 77 29 2e 0d 0d |l (Quick|Draw)...|
|00001950| 20 20 20 43 6c 69 63 6b | 69 6e 67 20 6f 6e 20 74 | Click|ing on t|
|00001960| 68 65 20 42 72 6f 77 73 | 65 2d 6d 6f 64 65 20 74 |he Brows|e-mode t|
|00001970| 6f 6f 6c 20 74 6f 67 67 | 6c 65 73 20 62 65 74 77 |ool togg|les betw|
|00001980| 65 65 6e 20 42 72 6f 77 | 73 65 20 6d 6f 64 65 20 |een Brow|se mode |
|00001990| 61 6e 64 20 0d 20 20 20 | 20 20 20 41 75 74 68 6f |and . | Autho|
|000019a0| 72 69 6e 67 20 6d 6f 64 | 65 73 20 66 6f 72 20 41 |ring mod|es for A|
|000019b0| 4c 4c 20 22 64 72 61 77 | 2d 64 69 61 6c 6f 67 22 |LL "draw|-dialog"|
|000019c0| 20 77 69 6e 64 6f 77 73 | 2e 0d 20 20 20 20 20 20 | windows|.. |
|000019d0| 49 6e 20 42 72 6f 77 73 | 65 20 6d 6f 64 65 20 79 |In Brows|e mode y|
|000019e0| 6f 75 20 63 61 6e 20 6d | 61 6e 69 70 75 6c 61 74 |ou can m|anipulat|
|000019f0| 65 20 74 68 65 20 74 6f | 70 20 77 69 6e 64 6f 77 |e the to|p window|
|00001a00| 20 69 6e 20 74 68 65 20 | 75 73 75 61 6c 20 77 61 | in the |usual wa|
|00001a10| 79 2c 0d 20 20 20 20 20 | 20 20 20 20 62 75 74 20 |y,. | but |
|00001a20| 79 6f 75 20 63 61 6e 6e | 6f 74 20 6d 61 6b 65 20 |you cann|ot make |
|00001a30| 63 68 61 6e 67 65 73 20 | 74 6f 20 69 74 73 20 63 |changes |to its c|
|00001a40| 6f 6e 74 65 6e 74 73 2e | 20 4d 6f 72 65 20 69 6d |ontents.| More im|
|00001a50| 70 6f 72 74 61 6e 74 6c | 79 2c 20 0d 20 20 20 20 |portantl|y, . |
|00001a60| 20 20 20 20 20 73 63 72 | 69 70 74 73 20 79 6f 75 | scr|ipts you|
|00001a70| 20 61 74 74 61 63 68 20 | 74 6f 20 64 72 61 77 2d | attach |to draw-|
|00001a80| 69 74 65 6d 73 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 |items wi|ll only |
|00001a90| 72 75 6e 20 77 68 65 6e | 20 69 6e 20 42 72 6f 77 |run when| in Brow|
|00001aa0| 73 65 20 6d 6f 64 65 2e | 0d 20 20 20 20 20 20 49 |se mode.|. I|
|00001ab0| 6e 20 41 75 74 68 6f 72 | 69 6e 67 20 6d 6f 64 65 |n Author|ing mode|
|00001ac0| 20 79 6f 75 20 63 61 6e | 20 63 68 61 6e 67 65 20 | you can| change |
|00001ad0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00001ae0| 77 69 6e 64 6f 77 73 2c | 20 66 6f 72 20 65 78 61 |windows,| for exa|
|00001af0| 6d 70 6c 65 0d 20 20 20 | 20 20 20 20 20 20 62 79 |mple. | by|
|00001b00| 20 64 72 61 67 67 69 6e | 67 20 64 72 61 77 2d 69 | draggin|g draw-i|
|00001b10| 74 65 6d 73 20 66 72 6f | 6d 20 74 68 65 20 70 61 |tems fro|m the pa|
|00001b20| 6c 65 74 74 65 20 6f 6e | 74 6f 20 77 69 6e 64 6f |lette on|to windo|
|00001b30| 77 73 20 28 73 65 65 20 | 62 65 6c 6f 77 29 2e 0d |ws (see |below)..|
|00001b40| 0d 20 20 20 20 20 20 4e | 6f 74 65 20 74 68 61 74 |. N|ote that|
|00001b50| 20 65 61 63 68 20 6d 69 | 6e 69 2d 61 70 70 6c 69 | each mi|ni-appli|
|00001b60| 63 61 74 69 6f 6e 20 77 | 69 6e 64 6f 77 20 6d 61 |cation w|indow ma|
|00001b70| 79 2c 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 6c 79 |y, indep|endently|
|00001b80| 20 6f 66 20 74 68 65 20 | 0d 20 20 20 20 20 20 6f | of the |. o|
|00001b90| 74 68 65 72 73 2c 20 62 | 65 20 69 6e 20 65 69 74 |thers, b|e in eit|
|00001ba0| 68 65 72 20 61 75 74 68 | 6f 72 69 6e 67 20 6f 72 |her auth|oring or|
|00001bb0| 20 62 72 6f 77 73 65 20 | 6d 6f 64 65 2e 20 4e 6f | browse |mode. No|
|00001bc0| 74 65 20 74 68 61 74 20 | 65 61 63 68 20 6e 65 77 |te that |each new|
|00001bd0| 20 0d 20 20 20 20 20 20 | 77 69 6e 64 6f 77 20 63 | . |window c|
|00001be0| 6f 6d 65 73 20 75 70 20 | 69 6e 20 41 75 74 68 6f |omes up |in Autho|
|00001bf0| 72 69 6e 67 20 6d 6f 64 | 65 2c 20 61 6e 64 20 63 |ring mod|e, and c|
|00001c00| 6c 69 63 6b 69 6e 67 20 | 6f 6e 20 74 68 65 20 42 |licking |on the B|
|00001c10| 72 6f 77 73 65 2d 6d 6f | 64 65 0d 20 20 20 20 20 |rowse-mo|de. |
|00001c20| 20 74 6f 6f 6c 20 54 4f | 47 47 4c 45 53 20 74 68 | tool TO|GGLES th|
|00001c30| 65 20 6d 6f 64 65 20 6f | 66 20 61 6c 6c 20 77 69 |e mode o|f all wi|
|00001c40| 6e 64 6f 77 73 2e 0d 0d | 20 20 20 43 6c 69 63 6b |ndows...| Click|
|00001c50| 69 6e 67 20 6f 6e 20 74 | 68 65 20 74 68 65 20 51 |ing on t|he the Q|
|00001c60| 75 69 74 20 69 63 6f 6e | 20 71 75 69 74 73 20 74 |uit icon| quits t|
|00001c70| 68 65 20 4d 69 6e 69 2d | 41 70 70 6c 69 63 61 74 |he Mini-|Applicat|
|00001c80| 69 6f 6e 20 41 4e 44 20 | 4d 43 4c 2e 0d 0d 20 20 |ion AND |MCL... |
|00001c90| 20 59 6f 75 20 6d 61 79 | 20 63 72 65 61 74 65 20 | You may| create |
|00001ca0| 61 6e 79 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 69 |any numb|er of wi|
|00001cb0| 6e 64 6f 77 73 20 75 73 | 69 6e 67 20 74 68 65 20 |ndows us|ing the |
|00001cc0| 22 4e 65 77 22 20 6d 65 | 6e 75 20 69 74 65 6d 20 |"New" me|nu item |
|00001cd0| 69 6e 0d 20 20 20 20 20 | 20 74 68 65 20 22 46 69 |in. | the "Fi|
|00001ce0| 6c 65 22 20 6d 65 6e 75 | 2e 20 20 59 6f 75 20 63 |le" menu|. You c|
|00001cf0| 61 6e 20 63 6c 69 63 6b | 20 6f 6e 20 61 6e 79 20 |an click| on any |
|00001d00| 64 72 61 77 2d 69 74 65 | 6d 20 69 6e 20 74 68 65 |draw-ite|m in the|
|00001d10| 20 70 61 6c 65 74 74 65 | 0d 20 20 20 20 20 20 61 | palette|. a|
|00001d20| 6e 64 20 64 72 61 67 20 | 69 74 20 6f 75 74 20 61 |nd drag |it out a|
|00001d30| 6e 64 20 64 72 6f 70 20 | 69 74 20 6f 6e 74 6f 20 |nd drop |it onto |
|00001d40| 61 6e 79 20 77 69 6e 64 | 6f 77 2e 20 20 54 68 69 |any wind|ow. Thi|
|00001d50| 73 20 77 69 6c 6c 20 63 | 72 65 61 74 65 20 61 0d |s will c|reate a.|
|00001d60| 20 20 20 20 20 20 63 6c | 6f 6e 65 20 6f 66 20 74 | cl|one of t|
|00001d70| 68 61 74 20 64 72 61 77 | 2d 69 74 65 6d 20 6f 6e |hat draw|-item on|
|00001d80| 20 74 68 61 74 20 77 69 | 6e 64 6f 77 2e 20 20 59 | that wi|ndow. Y|
|00001d90| 6f 75 20 6d 61 79 20 64 | 72 61 67 20 61 20 64 72 |ou may d|rag a dr|
|00001da0| 61 77 2d 69 74 65 6d 0d | 20 20 20 20 20 20 77 69 |aw-item.| wi|
|00001db0| 74 68 69 6e 20 61 20 77 | 69 6e 64 6f 77 20 6f 72 |thin a w|indow or|
|00001dc0| 20 66 72 6f 6d 20 77 69 | 6e 64 6f 77 20 74 6f 20 | from wi|ndow to |
|00001dd0| 77 69 6e 64 6f 77 2e 20 | 59 6f 75 20 6d 61 79 20 |window. |You may |
|00001de0| 72 65 73 69 7a 65 20 61 | 0d 20 20 20 20 20 20 64 |resize a|. d|
|00001df0| 72 61 77 2d 69 74 65 6d | 20 62 79 20 67 72 61 62 |raw-item| by grab|
|00001e00| 62 69 6e 67 20 6f 6e 65 | 20 6f 66 20 69 74 73 20 |bing one| of its |
|00001e10| 63 6f 72 6e 65 72 73 20 | 6f 72 20 73 69 64 65 73 |corners |or sides|
|00001e20| 20 28 6e 6f 20 68 61 6e | 64 6c 65 73 0d 20 20 20 | (no han|dles. |
|00001e30| 20 20 20 73 68 6f 77 20 | 69 6e 20 74 68 69 73 20 | show |in this |
|00001e40| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 3a 20 |implemen|tation: |
|00001e50| 65 78 65 72 63 69 73 65 | 20 66 6f 72 20 74 68 65 |exercise| for the|
|00001e60| 20 72 65 61 64 65 72 21 | 29 20 2d 20 72 65 73 69 | reader!|) - resi|
|00001e70| 7a 69 6e 67 0d 20 20 20 | 20 20 20 61 70 70 65 61 |zing. | appea|
|00001e80| 72 73 20 69 6e 20 72 65 | 76 65 72 73 65 20 76 69 |rs in re|verse vi|
|00001e90| 64 65 6f 2e 20 0d 20 20 | 20 59 6f 75 20 63 61 6e |deo. . | You can|
|00001ea0| 20 63 72 65 61 74 65 20 | 64 72 61 77 2d 69 74 65 | create |draw-ite|
|00001eb0| 6d 73 20 6f 66 20 61 6e | 79 20 6b 69 6e 64 20 6f |ms of an|y kind o|
|00001ec0| 6e 20 61 20 77 69 6e 64 | 6f 77 3a 0d 20 20 20 20 |n a wind|ow:. |
|00001ed0| 20 20 2d 20 53 65 6c 65 | 63 74 20 52 65 63 74 61 | - Sele|ct Recta|
|00001ee0| 6e 67 6c 65 20 53 74 79 | 6c 65 3a 0d 20 20 20 20 |ngle Sty|le:. |
|00001ef0| 20 20 20 20 20 20 20 43 | 6c 69 63 6b 20 6f 6e 20 | C|lick on |
|00001f00| 61 20 70 61 6c 65 74 74 | 65 20 64 72 61 77 2d 69 |a palett|e draw-i|
|00001f10| 74 65 6d 20 74 6f 20 63 | 68 6f 6f 73 65 20 74 68 |tem to c|hoose th|
|00001f20| 61 74 20 74 6f 6f 6c 2e | 20 0d 20 20 20 20 20 20 |at tool.| . |
|00001f30| 20 20 20 20 20 54 68 65 | 6e 20 63 6c 69 63 6b 20 | The|n click |
|00001f40| 61 6e 64 20 64 72 61 67 | 20 6f 75 74 20 61 20 72 |and drag| out a r|
|00001f50| 65 63 74 61 6e 67 6c 65 | 20 69 6e 20 61 20 77 69 |ectangle| in a wi|
|00001f60| 6e 64 6f 77 20 77 68 65 | 72 65 20 79 6f 75 0d 20 |ndow whe|re you. |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 77 61 6e 74 20 61 | | want a|
|00001f80| 20 64 72 61 77 2d 69 74 | 65 6d 20 6f 66 20 74 68 | draw-it|em of th|
|00001f90| 61 74 20 74 79 70 65 20 | 74 6f 20 61 70 70 65 61 |at type |to appea|
|00001fa0| 72 2e 20 41 20 64 72 61 | 77 2d 69 74 65 6d 20 6f |r. A dra|w-item o|
|00001fb0| 66 0d 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |f. | the|
|00001fc0| 20 61 70 70 72 6f 70 69 | 61 74 65 20 73 69 7a 65 | appropi|ate size|
|00001fd0| 20 61 6e 64 20 6b 69 6e | 64 20 77 69 6c 6c 20 62 | and kin|d will b|
|00001fe0| 65 20 63 72 65 61 74 65 | 64 20 69 6e 20 74 68 65 |e create|d in the|
|00001ff0| 20 77 69 6e 64 6f 77 2e | 0d 20 20 20 20 20 20 20 | window.|. |
|00002000| 20 20 20 20 54 68 65 72 | 65 20 69 73 20 61 6e 20 | Ther|e is an |
|00002010| 4f 70 74 69 6f 6e 73 20 | 6d 65 6e 75 20 6d 65 6e |Options |menu men|
|00002020| 75 2d 69 74 65 6d 20 66 | 6f 72 20 74 75 72 6e 69 |u-item f|or turni|
|00002030| 6e 67 20 74 68 69 73 20 | 6d 6f 64 65 20 6f 6e 0d |ng this |mode on.|
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 6f 72 20 6f 66 | | or of|
|00002050| 66 20 66 6f 72 20 74 68 | 65 20 74 6f 70 20 77 69 |f for th|e top wi|
|00002060| 6e 64 6f 77 2e 0d 20 20 | 20 20 20 20 2d 20 43 6c |ndow.. | - Cl|
|00002070| 69 63 6b 20 61 6e 64 20 | 44 72 61 67 20 53 74 79 |ick and |Drag Sty|
|00002080| 6c 65 3a 0d 20 20 20 20 | 20 20 20 20 20 20 20 43 |le:. | C|
|00002090| 6c 69 63 6b 20 61 6e 64 | 20 64 72 61 67 20 6f 6e |lick and| drag on|
|000020a0| 20 61 20 70 61 6c 65 74 | 74 65 20 64 72 61 77 2d | a palet|te draw-|
|000020b0| 69 74 65 6d 20 74 6f 20 | 64 72 61 67 20 69 74 20 |item to |drag it |
|000020c0| 6f 75 74 2c 20 61 6e 64 | 0d 20 20 20 20 20 20 20 |out, and|. |
|000020d0| 20 20 20 20 64 72 6f 70 | 73 20 69 74 20 28 62 79 | drop|s it (by|
|000020e0| 20 72 65 6c 65 61 73 69 | 6e 67 20 74 68 65 20 6d | releasi|ng the m|
|000020f0| 6f 75 73 65 20 62 75 74 | 74 6f 6e 29 20 6f 6e 20 |ouse but|ton) on |
|00002100| 61 20 77 69 6e 64 6f 77 | 2e 0d 20 20 20 20 20 20 |a window|.. |
|00002110| 20 20 20 20 20 54 68 65 | 20 64 72 61 77 2d 69 74 | The| draw-it|
|00002120| 65 6d 20 77 69 6c 6c 20 | 62 65 20 63 72 65 61 74 |em will |be creat|
|00002130| 65 64 20 61 74 20 74 68 | 65 20 6d 6f 75 73 65 20 |ed at th|e mouse |
|00002140| 70 6f 73 69 74 69 6f 6e | 20 77 68 65 72 65 0d 20 |position| where. |
|00002150| 20 20 20 20 20 20 20 20 | 20 20 74 68 65 20 64 72 | | the dr|
|00002160| 6f 70 20 6f 63 63 75 72 | 72 65 64 20 61 6e 64 20 |op occur|red and |
|00002170| 74 68 65 20 64 72 61 77 | 2d 69 74 65 6d 20 77 69 |the draw|-item wi|
|00002180| 6c 6c 20 62 65 20 73 69 | 7a 65 64 20 74 6f 20 61 |ll be si|zed to a|
|00002190| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 73 74 61 | . | sta|
|000021a0| 6e 64 61 72 64 20 73 69 | 7a 65 20 28 64 65 66 61 |ndard si|ze (defa|
|000021b0| 75 6c 74 73 20 74 6f 20 | 69 74 73 20 73 69 7a 65 |ults to |its size|
|000021c0| 20 69 6e 20 74 68 65 20 | 70 61 6c 65 74 74 65 20 | in the |palette |
|000021d0| 2d 20 74 68 65 72 65 0d | 20 20 20 20 20 20 20 20 |- there.| |
|000021e0| 20 20 20 69 73 20 63 75 | 72 72 65 6e 74 6c 79 20 | is cu|rrently |
|000021f0| 6e 6f 20 70 72 6f 76 69 | 73 69 6f 6e 20 74 6f 20 |no provi|sion to |
|00002200| 63 68 61 6e 67 65 20 74 | 68 65 20 64 65 66 61 75 |change t|he defau|
|00002210| 6c 74 29 2e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |lt).. | |
|00002220| 54 68 69 73 20 6d 65 74 | 68 6f 64 20 6f 66 20 63 |This met|hod of c|
|00002230| 72 65 61 74 69 6e 67 20 | 64 72 61 77 2d 69 74 65 |reating |draw-ite|
|00002240| 6d 73 20 69 73 20 61 6c | 77 61 79 73 20 61 76 61 |ms is al|ways ava|
|00002250| 69 6c 61 62 6c 65 2e 0d | 0d 20 20 20 57 68 65 6e |ilable..|. When|
|00002260| 20 61 20 64 72 61 77 2d | 69 74 65 6d 20 69 73 20 | a draw-|item is |
|00002270| 73 65 6c 65 63 74 65 64 | 2c 20 69 74 27 73 20 74 |selected|, it's t|
|00002280| 79 70 65 20 69 73 20 73 | 68 6f 77 6e 20 69 6e 20 |ype is s|hown in |
|00002290| 74 68 65 20 74 69 74 6c | 65 20 6f 66 0d 20 20 20 |the titl|e of. |
|000022a0| 20 20 20 61 20 6e 65 77 | 20 6d 65 6e 75 2c 20 70 | a new| menu, p|
|000022b0| 72 65 66 69 78 65 64 20 | 62 79 20 22 53 65 6c 65 |refixed |by "Sele|
|000022c0| 63 74 65 64 3a 22 20 49 | 66 20 74 68 65 20 64 72 |cted:" I|f the dr|
|000022d0| 61 77 2d 69 74 65 6d 20 | 69 73 20 69 6e 20 61 0d |aw-item |is in a.|
|000022e0| 20 20 20 20 20 20 75 73 | 65 72 2d 63 72 65 61 74 | us|er-creat|
|000022f0| 65 64 20 77 69 6e 64 6f | 77 2c 20 69 74 73 20 75 |ed windo|w, its u|
|00002300| 6e 69 71 75 65 20 73 79 | 73 74 65 6d 2d 67 65 6e |nique sy|stem-gen|
|00002310| 65 72 61 74 65 64 20 6e | 61 6d 65 20 6f 66 20 74 |erated n|ame of t|
|00002320| 68 65 20 0d 20 20 20 20 | 20 20 69 74 65 6d 20 77 |he . | item w|
|00002330| 69 6c 6c 20 62 65 20 73 | 68 6f 77 6e 20 61 66 74 |ill be s|hown aft|
|00002340| 65 72 20 74 68 65 20 74 | 79 70 65 2e 0d 0d 20 20 |er the t|ype... |
|00002350| 20 54 68 65 20 54 6f 6f | 6c 73 20 70 61 6c 65 74 | The Too|ls palet|
|00002360| 74 65 20 69 73 20 6e 6f | 74 20 61 20 77 69 6e 64 |te is no|t a wind|
|00002370| 6f 69 64 2c 20 77 68 69 | 63 68 20 6d 65 61 6e 73 |oid, whi|ch means|
|00002380| 20 74 68 61 74 20 69 66 | 20 61 6e 6f 74 68 65 72 | that if| another|
|00002390| 0d 20 20 20 20 20 20 77 | 69 6e 64 6f 77 20 69 73 |. w|indow is|
|000023a0| 20 61 63 74 69 76 65 2c | 20 74 68 65 20 54 6f 6f | active,| the Too|
|000023b0| 6c 73 20 70 61 6c 65 74 | 74 65 20 6d 75 73 74 20 |ls palet|te must |
|000023c0| 62 65 20 63 6c 69 63 6b | 65 64 20 6f 6e 20 6f 6e |be click|ed on on|
|000023d0| 63 65 20 74 6f 0d 20 20 | 20 20 20 20 61 63 74 69 |ce to. | acti|
|000023e0| 76 61 74 65 20 69 74 2c | 20 61 6e 64 20 61 20 73 |vate it,| and a s|
|000023f0| 65 63 6f 6e 64 20 74 69 | 6d 65 20 74 6f 20 63 68 |econd ti|me to ch|
|00002400| 6f 6f 73 65 20 74 68 65 | 20 74 6f 6f 6c 20 63 6c |oose the| tool cl|
|00002410| 69 63 6b 65 64 20 6f 6e | 2e 0d 20 20 20 20 20 20 |icked on|.. |
|00002420| 46 6f 72 20 61 6e 20 61 | 64 76 61 6e 63 65 64 20 |For an a|dvanced |
|00002430| 74 75 74 6f 72 69 61 6c | 20 6f 6e 20 74 68 65 20 |tutorial| on the |
|00002440| 4d 43 4c 32 20 75 73 65 | 72 20 69 6e 74 65 72 66 |MCL2 use|r interf|
|00002450| 61 63 65 2c 20 69 6e 63 | 6c 75 64 69 6e 67 0d 20 |ace, inc|luding. |
|00002460| 20 20 20 20 20 77 69 6e | 64 6f 69 64 73 2c 20 73 | win|doids, s|
|00002470| 74 75 64 79 20 74 68 65 | 20 49 6e 74 65 72 66 61 |tudy the| Interfa|
|00002480| 63 65 20 54 6f 6f 6c 4b | 69 74 2e 0d 0d 0d 43 72 |ce ToolK|it....Cr|
|00002490| 65 61 74 69 6e 67 20 61 | 20 73 74 61 6e 64 2d 61 |eating a| stand-a|
|000024a0| 6c 6f 6e 65 20 4d 69 6e | 69 2d 41 70 70 6c 69 63 |lone Min|i-Applic|
|000024b0| 61 74 69 6f 6e 20 70 72 | 6f 67 72 61 6d 2e 0d 0d |ation pr|ogram...|
|000024c0| 20 20 20 45 76 65 6e 20 | 77 68 65 6e 20 74 68 65 | Even |when the|
|000024d0| 20 4d 69 6e 69 2d 41 70 | 70 6c 69 63 61 74 69 6f | Mini-Ap|plicatio|
|000024e0| 6e 20 68 61 73 20 6a 75 | 73 74 20 62 65 65 6e 20 |n has ju|st been |
|000024f0| 6c 6f 61 64 65 64 2c 20 | 74 68 65 72 65 20 69 73 |loaded, |there is|
|00002500| 20 6e 6f 0d 20 20 20 67 | 75 61 72 61 6e 74 65 65 | no. g|uarantee|
|00002510| 20 79 6f 75 20 63 61 6e | 20 73 69 6d 70 6c 79 20 | you can| simply |
|00002520| 63 72 65 61 74 65 20 61 | 20 73 74 61 6e 64 61 6c |create a| standal|
|00002530| 6f 6e 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |one appl|ication |
|00002540| 76 69 61 3a 0d 20 20 20 | 28 73 61 76 65 2d 61 70 |via:. |(save-ap|
|00002550| 70 6c 69 63 61 74 69 6f | 6e 20 22 63 63 6c 3a 4d |plicatio|n "ccl:M|
|00002560| 69 6e 69 2d 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |ini-Appl|ication |
|00002570| 70 67 6d 22 29 2c 20 62 | 65 63 61 75 73 65 0d 20 |pgm"), b|ecause. |
|00002580| 20 20 73 74 61 6e 64 61 | 6c 6f 6e 65 20 61 70 70 | standa|lone app|
|00002590| 6c 69 63 61 74 69 6f 6e | 73 20 6d 75 73 74 20 6e |lication|s must n|
|000025a0| 6f 74 20 63 6f 6e 74 61 | 69 6e 20 61 6e 79 20 70 |ot conta|in any p|
|000025b0| 6f 69 6e 74 65 72 73 20 | 6f 72 20 68 61 6e 64 6c |ointers |or handl|
|000025c0| 65 73 0d 20 20 20 69 6e | 74 6f 20 74 68 65 20 4d |es. in|to the M|
|000025d0| 61 63 69 6e 74 6f 73 68 | 20 68 65 61 70 2e 20 0d |acintosh| heap. .|
|000025e0| 0d 20 20 20 54 68 65 20 | 4d 69 6e 69 2d 41 70 70 |. The |Mini-App|
|000025f0| 6c 69 63 61 74 69 6f 6e | 20 65 78 61 6d 70 6c 65 |lication| example|
|00002600| 20 70 72 6f 67 72 61 6d | 20 6d 69 6e 69 2d 61 70 | program| mini-ap|
|00002610| 70 2d 65 78 61 6d 70 6c | 65 2e 6c 69 73 70 20 63 |p-exampl|e.lisp c|
|00002620| 61 6c 6c 73 0d 20 20 20 | 66 75 6e 63 74 69 6f 6e |alls. |function|
|00002630| 20 63 72 65 61 74 65 2d | 74 6f 6f 6c 20 74 6f 20 | create-|tool to |
|00002640| 63 72 65 61 74 65 20 61 | 20 62 72 6f 77 73 65 2d |create a| browse-|
|00002650| 74 6f 6f 6c 20 61 6e 64 | 20 61 20 71 75 69 74 2d |tool and| a quit-|
|00002660| 74 6f 6f 6c 20 61 73 20 | 69 74 0d 20 20 20 6c 6f |tool as |it. lo|
|00002670| 61 64 73 2e 20 45 61 63 | 68 20 63 6f 6e 74 61 69 |ads. Eac|h contai|
|00002680| 6e 73 20 61 20 68 61 6e | 64 6c 65 20 74 6f 20 69 |ns a han|dle to i|
|00002690| 74 73 20 69 63 6f 6e 2e | 20 63 72 65 61 74 65 2d |ts icon.| create-|
|000026a0| 74 6f 6f 6c 20 28 64 65 | 66 69 6e 65 64 20 69 6e |tool (de|fined in|
|000026b0| 0d 20 20 20 64 72 61 77 | 2d 69 74 65 6d 2d 63 6c |. draw|-item-cl|
|000026c0| 61 73 73 2e 6c 69 73 70 | 29 20 63 61 6c 6c 73 20 |ass.lisp|) calls |
|000026d0| 63 72 65 61 74 65 2d 64 | 72 61 77 2d 69 74 65 6d |create-d|raw-item|
|000026e0| 2c 20 77 68 69 63 68 20 | 69 6e 20 74 75 72 6e 20 |, which |in turn |
|000026f0| 0d 20 20 20 6f 72 69 67 | 69 6e 61 6c 6c 79 20 63 |. orig|inally c|
|00002700| 61 6c 6c 65 64 20 67 65 | 74 2d 72 65 73 6f 75 72 |alled ge|t-resour|
|00002710| 63 65 2d 68 61 6e 64 6c | 65 2c 20 28 64 65 66 69 |ce-handl|e, (defi|
|00002720| 6e 65 64 20 69 6e 20 75 | 74 69 6c 69 74 69 65 73 |ned in u|tilities|
|00002730| 2e 6c 69 73 70 29 0d 20 | 20 20 77 68 69 63 68 20 |.lisp). | which |
|00002740| 72 65 74 75 72 6e 73 20 | 74 68 65 20 68 61 6e 64 |returns |the hand|
|00002750| 6c 65 20 74 6f 20 74 68 | 65 20 69 63 6f 6e 2e 20 |le to th|e icon. |
|00002760| 54 68 69 73 20 68 61 73 | 20 62 65 65 6e 20 63 68 |This has| been ch|
|00002770| 61 6e 67 65 64 20 73 6f | 0d 20 20 20 67 65 74 2d |anged so|. get-|
|00002780| 72 65 73 6f 75 72 63 65 | 2d 68 61 6e 64 6c 65 20 |resource|-handle |
|00002790| 69 73 20 6e 6f 74 20 63 | 61 6c 6c 65 64 20 75 6e |is not c|alled un|
|000027a0| 74 69 6c 20 74 68 65 20 | 69 63 6f 6e 20 69 73 20 |til the |icon is |
|000027b0| 61 63 74 75 61 6c 6c 79 | 0d 20 20 20 64 69 73 70 |actually|. disp|
|000027c0| 6c 61 79 65 64 20 62 79 | 20 76 69 65 77 2d 64 72 |layed by| view-dr|
|000027d0| 61 77 2d 63 6f 6e 74 65 | 6e 74 73 2e 20 43 75 72 |aw-conte|nts. Cur|
|000027e0| 72 65 6e 74 6c 79 2c 20 | 76 69 65 77 2d 64 72 61 |rently, |view-dra|
|000027f0| 77 2d 63 6f 6e 74 65 6e | 74 73 0d 20 20 20 6f 70 |w-conten|ts. op|
|00002800| 65 6e 73 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 |ens the |resource|
|00002810| 20 66 69 6c 65 20 65 61 | 63 68 20 74 69 6d 65 3b | file ea|ch time;|
|00002820| 20 74 68 65 20 72 65 61 | 64 65 72 20 63 61 6e 20 | the rea|der can |
|00002830| 6f 70 74 69 6d 69 7a 65 | 20 74 68 69 73 0d 20 20 |optimize| this. |
|00002840| 20 74 6f 20 73 70 65 65 | 64 20 69 63 6f 6e 20 72 | to spee|d icon r|
|00002850| 65 64 72 61 77 2e 0d 20 | 0d 20 20 20 41 6e 79 74 |edraw.. |. Anyt|
|00002860| 68 69 6e 67 20 74 68 61 | 74 20 70 6f 69 6e 74 73 |hing tha|t points|
|00002870| 20 69 6e 74 6f 20 74 68 | 65 20 4d 61 63 69 6e 74 | into th|e Macint|
|00002880| 6f 73 68 20 68 65 61 70 | 20 6d 75 73 74 20 62 65 |osh heap| must be|
|00002890| 20 64 65 61 6c 6c 6f 63 | 61 74 65 64 0d 20 20 20 | dealloc|ated. |
|000028a0| 62 65 66 6f 72 65 20 73 | 61 76 69 6e 67 20 74 68 |before s|aving th|
|000028b0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 61 |e applic|ation, a|
|000028c0| 6e 64 20 72 65 73 74 6f | 72 65 64 20 6f 6e 20 72 |nd resto|red on r|
|000028d0| 65 6c 6f 61 64 2e 20 54 | 68 69 73 20 72 65 61 6c |eload. T|his real|
|000028e0| 6c 79 0d 20 20 20 6d 65 | 61 6e 73 20 74 68 61 74 |ly. me|ans that|
|000028f0| 20 77 68 61 74 20 69 73 | 20 70 6f 69 6e 74 65 64 | what is| pointed|
|00002900| 20 74 6f 20 6d 75 73 74 | 20 62 65 20 72 65 6d 6f | to must| be remo|
|00002910| 76 65 64 20 66 72 6f 6d | 20 74 68 65 20 68 65 61 |ved from| the hea|
|00002920| 70 2c 20 61 6e 64 0d 20 | 20 20 72 65 73 74 6f 72 |p, and. | restor|
|00002930| 65 64 20 6f 6e 20 72 65 | 6c 6f 61 64 2e 20 53 65 |ed on re|load. Se|
|00002940| 65 20 2a 73 61 76 65 2d | 65 78 69 74 2d 66 75 6e |e *save-|exit-fun|
|00002950| 63 74 69 6f 6e 73 2a 20 | 61 6e 64 20 64 65 66 2d |ctions* |and def-|
|00002960| 6c 6f 61 64 2d 70 6f 69 | 6e 74 65 72 73 0d 20 20 |load-poi|nters. |
|00002970| 20 69 6e 20 63 68 61 70 | 74 65 72 20 22 53 6e 61 | in chap|ter "Sna|
|00002980| 70 73 68 6f 74 73 20 61 | 6e 64 20 41 70 70 6c 69 |pshots a|nd Appli|
|00002990| 63 61 74 69 6f 6e 20 56 | 65 72 73 69 6f 6e 73 20 |cation V|ersions |
|000029a0| 6f 66 20 4d 43 4c 22 20 | 69 6e 20 74 68 65 20 52 |of MCL" |in the R|
|000029b0| 65 66 65 72 65 6e 63 65 | 2e 0d 20 20 20 46 69 6c |eference|.. Fil|
|000029c0| 65 20 22 63 63 6c 3a 65 | 78 61 6d 70 6c 65 73 3b |e "ccl:e|xamples;|
|000029d0| 62 69 6e 68 65 78 3b 62 | 69 6e 68 65 78 2e 6c 69 |binhex;b|inhex.li|
|000029e0| 73 70 22 20 73 68 6f 77 | 73 20 68 6f 77 20 74 6f |sp" show|s how to|
|000029f0| 20 69 6e 63 6c 75 64 65 | 20 74 68 65 20 69 63 6f | include| the ico|
|00002a00| 6e 73 0d 20 20 20 69 6e | 20 74 68 65 20 73 61 76 |ns. in| the sav|
|00002a10| 65 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 27 73 |ed appli|cation's|
|00002a20| 20 72 65 73 6f 75 72 63 | 65 20 66 6f 72 6b 2e 0d | resourc|e fork..|
|00002a30| 0d 20 20 20 4e 6f 74 65 | 3a 20 73 61 76 65 2d 61 |. Note|: save-a|
|00002a40| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 61 6b 65 73 |pplicati|on takes|
|00002a50| 20 61 20 66 65 77 20 6d | 69 6e 75 74 65 73 3b 20 | a few m|inutes; |
|00002a60| 64 6f 6e 27 74 20 62 65 | 20 74 6f 6f 20 69 6d 70 |don't be| too imp|
|00002a70| 61 74 69 65 6e 74 0d 20 | 20 20 20 20 20 20 20 20 |atient. | |
|00002a80| 61 6e 64 20 72 65 62 6f | 6f 74 20 79 6f 75 72 20 |and rebo|ot your |
|00002a90| 4d 61 63 2e 0d 0d 0d 4d | 69 6e 69 2d 41 70 70 6c |Mac....M|ini-Appl|
|00002aa0| 69 63 61 74 69 6f 6e 20 | 46 69 6c 65 73 2e 0d 0d |ication |Files...|
|00002ab0| 20 20 20 54 68 65 20 4d | 69 6e 69 2d 41 70 70 6c | The M|ini-Appl|
|00002ac0| 69 63 61 74 69 6f 6e 20 | 63 6f 72 65 20 63 6f 6e |ication |core con|
|00002ad0| 73 69 73 74 73 20 6f 66 | 20 74 68 65 20 66 6f 6c |sists of| the fol|
|00002ae0| 6c 6f 77 69 6e 67 20 66 | 69 6c 65 73 3a 0d 0d 09 |lowing f|iles:...|
|00002af0| 67 6c 6f 62 61 6c 73 2e | 6c 69 73 70 0d 09 09 54 |globals.|lisp...T|
|00002b00| 68 69 73 20 69 6e 63 6c | 75 64 65 73 20 61 6c 6c |his incl|udes all|
|00002b10| 20 67 6c 6f 62 61 6c 20 | 64 65 66 69 6e 69 74 69 | global |definiti|
|00002b20| 6f 6e 73 2e 0d 0d 09 75 | 74 69 6c 69 74 69 65 73 |ons....u|tilities|
|00002b30| 2e 6c 69 73 70 0d 09 09 | 54 68 69 73 20 69 6e 63 |.lisp...|This inc|
|00002b40| 6c 75 64 65 73 20 6d 69 | 73 63 65 6c 6c 61 6e 65 |ludes mi|scellane|
|00002b50| 6f 75 73 20 75 74 69 6c | 69 74 79 20 66 75 6e 63 |ous util|ity func|
|00002b60| 74 69 6f 6e 73 20 72 65 | 71 75 69 72 65 64 20 0d |tions re|quired .|
|00002b70| 09 09 62 79 20 74 68 65 | 20 6d 69 6e 69 20 61 70 |..by the| mini ap|
|00002b80| 70 6c 69 63 61 74 69 6f | 6e 2e 0d 0d 09 64 72 61 |plicatio|n....dra|
|00002b90| 77 2d 64 69 61 6c 6f 67 | 2d 63 6c 61 73 73 2e 6c |w-dialog|-class.l|
|00002ba0| 69 73 70 0d 09 09 54 68 | 69 73 20 64 65 66 69 6e |isp...Th|is defin|
|00002bb0| 65 73 20 74 68 65 20 6d | 61 69 6e 20 77 69 6e 64 |es the m|ain wind|
|00002bc0| 6f 77 20 63 6c 61 73 73 | 65 73 20 74 6f 20 62 65 |ow class|es to be|
|00002bd0| 0d 09 09 75 73 65 64 20 | 62 79 20 74 68 65 20 6d |...used |by the m|
|00002be0| 69 6e 69 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ini appl|ications|
|00002bf0| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 61 6c 6c 0d |, includ|ing all.|
|00002c00| 09 09 74 68 65 20 68 61 | 6e 64 6c 65 72 20 66 75 |..the ha|ndler fu|
|00002c10| 6e 63 74 69 6f 6e 61 6c | 69 74 79 2e 20 20 49 74 |nctional|ity. It|
|00002c20| 20 73 68 6f 77 73 20 79 | 6f 75 20 68 6f 77 0d 09 | shows y|ou how..|
|00002c30| 09 74 6f 20 68 61 6e 64 | 6c 65 20 73 75 62 76 69 |.to hand|le subvi|
|00002c40| 65 77 73 20 77 69 74 68 | 69 6e 20 74 68 65 20 77 |ews with|in the w|
|00002c50| 69 6e 64 6f 77 20 61 6e | 64 0d 09 09 68 6f 77 20 |indow an|d...how |
|00002c60| 74 6f 20 77 72 69 74 65 | 20 63 65 72 74 61 69 6e |to write| certain|
|00002c70| 20 68 61 6e 64 6c 65 72 | 73 20 28 65 2e 67 2e 2c | handler|s (e.g.,|
|00002c80| 20 6d 6f 75 73 65 0d 09 | 09 63 6c 69 63 6b 20 65 | mouse..|.click e|
|00002c90| 76 65 6e 74 73 29 2e 20 | 20 54 68 65 72 65 20 69 |vents). | There i|
|00002ca0| 73 20 70 6c 65 6e 74 79 | 20 6f 66 20 72 6f 6f 6d |s plenty| of room|
|00002cb0| 20 68 65 72 65 0d 09 09 | 66 6f 72 20 65 78 70 61 | here...|for expa|
|00002cc0| 6e 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 6d 69 6e |nsion of| the min|
|00002cd0| 69 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 27 73 20 |i applic|ation's |
|00002ce0| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 2e 0d 0d |function|ality...|
|00002cf0| 09 6d 65 6e 75 73 2e 6c | 69 73 70 0d 09 09 54 68 |.menus.l|isp...Th|
|00002d00| 69 73 20 69 6e 63 6c 75 | 64 65 73 20 61 6c 6c 20 |is inclu|des all |
|00002d10| 6d 65 6e 75 2c 20 6d 65 | 6e 75 20 69 74 65 6d 20 |menu, me|nu item |
|00002d20| 61 6e 64 20 6d 65 6e 75 | 62 61 72 0d 09 09 64 65 |and menu|bar...de|
|00002d30| 66 69 6e 69 74 69 6f 6e | 73 20 66 6f 72 20 74 68 |finition|s for th|
|00002d40| 69 73 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |is appli|cation. |
|00002d50| 20 54 68 69 73 20 69 73 | 20 61 20 67 6f 6f 64 0d | This is| a good.|
|00002d60| 09 09 70 6c 61 63 65 20 | 74 6f 20 73 74 61 72 74 |..place |to start|
|00002d70| 20 6c 6f 6f 6b 69 6e 67 | 2e 20 20 49 74 20 73 68 | looking|. It sh|
|00002d80| 6f 77 73 20 79 6f 75 20 | 68 6f 77 20 74 6f 0d 09 |ows you |how to..|
|00002d90| 09 63 72 65 61 74 65 2c | 20 69 6e 73 74 61 6c 6c |.create,| install|
|00002da0| 20 61 6e 64 20 64 65 2d | 69 6e 73 74 61 6c 6c 20 | and de-|install |
|00002db0| 6d 65 6e 75 73 20 61 6e | 64 20 69 74 20 69 73 0d |menus an|d it is.|
|00002dc0| 09 09 61 20 67 6f 6f 64 | 20 6c 65 61 64 2d 69 6e |..a good| lead-in|
|00002dd0| 20 74 6f 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 | to the |rest of |
|00002de0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00002df0| 0d 0d 09 70 61 6c 65 74 | 74 65 2d 63 6c 61 73 73 |...palet|te-class|
|00002e00| 2e 6c 69 73 70 0d 09 09 | 54 68 69 73 20 64 65 66 |.lisp...|This def|
|00002e10| 69 6e 65 73 20 73 6f 6d | 65 20 73 70 65 63 69 61 |ines som|e specia|
|00002e20| 6c 69 7a 61 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |lization|s of the|
|00002e30| 0d 09 09 6d 61 69 6e 20 | 77 69 6e 64 6f 77 20 63 |...main |window c|
|00002e40| 6c 61 73 73 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |lass in |order to|
|00002e50| 20 63 72 65 61 74 65 20 | 70 61 6c 65 74 74 65 73 | create |palettes|
|00002e60| 2e 0d 0d 09 64 72 61 77 | 2d 69 74 65 6d 2d 63 6c |....draw|-item-cl|
|00002e70| 61 73 73 2e 6c 69 73 70 | 0d 09 09 54 68 69 73 20 |ass.lisp|...This |
|00002e80| 64 65 66 69 6e 65 73 20 | 74 68 65 20 66 75 6e 63 |defines |the func|
|00002e90| 74 69 6f 6e 61 6c 69 74 | 79 20 6f 66 20 74 68 65 |tionalit|y of the|
|00002ea0| 20 6f 62 6a 65 63 74 73 | 0d 09 09 77 68 69 63 68 | objects|...which|
|00002eb0| 20 77 69 6c 6c 20 62 65 | 20 64 72 61 77 6e 20 77 | will be| drawn w|
|00002ec0| 69 74 68 69 6e 20 77 69 | 6e 64 6f 77 73 20 28 65 |ithin wi|ndows (e|
|00002ed0| 2e 67 2e 2c 0d 09 09 6f | 76 61 6c 73 29 2e 20 20 |.g.,...o|vals). |
|00002ee0| 49 74 20 69 6e 63 6c 75 | 64 65 73 20 64 72 61 67 |It inclu|des drag|
|00002ef0| 67 69 6e 67 2c 20 72 65 | 73 69 7a 69 6e 67 20 61 |ging, re|sizing a|
|00002f00| 6e 64 0d 09 09 6d 6f 76 | 69 6e 67 20 63 6f 64 65 |nd...mov|ing code|
|00002f10| 2e 20 20 54 68 65 20 63 | 6c 61 73 73 65 73 20 66 |. The c|lasses f|
|00002f20| 6f 72 20 61 6c 6c 20 74 | 68 65 20 70 72 65 64 65 |or all t|he prede|
|00002f30| 66 69 6e 65 64 0d 09 09 | 64 72 61 77 2d 69 74 65 |fined...|draw-ite|
|00002f40| 6d 73 20 61 72 65 20 68 | 65 72 65 2e 0d 0d 09 64 |ms are h|ere....d|
|00002f50| 65 66 61 75 6c 74 2d 68 | 61 6e 64 6c 65 72 73 2e |efault-h|andlers.|
|00002f60| 6c 69 73 70 0d 09 09 54 | 68 69 73 20 69 6e 63 6c |lisp...T|his incl|
|00002f70| 75 64 65 73 20 61 6c 6c | 20 74 68 65 20 64 65 66 |udes all| the def|
|00002f80| 61 75 6c 74 20 68 61 6e | 64 6c 65 72 73 20 28 69 |ault han|dlers (i|
|00002f90| 2e 65 2e 2c 20 6d 65 74 | 68 6f 64 73 29 0d 09 09 |.e., met|hods)...|
|00002fa0| 66 6f 72 20 6f 75 72 20 | 6d 69 6e 69 20 61 70 70 |for our |mini app|
|00002fb0| 6c 69 63 61 74 69 6f 6e | 20 28 65 2e 67 2e 2c 20 |lication| (e.g., |
|00002fc0| 6d 6f 75 73 65 2d 75 70 | 2c 20 6d 6f 75 73 65 2d |mouse-up|, mouse-|
|00002fd0| 64 6f 77 6e 29 2e 0d 09 | 09 59 6f 75 20 63 6f 75 |down)...|.You cou|
|00002fe0| 6c 64 20 69 6d 70 72 6f | 76 65 20 69 74 20 62 79 |ld impro|ve it by|
|00002ff0| 20 61 64 64 69 6e 67 20 | 6d 6f 72 65 20 64 65 66 | adding |more def|
|00003000| 61 75 6c 74 0d 09 09 66 | 75 6e 63 74 69 6f 6e 61 |ault...f|unctiona|
|00003010| 6c 69 74 79 20 28 65 2e | 67 2e 2c 20 79 6f 75 20 |lity (e.|g., you |
|00003020| 6d 69 67 68 74 20 77 61 | 6e 74 20 74 6f 20 61 64 |might wa|nt to ad|
|00003030| 64 20 61 20 68 69 6c 69 | 67 68 74 69 6e 67 0d 09 |d a hili|ghting..|
|00003040| 09 63 61 70 61 62 69 6c | 69 74 79 20 74 6f 20 74 |.capabil|ity to t|
|00003050| 68 65 20 62 75 74 74 6f | 6e 20 64 72 61 77 2d 69 |he butto|n draw-i|
|00003060| 74 65 6d 27 73 20 6d 6f | 75 73 65 2d 64 6f 77 6e |tem's mo|use-down|
|00003070| 0d 09 09 68 61 6e 64 6c | 65 72 29 2e 0d 0d 20 20 |...handl|er)... |
|00003080| 20 49 6e 64 69 76 69 64 | 75 61 6c 20 66 69 6c 65 | Individ|ual file|
|00003090| 73 20 61 72 65 20 63 6f | 6d 70 69 6c 65 64 20 74 |s are co|mpiled t|
|000030a0| 68 65 20 66 69 72 73 74 | 20 74 69 6d 65 20 74 68 |he first| time th|
|000030b0| 65 79 20 61 72 65 20 6c | 6f 61 64 65 64 2c 20 61 |ey are l|oaded, a|
|000030c0| 6e 64 0d 20 20 20 74 68 | 65 72 65 61 66 74 65 72 |nd. th|ereafter|
|000030d0| 20 77 68 65 6e 65 76 65 | 72 20 74 68 65 79 20 61 | wheneve|r they a|
|000030e0| 72 65 20 6c 6f 61 64 65 | 64 20 61 6e 64 20 74 68 |re loade|d and th|
|000030f0| 65 69 72 20 73 6f 75 72 | 63 65 20 68 61 73 20 63 |eir sour|ce has c|
|00003100| 68 61 6e 67 65 64 2e 0d | 0d 65 6e 64 20 6f 66 20 |hanged..|.end of |
|00003110| 66 69 6c 65 20 49 6e 73 | 74 72 75 63 74 69 6f 6e |file Ins|truction|
|00003120| 73 0d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |s.------|--------|
|00003130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 00 00 00 00 |--------|---.....|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 01 00 00 00 01 67 | 00 00 00 67 00 00 00 52 |.......g|...g...R|
|00003190| 88 df ed 88 20 5f 21 40 | 00 12 cc cd 89 f4 bb 92 |.... _!@|........|
|000031a0| 4c 01 9b f5 0a b6 01 dd | f4 f8 88 31 7c 83 8e 48 |L.......|...1|..H|
|000031b0| 0c 49 6e 73 74 72 75 63 | 74 69 6f 6e 73 e1 02 00 |.Instruc|tions...|
|000031c0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 68 00 80 |..TEXTCC|L2...h..|
|000031d0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 68 00 80 |..TEXTCC|L2...h..|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 a5 de a3 15 00 00 | 30 cc 00 00 01 b9 02 9a |........|0.......|
|00003200| f7 20 6b 88 42 a8 f7 8d | 0f 84 a6 a0 12 26 6a 95 |. k.B...|.....&j.|
|00003210| 2a 2a 00 1b 2e 2a 00 0b | 26 05 a6 96 aa 00 13 f2 |**...*..|&.......|
|00003220| 26 6b 88 a6 96 87 66 f8 | 2c 2a 00 1f a6 9c 85 4a |&k....f.|,*.....J|
|00003230| 85 66 2a 2a 06 67 50 7c | 00 26 6a 95 26 2a 00 17 |.f**.gP||.&j.&*..|
|00003240| 60 04 26 6b 00 0b a6 96 | 87 6c f8 a6 d6 87 8a a6 |`.&k....|.l......|
|00003250| 90 83 22 6b 95 5e 49 e6 | 83 a6 d3 c3 60 08 22 6b |.."k.^I.|....`."k|
|00003260| 95 5e 49 8a a6 9a 80 6c | 04 d0 85 7a 00 26 6b 00 |.^I....l|...z.&k.|
|00003270| 0b e6 80 21 40 a4 21 49 | ca 42 68 87 8d 0f 84 a6 |...!@.!I|.Bh.....|
|00003280| 00 00 00 0a 00 01 00 04 | 09 00 01 00 00 00 00 00 |........|........|
|00003290| 00 09 00 00 06 4d 6f 6e | 61 63 6f 00 00 00 48 00 |.....Mon|aco...H.|
|000032a0| 09 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 06 00 08 00 29 00 | 03 01 54 02 1b 00 29 00 |......).|..T...).|
|000032d0| 03 01 54 02 1b 00 00 00 | 00 00 00 10 25 00 00 10 |..T.....|....%...|
|000032e0| 25 00 00 00 00 01 00 00 | 00 01 00 00 00 01 67 00 |%.......|......g.|
|000032f0| 00 00 67 00 00 00 52 00 | 1c 04 18 08 74 00 00 00 |..g...R.|....t...|
|00003300| 1c 00 52 00 01 46 52 45 | 44 00 01 00 12 4d 50 53 |..R..FRE|D....MPS|
|00003310| 52 00 00 00 2a 00 02 ff | ff 00 00 00 00 00 00 00 |R...*...|........|
|00003320| 00 00 03 ff ff 00 00 00 | 0e 00 00 00 00 03 ed ff |........|........|
|00003330| ff 00 00 00 1b 00 1c 1e | c0 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+