home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-06-20 | 25.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Wanton Packer Module (music/wantonPacker)
| ext
| Supported |
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 01 | 04 00 65 d7 04 00 3f c5 |........|..e...?.|
|00000010| 04 00 3c ec 04 00 04 8d | 04 00 3c ee 00 04 be dc |..<.....|..<.....|
|00000020| 00 04 c0 68 00 04 be c4 | 00 04 be d4 00 04 bf f4 |...h....|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 00 | ff 00 00 00 03 00 fe 3b |........|.......;|
|00000050| 00 00 00 76 03 18 00 00 | 01 c5 00 40 16 1b 00 61 |...v....|...@...a|
|00000060| 17 a9 02 b6 00 39 00 00 | 7a 94 00 00 00 00 00 00 |.....9..|z.......|
|00000070| 00 00 00 00 00 00 01 01 | 03 18 00 00 00 48 00 48 |........|.....H.H|
|00000080| 00 00 00 18 02 64 03 18 | 00 00 00 00 02 64 03 18 |.....d..|.....d..|
|00000090| 00 64 00 04 19 00 04 00 | 3d 7b 00 0b fe f8 00 b1 |.d......|={......|
|000000a0| 00 39 04 00 3d 7b 00 0b | fe f8 00 b1 00 39 00 9f |.9..={..|.....9..|
|000000b0| 00 00 00 00 00 00 00 00 | 00 ff 00 00 00 00 00 00 |........|........|
|000000c0| 67 77 00 00 67 77 00 00 | 67 77 00 00 b7 d2 00 00 |gw..gw..|gw......|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 65 d7 | 04 00 3f c5 04 00 3c ec |......e.|..?...<.|
|00000110| 04 00 04 8d 04 00 3c ee | 00 04 be dc 00 04 c0 68 |......<.|.......h|
|00000120| 00 04 be c4 00 04 be d4 | 00 04 bf f4 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 00 ff 00 00 00 | 03 00 fe 3b 00 00 00 76 |........|...;...v|
|00000150| 03 18 00 00 01 c5 00 40 | 16 1b 00 61 17 a9 02 b6 |.......@|...a....|
|00000160| 00 39 00 00 7a 94 00 00 | 00 00 00 00 00 00 00 00 |.9..z...|........|
|00000170| 00 00 01 01 03 18 00 00 | 00 48 00 48 00 00 00 18 |........|.H.H....|
|00000180| 02 64 03 18 00 00 00 00 | 02 64 03 18 00 64 00 04 |.d......|.d...d..|
|00000190| 19 00 04 00 3d 7b 00 0b | fe f8 00 b1 00 39 04 00 |....={..|.....9..|
|000001a0| 3d 7b 00 0b fe f8 00 b1 | 00 39 00 9f 00 00 00 00 |={......|.9......|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 67 77 00 00 |........|....gw..|
|000001c0| 67 77 00 00 67 77 00 00 | b7 d2 00 00 00 00 00 00 |gw..gw..|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 01 0d 00 |........|........|
|00000210| 3f fc 00 5a 02 a4 00 5a | 00 0c 02 8c 03 48 04 00 |?..Z...Z|.....H..|
|00000220| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00000230| 0a 90 f7 ff 00 15 24 03 | f7 54 68 65 20 45 76 65 |......$.|.The Eve|
|00000240| 6e 74 20 43 79 63 6c 65 | ff 00 16 12 03 f7 0d 0d |nt Cycle|........|
|00000250| 00 58 fc 00 30 03 d4 00 | 30 02 0e 02 30 08 00 f7 |.X..0...|0...0...|
|00000260| ff 00 15 18 00 f7 0d fc | 00 25 02 f0 05 00 25 02 |........|.%....%.|
|00000270| 0e 01 b0 06 30 f7 fb 00 | 00 00 01 01 57 02 21 57 |....0...|....W.!W|
|00000280| 4e 47 72 61 70 68 69 63 | 2e 34 32 39 34 37 30 2e |NGraphic|.429470.|
|00000290| 65 70 73 f7 0d ff 00 15 | 18 00 f7 fc 00 30 03 d4 |eps.....|.....0..|
|000002a0| 00 30 00 0e 02 30 08 00 | f7 0d 00 26 f9 00 f7 fc |.0...0..|...&....|
|000002b0| 00 74 02 a4 00 74 00 0c | 02 8c 03 48 04 00 04 bc |.t...t..|...H....|
|000002c0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|000002d0| f7 0d 00 54 ff 00 14 0b | 00 f7 fc 00 74 02 a4 00 |...T....|....t...|
|000002e0| 74 02 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |t.....H.|....t.0.|
|000002f0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 fb 00 00 00 |....`...|........|
|00000300| 01 01 a8 02 c5 46 72 61 | 6d 65 52 65 63 56 69 65 |.....Fra|meRecVie|
|00000310| 77 48 69 65 72 2e 35 30 | 37 33 34 38 2e 65 70 73 |wHier.50|7348.eps|
|00000320| f7 ff 00 15 18 00 f7 0d | 00 48 ff 00 14 0b 00 f7 |........|.H......|
|00000330| fc 00 74 02 a4 00 74 02 | 0c 02 8c 03 48 04 00 04 |..t...t.|....H...|
|00000340| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00000350| 90 f7 fb 00 00 00 01 01 | a5 02 b5 43 6f 6e 6e 65 |........|...Conne|
|00000360| 63 74 57 69 6e 2e 65 70 | 73 00 f7 ff 00 15 18 00 |ctWin.ep|s.......|
|00000370| f7 0d 01 19 ff 00 15 24 | 03 f7 54 68 65 20 45 76 |.......$|..The Ev|
|00000380| 65 6e 74 20 50 72 6f 63 | 65 73 73 ff 00 15 18 00 |ent Proc|ess.....|
|00000390| f7 0d f9 00 f7 0d fc 00 | 6f 02 a4 00 6f 00 0c 02 |........|o...o...|
|000003a0| 8c 03 48 04 00 04 bc 05 | 74 06 30 06 ec 07 a4 08 |..H.....|t.0.....|
|000003b0| 60 09 18 09 d4 0a 90 f7 | f9 00 f7 31 2e 20 20 54 |`.......|...1. T|
|000003c0| 68 65 20 57 69 6e 64 6f | 77 20 53 65 72 76 65 72 |he Windo|w Server|
|000003d0| 20 73 65 6e 64 73 20 6d | 6f 75 73 65 2c 20 6b 65 | sends m|ouse, ke|
|000003e0| 79 62 6f 61 72 64 2c 20 | 61 6e 64 20 6d 61 63 68 |yboard, |and mach|
|000003f0| 69 6e 65 20 65 76 65 6e | 74 73 20 74 6f 20 74 68 |ine even|ts to th|
|00000400| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 62 |e Applic|ation ob|
|00000410| 6a 65 63 74 2e 0d 0d 32 | 2e 20 20 57 69 74 68 69 |ject...2|. Withi|
|00000420| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio|
|00000430| 6e 2c 20 74 68 65 20 41 | 70 70 4b 69 74 20 64 69 |n, the A|ppKit di|
|00000440| 73 70 61 74 63 68 65 73 | 20 65 76 65 6e 74 20 6d |spatches| event m|
|00000450| 65 73 73 61 67 65 73 20 | 74 6f 20 74 68 65 20 61 |essages |to the a|
|00000460| 70 70 72 6f 70 72 69 61 | 74 65 20 6f 62 6a 65 63 |ppropria|te objec|
|00000470| 74 2e 0d 0d 33 2e 20 20 | 54 68 65 20 6f 62 6a 65 |t...3. |The obje|
|00000480| 63 74 20 72 65 73 70 6f | 6e 64 73 2e 0d 00 a6 00 |ct respo|nds.....|
|00000490| a8 00 00 00 01 dc 1e 97 | 07 3e 59 ff 33 d9 af 1d |........|.>Y.3...|
|000004a0| 31 f8 be b9 b9 e7 e0 17 | 83 95 94 c1 d8 5e c4 45 |1.......|.....^.E|
|000004b0| 6a 63 50 f9 3b 9d 6e 52 | 60 9f 7d 0a 90 7f 21 44 |jcP.;.nR|`.}...!D|
|000004c0| 4e 3a 0e 72 dd 58 b3 1f | 08 5e 55 b4 4b 32 f2 c6 |N:.r.X..|.^U.K2..|
|000004d0| 47 0e 0d 3d f2 a0 bb 45 | 4f d6 66 3f bf ae 0e ed |G..=...E|O.f?....|
|000004e0| 6b 57 8e 85 f6 3d 2b db | b9 10 df e1 60 3b d9 9a |kW...=+.|....`;..|
|000004f0| b1 de 9b 20 f8 cf 05 cf | c6 cb 09 78 a0 4e ea 9c |... ....|...x.N..|
|00000500| 8e de 2c 1a 06 8d 82 20 | d5 c9 65 cf 5c ec ec e3 |..,.... |..e.\...|
|00000510| 03 aa 66 d8 06 a6 05 3a | 6b 7a c3 99 04 03 9a 3b |..f....:|kz.....;|
|00000520| 75 71 db 36 91 a0 5e 4e | e1 26 0a 3e e5 38 e4 2e |uq.6..^N|.&.>.8..|
|00000530| d8 82 ba bc 9f 00 2b ff | 00 15 24 03 f7 fb 00 00 |......+.|..$.....|
|00000540| 00 01 01 93 02 68 57 4e | 47 72 61 70 68 69 63 2e |.....hWN|Graphic.|
|00000550| 37 34 31 33 38 34 2e 65 | 70 73 f7 ff 00 15 24 00 |741384.e|ps....$.|
|00000560| f7 0d 02 2e ff 00 15 0a | 00 f7 fc 00 74 02 a4 00 |........|....t...|
|00000570| 74 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |t.....H.|....t.0.|
|00000580| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d ff 00 15 |....`...|........|
|00000590| 24 03 f7 55 73 69 6e 67 | 20 41 70 70 4b 69 74 20 |$..Using| AppKit |
|000005a0| 43 6c 61 73 73 65 73 ff | 00 15 18 00 f7 0d 0d f9 |Classes.|........|
|000005b0| 00 f7 ff 00 15 18 02 f7 | 59 6f 75 20 63 61 6e 20 |........|You can |
|000005c0| 6d 61 6b 65 20 75 73 65 | 20 6f 66 20 41 70 70 4b |make use| of AppK|
|000005d0| 69 74 20 63 6c 61 73 73 | 65 73 20 66 6f 75 72 20 |it class|es four |
|000005e0| 77 61 79 73 3a ff 00 15 | 18 00 f7 0d 0d 31 2e 20 |ways:...|.....1. |
|000005f0| 20 59 6f 75 20 63 61 6e | 20 63 72 65 61 74 65 20 | You can| create |
|00000600| f9 00 f7 ff 00 15 18 03 | f7 6f 62 6a 65 63 74 73 |........|.objects|
|00000610| f9 00 f7 20 28 69 6e 73 | 74 61 6e 63 65 73 29 ff |... (ins|tances).|
|00000620| 00 15 18 00 f7 20 62 65 | 6c 6f 6e 67 69 6e 67 20 |..... be|longing |
|00000630| 74 6f 20 74 68 65 20 63 | 6c 61 73 73 65 73 2e 0d |to the c|lasses..|
|00000640| 0d 32 2e 20 20 59 6f 75 | 20 63 61 6e 20 64 65 66 |.2. You| can def|
|00000650| 69 6e 65 20 f9 00 f7 ff | 00 15 18 03 f7 73 75 62 |ine ....|.....sub|
|00000660| 63 6c 61 73 73 65 73 f9 | 00 f7 ff 00 15 18 00 f7 |classes.|........|
|00000670| 20 6f 66 20 41 70 70 4b | 69 74 20 63 6c 61 73 73 | of AppK|it class|
|00000680| 65 73 2c 20 74 68 65 6e | 20 63 72 65 61 74 65 20 |es, then| create |
|00000690| 69 6e 73 74 61 6e 63 65 | 73 20 6f 66 20 74 68 6f |instance|s of tho|
|000006a0| 73 65 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |se for y|our appl|
|000006b0| 69 63 61 74 69 6f 6e 2e | 0d 0d 33 2e 20 20 59 6f |ication.|..3. Yo|
|000006c0| 75 20 63 61 6e 20 64 65 | 66 69 6e 65 20 61 20 f9 |u can de|fine a .|
|000006d0| 00 f7 ff 00 15 18 03 f7 | 63 61 74 65 67 6f 72 79 |........|category|
|000006e0| f9 00 f7 ff 00 15 18 00 | f7 20 74 68 61 74 20 65 |........|. that e|
|000006f0| 78 74 65 6e 64 73 20 74 | 68 65 20 6f 72 69 67 69 |xtends t|he origi|
|00000700| 6e 61 6c 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |nal defi|nition o|
|00000710| 66 20 61 20 63 6c 61 73 | 73 2e 0d 0d 34 2e 20 20 |f a clas|s...4. |
|00000720| 59 6f 75 20 63 61 6e 20 | 64 65 66 69 6e 65 20 f9 |You can |define .|
|00000730| 00 f7 ff 00 15 18 03 f7 | 64 65 6c 65 67 61 74 65 |........|delegate|
|00000740| f9 00 f7 ff 00 15 18 00 | f7 20 6f 62 6a 65 63 74 |........|. object|
|00000750| 73 20 74 68 61 74 20 61 | 63 74 20 6f 6e 20 62 65 |s that a|ct on be|
|00000760| 68 61 6c 66 20 6f 66 20 | 6f 62 6a 65 63 74 73 20 |half of |objects |
|00000770| 74 68 61 74 20 69 6e 68 | 65 72 69 74 20 66 72 6f |that inh|erit fro|
|00000780| 6d 20 74 68 65 20 41 70 | 70 4b 69 74 2e 0d f9 00 |m the Ap|pKit....|
|00000790| f7 0d 02 1f fc 00 59 02 | a4 00 59 00 0c 02 8c 03 |......Y.|..Y.....|
|000007a0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000007b0| 18 09 d4 0a 90 f7 ff 00 | 15 24 03 f7 53 74 72 75 |........|.$..Stru|
|000007c0| 63 74 75 72 65 20 6f 66 | 20 61 6e 20 41 70 70 6c |cture of| an Appl|
|000007d0| 69 63 61 74 69 6f 6e ff | 00 15 18 03 f7 0d ff 00 |ication.|........|
|000007e0| 15 18 00 f7 fc 00 74 02 | a4 00 74 00 0c 02 8c 03 |......t.|..t.....|
|000007f0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00000800| 18 09 d4 0a 90 f7 0d fc | 00 7e 02 a4 00 7e 00 0c |........|.~...~..|
|00000810| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00000820| 08 60 09 18 09 d4 0a 90 | f7 f9 00 f7 54 68 65 20 |.`......|....The |
|00000830| 4e 65 58 54 20 69 6e 74 | 65 72 66 61 63 65 20 69 |NeXT int|erface i|
|00000840| 73 20 f9 00 f7 ff 00 15 | 18 03 f7 65 76 65 6e 74 |s ......|...event|
|00000850| 2d 64 72 69 76 65 6e f9 | 00 f7 ff 00 15 18 00 f7 |-driven.|........|
|00000860| 2e 0d 0d 54 68 65 20 41 | 70 70 6c 69 63 61 74 69 |...The A|pplicati|
|00000870| 6f 6e 20 4b 69 74 20 70 | 72 6f 76 69 64 65 73 20 |on Kit p|rovides |
|00000880| 74 68 65 20 f9 00 f7 ff | 00 15 18 03 f7 6d 61 69 |the ....|.....mai|
|00000890| 6e 20 65 76 65 6e 74 20 | 6c 6f 6f 70 f9 00 f7 ff |n event |loop....|
|000008a0| 00 15 18 00 f7 20 61 6e | 64 20 61 75 74 6f 6d 61 |..... an|d automa|
|000008b0| 74 69 63 61 6c 6c 79 20 | 64 69 73 70 61 74 63 68 |tically |dispatch|
|000008c0| 65 73 20 65 76 65 6e 74 | 73 20 74 6f 20 74 68 65 |es event|s to the|
|000008d0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 6f 62 6a | appropr|iate obj|
|000008e0| 65 63 74 2e 0d 0d 45 76 | 65 72 79 20 61 70 70 6c |ect...Ev|ery appl|
|000008f0| 69 63 61 74 69 6f 6e 20 | 68 61 73 20 6f 6e 65 20 |ication |has one |
|00000900| f9 00 f7 ff 00 15 18 03 | f7 41 70 70 6c 69 63 61 |........|.Applica|
|00000910| 74 69 6f 6e 20 6f 62 6a | 65 63 74 f9 00 f7 ff 00 |tion obj|ect.....|
|00000920| 15 18 00 f7 20 74 68 61 | 74 20 67 65 74 73 20 65 |.... tha|t gets e|
|00000930| 76 65 6e 74 73 20 66 72 | 6f 6d 20 74 68 65 20 ff |vents fr|om the .|
|00000940| 00 15 18 03 f7 57 69 6e | 64 6f 77 20 53 65 72 76 |.....Win|dow Serv|
|00000950| 65 72 ff 00 15 18 00 f7 | 20 61 6e 64 20 6f 76 65 |er......| and ove|
|00000960| 72 73 65 65 73 20 74 68 | 65 20 61 70 70 6c 69 63 |rsees th|e applic|
|00000970| 61 74 69 6f 6e 27 73 ff | 00 15 18 03 f7 20 77 69 |ation's.|..... wi|
|00000980| 6e 64 6f 77 73 ff 00 15 | 18 00 f7 2e 0d f9 00 f7 |ndows...|........|
|00000990| fc 00 74 02 a4 00 74 00 | 0c 02 8c 03 48 04 00 04 |..t...t.|....H...|
|000009a0| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|000009b0| 90 f7 0d 02 cb fc 00 5a | 02 a4 00 5a 00 0c 02 8c |.......Z|...Z....|
|000009c0| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|000009d0| 09 18 09 d4 0a 90 f7 ff | 00 15 24 03 f7 52 65 73 |........|..$..Res|
|000009e0| 70 6f 6e 64 65 72 ff 00 | 15 18 00 f7 0d fc 00 74 |ponder..|.......t|
|000009f0| 02 a4 00 74 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...t....|.H.....t|
|00000a00| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 0d |.0.....`|........|
|00000a10| fc 00 6b 02 be 00 6b 00 | 0c 03 48 04 00 04 bc 05 |..k...k.|..H.....|
|00000a20| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|00000a30| f9 00 f7 41 6e 20 ff 00 | 15 18 03 f7 61 62 73 74 |...An ..|....abst|
|00000a40| 72 61 63 74 20 73 75 70 | 65 72 63 6c 61 73 73 ff |ract sup|erclass.|
|00000a50| 00 15 18 00 f7 20 66 6f | 72 20 63 6c 61 73 73 65 |..... fo|r classe|
|00000a60| 73 20 74 68 61 74 20 72 | 65 73 70 6f 6e 64 20 74 |s that r|espond t|
|00000a70| 6f 20 6b 65 79 62 6f 61 | 72 64 20 61 6e 64 20 6d |o keyboa|rd and m|
|00000a80| 6f 75 73 65 20 65 76 65 | 6e 74 73 2e 0d 0d 52 65 |ouse eve|nts...Re|
|00000a90| 73 70 6f 6e 64 65 72 73 | 20 70 61 72 74 69 63 69 |sponders| partici|
|00000aa0| 70 61 74 65 20 69 6e 20 | 61 20 6c 69 6e 6b 65 64 |pate in |a linked|
|00000ab0| 2d 6c 69 73 74 20 6f 66 | 20 65 76 65 6e 74 2d 68 |-list of| event-h|
|00000ac0| 61 6e 64 6c 69 6e 67 20 | 6f 62 6a 65 63 74 73 20 |andling |objects |
|00000ad0| 63 61 6c 6c 65 64 20 61 | 20 f9 00 f7 ff 00 15 18 |called a| .......|
|00000ae0| 03 f7 72 65 73 70 6f 6e | 64 65 72 20 63 68 61 69 |..respon|der chai|
|00000af0| 6e f9 00 f7 ff 00 15 18 | 00 f7 2e 0d 0d 49 66 20 |n.......|.....If |
|00000b00| 61 6e 20 6f 62 6a 65 63 | 74 20 69 6e 20 74 68 65 |an objec|t in the|
|00000b10| 20 63 68 61 69 6e 20 63 | 61 6e 27 74 20 68 61 6e | chain c|an't han|
|00000b20| 64 6c 65 20 61 20 6d 65 | 73 73 61 67 65 20 69 6e |dle a me|ssage in|
|00000b30| 64 69 63 61 74 69 6e 67 | 20 61 6e 20 65 76 65 6e |dicating| an even|
|00000b40| 74 2c 20 74 68 65 20 6d | 65 73 73 61 67 65 20 69 |t, the m|essage i|
|00000b50| 73 20 70 61 73 73 65 64 | 20 6f 6e 20 74 6f 20 69 |s passed| on to i|
|00000b60| 74 73 20 f9 00 f7 ff 00 | 15 18 03 f7 6e 65 78 74 |ts .....|....next|
|00000b70| 20 72 65 73 70 6f 6e 64 | 65 72 f9 00 f7 ff 00 15 | respond|er......|
|00000b80| 18 00 f7 2e 0d 0d 54 68 | 65 20 ff 00 15 18 03 f7 |......Th|e ......|
|00000b90| 52 65 73 70 6f 6e 64 65 | 72 20 63 6c 61 73 73 ff |Responde|r class.|
|00000ba0| 00 15 18 00 f7 20 64 65 | 66 69 6e 65 73 20 74 68 |..... de|fines th|
|00000bb0| 65 20 65 6c 65 6d 65 6e | 74 73 20 65 73 73 65 6e |e elemen|ts essen|
|00000bc0| 74 69 61 6c 20 74 6f 20 | 74 68 65 20 72 65 73 70 |tial to |the resp|
|00000bd0| 6f 6e 64 65 72 20 63 68 | 61 69 6e 2c 20 61 20 ff |onder ch|ain, a .|
|00000be0| 00 16 18 01 f7 6e 65 78 | 74 52 65 73 70 6f 6e 64 |.....nex|tRespond|
|00000bf0| 65 72 ff 00 15 18 00 f7 | 20 69 6e 73 74 61 6e 63 |er......| instanc|
|00000c00| 65 20 76 61 72 69 61 62 | 6c 65 2c 20 61 6e 64 20 |e variab|le, and |
|00000c10| 74 68 65 20 6d 65 74 68 | 6f 64 73 20 66 6f 72 20 |the meth|ods for |
|00000c20| 70 61 73 73 69 6e 67 20 | 6d 65 73 73 61 67 65 73 |passing |messages|
|00000c30| 20 66 72 6f 6d 20 6f 6e | 65 20 6f 62 6a 65 63 74 | from on|e object|
|00000c40| 20 74 6f 20 61 6e 6f 74 | 68 65 72 2e 0d ff 00 15 | to anot|her.....|
|00000c50| 24 03 f7 fc 00 5a 02 a4 | 00 5a 00 0c 02 8c 03 48 |$....Z..|.Z.....H|
|00000c60| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00000c70| 09 d4 0a 90 f7 56 69 65 | 77 ff 00 15 18 00 f7 0d |.....Vie|w.......|
|00000c80| 02 82 fc 00 5a 02 a4 00 | 5a 00 0c 02 8c 03 48 04 |....Z...|Z.....H.|
|00000c90| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00000ca0| d4 0a 90 f7 f9 00 f7 ff | 00 15 24 03 f7 43 65 6c |........|..$..Cel|
|00000cb0| 6c f9 00 f7 ff 00 15 18 | 00 f7 0d 0d fc 00 6c 02 |l.......|......l.|
|00000cc0| a4 00 6c 00 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..l.....|H.....t.|
|00000cd0| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 f9 00 |0.....`.|........|
|00000ce0| f7 41 20 43 65 6c 6c 20 | 69 73 20 61 6e 20 6f 62 |.A Cell |is an ob|
|00000cf0| 6a 65 63 74 20 74 68 61 | 74 20 63 61 6e 20 64 72 |ject tha|t can dr|
|00000d00| 61 77 20 77 69 74 68 69 | 6e 20 61 20 56 69 65 77 |aw withi|n a View|
|00000d10| 20 61 6e 64 20 68 61 6e | 64 6c 65 20 65 76 65 6e | and han|dle even|
|00000d20| 74 73 20 74 68 61 74 20 | 61 72 65 20 70 61 73 73 |ts that |are pass|
|00000d30| 65 64 20 74 6f 20 69 74 | 20 66 72 6f 6d 20 74 68 |ed to it| from th|
|00000d40| 65 20 56 69 65 77 2e 0d | 0d 43 65 6c 6c 73 20 61 |e View..|.Cells a|
|00000d50| 72 65 20 61 20 70 6c 61 | 63 65 20 66 6f 72 20 70 |re a pla|ce for p|
|00000d60| 75 74 74 69 6e 67 20 6d | 75 63 68 20 6f 66 20 74 |utting m|uch of t|
|00000d70| 68 65 20 77 6f 72 6b 20 | 61 73 73 6f 63 69 61 74 |he work |associat|
|00000d80| 65 64 20 77 69 74 68 20 | 61 20 56 69 65 77 2e 0d |ed with |a View..|
|00000d90| 0d 4d 6f 73 74 20 43 6f | 6e 74 72 6f 6c 73 20 61 |.Most Co|ntrols a|
|00000da0| 72 65 20 62 75 69 6c 74 | 20 61 72 6f 75 6e 64 20 |re built| around |
|00000db0| 43 65 6c 6c 73 2e 20 20 | 54 68 65 20 43 6f 6e 74 |Cells. |The Cont|
|00000dc0| 72 6f 6c 20 28 61 20 56 | 69 65 77 29 20 70 72 6f |rol (a V|iew) pro|
|00000dd0| 76 69 64 65 73 20 74 68 | 65 20 72 65 63 74 61 6e |vides th|e rectan|
|00000de0| 67 6c 65 20 66 6f 72 20 | 64 72 61 77 69 6e 67 20 |gle for |drawing |
|00000df0| 61 6e 64 20 72 65 63 65 | 69 76 65 73 20 74 68 65 |and rece|ives the|
|00000e00| 20 6d 6f 75 73 65 20 65 | 76 65 6e 74 73 2e 20 20 | mouse e|vents. |
|00000e10| 54 68 65 20 43 65 6c 6c | 20 64 6f 65 73 20 74 68 |The Cell| does th|
|00000e20| 65 20 61 63 74 75 61 6c | 20 77 6f 72 6b 20 6f 66 |e actual| work of|
|00000e30| 20 64 72 61 77 69 6e 67 | 20 69 6e 20 74 68 65 20 | drawing| in the |
|00000e40| 56 69 65 77 20 61 6e 64 | 20 72 65 73 70 6f 6e 64 |View and| respond|
|00000e50| 69 6e 67 20 74 6f 20 74 | 68 65 20 65 76 65 6e 74 |ing to t|he event|
|00000e60| 73 2e 0d 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |s...For |example,|
|00000e70| 20 42 75 74 74 6f 6e 73 | 20 68 61 76 65 20 42 75 | Buttons| have Bu|
|00000e80| 74 74 6f 6e 43 65 6c 6c | 73 2c 20 53 6c 69 64 65 |ttonCell|s, Slide|
|00000e90| 72 73 20 68 61 76 65 20 | 53 6c 69 64 65 72 43 65 |rs have |SliderCe|
|00000ea0| 6c 6c 73 2e 20 20 4f 72 | 20 74 68 65 72 65 20 63 |lls. Or| there c|
|00000eb0| 61 6e 20 62 65 20 61 20 | 4d 61 74 72 69 78 20 6f |an be a |Matrix o|
|00000ec0| 66 20 42 75 74 74 6f 6e | 43 65 6c 6c 73 2e 0d fc |f Button|Cells...|
|00000ed0| 00 5a 02 a4 00 5a 00 0c | 02 8c 03 48 04 00 04 bc |.Z...Z..|...H....|
|00000ee0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00000ef0| f7 ff 00 15 24 03 f7 57 | 69 6e 64 6f 77 ff 00 15 |....$..W|indow...|
|00000f00| 18 00 f7 0d 00 4a ff 00 | 14 0b 00 f7 fc 00 24 02 |.....J..|......$.|
|00000f10| f0 04 00 24 02 0c 03 48 | 04 00 04 bc 05 74 06 30 |...$...H|.....t.0|
|00000f20| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 fb 00 00 |.....`..|........|
|00000f30| 00 01 01 bc 02 bf 43 6f | 6e 6e 65 63 74 56 77 48 |......Co|nnectVwH|
|00000f40| 69 65 72 2e 65 70 73 00 | f7 ff 00 15 18 00 f7 0d |ier.eps.|........|
|00000f50| 01 bd fc 00 5a 02 a4 00 | 5a 00 0c 02 8c 03 48 04 |....Z...|Z.....H.|
|00000f60| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00000f70| d4 0a 90 f7 ff 00 15 24 | 03 f7 41 70 70 6c 69 63 |.......$|..Applic|
|00000f80| 61 74 69 6f 6e ff 00 15 | 18 00 f7 0d 0d f9 00 f7 |ation...|........|
|00000f90| 45 76 65 72 79 20 70 72 | 6f 67 72 61 6d 20 68 61 |Every pr|ogram ha|
|00000fa0| 73 20 6f 6e 65 20 ff 00 | 15 18 03 f7 41 70 70 6c |s one ..|....Appl|
|00000fb0| 69 63 61 74 69 6f 6e 20 | 6f 62 6a 65 63 74 ff 00 |ication |object..|
|00000fc0| 15 18 00 f7 20 77 68 69 | 63 68 3a 0d 0d fc 00 6c |.... whi|ch:....l|
|00000fd0| 02 a4 00 6c 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...l....|.H.....t|
|00000fe0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 f9 |.0.....`|........|
|00000ff0| 00 f7 52 65 63 65 69 76 | 65 73 20 65 76 65 6e 74 |..Receiv|es event|
|00001000| 73 20 66 72 6f 6d 20 74 | 68 65 20 ff 00 15 18 03 |s from t|he .....|
|00001010| f7 57 69 6e 64 6f 77 20 | 53 65 72 76 65 72 ff 00 |.Window |Server..|
|00001020| 15 18 00 f7 20 61 6e 64 | 20 64 69 73 74 72 69 62 |.... and| distrib|
|00001030| 75 74 65 73 20 74 68 65 | 6d 20 74 6f 20 6f 74 68 |utes the|m to oth|
|00001040| 65 72 20 6f 62 6a 65 63 | 74 73 2e 0d 0d ff 00 15 |er objec|ts......|
|00001050| 18 03 f7 4d 61 6e 61 67 | 65 73 ff 00 15 18 00 f7 |...Manag|es......|
|00001060| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00001070| 27 73 20 57 69 6e 64 6f | 77 73 2e 0d 0d 4b 65 65 |'s Windo|ws...Kee|
|00001080| 70 73 20 67 6c 6f 62 61 | 6c 20 69 6e 66 6f 72 6d |ps globa|l inform|
|00001090| 61 74 69 6f 6e 20 74 68 | 61 74 27 73 20 73 68 61 |ation th|at's sha|
|000010a0| 72 65 64 20 62 79 20 6f | 74 68 65 72 20 6f 62 6a |red by o|ther obj|
|000010b0| 65 63 74 73 2e 0d 0d f9 | 00 f7 ff 00 15 18 03 f7 |ects....|........|
|000010c0| 4e 58 41 70 70 f9 00 f7 | ff 00 15 18 00 f7 20 69 |NXApp...|...... i|
|000010d0| 73 20 74 68 65 20 67 6c | 6f 62 61 6c 20 76 61 72 |s the gl|obal var|
|000010e0| 69 61 62 6c 65 20 77 68 | 69 63 68 20 70 6f 69 6e |iable wh|ich poin|
|000010f0| 74 73 20 74 6f 20 79 6f | 75 72 20 41 70 70 6c 69 |ts to yo|ur Appli|
|00001100| 63 61 74 69 6f 6e 20 6f | 62 6a 65 63 74 2e 0d 02 |cation o|bject...|
|00001110| 44 fc 00 59 02 be 00 59 | 00 0c 02 8c 03 48 04 00 |D..Y...Y|.....H..|
|00001120| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00001130| 0a 90 f7 ff 00 15 24 03 | f7 54 68 65 20 45 76 65 |......$.|.The Eve|
|00001140| 6e 74 20 50 72 6f 63 65 | 73 73 3a 20 41 20 43 6c |nt Proce|ss: A Cl|
|00001150| 6f 73 65 72 20 4c 6f 6f | 6b ff 00 15 18 00 f7 0d |oser Loo|k.......|
|00001160| f9 00 f7 fc 00 5a 02 a4 | 00 5a 00 0c 02 8c 03 48 |.....Z..|.Z.....H|
|00001170| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00001180| 09 d4 0a 90 f7 0d f9 00 | f7 57 69 6e 64 6f 77 20 |........|.Window |
|00001190| 53 65 72 76 65 72 20 73 | 65 6e 64 73 20 61 6c 6c |Server s|ends all|
|000011a0| 20 65 76 65 6e 74 73 20 | 74 6f 20 74 68 65 20 41 | events |to the A|
|000011b0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |pplicati|on objec|
|000011c0| 74 2e 0d 0d fc 00 80 02 | a4 00 80 00 0c 02 8c 03 |t.......|........|
|000011d0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000011e0| 18 09 d4 0a 90 f7 f9 00 | f7 2d 20 54 68 65 20 41 |........|.- The A|
|000011f0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |pplicati|on objec|
|00001200| 74 20 68 61 6e 64 6c 65 | 73 20 ff 00 15 18 03 f7 |t handle|s ......|
|00001210| 6d 61 63 68 69 6e 65 20 | 65 76 65 6e 74 73 ff 00 |machine |events..|
|00001220| 15 18 00 f7 20 64 69 72 | 65 63 74 6c 79 20 28 65 |.... dir|ectly (e|
|00001230| 2e 67 2e 2c 20 70 6f 77 | 65 72 20 6f 66 66 29 2e |.g., pow|er off).|
|00001240| 0d 0d 2d 20 49 66 20 61 | 20 ff 00 15 18 03 f7 77 |..- If a| ......w|
|00001250| 69 6e 64 6f 77 20 65 76 | 65 6e 74 ff 00 15 18 00 |indow ev|ent.....|
|00001260| f7 2c 20 74 68 65 20 41 | 70 70 6c 69 63 61 74 69 |., the A|pplicati|
|00001270| 6f 6e 20 6f 62 6a 65 63 | 74 20 73 65 6e 64 73 20 |on objec|t sends |
|00001280| 61 20 ff 00 15 18 03 f7 | 77 69 6e 64 6f 77 20 65 |a ......|window e|
|00001290| 76 65 6e 74 20 6d 65 73 | 73 61 67 65 ff 00 15 18 |vent mes|sage....|
|000012a0| 00 f7 20 74 6f 20 74 68 | 65 20 61 70 70 72 6f 70 |.. to th|e approp|
|000012b0| 72 69 61 74 65 20 77 69 | 6e 64 6f 77 20 28 65 2e |riate wi|ndow (e.|
|000012c0| 67 2e 2c 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |g., clos|e window|
|000012d0| 29 2e 0d 0d 2d 20 4f 74 | 68 65 72 77 69 73 65 2c |)...- Ot|herwise,|
|000012e0| 20 69 74 20 73 65 6e 64 | 73 20 61 6e 20 65 76 65 | it send|s an eve|
|000012f0| 6e 74 20 6d 65 73 73 61 | 67 65 20 74 6f 20 74 68 |nt messa|ge to th|
|00001300| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 77 69 |e approp|riate wi|
|00001310| 6e 64 6f 77 20 66 6f 72 | 20 ff 00 15 18 03 f7 64 |ndow for| ......d|
|00001320| 69 73 70 61 74 63 68 ff | 00 15 18 00 f7 2e 0d f9 |ispatch.|........|
|00001330| 00 f7 fc 00 74 02 a4 00 | 74 00 0c 02 8c 03 48 04 |....t...|t.....H.|
|00001340| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00001350| d4 0a 90 f7 0d 02 4d fc | 00 74 02 a4 00 74 00 0c |......M.|.t...t..|
|00001360| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00001370| 08 60 09 18 09 d4 0a 90 | f7 0d fc 00 6b 02 a4 00 |.`......|....k...|
|00001380| 6b 00 0c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |k...H...|..t.0...|
|00001390| a4 08 60 09 18 09 d4 0a | 90 f7 f9 00 f7 2d 20 44 |..`.....|.....- D|
|000013a0| 6f 20 6e 6f 74 68 69 6e | 67 20 62 75 74 20 70 61 |o nothin|g but pa|
|000013b0| 73 73 20 65 76 65 6e 74 | 20 6d 65 73 73 61 67 65 |ss event| message|
|000013c0| 20 6f 6e 20 74 6f 20 69 | 74 73 20 6e 65 78 74 52 | on to i|ts nextR|
|000013d0| 65 73 70 6f 6e 64 65 72 | 2e 0d fc 00 a3 02 a4 00 |esponder|........|
|000013e0| a3 00 0c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|000013f0| a4 08 60 09 18 09 d4 0a | 90 f7 0d fc 00 92 02 a4 |..`.....|........|
|00001400| 00 92 00 0c 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |........|.t.0....|
|00001410| 08 60 09 18 09 d4 0a 90 | f7 ff 00 15 18 02 f7 42 |.`......|.......B|
|00001420| ff 00 15 18 02 f7 79 20 | 64 65 66 61 75 6c 74 2c |......y |default,|
|00001430| 20 6e 65 78 74 52 65 73 | 70 6f 6e 64 65 72 20 69 | nextRes|ponder i|
|00001440| 73 20 74 68 65 20 6f 62 | 6a 65 63 74 27 73 20 73 |s the ob|ject's s|
|00001450| 75 70 65 72 76 69 65 77 | 2e 0d 0d 54 68 69 73 20 |uperview|...This |
|00001460| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 62 |is the d|efault b|
|00001470| 65 68 61 76 69 6f 72 20 | 66 6f 72 20 56 69 65 77 |ehavior |for View|
|00001480| 73 2e ff 00 15 18 00 f7 | 0d fc 00 d2 02 a4 00 d2 |s.......|........|
|00001490| 00 0c 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.......t|.0.....`|
|000014a0| 09 18 09 d4 0a 90 f7 0d | fc 00 6b 02 a4 00 6b 00 |........|..k...k.|
|000014b0| 0c 03 48 04 00 04 bc 05 | 74 06 30 06 ec 07 a4 08 |..H.....|t.0.....|
|000014c0| 60 09 18 09 d4 0a 90 f7 | f9 00 f7 2d 20 50 65 72 |`.......|...- Per|
|000014d0| 66 6f 72 6d 20 6f 62 6a | 65 63 74 2d 73 70 65 63 |form obj|ect-spec|
|000014e0| 69 66 69 63 20 61 63 74 | 69 6f 6e 2e 0d fc 00 a3 |ific act|ion.....|
|000014f0| 02 a4 00 a3 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00001500| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00001510| 92 02 a4 00 92 00 0c 04 | 00 04 bc 05 74 06 30 06 |........|....t.0.|
|00001520| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 f9 00 f7 ff |....`...|........|
|00001530| 00 15 18 02 f7 45 2e 67 | 2e 2c 20 54 65 78 74 20 |.....E.g|., Text |
|00001540| 6f 62 6a 65 63 74 73 20 | 64 69 73 70 6c 61 79 20 |objects |display |
|00001550| 63 68 61 72 61 63 74 65 | 72 73 20 63 6f 72 72 65 |characte|rs corre|
|00001560| 73 70 6f 6e 64 69 6e 67 | 20 74 6f 20 6b 65 79 73 |sponding| to keys|
|00001570| 74 72 6f 6b 65 73 2e ff | 00 15 18 00 f7 0d f9 00 |trokes..|........|
|00001580| f7 fc 00 74 02 a4 00 74 | 00 0c 02 8c 03 48 04 00 |...t...t|.....H..|
|00001590| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|000015a0| 0a 90 f7 0d 00 b6 0d ff | 00 15 18 03 f7 54 65 78 |........|.....Tex|
|000015b0| 74 ff 00 15 18 00 f7 0d | 0d 63 75 74 3a 09 43 75 |t.......|.cut:.Cu|
|000015c0| 74 20 73 65 6c 65 63 74 | 69 6f 6e 20 26 20 70 75 |t select|ion & pu|
|000015d0| 74 20 69 6e 20 70 61 73 | 74 65 62 6f 61 72 64 0d |t in pas|teboard.|
|000015e0| 63 6f 70 79 3a 09 43 6f | 70 79 20 73 65 6c 65 63 |copy:.Co|py selec|
|000015f0| 74 69 6f 6e 74 20 74 6f | 20 70 61 73 74 65 62 6f |tiont to| pastebo|
|00001600| 61 72 64 0d 70 61 73 74 | 65 3a 09 50 61 73 74 65 |ard.past|e:.Paste|
|00001610| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 70 61 73 | content|s of pas|
|00001620| 74 65 62 6f 61 72 64 0d | 64 65 6c 65 74 65 3a 09 |teboard.|delete:.|
|00001630| 44 65 6c 65 74 65 20 73 | 65 6c 65 63 74 69 6f 6e |Delete s|election|
|00001640| 2c 20 6e 6f 74 20 74 6f | 20 70 61 73 74 65 62 6f |, not to| pastebo|
|00001650| 61 72 64 0d 0d ff 00 15 | 18 03 f7 0d 01 f5 56 69 |ard.....|......Vi|
|00001660| 65 77 ff 00 15 18 00 f7 | 0d 0d 70 72 69 6e 74 50 |ew......|..printP|
|00001670| 53 43 6f 64 65 3a 09 50 | 72 69 6e 74 20 76 69 65 |SCode:.P|rint vie|
|00001680| 77 20 61 6e 64 20 69 74 | 73 20 73 75 62 76 69 65 |w and it|s subvie|
|00001690| 77 73 0d 0d ff 00 15 18 | 03 f7 57 69 6e 64 6f 77 |ws......|..Window|
|000016a0| ff 00 15 18 00 f7 0d 0d | 6f 72 64 65 72 46 72 6f |........|orderFro|
|000016b0| 6e 74 3a 09 42 72 69 6e | 67 73 20 77 69 6e 64 6f |nt:.Brin|gs windo|
|000016c0| 77 20 74 6f 20 66 72 6f | 6e 74 0d 6f 72 64 65 72 |w to fro|nt.order|
|000016d0| 4f 75 74 3a 09 52 65 6d | 6f 76 65 20 74 68 65 20 |Out:.Rem|ove the |
|000016e0| 77 69 6e 64 6f 77 20 66 | 72 6f 6d 20 74 68 65 20 |window f|rom the |
|000016f0| 73 63 72 65 65 6e 0d 70 | 65 72 66 6f 72 6d 43 6c |screen.p|erformCl|
|00001700| 6f 73 65 3a 09 53 69 6d | 75 6c 61 74 65 20 63 6c |ose:.Sim|ulate cl|
|00001710| 69 63 6b 69 6e 67 20 74 | 68 65 20 63 6c 6f 73 65 |icking t|he close|
|00001720| 20 62 75 74 74 6f 6e 0d | 70 72 69 6e 74 50 53 43 | button.|printPSC|
|00001730| 6f 64 65 3a 09 50 72 69 | 6e 74 73 20 61 6c 6c 20 |ode:.Pri|nts all |
|00001740| 6f 66 20 74 68 65 20 76 | 69 65 77 20 77 69 74 68 |of the v|iew with|
|00001750| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 0d 0d 0d |in the w|indow...|
|00001760| fc 00 5c 02 a4 00 5c 00 | 0c 03 48 04 00 04 bc 05 |..\...\.|..H.....|
|00001770| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|00001780| 4f 66 20 63 6f 75 72 73 | 65 2c 20 79 6f 75 20 63 |Of cours|e, you c|
|00001790| 61 6e 20 73 65 6e 64 20 | 74 68 65 73 65 20 66 72 |an send |these fr|
|000017a0| 6f 6d 20 79 6f 75 72 20 | 6f 77 6e 20 63 75 73 74 |om your |own cust|
|000017b0| 6f 6d 20 6f 62 6a 65 63 | 74 2e 20 20 46 6f 72 20 |om objec|t. For |
|000017c0| 65 78 61 6d 70 6c 65 2c | 20 6f 72 64 65 72 20 79 |example,| order y|
|000017d0| 6f 75 72 20 69 6e 66 6f | 20 70 61 6e 65 6c 20 74 |our info| panel t|
|000017e0| 6f 20 74 68 65 20 66 72 | 6f 6e 74 3a 0d fc 00 a3 |o the fr|ont:....|
|000017f0| 02 a4 00 a3 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00001800| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00001810| af 02 a4 00 af 00 0c 04 | 00 04 bc 05 74 06 30 06 |........|....t.0.|
|00001820| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 f9 00 f7 ff |....`...|........|
|00001830| 00 16 18 01 f7 5b 6d 79 | 49 6e 66 6f 50 61 6e 65 |.....[my|InfoPane|
|00001840| 6c 20 6f 72 64 65 72 46 | 72 6f 6e 74 3a 73 65 6c |l orderF|ront:sel|
|00001850| 66 5d 0d 01 f3 fc 00 5a | 02 a4 00 5a 00 0c 04 00 |f].....Z|...Z....|
|00001860| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00001870| 0a 90 f7 ff 00 15 24 03 | f7 44 65 6c 65 67 61 74 |......$.|.Delegat|
|00001880| 69 6f 6e 20 61 6e 64 20 | 4e 6f 74 69 66 69 63 61 |ion and |Notifica|
|00001890| 74 69 6f 6e ff 00 15 18 | 03 f7 0d fc 00 5c 02 bf |tion....|.....\..|
|000018a0| 00 5c 00 0c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.\...H..|...t.0..|
|000018b0| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 18 02 |...`....|........|
|000018c0| f7 28 63 6f 6e 74 69 6e | 75 65 64 29 0d ff 00 15 |.(contin|ued)....|
|000018d0| 18 03 f7 0d 57 68 79 20 | 75 73 65 20 64 65 6c 65 |....Why |use dele|
|000018e0| 67 61 74 65 73 3f ff 00 | 15 18 00 f7 0d fc 00 92 |gates?..|........|
|000018f0| 02 bf 00 92 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00001900| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00001910| 7f 02 bf 00 7f 00 0c 03 | 48 04 00 04 bc 05 74 06 |........|H.....t.|
|00001920| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 45 78 |0.....`.|......Ex|
|00001930| 74 65 6e 64 20 64 65 66 | 61 75 6c 74 20 68 61 6e |tend def|ault han|
|00001940| 64 6c 69 6e 67 20 6f 66 | 20 65 76 65 6e 74 73 20 |dling of| events |
|00001950| 62 79 20 41 70 70 4b 69 | 74 20 6f 62 6a 65 63 74 |by AppKi|t object|
|00001960| 73 20 77 69 74 68 6f 75 | 74 20 73 75 62 63 6c 61 |s withou|t subcla|
|00001970| 73 73 69 6e 67 2e 0d 0d | 43 65 6e 74 72 61 6c 69 |ssing...|Centrali|
|00001980| 7a 65 73 20 63 75 73 74 | 6f 6d 20 62 65 68 61 76 |zes cust|om behav|
|00001990| 69 6f 72 20 69 6e 20 6f | 6e 65 20 70 6c 61 63 65 |ior in o|ne place|
|000019a0| 20 28 69 2e 65 2e 2c 20 | 74 68 65 20 64 65 6c 65 | (i.e., |the dele|
|000019b0| 67 61 74 65 29 2e 0d 0d | 44 65 6c 65 67 61 74 65 |gate)...|Delegate|
|000019c0| 73 20 63 61 6e 20 73 65 | 72 76 65 20 6d 75 6c 74 |s can se|rve mult|
|000019d0| 69 70 6c 65 20 63 6c 69 | 65 6e 74 73 20 61 6e 64 |iple cli|ents and|
|000019e0| 20 74 68 75 73 20 70 72 | 6f 76 69 64 65 20 61 20 | thus pr|ovide a |
|000019f0| 6e 61 74 75 72 61 6c 20 | 77 61 79 20 6f 66 20 6b |natural |way of k|
|00001a00| 65 65 70 69 6e 67 20 74 | 72 61 63 6b 20 6f 66 20 |eeping t|rack of |
|00001a10| 74 68 65 20 73 74 61 74 | 75 73 20 6f 66 20 74 68 |the stat|us of th|
|00001a20| 69 6e 67 73 2e 0d fc 00 | 83 02 a4 00 83 00 0c 03 |ings....|........|
|00001a30| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00001a40| 18 09 d4 0a 90 f7 0d 0d | 00 fd fc 00 4b 02 f0 09 |........|....K...|
|00001a50| 00 4b 00 0c 05 5c f7 ff | 00 15 18 03 f7 57 69 6e |.K...\..|.....Win|
|00001a60| 64 6f 77 ff 00 15 18 00 | f7 0d fc 00 6f 02 f0 09 |dow.....|....o...|
|00001a70| 00 6f 00 0c 05 5c f7 0d | 77 69 6e 64 6f 77 57 69 |.o...\..|windowWi|
|00001a80| 6c 6c 43 6c 6f 73 65 3a | 0d 77 69 6e 64 6f 77 57 |llClose:|.windowW|
|00001a90| 69 6c 6c 52 65 73 69 7a | 65 3a 74 6f 53 69 7a 65 |illResiz|e:toSize|
|00001aa0| 3a 0d 77 69 6e 64 6f 77 | 44 69 64 52 65 73 69 7a |:.window|DidResiz|
|00001ab0| 65 3a 0d 77 69 6e 64 6f | 77 44 69 64 4d 6f 76 65 |e:.windo|wDidMove|
|00001ac0| 3a 0d 77 69 6e 64 6f 77 | 44 69 64 45 78 70 6f 73 |:.window|DidExpos|
|00001ad0| 65 3a 0d 77 69 6e 64 6f | 77 44 69 64 42 65 63 6f |e:.windo|wDidBeco|
|00001ae0| 6d 65 4b 65 79 3a 0d 77 | 69 6e 64 6f 77 44 69 64 |meKey:.w|indowDid|
|00001af0| 42 65 63 6f 6d 65 4d 61 | 69 6e 3a 0d 77 69 6e 64 |BecomeMa|in:.wind|
|00001b00| 6f 77 44 69 64 4d 69 6e | 69 61 74 75 72 69 7a 65 |owDidMin|iaturize|
|00001b10| 3a 0d 77 69 6e 64 6f 77 | 44 69 64 55 70 64 61 74 |:.window|DidUpdat|
|00001b20| 65 3a 0d 77 69 6e 64 6f | 77 57 69 6c 6c 4d 69 6e |e:.windo|wWillMin|
|00001b30| 69 61 74 75 72 69 7a 65 | 3a 74 6f 4d 69 6e 69 77 |iaturize|:toMiniw|
|00001b40| 69 6e 64 6f 77 3a 0d 01 | 61 fc 00 4b 02 f0 09 00 |indow:..|a..K....|
|00001b50| 4b 00 0c 05 5c f7 ff 00 | 15 18 03 f7 54 65 78 74 |K...\...|....Text|
|00001b60| ff 00 15 18 00 f7 0d fc | 00 6f 02 f0 09 00 6f 00 |........|.o....o.|
|00001b70| 0c 05 5c f7 0d 74 65 78 | 74 57 69 6c 6c 43 68 61 |..\..tex|tWillCha|
|00001b80| 6e 67 65 3a 0d 74 65 78 | 74 57 69 6c 6c 52 65 73 |nge:.tex|tWillRes|
|00001b90| 69 7a 65 3a 0d 74 65 78 | 74 57 69 6c 6c 45 6e 64 |ize:.tex|tWillEnd|
|00001ba0| 3a 0d 74 65 78 74 44 69 | 64 52 65 73 69 7a 65 3a |:.textDi|dResize:|
|00001bb0| 6f 6c 64 42 6f 75 6e 64 | 73 3a 69 6e 76 61 6c 69 |oldBound|s:invali|
|00001bc0| 64 3a 0d 74 65 78 74 44 | 69 64 43 68 61 6e 67 65 |d:.textD|idChange|
|00001bd0| 3a 0d 74 65 78 74 44 69 | 64 45 6e 64 3a 65 6e 64 |:.textDi|dEnd:end|
|00001be0| 43 68 61 72 3a 0d 74 65 | 78 74 3a 69 73 45 6d 70 |Char:.te|xt:isEmp|
|00001bf0| 74 79 3a 0d 74 65 78 74 | 44 69 64 52 65 61 64 3a |ty:.text|DidRead:|
|00001c00| 70 61 70 65 72 53 69 7a | 65 3a 0d 74 65 78 74 57 |paperSiz|e:.textW|
|00001c10| 69 6c 6c 43 6f 6e 76 65 | 72 74 3a 66 72 6f 6d 46 |illConve|rt:fromF|
|00001c20| 6f 6e 74 3a 74 6f 46 6f | 6e 74 3a 0d 74 65 78 74 |ont:toFo|nt:.text|
|00001c30| 57 69 6c 6c 46 69 6e 69 | 73 68 52 65 61 64 69 6e |WillFini|shReadin|
|00001c40| 67 52 69 63 68 54 65 78 | 74 3a 73 74 72 65 61 6d |gRichTex|t:stream|
|00001c50| 3a 61 74 50 6f 73 69 74 | 69 6f 6e 0d 74 65 78 74 |:atPosit|ion.text|
|00001c60| 57 69 6c 6c 53 65 74 53 | 65 6c 3a 74 6f 46 6f 6e |WillSetS|el:toFon|
|00001c70| 74 3a 0d 74 65 78 74 57 | 69 6c 6c 53 74 61 72 74 |t:.textW|illStart|
|00001c80| 52 65 61 64 69 6e 67 52 | 69 63 68 54 65 78 74 3a |ReadingR|ichText:|
|00001c90| 0d 74 65 78 74 57 69 6c | 6c 57 72 69 74 65 3a 70 |.textWil|lWrite:p|
|00001ca0| 61 70 65 72 53 69 7a 65 | 3a 0d 02 76 fc 00 89 02 |aperSize|:..v....|
|00001cb0| a4 00 89 00 0c 03 48 04 | 00 04 bc 05 74 06 30 06 |......H.|....t.0.|
|00001cc0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d fc 00 5b |....`...|.......[|
|00001cd0| 02 a4 00 5b 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...[....|.H.....t|
|00001ce0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 ff |.0.....`|........|
|00001cf0| 00 15 24 03 f7 46 69 72 | 73 74 20 52 65 73 70 6f |..$..Fir|st Respo|
|00001d00| 6e 64 65 72 20 ff 00 15 | 18 00 f7 28 63 6f 6e 74 |nder ...|...(cont|
|00001d10| 69 6e 75 65 64 29 ff 00 | 15 18 03 f7 0d fc 00 6e |inued)..|.......n|
|00001d20| 02 a4 00 6e 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |...n...H|.....t.0|
|00001d30| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00001d40| a4 02 bd 00 8d 00 0c 03 | 48 04 00 04 bc 05 74 06 |........|H.....t.|
|00001d50| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 ff 00 |0.....`.|........|
|00001d60| 15 18 00 f7 0d fc 00 85 | 02 c1 00 85 00 0c 03 48 |........|.......H|
|00001d70| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00001d80| 09 d4 0a 90 f7 32 2e 20 | 20 45 78 70 6c 69 63 69 |.....2. | Explici|
|00001d90| 74 6c 79 20 64 65 63 6c | 61 72 65 20 61 6e 20 6f |tly decl|are an o|
|00001da0| 62 6a 65 63 74 20 74 6f | 20 62 65 20 66 69 72 73 |bject to| be firs|
|00001db0| 74 52 65 73 70 6f 6e 64 | 65 72 2e 0d fc 00 89 02 |tRespond|er......|
|00001dc0| a4 00 89 00 0c 03 48 04 | 00 04 bc 05 74 06 30 06 |......H.|....t.0.|
|00001dd0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d fc 00 a7 |....`...|........|
|00001de0| 02 a4 00 a7 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00001df0| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 ff 00 16 |.....`..|........|
|00001e00| 18 01 f7 5b 77 69 6e 64 | 6f 77 20 6d 61 6b 65 46 |...[wind|ow makeF|
|00001e10| 69 72 73 74 52 65 73 70 | 6f 6e 64 65 72 3a 73 65 |irstResp|onder:se|
|00001e20| 6c 66 5d 3b ff 00 15 18 | 00 f7 0d fc 00 89 02 a4 |lf];....|........|
|00001e30| 00 89 00 0c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.....H..|...t.0..|
|00001e40| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 0d fc 00 70 02 |...`....|......p.|
|00001e50| a4 00 70 00 0c 03 48 04 | 00 04 bc 05 74 06 30 06 |..p...H.|....t.0.|
|00001e60| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 ff 00 15 18 |....`...|........|
|00001e70| 03 f7 0d fc 00 5f 02 a4 | 00 5f 00 0c 03 48 04 00 |....._..|._...H..|
|00001e80| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00001e90| 0a 90 f7 4f 62 6a 65 63 | 74 73 20 77 68 69 63 68 |...Objec|ts which|
|00001ea0| 20 61 72 65 20 74 79 70 | 69 63 61 6c 6c 79 20 66 | are typ|ically f|
|00001eb0| 69 72 73 74 52 65 73 70 | 6f 6e 64 65 72 73 20 61 |irstResp|onders a|
|00001ec0| 72 65 20 54 65 78 74 20 | 61 6e 64 20 54 65 78 74 |re Text |and Text|
|00001ed0| 46 69 65 6c 64 2e ff 00 | 15 18 00 f7 0d fc 00 89 |Field...|........|
|00001ee0| 02 a4 00 89 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00001ef0| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d 0d fc |.....`..|........|
|00001f00| 00 89 02 a4 00 89 02 0c | 02 8c 03 48 04 00 04 bc |........|...H....|
|00001f10| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00001f20| f7 0d 02 4a ff 00 15 24 | 03 f7 fc 00 5b 02 a4 00 |...J...$|....[...|
|00001f30| 5b 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |[.....H.|....t.0.|
|00001f40| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 46 69 72 73 |....`...|....Firs|
|00001f50| 74 20 52 65 73 70 6f 6e | 64 65 72 20 ff 00 15 18 |t Respon|der ....|
|00001f60| 00 f7 28 63 6f 6e 74 69 | 6e 75 65 64 29 ff 00 15 |..(conti|nued)...|
|00001f70| 18 03 f7 0d fc 00 6e 02 | a4 00 6e 00 0c 03 48 04 |......n.|..n...H.|
|00001f80| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00001f90| d4 0a 90 f7 0d fc 00 5f | 02 a4 00 5f 00 0c 03 48 |......._|..._...H|
|00001fa0| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00001fb0| 09 d4 0a 90 f7 45 76 65 | 72 79 20 77 69 6e 64 6f |.....Eve|ry windo|
|00001fc0| 77 20 68 61 73 20 61 20 | 66 69 72 73 74 52 65 73 |w has a |firstRes|
|00001fd0| 70 6f 6e 64 65 72 2e 0d | ff 00 15 18 00 f7 fc 00 |ponder..|........|
|00001fe0| 89 02 a4 00 89 00 0c 03 | 48 04 00 04 bc 05 74 06 |........|H.....t.|
|00001ff0| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 0d 4d |0.....`.|.......M|
|00002000| 75 73 74 20 68 61 76 65 | 20 ff 00 15 18 03 f7 52 |ust have| ......R|
|00002010| 65 73 70 6f 6e 64 65 72 | ff 00 15 18 00 f7 20 61 |esponder|...... a|
|00002020| 73 20 61 6e 20 61 6e 63 | 65 73 74 6f 72 20 63 6c |s an anc|estor cl|
|00002030| 61 73 73 2e 0d 0d 49 74 | 20 72 65 73 70 6f 6e 64 |ass...It| respond|
|00002040| 73 20 74 6f 20 ff 00 16 | 18 01 f7 6b 65 79 44 6f |s to ...|...keyDo|
|00002050| 77 6e 3a ff 00 15 18 00 | f7 20 6d 65 73 73 61 67 |wn:.....|. messag|
|00002060| 65 20 77 68 65 6e 20 69 | 74 73 20 77 69 6e 64 6f |e when i|ts windo|
|00002070| 77 20 69 73 20 74 68 65 | 20 ff 00 15 18 03 f7 6b |w is the| ......k|
|00002080| 65 79 57 69 6e 64 6f 77 | ff 00 15 18 00 f7 2e 0d |eyWindow|........|
|00002090| 0d 54 68 65 20 66 69 72 | 73 74 52 65 73 70 6f 6e |.The fir|stRespon|
|000020a0| 64 65 72 20 69 6e 20 74 | 68 65 20 6b 65 79 57 69 |der in t|he keyWi|
|000020b0| 6e 64 6f 77 20 69 73 20 | 61 75 74 6f 6d 61 74 69 |ndow is |automati|
|000020c0| 63 61 6c 6c 79 20 73 65 | 6e 74 20 61 6c 6c 20 61 |cally se|nt all a|
|000020d0| 63 74 69 6f 6e 20 6d 65 | 73 73 61 67 65 73 20 66 |ction me|ssages f|
|000020e0| 6f 72 20 77 68 6f 6d 20 | 6e 6f 20 73 70 65 63 69 |or whom |no speci|
|000020f0| 66 69 63 20 74 61 72 67 | 65 74 20 77 61 73 20 73 |fic targ|et was s|
|00002100| 70 65 63 69 66 69 65 64 | 2e 0d 0d 49 66 20 74 68 |pecified|...If th|
|00002110| 65 20 66 69 72 73 74 52 | 65 73 70 6f 6e 64 65 72 |e firstR|esponder|
|00002120| 20 63 61 6e 6e 6f 74 20 | 74 61 6b 65 20 61 63 74 | cannot |take act|
|00002130| 69 6f 6e 2c 20 74 68 65 | 20 65 76 65 6e 74 73 20 |ion, the| events |
|00002140| 61 72 65 20 70 61 73 73 | 65 64 20 75 70 20 61 20 |are pass|ed up a |
|00002150| ff 00 15 18 03 f7 72 65 | 73 70 6f 6e 64 65 72 20 |......re|sponder |
|00002160| 63 68 61 69 6e ff 00 15 | 18 00 f7 2e 0d 0d 02 5d |chain...|.......]|
|00002170| fc 00 49 02 d0 00 49 02 | 0c 02 8c 03 48 04 00 04 |..I...I.|....H...|
|00002180| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00002190| 90 f7 ff 00 15 30 01 f7 | f5 57 68 61 74 20 69 73 |.....0..|.What is|
|000021a0| 20 74 68 65 20 41 70 70 | 6c 69 63 61 74 69 6f 6e | the App|lication|
|000021b0| 20 4b 69 74 3f ff 00 15 | 24 01 f7 0d fc 00 74 02 | Kit?...|$.....t.|
|000021c0| a4 00 74 02 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..t.....|H.....t.|
|000021d0| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 0d fc |0.....`.|........|
|000021e0| 00 63 02 a4 00 63 00 0c | 02 8c 03 48 04 00 04 bc |.c...c..|...H....|
|000021f0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00002200| f7 f9 00 f7 ff 00 15 18 | 03 f7 54 68 65 20 41 70 |........|..The Ap|
|00002210| 70 6c 69 63 61 74 69 6f | 6e 20 4b 69 74 3a ff 00 |plicatio|n Kit:..|
|00002220| 15 18 00 f7 0d fc 00 74 | 02 a4 00 74 00 0c 02 8c |.......t|...t....|
|00002230| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|00002240| 09 18 09 d4 0a 90 f7 0d | fc 00 90 02 a4 00 76 00 |........|......v.|
|00002250| 0c 02 8c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|00002260| a4 08 60 09 18 09 d4 0a | 90 f7 50 72 6f 76 69 64 |..`.....|..Provid|
|00002270| 65 73 20 61 20 ff 00 15 | 18 03 f7 62 61 73 69 63 |es a ...|...basic|
|00002280| 20 70 72 6f 67 72 61 6d | 20 73 74 72 75 63 74 75 | program| structu|
|00002290| 72 65 ff 00 15 18 00 f7 | 20 66 6f 72 20 61 70 70 |re......| for app|
|000022a0| 6c 69 63 61 74 69 6f 6e | 73 20 74 68 61 74 20 64 |lication|s that d|
|000022b0| 72 61 77 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |raw on t|he scree|
|000022c0| 6e 20 61 6e 64 20 72 65 | 73 70 6f 6e 64 20 74 6f |n and re|spond to|
|000022d0| 20 65 76 65 6e 74 73 2e | 0d 0d 49 6d 70 6c 65 6d | events.|..Implem|
|000022e0| 65 6e 74 73 20 74 68 65 | 20 ff 00 15 18 03 f7 4e |ents the| ......N|
|000022f0| 65 58 54 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 |eXT user| interfa|
|00002300| 63 65 ff 00 15 18 00 f7 | 20 61 6e 64 20 72 65 6c |ce......| and rel|
|00002310| 69 65 76 65 73 20 79 6f | 75 20 6f 66 20 74 68 65 |ieves yo|u of the|
|00002320| 20 6d 6f 72 65 20 74 65 | 64 69 6f 75 73 20 70 72 | more te|dious pr|
|00002330| 6f 67 72 61 6d 6d 69 6e | 67 20 74 61 73 6b 73 2e |ogrammin|g tasks.|
|00002340| 0d 0d 50 72 6f 76 69 64 | 65 73 20 61 20 72 69 63 |..Provid|es a ric|
|00002350| 68 20 ff 00 15 18 03 f7 | 6c 69 62 72 61 72 79 20 |h ......|library |
|00002360| 6f 66 20 6f 62 6a 65 63 | 74 73 ff 00 15 18 00 f7 |of objec|ts......|
|00002370| 20 28 63 6c 61 73 73 65 | 73 29 20 66 6f 72 20 67 | (classe|s) for g|
|00002380| 65 74 74 69 6e 67 20 75 | 73 65 72 20 69 6e 70 75 |etting u|ser inpu|
|00002390| 74 20 61 6e 64 20 61 20 | 75 6e 69 66 6f 72 6d 20 |t and a |uniform |
|000023a0| 77 61 79 20 6f 66 20 69 | 6e 74 65 72 61 63 74 69 |way of i|nteracti|
|000023b0| 6e 67 20 77 69 74 68 20 | 74 68 6f 73 65 20 6f 62 |ng with |those ob|
|000023c0| 6a 65 63 74 73 2e ff 00 | 15 0a 00 f7 0d 00 54 fc |jects...|......T.|
|000023d0| 00 74 02 a4 00 74 02 0c | 02 8c 03 48 04 00 04 bc |.t...t..|...H....|
|000023e0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|000023f0| f7 ff 00 15 18 01 f7 41 | 70 70 6c 69 63 61 74 69 |.......A|pplicati|
|00002400| 6f 6e 20 4b 69 74 20 49 | 6e 68 65 72 69 74 61 6e |on Kit I|nheritan|
|00002410| 63 65 20 48 69 65 72 61 | 72 63 68 79 ff 00 15 18 |ce Hiera|rchy....|
|00002420| 00 f7 0d 00 3f fc 00 25 | 02 f0 05 00 25 02 0e 01 |....?..%|....%...|
|00002430| b0 06 30 f7 ff 00 14 0b | 02 f7 fb 00 00 00 01 01 |..0.....|........|
|00002440| 6e 02 aa 45 76 65 6e 74 | 44 72 69 76 65 6e 41 70 |n..Event|DrivenAp|
|00002450| 70 2e 34 30 34 38 32 35 | 2e 65 70 73 f7 ff 00 15 |p.404825|.eps....|
|00002460| 18 00 f7 0d 00 50 fc 00 | 62 02 a4 00 62 00 0c 02 |.....P..|b...b...|
|00002470| 8c 03 48 04 00 04 bc 05 | 74 06 30 06 ec 07 a4 08 |..H.....|t.0.....|
|00002480| 60 09 18 09 d4 0a 90 f7 | ff 00 15 24 03 f7 50 72 |`.......|...$..Pr|
|00002490| 69 6e 63 69 70 61 6c 20 | 41 70 70 6c 69 63 61 74 |incipal |Applicat|
|000024a0| 69 6f 6e 20 4b 69 74 20 | 4f 62 6a 65 63 74 73 ff |ion Kit |Objects.|
|000024b0| 00 15 0c 00 f7 0d 01 d9 | fc 00 5b 02 a4 00 5b 00 |........|..[...[.|
|000024c0| 0c 02 8c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|000024d0| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 24 03 f7 |..`.....|.....$..|
|000024e0| 41 63 74 69 6f 6e 20 4d | 65 74 68 6f 64 73 20 ff |Action M|ethods .|
|000024f0| 00 15 18 02 f7 28 63 6f | 6e 74 69 6e 75 65 64 29 |.....(co|ntinued)|
|00002500| ff 00 15 24 03 f7 0d ff | 00 15 18 00 f7 0d fc 00 |...$....|........|
|00002510| 5b 02 a4 00 5b 00 0c 03 | 48 04 00 04 bc 05 74 06 |[...[...|H.....t.|
|00002520| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 ff 00 |0.....`.|........|
|00002530| 15 18 03 f7 31 2e 20 20 | 53 69 6d 70 6c 65 20 41 |....1. |Simple A|
|00002540| 63 74 69 6f 6e ff 00 15 | 18 00 f7 0d 0d 49 6e 20 |ction...|.....In |
|00002550| 74 68 65 20 73 69 6d 70 | 6c 65 73 74 20 63 61 73 |the simp|lest cas|
|00002560| 65 2c 20 61 73 20 77 68 | 65 6e 20 72 65 73 70 6f |e, as wh|en respo|
|00002570| 6e 64 69 6e 67 20 74 6f | 20 61 20 62 75 74 74 6f |nding to| a butto|
|00002580| 6e 2c 20 74 68 65 20 6d | 65 74 68 6f 64 20 73 69 |n, the m|ethod si|
|00002590| 6d 70 6c 79 20 74 61 6b | 65 73 20 61 6e 20 61 63 |mply tak|es an ac|
|000025a0| 74 69 6f 6e 20 77 69 74 | 68 6f 75 74 20 63 6f 6d |tion wit|hout com|
|000025b0| 6d 75 6e 69 63 61 74 69 | 6e 67 20 77 69 74 68 20 |municati|ng with |
|000025c0| 74 68 65 20 ff 00 15 18 | 02 f7 73 65 6e 64 69 6e |the ....|..sendin|
|000025d0| 67 ff 00 15 18 00 f7 20 | 63 6f 6e 74 72 6f 6c 20 |g...... |control |
|000025e0| 6f 62 6a 65 63 74 3a 0d | 0d fc 00 5b 02 a4 00 5b |object:.|...[...[|
|000025f0| 00 0c 02 6c 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...l....|.t.0....|
|00002600| 08 60 09 18 09 d4 0a 90 | f7 20 ff 00 16 18 01 f7 |.`......|. ......|
|00002610| 2d 63 6c 65 61 72 ff 00 | 16 18 01 f7 3a 73 65 6e |-clear..|....:sen|
|00002620| 64 65 72 20 20 2f 2f 6d | 73 67 20 66 72 6f 6d 20 |der //m|sg from |
|00002630| 61 20 62 75 74 74 6f 6e | 0d 7b 0d 09 5b 64 69 73 |a button|.{..[dis|
|00002640| 70 6c 61 79 20 73 65 74 | 46 6c 6f 61 74 56 61 6c |play set|FloatVal|
|00002650| 75 65 3a 30 2e 30 5d 3b | 0d 09 72 65 74 75 72 6e |ue:0.0];|..return|
|00002660| 20 73 65 6c 66 3b 0d 7d | 0d ff 00 15 18 00 f7 fc | self;.}|........|
|00002670| 00 5b 02 a4 00 5b 00 0c | 03 48 04 00 04 bc 05 74 |.[...[..|.H.....t|
|00002680| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 0d |.0.....`|........|
|00002690| 0d 02 48 fc 00 5c 02 a4 | 00 5c 00 0c 03 48 04 00 |..H..\..|.\...H..|
|000026a0| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|000026b0| 0a 90 f7 54 68 65 20 ff | 00 16 18 01 f7 69 64 ff |...The .|.....id.|
|000026c0| 00 15 18 00 f7 20 6f 66 | 20 74 68 65 20 73 65 6e |..... of| the sen|
|000026d0| 64 69 6e 67 20 63 6f 6e | 74 72 6f 6c 20 28 73 6c |ding con|trol (sl|
|000026e0| 69 64 65 72 29 20 69 73 | 20 69 6e 20 ff 00 16 18 |ider) is| in ....|
|000026f0| 01 f7 73 65 6e 64 65 72 | 2e ff 00 15 18 00 f7 20 |..sender|....... |
|00002700| ff 00 15 24 03 f7 41 63 | 74 69 6f 6e 20 4d 65 74 |...$..Ac|tion Met|
|00002710| 68 6f 64 73 20 ff 00 15 | 18 02 f7 28 63 6f 6e 74 |hods ...|...(cont|
|00002720| 69 6e 75 65 64 29 0d fc | 00 5c 02 a4 00 5c 00 0c |inued)..|.\...\..|
|00002730| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00002740| 08 60 09 18 09 d4 0a 90 | f7 0d ff 00 15 18 03 f7 |.`......|........|
|00002750| 33 2e 20 51 75 65 72 79 | 20 61 20 4d 61 74 72 69 |3. Query| a Matri|
|00002760| 78 ff 00 15 18 03 f7 0d | ff 00 15 18 02 f7 0d fc |x.......|........|
|00002770| 00 5c 02 b0 00 5c 00 0c | 03 48 04 00 04 bc 05 74 |.\...\..|.H.....t|
|00002780| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 ff |.0.....`|........|
|00002790| 00 15 18 00 f7 57 68 65 | 6e 20 74 68 65 20 63 6f |.....Whe|n the co|
|000027a0| 6e 74 72 6f 6c 20 69 73 | 20 61 20 ff 00 15 18 01 |ntrol is| a .....|
|000027b0| f7 4d 61 74 72 69 78 ff | 00 15 18 00 f7 2c 20 69 |.Matrix.|....., i|
|000027c0| 74 20 63 61 6e 20 62 65 | 20 61 73 6b 65 64 20 66 |t can be| asked f|
|000027d0| 6f 72 20 74 68 65 20 ff | 00 16 18 01 f7 69 64 ff |or the .|.....id.|
|000027e0| 00 15 18 00 f7 20 6f 66 | 20 74 68 65 20 ff 00 15 |..... of| the ...|
|000027f0| 18 03 f7 63 65 6c 6c ff | 00 15 18 00 f7 20 69 6e |...cell.|..... in|
|00002800| 20 74 68 65 20 6d 61 74 | 72 69 78 20 77 68 69 63 | the mat|rix whic|
|00002810| 68 20 69 6e 69 74 69 61 | 74 65 64 20 74 68 65 20 |h initia|ted the |
|00002820| 6d 65 73 73 61 67 65 2e | 20 20 54 68 61 74 20 63 |message.| That c|
|00002830| 65 6c 6c 20 63 61 6e 20 | 74 68 65 6e 20 62 65 20 |ell can |then be |
|00002840| 61 73 6b 65 64 20 66 6f | 72 20 69 74 73 20 ff 00 |asked fo|r its ..|
|00002850| 15 18 03 f7 74 61 67 ff | 00 15 18 00 f7 20 28 61 |....tag.|..... (a|
|00002860| 20 6c 61 62 65 6c 20 69 | 6e 74 65 67 65 72 29 2e | label i|nteger).|
|00002870| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 61 20 | For exa|mple, a |
|00002880| 6b 65 79 70 61 64 20 6d | 61 74 72 69 78 20 6f 66 |keypad m|atrix of|
|00002890| 20 62 75 74 74 6f 6e 73 | 20 30 20 74 6f 20 39 2c | buttons| 0 to 9,|
|000028a0| 20 77 68 65 72 65 20 74 | 68 65 20 74 61 67 73 20 | where t|he tags |
|000028b0| 6f 66 20 74 68 65 20 62 | 75 74 74 6f 6e 63 65 6c |of the b|uttoncel|
|000028c0| 6c 73 20 61 72 65 20 61 | 6c 73 6f 20 73 65 74 20 |ls are a|lso set |
|000028d0| 74 6f 20 30 20 74 6f 20 | 39 3a 0d 00 f9 0d ff 00 |to 0 to |9:......|
|000028e0| 15 18 03 f7 41 20 64 65 | 6c 65 67 61 74 65 20 63 |....A de|legate c|
|000028f0| 61 6e 20 63 68 6f 6f 73 | 65 20 74 6f 3a ff 00 15 |an choos|e to:...|
|00002900| 18 00 f7 0d fc 00 6a 02 | bf 00 6a 00 0c 03 48 04 |......j.|..j...H.|
|00002910| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00002920| d4 0a 90 f7 0d fc 00 92 | 02 bf 00 92 00 0c 03 48 |........|.......H|
|00002930| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00002940| 09 d4 0a 90 f7 49 67 6e | 6f 72 65 20 74 68 65 20 |.....Ign|ore the |
|00002950| 6e 6f 74 69 66 69 63 61 | 74 69 6f 6e 2e 0d 0d 44 |notifica|tion...D|
|00002960| 6f 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 70 72 6f |o additi|onal pro|
|00002970| 63 65 73 73 69 6e 67 20 | 69 6e 20 72 65 73 70 6f |cessing |in respo|
|00002980| 6e 73 65 2e 0d 0d 50 6f | 73 73 69 62 6c 79 20 62 |nse...Po|ssibly b|
|00002990| 6c 6f 63 6b 20 74 68 65 | 20 63 68 61 6e 67 65 20 |lock the| change |
|000029a0| 74 68 61 74 20 72 65 73 | 75 6c 74 65 64 20 69 6e |that res|ulted in|
|000029b0| 20 74 68 65 20 73 65 6e | 64 65 72 20 73 65 6e 64 | the sen|der send|
|000029c0| 69 6e 67 20 74 68 65 20 | 6e 6f 74 69 66 69 63 61 |ing the |notifica|
|000029d0| 74 69 6f 6e 2e 0d 02 47 | 0d fc 00 6b 02 a4 00 6b |tion...G|...k...k|
|000029e0| 00 0c 02 8c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.....H..|...t.0..|
|000029f0| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 f9 00 f7 54 68 |...`....|......Th|
|00002a00| 65 20 ff 00 15 18 03 f7 | 56 69 65 77 20 63 6c 61 |e ......|View cla|
|00002a10| 73 73 ff 00 15 18 00 f7 | 20 69 73 20 61 6e 20 ff |ss......| is an .|
|00002a20| 00 15 18 03 f7 61 62 73 | 74 72 61 63 74 20 73 75 |.....abs|tract su|
|00002a30| 70 65 72 63 6c 61 73 73 | ff 00 15 18 00 f7 20 77 |perclass|...... w|
|00002a40| 68 69 63 68 20 70 72 6f | 76 69 64 65 73 20 61 20 |hich pro|vides a |
|00002a50| 73 74 72 75 63 74 75 72 | 65 20 66 6f 72 20 64 72 |structur|e for dr|
|00002a60| 61 77 69 6e 67 20 6f 6e | 20 74 68 65 20 73 63 72 |awing on| the scr|
|00002a70| 65 65 6e 20 61 6e 64 20 | 66 6f 72 20 68 61 6e 64 |een and |for hand|
|00002a80| 6c 69 6e 67 20 6d 6f 75 | 73 65 20 61 6e 64 20 6b |ling mou|se and k|
|00002a90| 65 79 62 6f 61 72 64 20 | 65 76 65 6e 74 73 2e 0d |eyboard |events..|
|00002aa0| 0d 41 6c 6c 20 ff 00 15 | 18 03 f7 67 72 61 70 68 |.All ...|...graph|
|00002ab0| 69 63 61 6c 20 6f 62 6a | 65 63 74 73 ff 00 15 18 |ical obj|ects....|
|00002ac0| 00 f7 20 69 6e 68 65 72 | 69 74 20 66 72 6f 6d 20 |.. inher|it from |
|00002ad0| 56 69 65 77 2e 0d 0d 54 | 68 65 20 56 69 65 77 27 |View...T|he View'|
|00002ae0| 73 20 f9 00 f7 ff 00 15 | 18 03 f7 66 72 61 6d 65 |s ......|...frame|
|00002af0| 20 72 65 63 74 61 6e 67 | 6c 65 f9 00 f7 ff 00 15 | rectang|le......|
|00002b00| 18 00 f7 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |... defi|nes the |
|00002b10| 62 6f 75 6e 64 61 72 69 | 65 73 20 6f 66 20 74 68 |boundari|es of th|
|00002b20| 65 20 56 69 65 77 2c 20 | 74 68 65 20 74 61 62 6c |e View, |the tabl|
|00002b30| 65 74 20 6f 6e 20 77 68 | 69 63 68 20 69 74 20 63 |et on wh|ich it c|
|00002b40| 61 6e 20 64 72 61 77 2e | 0d 0d 45 76 65 72 79 20 |an draw.|..Every |
|00002b50| 56 69 65 77 20 6f 62 6a | 65 63 74 20 69 73 20 61 |View obj|ect is a|
|00002b60| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 61 |ssociate|d with a|
|00002b70| 20 70 61 72 74 69 63 75 | 6c 61 72 20 ff 00 15 18 | particu|lar ....|
|00002b80| 03 f7 77 69 6e 64 6f 77 | ff 00 15 18 00 f7 2e 0d |..window|........|
|00002b90| 0d 56 69 65 77 73 20 77 | 69 74 68 69 6e 20 61 20 |.Views w|ithin a |
|00002ba0| 77 69 6e 64 6f 77 20 61 | 72 65 20 6c 69 6e 6b 65 |window a|re linke|
|00002bb0| 64 20 74 6f 67 65 74 68 | 65 72 20 69 6e 20 61 20 |d togeth|er in a |
|00002bc0| f9 00 f7 ff 00 15 18 03 | f7 76 69 65 77 20 68 69 |........|.view hi|
|00002bd0| 65 72 61 72 63 68 79 f9 | 00 f7 ff 00 15 18 00 f7 |erarchy.|........|
|00002be0| 2e 0d fc 00 5a 02 be 00 | 5a 02 0c 02 8c 03 48 04 |....Z...|Z.....H.|
|00002bf0| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00002c00| d4 0a 90 f7 ff 00 15 18 | 01 f7 56 69 65 77 20 48 |........|..View H|
|00002c10| 69 65 72 61 72 63 68 79 | ff 00 15 18 00 f7 0d 01 |ierarchy|........|
|00002c20| c4 fc 00 5a 02 a4 00 5a | 00 0c 02 8c 03 48 04 00 |...Z...Z|.....H..|
|00002c30| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00002c40| 0a 90 f7 f9 00 f7 ff 00 | 15 24 03 f7 43 6f 6e 74 |........|.$..Cont|
|00002c50| 72 6f 6c f9 00 f7 ff 00 | 15 18 00 f7 0d 0d fc 00 |rol.....|........|
|00002c60| 6c 02 a4 00 6c 00 0c 02 | 8c 03 48 04 00 04 bc 05 |l...l...|..H.....|
|00002c70| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|00002c80| f9 00 f7 41 20 73 75 62 | 63 6c 61 73 73 20 6f 66 |...A sub|class of|
|00002c90| 20 56 69 65 77 20 74 68 | 61 74 20 70 72 6f 76 69 | View th|at provi|
|00002ca0| 64 65 73 20 61 6e 20 ff | 00 15 18 03 f7 61 62 73 |des an .|.....abs|
|00002cb0| 74 72 61 63 74 20 73 75 | 70 65 72 63 6c 61 73 73 |tract su|perclass|
|00002cc0| ff 00 15 18 00 f7 20 66 | 6f 72 20 6f 62 6a 65 63 |...... f|or objec|
|00002cd0| 74 73 20 74 68 61 74 20 | 72 65 63 65 69 76 65 20 |ts that |receive |
|00002ce0| 6d 6f 75 73 65 20 61 6e | 64 20 6b 65 79 62 6f 61 |mouse an|d keyboa|
|00002cf0| 72 64 20 65 76 65 6e 74 | 73 20 61 6e 64 20 74 72 |rd event|s and tr|
|00002d00| 61 6e 73 6c 61 74 65 20 | 74 68 65 6d 20 69 6e 74 |anslate |them int|
|00002d10| 6f 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2d 73 70 |o applic|ation-sp|
|00002d20| 65 63 69 66 69 63 20 6d | 65 73 73 61 67 65 73 20 |ecific m|essages |
|00002d30| 66 6f 72 20 6f 74 68 65 | 72 20 6f 62 6a 65 63 74 |for othe|r object|
|00002d40| 73 2e 0d 0d 41 20 43 6f | 6e 74 72 6f 6c 27 73 20 |s...A Co|ntrol's |
|00002d50| 6a 6f 62 20 69 73 20 74 | 6f 20 69 6e 74 65 72 70 |job is t|o interp|
|00002d60| 72 65 74 20 74 68 65 20 | 75 73 65 72 27 73 20 ff |ret the |user's .|
|00002d70| 00 15 18 03 f7 6d 6f 75 | 73 65 20 61 6e 64 20 6b |.....mou|se and k|
|00002d80| 65 79 62 6f 61 72 64 20 | 61 63 74 69 6f 6e 73 ff |eyboard |actions.|
|00002d90| 00 15 18 00 f7 20 61 6e | 64 20 61 73 6b 20 61 6e |..... an|d ask an|
|00002da0| 6f 74 68 65 72 20 6f 62 | 6a 65 63 74 20 74 6f 20 |other ob|ject to |
|00002db0| 72 65 73 70 6f 6e 64 20 | 74 6f 20 74 68 65 6d 2e |respond |to them.|
|00002dc0| 0d 0d fc 00 74 02 a4 00 | 74 00 0c 02 8c 03 48 04 |....t...|t.....H.|
|00002dd0| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00002de0| d4 0a 90 f7 0d 00 1e ff | 00 15 18 02 f7 43 6f 6e |........|.....Con|
|00002df0| 74 72 6f 6c 20 45 78 61 | 6d 70 6c 65 73 3a ff 00 |trol Exa|mples:..|
|00002e00| 15 18 00 f7 0d 00 41 fc | 00 74 02 a4 00 74 02 0c |......A.|.t...t..|
|00002e10| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00002e20| 08 60 09 18 09 d4 0a 90 | f7 0d fb 00 00 00 01 01 |.`......|........|
|00002e30| 64 02 65 43 6f 6e 74 72 | 6f 6c 73 2e 30 30 32 32 |d.eContr|ols.0022|
|00002e40| 30 35 2e 65 70 73 f7 0d | 00 23 fc 00 74 02 a4 00 |05.eps..|.#..t...|
|00002e50| 74 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |t.....H.|....t.0.|
|00002e60| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d 01 ea 0d |....`...|........|
|00002e70| fc 00 6a 02 a4 00 6a 00 | 0c 02 8c 03 48 04 00 04 |..j...j.|....H...|
|00002e80| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00002e90| 90 f7 f9 00 f7 45 76 65 | 72 79 20 77 69 6e 64 6f |.....Eve|ry windo|
|00002ea0| 77 20 69 73 20 6d 61 6e | 61 67 65 64 20 62 79 20 |w is man|aged by |
|00002eb0| 61 20 ff 00 15 18 03 f7 | 57 69 6e 64 6f 77 20 6f |a ......|Window o|
|00002ec0| 62 6a 65 63 74 ff 00 15 | 18 00 f7 2e 0d 0d 45 76 |bject...|......Ev|
|00002ed0| 65 72 79 20 57 69 6e 64 | 6f 77 20 68 61 73 20 61 |ery Wind|ow has a|
|00002ee0| 20 76 69 65 77 20 68 69 | 65 72 61 72 63 68 79 20 | view hi|erarchy |
|00002ef0| 77 69 74 68 20 61 74 20 | 6c 65 61 73 74 20 74 77 |with at |least tw|
|00002f00| 6f 20 76 69 65 77 73 3a | 20 20 61 20 f9 00 f7 ff |o views:| a ....|
|00002f10| 00 15 18 03 f7 66 72 61 | 6d 65 20 76 69 65 77 f9 |.....fra|me view.|
|00002f20| 00 f7 ff 00 15 18 00 f7 | 20 61 6e 64 20 61 20 f9 |........| and a .|
|00002f30| 00 f7 ff 00 15 18 03 f7 | 63 6f 6e 74 65 6e 74 20 |........|content |
|00002f40| 76 69 65 77 f9 00 f7 ff | 00 15 18 00 f7 2e 0d 0d |view....|........|
|00002f50| 54 68 65 20 66 72 61 6d | 65 20 76 69 65 77 20 66 |The fram|e view f|
|00002f60| 69 6c 6c 73 20 74 68 65 | 20 f9 00 f7 66 72 61 6d |ills the| ...fram|
|00002f70| 65 20 72 65 63 74 61 6e | 67 6c 65 f9 00 f7 20 61 |e rectan|gle... a|
|00002f80| 6e 64 20 64 72 61 77 73 | 20 74 68 65 20 57 69 6e |nd draws| the Win|
|00002f90| 64 6f 77 27 73 20 62 6f | 72 64 65 72 2c 20 74 69 |dow's bo|rder, ti|
|00002fa0| 74 6c 65 20 62 61 72 2c | 20 61 6e 64 20 72 65 73 |tle bar,| and res|
|00002fb0| 69 7a 65 20 62 61 72 2e | 0d 0d 54 68 65 20 63 6f |ize bar.|..The co|
|00002fc0| 6e 74 65 6e 74 20 76 69 | 65 77 20 69 73 20 61 20 |ntent vi|ew is a |
|00002fd0| 73 75 62 76 69 65 77 20 | 6f 66 20 74 68 65 20 66 |subview |of the f|
|00002fe0| 72 61 6d 65 20 76 69 65 | 77 20 61 6e 64 20 69 73 |rame vie|w and is|
|00002ff0| 20 74 68 65 20 68 69 67 | 68 65 73 74 20 6c 65 76 | the hig|hest lev|
|00003000| 65 6c 20 76 69 65 77 20 | 66 6f 72 20 64 72 61 77 |el view |for draw|
|00003010| 69 6e 67 20 6f 72 20 69 | 6e 73 74 61 6c 6c 69 6e |ing or i|nstallin|
|00003020| 67 20 6f 74 68 65 72 20 | 73 75 62 76 69 65 77 73 |g other |subviews|
|00003030| 2e 0d 0d 54 68 65 20 57 | 69 6e 64 6f 77 20 6f 76 |...The W|indow ov|
|00003040| 65 72 73 65 65 73 20 61 | 6c 6c 20 6f 66 20 69 74 |ersees a|ll of it|
|00003050| 73 20 56 69 65 77 73 2e | 0d 00 28 ff 00 15 18 02 |s Views.|..(.....|
|00003060| f7 48 65 72 65 20 69 73 | 20 61 20 74 79 70 69 63 |.Here is| a typic|
|00003070| 61 6c 20 77 69 6e 64 6f | 77 3a ff 00 15 18 00 f7 |al windo|w:......|
|00003080| 0d 0d 0d 00 3e fc 00 6a | 02 a4 00 6a 02 0c 02 8c |....>..j|...j....|
|00003090| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|000030a0| 09 18 09 d4 0a 90 f7 fb | 00 00 00 01 01 46 02 30 |........|.....F.0|
|000030b0| 57 69 6e 64 6f 77 2e 33 | 30 37 37 37 36 2e 65 70 |Window.3|07776.ep|
|000030c0| 73 f7 0d 00 23 fc 00 6a | 02 a4 00 6a 00 0c 02 8c |s...#..j|...j....|
|000030d0| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|000030e0| 09 18 09 d4 0a 90 f7 0d | 02 07 fc 00 5a 02 a4 00 |........|....Z...|
|000030f0| 5a 02 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |Z.....H.|....t.0.|
|00003100| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 ff 00 15 30 |....`...|.......0|
|00003110| 01 f7 f5 45 76 65 6e 74 | 73 0d fc 00 5a 02 a4 00 |...Event|s...Z...|
|00003120| 5a 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |Z.....H.|....t.0.|
|00003130| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 ff 00 15 18 |....`...|........|
|00003140| 00 f7 0d f9 00 f7 ff 00 | 15 18 03 f7 45 76 65 6e |........|....Even|
|00003150| 74 73 ff 00 15 18 00 f7 | 20 61 72 65 20 74 68 69 |ts......| are thi|
|00003160| 6e 67 73 20 6c 69 6b 65 | ff 00 15 18 03 f7 20 f9 |ngs like|...... .|
|00003170| 00 f7 6d 6f 75 73 65 55 | 70 f9 00 f7 2c 20 f9 00 |..mouseU|p..., ..|
|00003180| f7 6d 6f 75 73 65 44 6f | 77 6e f9 00 f7 2c 20 f9 |.mouseDo|wn..., .|
|00003190| 00 f7 6d 6f 75 73 65 44 | 72 61 67 67 65 64 f9 00 |..mouseD|ragged..|
|000031a0| f7 2c 20 ff 00 15 18 00 | f7 65 74 63 2e 0d 0d 45 |., .....|.etc...E|
|000031b0| 76 65 6e 74 73 20 61 72 | 65 20 ff 00 15 18 03 f7 |vents ar|e ......|
|000031c0| 64 69 73 70 61 74 63 68 | 65 64 20 61 73 20 f9 00 |dispatch|ed as ..|
|000031d0| f7 6d 65 73 73 61 67 65 | 73 f9 00 f7 ff 00 15 18 |.message|s.......|
|000031e0| 00 f7 2e 0d 0d 55 73 75 | 61 6c 6c 79 2c 20 6f 6e |.....Usu|ally, on|
|000031f0| 65 20 6f 62 6a 65 63 74 | 20 28 65 2e 67 2e 2c 20 |e object| (e.g., |
|00003200| 61 20 63 6f 6e 74 72 6f | 6c 29 20 72 65 73 70 6f |a contro|l) respo|
|00003210| 6e 64 73 20 74 6f 20 74 | 68 65 20 65 76 65 6e 74 |nds to t|he event|
|00003220| 2c 20 74 68 65 6e 20 6e | 6f 74 69 66 69 65 73 20 |, then n|otifies |
|00003230| 61 6e 6f 74 68 65 72 20 | 6f 62 6a 65 63 74 20 74 |another |object t|
|00003240| 68 61 74 20 74 68 65 20 | 65 76 65 6e 74 20 6f 63 |hat the |event oc|
|00003250| 63 75 72 72 65 64 2e 0d | 0d 54 77 6f 20 74 79 70 |curred..|.Two typ|
|00003260| 65 73 20 6f 66 20 6d 65 | 73 73 61 67 65 73 20 67 |es of me|ssages g|
|00003270| 65 74 20 73 65 6e 74 20 | 64 65 70 65 6e 64 69 6e |et sent |dependin|
|00003280| 67 20 6f 6e 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |g on the| object |
|00003290| 74 68 61 74 20 72 65 63 | 65 69 76 65 73 20 74 68 |that rec|eives th|
|000032a0| 65 20 69 6e 69 74 69 61 | 6c 20 6d 65 73 73 61 67 |e initia|l messag|
|000032b0| 65 3a 20 20 f9 00 f7 ff | 00 15 18 03 f7 61 63 74 |e: ....|.....act|
|000032c0| 69 6f 6e f9 00 f7 ff 00 | 15 18 00 f7 20 61 6e 64 |ion.....|.... and|
|000032d0| 20 f9 00 f7 ff 00 15 18 | 03 f7 6e 6f 74 69 66 69 | .......|..notifi|
|000032e0| 63 61 74 69 6f 6e f9 00 | f7 ff 00 15 18 00 f7 2e |cation..|........|
|000032f0| 0d 03 20 fc 00 4b 02 a4 | 00 4b 00 0c 02 8c 03 48 |.. ..K..|.K.....H|
|00003300| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00003310| 09 d4 0a 90 f7 ff 00 15 | 18 00 f7 ff 00 15 24 03 |........|......$.|
|00003320| f7 45 78 61 6d 70 6c 65 | 73 20 6f 66 20 41 63 74 |.Example|s of Act|
|00003330| 69 6f 6e 20 4d 65 73 73 | 61 67 65 73 ff 00 15 18 |ion Mess|ages....|
|00003340| 00 f7 0d fc 00 74 02 a4 | 00 74 00 0c 02 8c 03 48 |.....t..|.t.....H|
|00003350| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00003360| 09 d4 0a 90 f7 0d fc 00 | 5d 02 f0 05 00 5d 00 0c |........|]....]..|
|00003370| 04 3c 07 58 0a 90 f7 f9 | 00 f7 54 68 65 20 41 70 |.<.X....|..The Ap|
|00003380| 70 6c 69 63 61 74 69 6f | 6e 20 4b 69 74 20 64 65 |plicatio|n Kit de|
|00003390| 66 69 6e 65 73 20 61 20 | 6e 75 6d 62 65 72 20 6f |fines a |number o|
|000033a0| 66 20 61 63 74 69 6f 6e | 20 6d 65 73 73 61 67 65 |f action| message|
|000033b0| 73 20 74 6f 20 77 68 69 | 63 68 20 73 70 65 63 69 |s to whi|ch speci|
|000033c0| 66 69 63 20 6f 62 6a 65 | 63 74 73 20 69 6e 20 74 |fic obje|cts in t|
|000033d0| 68 65 20 6b 69 74 20 77 | 69 6c 6c 20 72 65 73 70 |he kit w|ill resp|
|000033e0| 6f 6e 64 2e 20 20 41 20 | 66 65 77 20 65 78 61 6d |ond. A |few exam|
|000033f0| 70 6c 65 73 20 61 72 65 | 20 62 65 6c 6f 77 2e 20 |ples are| below. |
|00003400| 20 54 68 65 73 65 20 6f | 62 6a 65 63 74 73 20 ff | These o|bjects .|
|00003410| 00 15 18 03 f7 72 65 73 | 70 6f 6e 64 20 74 6f ff |.....res|pond to.|
|00003420| 00 15 18 00 f7 20 74 68 | 65 73 65 20 61 63 74 69 |..... th|ese acti|
|00003430| 6f 6e 20 6d 65 73 73 61 | 67 65 73 3a 0d 0d fc 00 |on messa|ges:....|
|00003440| 4b 02 f0 09 00 4b 00 0c | 05 5c f7 ff 00 15 18 03 |K....K..|.\......|
|00003450| f7 41 70 70 6c 69 63 61 | 74 69 6f 6e 0d ff 00 15 |.Applica|tion....|
|00003460| 18 00 f7 0d 68 69 64 65 | 3a 09 48 69 64 65 20 61 |....hide|:.Hide a|
|00003470| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 77 69 6e |pplicati|on's win|
|00003480| 64 6f 77 73 0d 75 6e 68 | 69 64 65 3a 09 55 6e 68 |dows.unh|ide:.Unh|
|00003490| 69 64 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 27 |ide appl|ication'|
|000034a0| 73 20 77 69 6e 64 6f 77 | 73 0d 74 65 72 6d 69 6e |s window|s.termin|
|000034b0| 61 74 65 3a 09 54 65 72 | 6d 69 6e 61 74 65 73 20 |ate:.Ter|minates |
|000034c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0d |the appl|ication.|
|000034d0| 0d ff 00 15 18 03 f7 42 | 75 74 74 6f 6e 0d ff 00 |.......B|utton...|
|000034e0| 15 18 00 f7 0d 70 65 72 | 66 6f 72 6d 43 6c 69 63 |.....per|formClic|
|000034f0| 6b 3a 09 53 69 6d 75 6c | 61 74 65 73 20 63 6c 69 |k:.Simul|ates cli|
|00003500| 63 6b 69 6e 67 20 62 75 | 74 74 6f 6e 0d 0d 0d ff |cking bu|tton....|
|00003510| 00 15 18 03 f7 43 6f 6e | 74 72 6f 6c 20 26 20 43 |.....Con|trol & C|
|00003520| 65 6c 6c ff 00 15 18 00 | f7 0d 0d 74 61 6b 65 49 |ell.....|...takeI|
|00003530| 6e 74 56 61 6c 75 65 46 | 72 6f 6d 3a 09 47 65 74 |ntValueF|rom:.Get|
|00003540| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 73 65 6e 64 | value f|rom send|
|00003550| 65 72 20 26 20 73 65 74 | 20 6f 77 6e 20 76 61 6c |er & set| own val|
|00003560| 75 65 0d 74 61 6b 65 53 | 74 72 69 6e 67 56 61 6c |ue.takeS|tringVal|
|00003570| 75 65 46 72 6f 6d 3a 09 | 47 65 74 20 76 61 6c 75 |ueFrom:.|Get valu|
|00003580| 65 20 66 72 6f 6d 20 73 | 65 6e 64 65 72 20 26 20 |e from s|ender & |
|00003590| 73 65 74 20 6f 77 6e 20 | 76 61 6c 75 65 0d 74 61 |set own |value.ta|
|000035a0| 6b 65 46 6c 6f 61 74 56 | 61 6c 75 65 46 72 6f 6d |keFloatV|alueFrom|
|000035b0| 3a 09 47 65 74 20 76 61 | 6c 75 65 20 66 72 6f 6d |:.Get va|lue from|
|000035c0| 20 73 65 6e 64 65 72 20 | 26 20 73 65 74 20 6f 77 | sender |& set ow|
|000035d0| 6e 20 76 61 6c 75 65 0d | 74 61 6b 65 44 6f 75 62 |n value.|takeDoub|
|000035e0| 6c 65 56 61 6c 75 65 46 | 72 6f 6d 3a 09 47 65 74 |leValueF|rom:.Get|
|000035f0| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 73 65 6e 64 | value f|rom send|
|00003600| 65 72 20 26 20 73 65 74 | 20 6f 77 6e 20 76 61 6c |er & set| own val|
|00003610| 75 65 0d 01 f9 fc 00 5b | 02 a4 00 5b 00 0c 02 8c |ue.....[|...[....|
|00003620| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|00003630| 09 18 09 d4 0a 90 f7 ff | 00 15 24 03 f7 41 63 74 |........|..$..Act|
|00003640| 69 6f 6e 20 4d 65 74 68 | 6f 64 73 0d fc 00 74 02 |ion Meth|ods...t.|
|00003650| a4 00 74 00 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..t.....|H.....t.|
|00003660| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 ff 00 |0.....`.|........|
|00003670| 15 18 00 f7 0d fc 00 79 | 02 a4 00 79 00 0c 03 48 |.......y|...y...H|
|00003680| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00003690| 09 d4 0a 90 f7 f9 00 f7 | 57 68 65 6e 20 61 20 74 |........|When a t|
|000036a0| 61 72 67 65 74 20 6f 62 | 6a 65 63 74 27 73 20 6d |arget ob|ject's m|
|000036b0| 65 74 68 6f 64 20 72 65 | 73 70 6f 6e 64 73 20 74 |ethod re|sponds t|
|000036c0| 6f 20 61 6e 20 61 63 74 | 69 6f 6e 20 6d 65 73 73 |o an act|ion mess|
|000036d0| 61 67 65 2c 20 69 74 20 | 6d 75 73 74 20 74 61 6b |age, it |must tak|
|000036e0| 65 20 73 6f 6d 65 20 61 | 63 74 69 6f 6e 2e 20 20 |e some a|ction. |
|000036f0| 54 68 69 73 20 61 63 74 | 69 6f 6e 20 6d 69 67 68 |This act|ion migh|
|00003700| 74 20 62 65 20 61 6e 79 | 20 6f 66 3a 0d 0d 31 2e |t be any| of:..1.|
|00003710| 20 20 ff 00 15 18 01 f7 | 53 69 6d 70 6c 65 20 41 | ......|Simple A|
|00003720| 63 74 69 6f 6e ff 00 15 | 18 00 f7 20 2d 20 53 69 |ction...|... - Si|
|00003730| 6d 70 6c 79 20 64 6f 20 | 73 6f 6d 65 74 68 69 6e |mply do |somethin|
|00003740| 67 2e 0d 0d 32 2e 20 20 | ff 00 15 18 01 f7 51 75 |g...2. |......Qu|
|00003750| 65 72 79 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c ff |ery the |Control.|
|00003760| 00 15 18 00 f7 20 2d 20 | 41 73 6b 20 74 68 65 20 |..... - |Ask the |
|00003770| 63 6f 6e 74 72 6f 6c 20 | 66 6f 72 20 69 6e 66 6f |control |for info|
|00003780| 72 6d 61 74 69 6f 6e 2c | 20 74 68 65 6e 20 64 6f |rmation,| then do|
|00003790| 20 73 6f 6d 65 74 68 69 | 6e 67 20 77 69 74 68 20 | somethi|ng with |
|000037a0| 69 74 2e 0d 0d 33 2e 20 | 20 ff 00 15 18 01 f7 51 |it...3. | ......Q|
|000037b0| 75 65 72 79 20 61 20 4d | 61 74 72 69 78 20 ff 00 |uery a M|atrix ..|
|000037c0| 15 18 00 f7 2d 20 54 68 | 65 20 63 6f 6e 74 72 6f |....- Th|e contro|
|000037d0| 6c 20 69 73 20 69 6e 20 | 61 20 6d 61 74 72 69 78 |l is in |a matrix|
|000037e0| 20 77 68 69 63 68 20 6d | 75 73 74 20 62 65 20 71 | which m|ust be q|
|000037f0| 75 65 72 69 65 64 20 66 | 6f 72 20 6d 6f 72 65 20 |ueried f|or more |
|00003800| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 0d 0d 02 03 |informat|ion.....|
|00003810| fc 00 5a 02 a4 00 5a 00 | 0c 04 00 04 bc 05 74 06 |..Z...Z.|......t.|
|00003820| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 ff 00 |0.....`.|........|
|00003830| 15 24 03 f7 44 65 6c 65 | 67 61 74 69 6f 6e 20 61 |.$..Dele|gation a|
|00003840| 6e 64 20 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e ff |nd Notif|ication.|
|00003850| 00 15 18 03 f7 0d fc 00 | 5c 02 bf 00 5c 00 0c 03 |........|\...\...|
|00003860| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00003870| 18 09 d4 0a 90 f7 ff 00 | 15 18 02 f7 28 63 6f 6e |........|....(con|
|00003880| 74 69 6e 75 65 64 29 0d | ff 00 15 18 03 f7 0d fc |tinued).|........|
|00003890| 00 5a 02 a4 00 5a 00 0c | 03 48 04 00 04 bc 05 74 |.Z...Z..|.H.....t|
|000038a0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 44 |.0.....`|.......D|
|000038b0| 65 6c 65 67 61 74 69 6f | 6e 2d 6e 6f 74 69 66 69 |elegatio|n-notifi|
|000038c0| 63 61 74 69 6f 6e 20 69 | 73 20 ff 00 15 18 07 f7 |cation i|s ......|
|000038d0| 73 69 6d 69 6c 61 72 ff | 00 15 18 03 f7 20 74 6f |similar.|..... to|
|000038e0| 20 74 68 65 20 74 61 72 | 67 65 74 2d 61 63 74 69 | the tar|get-acti|
|000038f0| 6f 6e 20 70 61 72 61 64 | 69 67 6d 20 69 6e 20 74 |on parad|igm in t|
|00003900| 68 61 74 2e 2e 2e ff 00 | 15 18 00 f7 0d f9 00 f7 |hat.....|........|
|00003910| fc 00 74 02 a4 00 74 00 | 0c 02 8c 03 48 04 00 04 |..t...t.|....H...|
|00003920| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00003930| 90 f7 0d fc 00 7e 02 a4 | 00 7d 00 0c 02 8c 03 48 |.....~..|.}.....H|
|00003940| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00003950| 09 d4 0a 90 f7 54 68 65 | 20 64 65 6c 65 67 61 74 |.....The| delegat|
|00003960| 65 2c 20 6c 69 6b 65 20 | 74 68 65 20 74 61 72 67 |e, like |the targ|
|00003970| 65 74 2c 20 69 73 20 61 | 6e 20 6f 62 6a 65 63 74 |et, is a|n object|
|00003980| 20 61 6e 64 20 6d 75 73 | 74 20 62 65 20 65 78 70 | and mus|t be exp|
|00003990| 6c 69 63 69 74 6c 79 20 | 73 65 74 2e 0d 0d 41 6e |licitly |set...An|
|000039a0| 20 6f 62 6a 65 63 74 20 | 63 61 6e 20 68 61 76 65 | object |can have|
|000039b0| 20 6f 6e 6c 79 20 6f 6e | 65 20 64 65 6c 65 67 61 | only on|e delega|
|000039c0| 74 65 20 61 74 20 61 20 | 74 69 6d 65 2e 0d 0d 41 |te at a |time...A|
|000039d0| 20 6e 6f 74 69 66 69 63 | 61 74 69 6f 6e 20 6d 65 | notific|ation me|
|000039e0| 73 73 61 67 65 20 69 73 | 20 73 65 6e 74 20 69 6e |ssage is| sent in|
|000039f0| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 73 6f 6d | respons|e to som|
|00003a00| 65 20 65 76 65 6e 74 20 | 6f 72 20 63 68 61 6e 67 |e event |or chang|
|00003a10| 65 2e 0d 02 4e fc 00 5a | 02 a4 00 5a 00 0c 04 00 |e...N..Z|...Z....|
|00003a20| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00003a30| 0a 90 f7 ff 00 15 24 03 | f7 44 65 6c 65 67 61 74 |......$.|.Delegat|
|00003a40| 69 6f 6e 20 61 6e 64 20 | 4e 6f 74 69 66 69 63 61 |ion and |Notifica|
|00003a50| 74 69 6f 6e ff 00 15 18 | 03 f7 0d fc 00 5c 02 bf |tion....|.....\..|
|00003a60| 00 5c 00 0c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.\...H..|...t.0..|
|00003a70| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 18 02 |...`....|........|
|00003a80| f7 28 63 6f 6e 74 69 6e | 75 65 64 29 0d ff 00 15 |.(contin|ued)....|
|00003a90| 18 03 f7 0d fc 00 5d 02 | a4 00 5c 00 0c 02 8c 03 |......].|..\.....|
|00003aa0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00003ab0| 18 09 d4 0a 90 f7 ff 00 | 15 18 03 f7 44 65 6c 65 |........|....Dele|
|00003ac0| 67 61 74 69 6f 6e 2d 6e | 6f 74 69 66 69 63 61 74 |gation-n|otificat|
|00003ad0| 69 6f 6e 20 69 73 20 ff | 00 15 18 07 f7 64 69 66 |ion is .|.....dif|
|00003ae0| 66 65 72 65 6e 74 ff 00 | 15 18 03 f7 20 66 72 6f |ferent..|.... fro|
|00003af0| 6d 20 74 68 65 20 74 61 | 72 67 65 74 2d 61 63 74 |m the ta|rget-act|
|00003b00| 69 6f 6e 20 70 61 72 61 | 64 69 67 6d 20 69 6e 20 |ion para|digm in |
|00003b10| 74 68 61 74 2e 2e 2e 0d | 0d fc 00 7f 02 a4 00 7e |that....|.......~|
|00003b20| 00 0c 02 8c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.....H..|...t.0..|
|00003b30| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 18 00 |...`....|........|
|00003b40| f7 4e 6f 74 69 66 69 63 | 61 74 69 6f 6e 20 6d 65 |.Notific|ation me|
|00003b50| 73 73 61 67 65 73 20 61 | 72 65 20 70 72 65 2d 64 |ssages a|re pre-d|
|00003b60| 65 66 69 6e 65 64 20 62 | 79 20 74 68 65 20 73 65 |efined b|y the se|
|00003b70| 6e 64 65 72 27 73 20 63 | 6c 61 73 73 20 64 65 66 |nder's c|lass def|
|00003b80| 69 6e 69 74 69 6f 6e 2e | 20 20 54 68 65 20 64 65 |inition.| The de|
|00003b90| 6c 65 67 61 74 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |legate i|mplement|
|00003ba0| 73 20 6d 65 74 68 6f 64 | 73 20 6f 6e 6c 79 20 66 |s method|s only f|
|00003bb0| 6f 72 20 74 68 6f 73 65 | 20 69 74 20 63 68 6f 6f |or those| it choo|
|00003bc0| 73 65 73 20 74 6f 20 72 | 65 73 70 6f 6e 64 20 74 |ses to r|espond t|
|00003bd0| 6f 2e 0d 0d 41 6e 20 6f | 62 6a 65 63 74 20 6d 61 |o...An o|bject ma|
|00003be0| 79 20 73 65 6e 64 20 61 | 20 64 69 66 66 65 72 65 |y send a| differe|
|00003bf0| 6e 74 20 6e 6f 74 69 66 | 69 63 61 74 69 6f 6e 20 |nt notif|ication |
|00003c00| 6d 65 73 73 61 67 65 20 | 64 65 70 65 6e 64 69 6e |message |dependin|
|00003c10| 67 20 6f 6e 20 77 68 61 | 74 20 68 61 73 20 6f 63 |g on wha|t has oc|
|00003c20| 63 75 72 72 65 64 2e 0d | 0d 49 66 20 6e 6f 20 64 |curred..|.If no d|
|00003c30| 65 6c 65 67 61 74 65 20 | 69 73 20 73 65 74 2c 20 |elegate |is set, |
|00003c40| 6e 6f 20 6e 6f 74 69 66 | 69 63 61 74 69 6f 6e 20 |no notif|ication |
|00003c50| 6d 65 73 73 61 67 65 73 | 20 61 72 65 20 73 65 6e |messages| are sen|
|00003c60| 74 2e 0d 00 1d ff 00 15 | 0c 00 f7 0d ff 00 15 12 |t.......|........|
|00003c70| 00 f7 0d ff 00 15 12 03 | f7 4e 65 78 74 53 74 65 |........|.NextSte|
|00003c80| 70 0d 00 1e ff 00 15 0c | 03 f7 0d 0d ff 00 15 12 |p.......|........|
|00003c90| 03 f7 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 4b 69 |..Applic|ation Ki|
|00003ca0| 74 0d 00 1d ff 00 15 0c | 03 f7 0d 0d ff 00 15 12 |t.......|........|
|00003cb0| 03 f7 45 76 65 6e 74 20 | 48 61 6e 64 6c 69 6e 67 |..Event |Handling|
|00003cc0| 0d 00 29 fc 00 74 02 a4 | 00 74 02 0c 02 8c 03 48 |..)..t..|.t.....H|
|00003cd0| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00003ce0| 09 d4 0a 90 f7 ff 00 15 | 18 00 f7 0d 00 00 00 78 |........|.......x|
|00003cf0| 00 03 00 00 00 48 00 48 | 00 00 00 00 02 64 03 18 |.....H.H|.....d..|
|00003d00| 00 00 00 00 02 64 03 18 | 01 5b 05 28 03 fc 00 02 |.....d..|.[.(....|
|00003d10| 00 00 00 48 00 48 00 00 | 00 00 03 18 02 64 00 01 |...H.H..|.....d..|
|00003d20| 00 00 00 64 00 00 00 01 | 00 01 01 01 00 00 00 01 |...d....|........|
|00003d30| 27 0f 00 01 00 01 00 00 | 00 00 00 00 00 00 00 00 |'.......|........|
|00003d40| 00 00 00 02 00 19 01 90 | 00 00 00 00 00 40 00 00 |........|.....@..|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 11 0d 41 70 70 6c 69 |........|...Appli|
|00003d70| 63 61 74 69 6f 6e 20 4b | 69 74 0d 00 23 0d 0d 0d |cation K|it..#...|
|00003d80| ff 00 15 30 03 f7 54 68 | 65 20 41 70 70 6c 69 63 |...0..Th|e Applic|
|00003d90| 61 74 69 6f 6e 20 4b 69 | 74 ff 00 15 18 00 f7 0d |ation Ki|t.......|
|00003da0| 00 10 ff 00 15 12 00 f7 | 35 20 2d 20 fd 00 f7 0d |........|5 - ....|
|00003db0| 0d 0d 00 db fc 00 6c 02 | ac 00 6c 00 0c 02 8c 03 |......l.|..l.....|
|00003dc0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00003dd0| 18 09 d4 0a 90 f7 ff 00 | 15 24 03 f7 ff 00 15 18 |........|.$......|
|00003de0| 00 f7 49 6e 20 49 6e 74 | 65 72 66 61 63 65 20 42 |..In Int|erface B|
|00003df0| 75 69 6c 64 65 72 2c 20 | 61 ff 00 15 18 00 f7 6e |uilder, |a......n|
|00003e00| 20 69 6e 74 65 72 66 61 | 63 65 20 6f 62 6a 65 63 | interfa|ce objec|
|00003e10| 74 20 63 61 6e 20 63 6f | 6e 6e 65 63 74 20 74 6f |t can co|nnect to|
|00003e20| 20 74 68 65 20 66 69 72 | 73 74 52 65 73 70 6f 6e | the fir|stRespon|
|00003e30| 64 65 72 20 69 63 6f 6e | 20 69 6e 20 74 68 65 20 |der icon| in the |
|00003e40| 46 69 6c 65 20 57 69 6e | 64 6f 77 3a 0d fc 00 6c |File Win|dow:...l|
|00003e50| 02 ac 00 6c 02 0c 02 8c | 03 48 04 00 04 bc 05 74 |...l....|.H.....t|
|00003e60| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 fb |.0.....`|........|
|00003e70| 00 00 00 01 01 8e 02 55 | 57 4e 47 72 61 70 68 69 |.......U|WNGraphi|
|00003e80| 63 2e 38 31 32 35 31 37 | 2e 74 69 66 66 f7 0d 01 |c.812517|.tiff...|
|00003e90| 34 fc 00 5a 02 a4 00 5a | 00 0c 02 8c 03 48 04 00 |4..Z...Z|.....H..|
|00003ea0| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00003eb0| 0a 90 f7 ff 00 15 24 03 | f7 53 70 65 61 6b 65 72 |......$.|.Speaker|
|00003ec0| 2f 4c 69 73 74 65 6e 65 | 72 ff 00 15 18 00 f7 0d |/Listene|r.......|
|00003ed0| fc 00 74 02 a4 00 74 00 | 0c 02 8c 03 48 04 00 04 |..t...t.|....H...|
|00003ee0| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00003ef0| 90 f7 0d fc 00 84 02 a4 | 00 84 00 0c 03 48 04 00 |........|.....H..|
|00003f00| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00003f10| 0a 90 f7 f9 00 f7 43 6f | 6d 6d 75 6e 69 63 61 74 |......Co|mmunicat|
|00003f20| 69 6f 6e 20 70 72 6f 74 | 6f 63 6f 6c 20 62 65 74 |ion prot|ocol bet|
|00003f30| 77 65 65 6e 20 64 69 66 | 66 65 72 65 6e 74 20 70 |ween dif|ferent p|
|00003f40| 72 6f 63 65 73 73 65 73 | 2e 0d 0d 41 6c 6c 6f 77 |rocesses|...Allow|
|00003f50| 73 20 66 6f 72 20 66 61 | 73 74 20 64 61 74 61 20 |s for fa|st data |
|00003f60| 74 72 61 6e 73 66 65 72 | 2e 0d 0d 54 72 61 6e 73 |transfer|...Trans|
|00003f70| 70 61 72 65 6e 74 20 6f | 6e 20 6e 65 74 77 6f 72 |parent o|n networ|
|00003f80| 6b 2c 20 69 2e 65 2e 2c | 20 70 72 6f 63 65 73 73 |k, i.e.,| process|
|00003f90| 65 73 20 6f 6e 20 64 69 | 66 66 65 72 65 6e 74 20 |es on di|fferent |
|00003fa0| 6d 61 63 68 69 6e 65 73 | 20 63 61 6e 20 63 6f 6d |machines| can com|
|00003fb0| 6d 75 6e 69 63 61 74 65 | 20 73 65 61 6d 6c 65 73 |municate| seamles|
|00003fc0| 73 6c 79 2e 0d 00 2a 04 | 00 02 00 00 4c 04 00 02 |sly...*.|....L...|
|00003fd0| 06 00 4c 24 00 3c 63 00 | 38 24 00 3d a0 00 3f 24 |..L$.<c.|8$.=..?$|
|00003fe0| 00 3c 82 00 33 24 00 3c | a2 00 33 04 00 3d 68 00 |.<..3$.<|..3..=h.|
|00003ff0| 2a 03 0c fc 00 48 02 a4 | 00 48 00 0c 02 8c 03 48 |*....H..|.H.....H|
|00004000| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00004010| 09 d4 0a 90 f7 ff 00 15 | 24 03 f7 54 68 65 20 45 |........|$..The E|
|00004020| 76 65 6e 74 20 50 72 6f | 63 65 73 73 3a 20 20 41 |vent Pro|cess: A|
|00004030| 20 43 6c 6f 73 65 72 20 | 4c 6f 6f 6b 20 ff 00 15 | Closer |Look ...|
|00004040| 18 02 f7 28 63 6f 6e 74 | 69 6e 75 65 64 29 ff 00 |...(cont|inued)..|
|00004050| 15 18 00 f7 0d f9 00 f7 | fc 00 5a 02 a4 00 5a 00 |........|..Z...Z.|
|00004060| 0c 02 8c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|00004070| a4 08 60 09 18 09 d4 0a | 90 f7 0d f9 00 f7 54 68 |..`.....|......Th|
|00004080| 65 20 77 69 6e 64 6f 77 | 20 64 69 73 70 61 74 63 |e window| dispatc|
|00004090| 68 65 73 20 ff 00 15 18 | 03 f7 6d 6f 75 73 65 20 |hes ....|..mouse |
|000040a0| 65 76 65 6e 74 20 6d 65 | 73 73 61 67 65 73 ff 00 |event me|ssages..|
|000040b0| 15 18 00 f7 20 74 6f 20 | 74 68 65 20 61 70 70 72 |.... to |the appr|
|000040c0| 6f 70 72 69 61 74 65 20 | 76 69 65 77 20 69 6e 20 |opriate |view in |
|000040d0| 74 68 65 20 57 69 6e 64 | 6f 77 2e 0d 0d fc 00 7d |the Wind|ow.....}|
|000040e0| 02 a4 00 7d 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...}....|.H.....t|
|000040f0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 f9 |.0.....`|........|
|00004100| 00 f7 ff 00 16 18 01 f7 | 6d 6f 75 73 65 44 6f 77 |........|mouseDow|
|00004110| 6e 3a ff 00 15 18 00 f7 | 20 74 6f 20 74 68 65 20 |n:......| to the |
|00004120| 64 65 65 70 65 73 74 20 | 56 69 65 77 20 75 6e 64 |deepest |View und|
|00004130| 65 72 6e 65 61 74 68 20 | 74 68 65 20 6d 6f 75 73 |erneath |the mous|
|00004140| 65 2e 0d ff 00 15 0c 00 | f7 0d ff 00 16 18 01 f7 |e.......|........|
|00004150| 6d 6f 75 73 65 55 70 3a | ff 00 15 18 00 f7 20 6f |mouseUp:|...... o|
|00004160| 72 20 ff 00 16 18 01 f7 | 6d 6f 75 73 65 44 72 61 |r ......|mouseDra|
|00004170| 67 67 65 64 3a ff 00 15 | 18 00 f7 20 74 6f 20 74 |gged:...|... to t|
|00004180| 68 65 20 76 69 65 77 20 | 77 68 69 63 68 20 69 6e |he view |which in|
|00004190| 69 74 69 61 6c 6c 79 20 | 72 65 63 65 69 76 65 64 |itially |received|
|000041a0| 20 ff 00 16 18 01 f7 6d | 6f 75 73 65 44 6f 77 6e | ......m|ouseDown|
|000041b0| 3a ff 00 15 18 00 f7 2e | 0d ff 00 15 0c 00 f7 0d |:.......|........|
|000041c0| ff 00 16 18 01 f7 6d 6f | 75 73 65 45 6e 74 65 72 |......mo|useEnter|
|000041d0| 65 64 3a ff 00 15 18 00 | f7 20 6f 72 20 ff 00 16 |ed:.....|. or ...|
|000041e0| 18 01 f7 6d 6f 75 73 65 | 45 78 69 74 65 64 3a ff |...mouse|Exited:.|
|000041f0| 00 15 18 00 f7 20 74 6f | 20 74 68 65 20 6f 62 6a |..... to| the obj|
|00004200| 65 63 74 20 77 68 69 63 | 68 20 22 6f 77 6e 73 22 |ect whic|h "owns"|
|00004210| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00004220| 20 74 72 61 63 6b 69 6e | 67 20 72 65 63 74 61 6e | trackin|g rectan|
|00004230| 67 6c 65 2e 0d ff 00 15 | 0c 00 f7 0d ff 00 15 18 |gle.....|........|
|00004240| 03 f7 6b 65 79 62 6f 61 | 72 64 ff 00 15 18 00 f7 |..keyboa|rd......|
|00004250| 20 61 6e 64 20 ff 00 16 | 18 01 f7 6d 6f 75 73 65 | and ...|...mouse|
|00004260| 4d 6f 76 65 64 3a ff 00 | 15 18 00 f7 20 65 76 65 |Moved:..|.... eve|
|00004270| 6e 74 20 6d 65 73 73 61 | 67 65 73 20 61 72 65 20 |nt messa|ges are |
|00004280| 64 69 73 70 61 74 63 68 | 65 64 20 74 6f 20 74 68 |dispatch|ed to th|
|00004290| 65 20 77 69 6e 64 6f 77 | 27 73 20 f9 00 f7 ff 00 |e window|'s .....|
|000042a0| 15 18 03 f7 66 69 72 73 | 74 52 65 73 70 6f 6e 64 |....firs|tRespond|
|000042b0| 65 72 f9 00 f7 ff 00 15 | 18 00 f7 2e 0d fc 00 5a |er......|.......Z|
|000042c0| 02 a4 00 5a 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...Z....|.H.....t|
|000042d0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 ff |.0.....`|........|
|000042e0| 00 15 24 03 f7 48 6f 77 | 20 4f 62 6a 65 63 74 73 |..$..How| Objects|
|000042f0| 20 52 65 73 70 6f 6e 64 | ff 00 15 18 00 f7 0d 02 | Respond|........|
|00004300| 3c ff 00 15 24 03 f7 fc | 00 5b 02 a4 00 5b 00 0c |<...$...|.[...[..|
|00004310| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00004320| 08 60 09 18 09 d4 0a 90 | f7 41 63 74 69 6f 6e 20 |.`......|.Action |
|00004330| 4d 65 74 68 6f 64 73 20 | ff 00 15 18 02 f7 28 63 |Methods |......(c|
|00004340| 6f 6e 74 69 6e 75 65 64 | 29 0d fc 00 74 02 a4 00 |ontinued|)...t...|
|00004350| 74 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |t.....H.|....t.0.|
|00004360| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 ff 00 15 18 |....`...|........|
|00004370| 00 f7 0d fc 00 5b 02 a4 | 00 5b 00 0c 03 48 04 00 |.....[..|.[...H..|
|00004380| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00004390| 0a 90 f7 ff 00 15 18 03 | f7 32 2e 20 20 51 75 65 |........|.2. Que|
|000043a0| 72 79 20 74 68 65 20 43 | 6f 6e 74 72 6f 6c ff 00 |ry the C|ontrol..|
|000043b0| 15 18 03 f7 0d 0d ff 00 | 15 18 00 f7 53 6f 6d 65 |........|....Some|
|000043c0| 74 69 6d 65 73 20 69 74 | 20 69 73 20 6e 65 63 65 |times it| is nece|
|000043d0| 73 73 61 72 79 20 74 6f | 20 71 75 65 72 79 20 74 |ssary to| query t|
|000043e0| 68 65 20 ff 00 15 18 01 | f7 73 65 6e 64 65 72 ff |he .....|.sender.|
|000043f0| 00 15 18 00 f7 20 66 6f | 72 20 6d 6f 72 65 20 69 |..... fo|r more i|
|00004400| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 20 20 46 6f 72 |nformati|on. For|
|00004410| 20 65 78 61 6d 70 6c 65 | 2c 20 61 20 6d 65 74 68 | example|, a meth|
|00004420| 6f 64 20 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |od respo|nding to|
|00004430| 20 61 20 6d 65 73 73 61 | 67 65 20 66 72 6f 6d 20 | a messa|ge from |
|00004440| 61 20 73 6c 69 64 65 72 | 20 6d 69 67 68 74 20 6e |a slider| might n|
|00004450| 65 65 64 20 74 6f 20 61 | 73 6b 20 74 68 65 20 73 |eed to a|sk the s|
|00004460| 6c 69 64 65 72 20 66 6f | 72 20 69 74 73 20 76 61 |lider fo|r its va|
|00004470| 6c 75 65 3a 0d 0d fc 00 | 5b 02 c0 00 5b 00 0c 02 |lue:....|[...[...|
|00004480| 6c 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |l.....t.|0.....`.|
|00004490| 18 09 d4 0a 90 f7 ff 00 | 16 18 01 f7 2d 74 61 6b |........|....-tak|
|000044a0| 65 56 6f 6c 75 6d 65 46 | 72 6f 6d 3a 73 65 6e 64 |eVolumeF|rom:send|
|000044b0| 65 72 20 2f 2f 6d 73 67 | 20 66 72 6f 6d 20 61 20 |er //msg| from a |
|000044c0| 73 6c 69 64 65 72 0d fc | 00 5b 02 a4 00 5b 00 0c |slider..|.[...[..|
|000044d0| 02 6c 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.l.....t|.0.....`|
|000044e0| 09 18 09 d4 0a 90 f7 7b | 0d 09 76 6f 6c 75 6d 65 |.......{|..volume|
|000044f0| 3d 5b 73 65 6e 64 65 72 | 20 66 6c 6f 61 74 56 61 |=[sender| floatVa|
|00004500| 6c 75 65 5d 3b 0d 09 72 | 65 74 75 72 6e 20 73 65 |lue];..r|eturn se|
|00004510| 6c 66 3b 0d 7d 0d ff 00 | 15 18 00 f7 fc 00 5b 02 |lf;.}...|......[.|
|00004520| a4 00 5b 00 0c 03 48 04 | 00 04 bc 05 74 06 30 06 |..[...H.|....t.0.|
|00004530| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d 03 0c fc |....`...|........|
|00004540| 00 5c 02 a4 00 5c 00 0c | 03 48 04 00 04 bc 05 74 |.\...\..|.H.....t|
|00004550| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 0d |.0.....`|........|
|00004560| fc 00 5b 02 b9 00 5b 00 | 0c 02 6c 04 00 04 bc 05 |..[...[.|..l.....|
|00004570| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a dc f7 |t.0.....|`.......|
|00004580| ff 00 16 18 01 f7 2d 64 | 69 67 69 74 3a 73 65 6e |......-d|igit:sen|
|00004590| 64 65 72 20 20 2f 2f 6d | 73 67 20 66 72 6f 6d 20 |der //m|sg from |
|000045a0| 61 20 62 75 74 74 6f 6e | 20 6d 61 74 72 69 78 0d |a button| matrix.|
|000045b0| fc 00 5b 02 a4 00 5b 00 | 0c 02 6c 04 00 04 bc 05 |..[...[.|..l.....|
|000045c0| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|000045d0| 7b 0d fc 00 5b 02 ca 00 | 5b 00 0c 02 6c 04 00 04 |{...[...|[...l...|
|000045e0| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|000045f0| 90 f7 09 6e 65 78 74 44 | 69 67 69 74 3d 5b 5b 73 |...nextD|igit=[[s|
|00004600| 65 6e 64 65 72 20 73 65 | 6c 65 63 74 65 64 43 65 |ender se|lectedCe|
|00004610| 6c 6c 5d 20 74 61 67 5d | 3b 0d 09 09 2f 2f 6f 72 |ll] tag]|;...//or|
|00004620| 3a 20 20 3d 5b 73 65 6e | 64 65 72 20 73 65 6c 65 |: =[sen|der sele|
|00004630| 63 74 65 64 54 61 67 5d | 3b 0d 09 3c 64 6f 20 73 |ctedTag]|;..<do s|
|00004640| 6f 6d 65 74 68 69 6e 67 | 20 77 69 74 68 20 69 74 |omething| with it|
|00004650| 3e 0d fc 00 5b 02 a4 00 | 5b 00 0c 02 6c 04 00 04 |>...[...|[...l...|
|00004660| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00004670| 90 f7 09 72 65 74 75 72 | 6e 20 73 65 6c 66 3b 0d |...retur|n self;.|
|00004680| 7d 0d 0d fc 00 5c 02 a4 | 00 5c 00 0c 03 48 04 00 |}....\..|.\...H..|
|00004690| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|000046a0| 0a 90 f7 ff 00 15 24 03 | f7 41 63 74 69 6f 6e 20 |......$.|.Action |
|000046b0| 4d 65 74 68 6f 64 73 20 | ff 00 15 18 02 f7 28 63 |Methods |......(c|
|000046c0| 6f 6e 74 69 6e 75 65 64 | 29 0d fc 00 5c 02 a4 00 |ontinued|)...\...|
|000046d0| 5c 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |\.....H.|....t.0.|
|000046e0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d ff 00 15 |....`...|........|
|000046f0| 18 03 f7 33 2e 20 51 75 | 65 72 79 20 61 20 4d 61 |...3. Qu|ery a Ma|
|00004700| 74 72 69 78 20 ff 00 15 | 18 02 f7 28 63 6f 6e 74 |trix ...|...(cont|
|00004710| 69 6e 75 65 64 29 ff 00 | 15 18 03 f7 0d ff 00 15 |inued)..|........|
|00004720| 18 02 f7 0d fc 00 5c 02 | b0 00 5c 00 0c 03 48 04 |......\.|..\...H.|
|00004730| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00004740| d4 0a 90 f7 ff 00 15 18 | 01 f7 46 6f 72 6d ff 00 |........|..Form..|
|00004750| 15 18 00 f7 20 69 73 20 | 61 20 73 75 62 63 6c 61 |.... is |a subcla|
|00004760| 73 73 20 6f 66 ff 00 15 | 18 00 f7 20 ff 00 15 18 |ss of...|... ....|
|00004770| 01 f7 4d 61 74 72 69 78 | ff 00 15 18 00 f7 2e 20 |..Matrix|....... |
|00004780| 20 54 68 65 20 ff 00 15 | 18 01 f7 46 6f 72 6d 43 | The ...|...FormC|
|00004790| 65 6c 6c ff 00 15 18 00 | f7 73 20 69 6e 20 74 68 |ell.....|.s in th|
|000047a0| 65 20 46 6f 72 6d 20 61 | 72 65 20 69 6e 64 69 76 |e Form a|re indiv|
|000047b0| 69 64 75 61 6c 6c 79 20 | 73 65 6c 65 63 74 61 62 |idually |selectab|
|000047c0| 6c 65 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |le. For| example|
|000047d0| 2c 20 74 68 65 20 46 6f | 72 6d 20 69 73 20 61 73 |, the Fo|rm is as|
|000047e0| 6b 65 64 20 66 6f 72 20 | 74 68 65 20 ff 00 15 18 |ked for |the ....|
|000047f0| 01 f7 69 6e 64 65 78 ff | 00 15 18 00 f7 20 69 6e |..index.|..... in|
|00004800| 20 74 68 65 20 46 6f 72 | 6d 20 77 68 65 72 65 20 | the For|m where |
|00004810| 64 61 74 61 20 77 61 73 | 20 65 6e 74 65 72 65 64 |data was| entered|
|00004820| 2c 20 74 68 65 6e 20 74 | 68 65 20 64 61 74 61 20 |, then t|he data |
|00004830| 61 74 20 74 68 61 74 20 | 69 6e 64 65 78 20 69 73 |at that |index is|
|00004840| 20 6f 62 74 61 69 6e 65 | 64 3a 0d 03 14 fc 00 5c | obtaine|d:.....\|
|00004850| 02 a4 00 5c 00 0c 03 48 | 04 00 04 bc 05 74 06 30 |...\...H|.....t.0|
|00004860| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00004870| 5b 02 b9 00 5b 00 0c 02 | 6c 04 00 04 bc 05 74 06 |[...[...|l.....t.|
|00004880| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a dc f7 ff 00 |0.....`.|........|
|00004890| 16 18 01 f7 2d 64 61 74 | 61 49 6e ff 00 16 18 01 |....-dat|aIn.....|
|000048a0| f7 3a 73 65 6e 64 65 72 | 20 20 2f 2f 6d 73 67 20 |.:sender| //msg |
|000048b0| 66 72 6f 6d 20 61 20 66 | 6f 72 6d 0d fc 00 5b 02 |from a f|orm...[.|
|000048c0| a4 00 5b 00 0c 02 6c 04 | 00 04 bc 05 74 06 30 06 |..[...l.|....t.0.|
|000048d0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 7b 09 0d fc |....`...|....{...|
|000048e0| 00 9b 02 ca 00 9b 00 0c | 02 6c 04 00 04 bc 05 74 |........|.l.....t|
|000048f0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 69 |.0.....`|.......i|
|00004900| 6e 64 65 78 3d 5b 73 65 | 6e 64 65 72 20 73 65 6c |ndex=[se|nder sel|
|00004910| 65 63 74 65 64 49 6e 64 | 65 78 5d 3b 0d 64 61 74 |ectedInd|ex];.dat|
|00004920| 61 45 6e 74 65 72 65 64 | 3d 5b 73 65 6e 64 65 72 |aEntered|=[sender|
|00004930| 20 69 6e 74 56 61 6c 75 | 65 41 74 3a 69 6e 64 65 | intValu|eAt:inde|
|00004940| 78 5d 3b 0d fc 00 5b 02 | ca 00 5b 00 0c 02 6c 04 |x];...[.|..[...l.|
|00004950| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00004960| d4 0a 90 f7 09 3c 64 6f | 20 73 6f 6d 65 74 68 69 |.....<do| somethi|
|00004970| 6e 67 20 77 69 74 68 20 | 69 74 3e 0d fc 00 5b 02 |ng with |it>...[.|
|00004980| a4 00 5b 00 0c 02 6c 04 | 00 04 bc 05 74 06 30 06 |..[...l.|....t.0.|
|00004990| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 09 72 65 74 |....`...|.....ret|
|000049a0| 75 72 6e 20 73 65 6c 66 | 3b 0d 7d 0d fc 00 5a 02 |urn self|;.}...Z.|
|000049b0| a4 00 5a 00 0c 04 00 04 | bc 05 74 06 30 06 ec 07 |..Z.....|..t.0...|
|000049c0| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 24 03 f7 |..`.....|.....$..|
|000049d0| 44 65 6c 65 67 61 74 69 | 6f 6e 20 61 6e 64 20 4e |Delegati|on and N|
|000049e0| 6f 74 69 66 69 63 61 74 | 69 6f 6e 0d ff 00 15 18 |otificat|ion.....|
|000049f0| 00 f7 fc 00 74 02 a4 00 | 74 00 0c 02 8c 03 48 04 |....t...|t.....H.|
|00004a00| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00004a10| d4 0a 90 f7 0d fc 00 77 | 02 bf 00 77 00 0c 03 48 |.......w|...w...H|
|00004a20| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00004a30| 09 d4 0a 90 f7 41 6e 20 | 6f 62 6a 65 63 74 20 69 |.....An |object i|
|00004a40| 6e 20 41 70 70 4b 69 74 | 20 63 6c 61 73 73 65 73 |n AppKit| classes|
|00004a50| 20 73 75 63 68 20 61 73 | 20 57 69 6e 64 6f 77 2c | such as| Window,|
|00004a60| 20 54 65 78 74 2c 20 61 | 6e 64 20 41 70 70 6c 69 | Text, a|nd Appli|
|00004a70| 63 61 74 69 6f 6e 20 77 | 69 6c 6c 20 ff 00 15 18 |cation w|ill ....|
|00004a80| 02 f7 22 64 65 6c 65 67 | 61 74 65 22 ff 00 15 18 |.."deleg|ate"....|
|00004a90| 00 f7 20 73 6f 6d 65 20 | 6f 66 20 69 74 73 20 72 |.. some |of its r|
|00004aa0| 65 73 70 6f 6e 73 69 62 | 69 6c 69 74 79 20 66 6f |esponsib|ility fo|
|00004ab0| 72 20 68 61 6e 64 6c 69 | 6e 67 20 61 6e 20 65 76 |r handli|ng an ev|
|00004ac0| 65 6e 74 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 6f |ent to a|nother o|
|00004ad0| 62 6a 65 63 74 20 63 61 | 6c 6c 65 64 20 69 74 73 |bject ca|lled its|
|00004ae0| 20 ff 00 15 18 03 f7 64 | 65 6c 65 67 61 74 65 ff | ......d|elegate.|
|00004af0| 00 15 18 00 f7 20 62 79 | 20 ff 00 15 18 02 f7 22 |..... by| ......"|
|00004b00| 6e 6f 74 69 66 79 69 6e | 67 22 ff 00 15 18 00 f7 |notifyin|g"......|
|00004b10| 20 20 74 68 65 20 64 65 | 6c 65 67 61 74 65 20 74 | the de|legate t|
|00004b20| 68 61 74 20 74 68 65 20 | 73 65 6e 64 65 72 27 73 |hat the |sender's|
|00004b30| 20 73 74 61 74 65 20 68 | 61 73 20 65 69 74 68 65 | state h|as eithe|
|00004b40| 72 20 63 68 61 6e 67 65 | 64 20 6f 72 20 69 73 20 |r change|d or is |
|00004b50| 61 62 6f 75 74 20 74 6f | 20 63 68 61 6e 67 65 2e |about to| change.|
|00004b60| 0d 02 d5 fc 00 5a 02 a4 | 00 5a 00 0c 04 00 04 bc |.....Z..|.Z......|
|00004b70| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00004b80| f7 ff 00 15 24 03 f7 44 | 65 6c 65 67 61 74 69 6f |....$..D|elegatio|
|00004b90| 6e 20 61 6e 64 20 4e 6f | 74 69 66 69 63 61 74 69 |n and No|tificati|
|00004ba0| 6f 6e ff 00 15 18 03 f7 | 0d fc 00 5c 02 bf 00 5c |on......|...\...\|
|00004bb0| 00 0c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00004bc0| 08 60 09 18 09 d4 0a 90 | f7 ff 00 15 18 02 f7 28 |.`......|.......(|
|00004bd0| 63 6f 6e 74 69 6e 75 65 | 64 29 0d ff 00 15 18 03 |continue|d)......|
|00004be0| f7 0d fc 00 5f 02 a4 00 | 5e 00 0c 02 8c 03 48 04 |...._...|^.....H.|
|00004bf0| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00004c00| d4 0a 90 f7 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |....Noti|fication|
|00004c10| 20 6d 65 73 73 61 67 65 | 73 20 61 72 65 20 6f 6e | message|s are on|
|00004c20| 6c 79 20 73 65 6e 74 20 | 69 66 2e 2e 2e ff 00 15 |ly sent |if......|
|00004c30| 18 00 f7 0d fc 00 7f 02 | a4 00 7e 00 0c 02 8c 03 |........|..~.....|
|00004c40| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00004c50| 18 09 d4 0a 90 f7 0d fc | 00 78 02 a4 00 77 00 0c |........|.x...w..|
|00004c60| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00004c70| 08 60 09 18 09 d4 0a 90 | f7 54 68 65 20 64 65 6c |.`......|.The del|
|00004c80| 65 67 61 74 65 20 68 61 | 73 20 62 65 65 6e 20 73 |egate ha|s been s|
|00004c90| 65 74 20 69 6e 20 49 42 | 20 6f 72 20 62 79 20 6d |et in IB| or by m|
|00004ca0| 65 73 73 61 67 65 3a 0d | fc 00 7f 02 a4 00 7e 00 |essage:.|......~.|
|00004cb0| 0c 02 8c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|00004cc0| a4 08 60 09 18 09 d4 0a | 90 f7 0d fc 00 9a 02 b9 |..`.....|........|
|00004cd0| 00 99 00 0c 02 8c 03 48 | 04 00 04 bc 05 74 06 30 |.......H|.....t.0|
|00004ce0| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 ff 00 16 |.....`..|........|
|00004cf0| 18 01 f7 5b 6d 79 57 69 | 6e 64 6f 77 20 73 65 74 |...[myWi|ndow set|
|00004d00| 44 65 6c 65 67 61 74 65 | 3a 6d 79 44 65 6c 65 67 |Delegate|:myDeleg|
|00004d10| 61 74 65 5d ff 00 15 18 | 00 f7 0d fc 00 7f 02 a4 |ate]....|........|
|00004d20| 00 7e 00 0c 02 8c 03 48 | 04 00 04 bc 05 74 06 30 |.~.....H|.....t.0|
|00004d30| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 0d fc 00 |.....`..|........|
|00004d40| 76 02 a4 00 75 00 0c 02 | 8c 03 48 04 00 04 bc 05 |v...u...|..H.....|
|00004d50| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|00004d60| 61 6e 64 20 74 68 65 20 | 64 65 6c 65 67 61 74 65 |and the |delegate|
|00004d70| 20 68 61 73 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 | has imp|lemented|
|00004d80| 20 61 20 6d 65 74 68 6f | 64 20 6f 66 20 74 68 65 | a metho|d of the|
|00004d90| 20 73 61 6d 65 20 6e 61 | 6d 65 3a 0d fc 00 7f 02 | same na|me:.....|
|00004da0| a4 00 7e 00 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..~.....|H.....t.|
|00004db0| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 0d fc |0.....`.|........|
|00004dc0| 00 9d 02 a4 00 9c 00 0c | 02 8c 03 48 04 00 04 bc |........|...H....|
|00004dd0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00004de0| f7 ff 00 16 18 01 f7 2f | 2a 69 6e 20 63 6c 61 73 |......./|*in clas|
|00004df0| 73 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |s implem|entation|
|00004e00| 20 66 6f 72 20 6d 79 44 | 65 6c 65 67 61 74 65 2a | for myD|elegate*|
|00004e10| 2f 0d 2d 77 69 6e 64 6f | 77 57 69 6c 6c 43 6c 6f |/.-windo|wWillClo|
|00004e20| 73 65 3a 28 69 64 29 74 | 68 65 57 69 6e 64 6f 77 |se:(id)t|heWindow|
|00004e30| 20 7b 0d 2e 2e 2e 7d 0d | 01 cb fc 00 4b 02 a4 00 | {....}.|....K...|
|00004e40| 4b 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |K.....H.|....t.0.|
|00004e50| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 ff 00 15 24 |....`...|.......$|
|00004e60| 03 f7 45 78 61 6d 70 6c | 65 73 20 6f 66 20 4e 6f |..Exampl|es of No|
|00004e70| 74 69 66 69 63 61 74 69 | 6f 6e 20 4d 65 73 73 61 |tificati|on Messa|
|00004e80| 67 65 73 ff 00 15 18 00 | f7 0d fc 00 74 02 a4 00 |ges.....|....t...|
|00004e90| 74 00 0c 02 8c 03 48 04 | 00 04 bc 05 74 06 30 06 |t.....H.|....t.0.|
|00004ea0| ec 07 a4 08 60 09 18 09 | d4 0a 90 f7 0d fc 00 5d |....`...|.......]|
|00004eb0| 02 f0 05 00 5d 00 0c 04 | 3c 07 58 0a 90 f7 53 65 |....]...|<.X...Se|
|00004ec0| 76 65 72 61 6c 20 41 70 | 70 4b 69 74 20 6f 62 6a |veral Ap|pKit obj|
|00004ed0| 65 63 74 73 20 68 61 76 | 65 20 70 72 65 2d 64 65 |ects hav|e pre-de|
|00004ee0| 66 69 6e 65 64 20 6e 6f | 74 69 66 69 63 61 74 69 |fined no|tificati|
|00004ef0| 6f 6e 20 6d 65 73 73 61 | 67 65 73 20 66 6f 72 20 |on messa|ges for |
|00004f00| 63 68 61 6e 67 65 73 20 | 69 6e 20 73 74 61 74 65 |changes |in state|
|00004f10| 20 66 6f 72 20 77 68 69 | 63 68 20 63 75 73 74 6f | for whi|ch custo|
|00004f20| 6d 20 62 65 68 61 76 69 | 6f 72 20 6d 61 79 20 62 |m behavi|or may b|
|00004f30| 65 20 64 65 73 69 72 65 | 64 2e 20 20 41 20 66 65 |e desire|d. A fe|
|00004f40| 77 20 65 78 61 6d 70 6c | 65 73 20 61 72 65 20 62 |w exampl|es are b|
|00004f50| 65 6c 6f 77 2e 20 20 54 | 68 65 73 65 20 6f 62 6a |elow. T|hese obj|
|00004f60| 65 63 74 73 20 ff 00 15 | 18 03 f7 73 65 6e 64 ff |ects ...|...send.|
|00004f70| 00 15 18 00 f7 20 74 68 | 65 73 65 20 6d 65 73 73 |..... th|ese mess|
|00004f80| 61 67 65 73 20 74 6f 20 | 74 68 65 69 72 20 64 65 |ages to |their de|
|00004f90| 6c 65 67 61 74 65 3a 0d | 0d fc 00 4b 02 f0 09 00 |legate:.|...K....|
|00004fa0| 4b 00 0c 05 5c f7 ff 00 | 15 18 03 f7 41 70 70 6c |K...\...|....Appl|
|00004fb0| 69 63 61 74 69 6f 6e 0d | ff 00 15 18 00 f7 0d fc |ication.|........|
|00004fc0| 00 6f 02 f0 09 00 6f 00 | 0c 05 5c f7 61 70 70 44 |.o....o.|..\.appD|
|00004fd0| 69 64 49 6e 69 74 3a 0d | 61 70 70 44 69 64 41 77 |idInit:.|appDidAw|
|00004fe0| 61 6b 65 3a 0d 61 70 70 | 44 69 64 42 65 63 6f 6d |ake:.app|DidBecom|
|00004ff0| 65 41 63 74 69 76 65 3a | 0d 61 70 70 44 69 64 48 |eActive:|.appDidH|
|00005000| 69 64 65 3a 0d 01 5a fc | 00 5b 02 a4 00 5b 00 0c |ide:..Z.|.[...[..|
|00005010| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00005020| 08 60 09 18 09 d4 0a 90 | f7 ff 00 15 24 03 f7 f5 |.`......|....$...|
|00005030| 52 65 73 6f 75 72 63 65 | 73 f9 00 f7 ff 00 15 18 |Resource|s.......|
|00005040| 00 f7 0d fc 00 84 02 a4 | 00 84 00 0c 03 48 04 00 |........|.....H..|
|00005050| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00005060| 0a 90 f7 0d fc 00 73 02 | d0 00 59 00 0e f7 ff 00 |......s.|..Y.....|
|00005070| 15 14 02 f7 4e 65 58 54 | 20 64 6f 63 75 6d 65 6e |....NeXT| documen|
|00005080| 74 61 74 69 6f 6e 20 6d | 61 6e 75 61 6c 73 ff 00 |tation m|anuals..|
|00005090| 15 14 00 f7 2e 0d 0d ff | 00 15 14 02 f7 4e 65 58 |........|.....NeX|
|000050a0| 54 53 54 45 50 20 41 70 | 70 6c 69 63 61 74 69 6f |TSTEP Ap|plicatio|
|000050b0| 6e 73 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 3a 20 |ns Progr|amming: |
|000050c0| 20 41 20 48 61 6e 64 73 | 2d 4f 6e 20 41 70 70 72 | A Hands|-On Appr|
|000050d0| 6f 61 63 68 2c ff 00 15 | 14 00 f7 20 62 79 20 53 |oach,...|... by S|
|000050e0| 69 6d 73 6f 6e 20 47 61 | 72 66 69 6e 6b 65 6c 20 |imson Ga|rfinkel |
|000050f0| 61 6e 64 20 4d 69 63 68 | 61 65 6c 20 4b 2e 20 4d |and Mich|ael K. M|
|00005100| 61 68 6f 6e 65 79 2c 20 | 53 70 72 69 6e 67 2d 56 |ahoney, |Spring-V|
|00005110| 65 72 6c 61 67 2c 20 31 | 39 39 32 2e 20 20 54 68 |erlag, 1|992. Th|
|00005120| 65 20 62 65 73 74 20 62 | 6f 6f 6b 20 61 6e 79 77 |e best b|ook anyw|
|00005130| 68 65 72 65 20 6f 6e 20 | 64 65 76 65 6c 6f 70 69 |here on |developi|
|00005140| 6e 67 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ng appli|cations |
|00005150| 75 6e 64 65 72 20 4e 65 | 58 54 53 54 45 50 2e 0d |under Ne|XTSTEP..|
|00005160| 0d 01 38 f5 f6 ff 00 15 | 30 01 f7 4e 65 58 54 53 |..8.....|0..NeXTS|
|00005170| 54 45 50 ff 00 15 18 00 | f7 0d f9 00 f7 fc 00 74 |TEP.....|.......t|
|00005180| 02 a4 00 74 00 0c 02 8c | 03 48 04 00 04 bc 05 74 |...t....|.H.....t|
|00005190| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 0d |.0.....`|........|
|000051a0| 0d ff 00 15 18 03 f7 4e | 65 58 54 53 54 45 50 ff |.......N|eXTSTEP.|
|000051b0| 00 15 18 00 f7 20 69 73 | 20 4e 65 58 54 27 73 20 |..... is| NeXT's |
|000051c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 64 65 76 65 |applicat|ion deve|
|000051d0| 6c 6f 70 6d 65 6e 74 20 | 61 6e 64 20 75 73 65 72 |lopment |and user|
|000051e0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2c 20 63 6f | environ|ment, co|
|000051f0| 6e 73 69 73 74 69 6e 67 | 20 6f 66 20 74 68 65 20 |nsisting| of the |
|00005200| ff 00 15 18 03 f7 57 6f | 72 6b 73 70 61 63 65 20 |......Wo|rkspace |
|00005210| 4d 61 6e 61 67 65 72 ff | 00 15 18 00 f7 2c 20 ff |Manager.|....., .|
|00005220| 00 15 18 03 f7 49 6e 74 | 65 72 66 61 63 65 20 42 |.....Int|erface B|
|00005230| 75 69 6c 64 65 72 20 28 | 26 20 50 72 6f 6a 65 63 |uilder (|& Projec|
|00005240| 74 ff 00 15 18 03 f7 20 | 42 75 69 6c 64 65 72 29 |t...... |Builder)|
|00005250| ff 00 15 18 00 f7 2c 20 | ff 00 15 18 03 f7 20 41 |......, |...... A|
|00005260| 70 70 6c 69 63 61 74 69 | 6f 6e 20 4b 69 74 ff 00 |pplicati|on Kit..|
|00005270| 15 18 00 f7 2c 20 61 6e | 64 20 ff 00 15 18 03 f7 |...., an|d ......|
|00005280| 57 69 6e 64 6f 77 20 53 | 65 72 76 65 72 ff 00 15 |Window S|erver...|
|00005290| 18 00 f7 2e ff 00 15 0a | 00 f7 0d 00 4d fc 00 74 |........|....M..t|
|000052a0| 02 a4 00 74 02 0c 02 8c | 03 48 04 00 04 bc 05 74 |...t....|.H.....t|
|000052b0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 ff |.0.....`|........|
|000052c0| 00 15 18 00 f7 fb 00 00 | 00 01 01 c7 01 db 57 4e |........|......WN|
|000052d0| 47 72 61 70 68 69 63 2e | 38 33 37 30 33 32 2e 65 |Graphic.|837032.e|
|000052e0| 70 73 f7 ff 00 15 0a 00 | f7 0d 03 75 fc 00 5a 02 |ps......|...u..Z.|
|000052f0| a4 00 5a 00 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..Z.....|H.....t.|
|00005300| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 ff 00 |0.....`.|........|
|00005310| 15 24 03 f7 48 6f 77 20 | 4f 62 6a 65 63 74 73 20 |.$..How |Objects |
|00005320| 52 65 73 70 6f 6e 64 20 | ff 00 15 18 02 f7 28 63 |Respond |......(c|
|00005330| 6f 6e 74 69 6e 75 65 64 | 29 ff 00 15 18 00 f7 0d |ontinued|).......|
|00005340| fc 00 74 02 a4 00 74 00 | 0c 02 8c 03 48 04 00 04 |..t...t.|....H...|
|00005350| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00005360| 90 f7 0d fc 00 6b 02 a4 | 00 6b 00 0c 03 48 04 00 |.....k..|.k...H..|
|00005370| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00005380| 0a 90 f7 f9 00 f7 2d 20 | 42 65 67 69 6e 20 61 20 |......- |Begin a |
|00005390| ff 00 15 18 03 f7 6d 6f | 64 61 6c 20 6c 6f 6f 70 |......mo|dal loop|
|000053a0| ff 00 15 0c 00 f7 0d fc | 00 a3 02 a4 00 a3 00 0c |........|........|
|000053b0| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|000053c0| 09 18 09 d4 0a 90 f7 0d | fc 00 92 02 a4 00 92 00 |........|........|
|000053d0| 0c 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |......t.|0.....`.|
|000053e0| 18 09 d4 0a 90 f7 f9 00 | f7 ff 00 15 18 02 f7 45 |........|.......E|
|000053f0| 2e 67 2e 2c 20 61 20 42 | 75 74 74 6f 6e 20 6f 62 |.g., a B|utton ob|
|00005400| 6a 65 63 74 20 68 69 67 | 68 6c 69 67 68 74 73 20 |ject hig|hlights |
|00005410| 6f 6e 20 61 f9 00 f7 ff | 00 15 18 00 f7 20 ff 00 |on a....|..... ..|
|00005420| 16 18 01 f7 6d 6f 75 73 | 65 44 6f 77 6e 3a 20 ff |....mous|eDown: .|
|00005430| 00 15 18 02 f7 6d 65 73 | 73 61 67 65 20 61 6e 64 |.....mes|sage and|
|00005440| f9 00 f7 20 65 6e 74 65 | 72 73 20 61 20 6d 6f 64 |... ente|rs a mod|
|00005450| 61 6c 20 6c 6f 6f 70 20 | 77 61 69 74 69 6e 67 20 |al loop |waiting |
|00005460| 66 6f 72 20 61 20 ff 00 | 15 18 03 f7 6d 6f 75 73 |for a ..|....mous|
|00005470| 65 55 70 20 ff 00 15 18 | 02 f7 65 76 65 6e 74 2e |eUp ....|..event.|
|00005480| ff 00 15 18 00 f7 0d fc | 00 d2 02 a4 00 d2 00 0c |........|........|
|00005490| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|000054a0| 09 d4 0a 90 f7 0d fc 00 | 6b 02 a4 00 6b 00 0c 03 |........|k...k...|
|000054b0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000054c0| 18 09 d4 0a 90 f7 f9 00 | f7 2d 20 52 65 73 70 6f |........|.- Respo|
|000054d0| 6e 64 20 74 6f 20 74 68 | 65 20 65 76 65 6e 74 20 |nd to th|e event |
|000054e0| 61 6e 64 20 73 65 6e 64 | 20 61 20 6d 65 73 73 61 |and send| a messa|
|000054f0| 67 65 20 74 6f 20 61 6e | 6f 74 68 65 72 20 6f 62 |ge to an|other ob|
|00005500| 6a 65 63 74 20 6e 6f 74 | 69 66 79 69 6e 67 20 69 |ject not|ifying i|
|00005510| 74 20 6f 66 20 74 68 65 | 20 65 76 65 6e 74 2e ff |t of the| event..|
|00005520| 00 15 0c 00 f7 0d fc 00 | a3 02 a4 00 a3 00 0c 03 |........|........|
|00005530| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00005540| 18 09 d4 0a 90 f7 0d fc | 00 92 02 a4 00 92 00 0c |........|........|
|00005550| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00005560| 09 d4 0a 90 f7 f9 00 f7 | ff 00 15 18 02 f7 54 77 |........|......Tw|
|00005570| 6f 20 6e 6f 74 69 66 69 | 63 61 74 69 6f 6e 20 70 |o notifi|cation p|
|00005580| 61 72 61 64 69 67 6d 73 | 20 61 72 65 20 75 73 65 |aradigms| are use|
|00005590| 64 20 68 65 72 65 3a 0d | 0d 31 2e 20 20 ff 00 15 |d here:.|.1. ...|
|000055a0| 18 03 f7 54 61 72 67 65 | 74 2d 41 63 74 69 6f 6e |...Targe|t-Action|
|000055b0| ff 00 15 18 02 f7 20 69 | 73 20 75 73 65 64 20 62 |...... i|s used b|
|000055c0| 79 20 43 6f 6e 74 72 6f | 6c 73 2e 0d 0d 32 2e 20 |y Contro|ls...2. |
|000055d0| 20 ff 00 15 18 03 f7 44 | 65 6c 65 67 61 74 69 6f | ......D|elegatio|
|000055e0| 6e 2d 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e ff 00 |n-Notifi|cation..|
|000055f0| 15 18 02 f7 20 69 73 20 | 75 73 65 64 20 62 79 20 |.... is |used by |
|00005600| 57 69 6e 64 6f 77 2c 20 | 41 70 70 6c 69 63 61 74 |Window, |Applicat|
|00005610| 69 6f 6e 2c 20 61 6e 64 | 20 54 65 78 74 2e ff 00 |ion, and| Text...|
|00005620| 15 18 00 f7 0d fc 00 5a | 02 a4 00 5a 00 0c 02 8c |.......Z|...Z....|
|00005630| 03 48 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.H.....t|.0.....`|
|00005640| 09 18 09 d4 0a 90 f7 ff | 00 15 24 03 f7 54 61 72 |........|..$..Tar|
|00005650| 67 65 74 2d 41 63 74 69 | 6f 6e ff 00 15 18 00 f7 |get-Acti|on......|
|00005660| 0d 02 83 fc 00 74 02 a4 | 00 74 00 0c 02 8c 03 48 |.....t..|.t.....H|
|00005670| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00005680| 09 d4 0a 90 f7 0d fc 00 | 7d 02 a4 00 7d 00 0c 03 |........|}...}...|
|00005690| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000056a0| 18 09 d4 0a 90 f7 f9 00 | f7 54 68 65 20 ff 00 15 |........|.The ...|
|000056b0| 18 03 f7 63 6f 6e 74 72 | 6f 6c ff 00 15 18 00 f7 |...contr|ol......|
|000056c0| 20 6f 62 6a 65 63 74 20 | 67 65 74 73 20 61 6e 20 | object |gets an |
|000056d0| 65 76 65 6e 74 20 6d 65 | 73 73 61 67 65 20 61 6e |event me|ssage an|
|000056e0| 64 20 68 61 6e 64 6c 65 | 73 20 74 68 65 20 65 76 |d handle|s the ev|
|000056f0| 65 6e 74 3b 0d 0d fc 00 | 93 02 a4 00 93 00 0c 04 |ent;....|........|
|00005700| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00005710| d4 0a 90 f7 f9 00 f7 ff | 00 15 18 02 f7 65 2e 67 |........|.....e.g|
|00005720| 2e 2c 20 61 66 74 65 72 | 20 61 20 ff 00 16 18 01 |., after| a .....|
|00005730| f7 6d 6f 75 73 65 44 6f | 77 6e 3a ff 00 15 18 02 |.mouseDo|wn:.....|
|00005740| f7 20 6d 65 73 73 61 67 | 65 20 61 20 42 75 74 74 |. messag|e a Butt|
|00005750| 6f 6e 20 6f 62 6a 65 63 | 74 20 68 69 67 68 6c 69 |on objec|t highli|
|00005760| 67 68 74 73 20 61 6e 64 | 20 77 61 69 74 73 20 66 |ghts and| waits f|
|00005770| 6f 72 20 61 20 6d 6f 75 | 73 65 55 70 20 65 76 65 |or a mou|seUp eve|
|00005780| 6e 74 2e 0d fc 00 7d 02 | a4 00 7d 00 0c 04 00 04 |nt....}.|..}.....|
|00005790| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|000057a0| 90 f7 ff 00 15 18 02 f7 | ff 00 15 18 00 f7 0d fc |........|........|
|000057b0| 00 7d 02 a4 00 7d 00 0c | 03 48 04 00 04 bc 05 74 |.}...}..|.H.....t|
|000057c0| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 f9 |.0.....`|........|
|000057d0| 00 f7 57 68 65 6e 20 68 | 61 6e 64 6c 69 6e 67 20 |..When h|andling |
|000057e0| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 74 68 65 |is compl|ete, the|
|000057f0| 20 63 6f 6e 74 72 6f 6c | 20 6e 6f 74 69 66 69 65 | control| notifie|
|00005800| 73 20 61 20 f9 00 f7 74 | 61 72 67 65 74 f9 00 f7 |s a ...t|arget...|
|00005810| 20 6f 62 6a 65 63 74 20 | 62 79 20 69 6e 76 6f 6b | object |by invok|
|00005820| 69 6e 67 20 61 6e 20 f9 | 00 f7 61 63 74 69 6f 6e |ing an .|..action|
|00005830| f9 00 f7 20 6d 65 74 68 | 6f 64 20 6f 77 6e 65 64 |... meth|od owned|
|00005840| 20 62 79 20 74 68 65 20 | 74 61 72 67 65 74 2e 0d | by the |target..|
|00005850| 0d ff 00 15 18 03 f7 49 | 6e 20 65 66 66 65 63 74 |.......I|n effect|
|00005860| ff 00 15 18 00 f7 2c 20 | 61 20 63 6f 6e 74 72 6f |......, |a contro|
|00005870| 6c 20 6f 62 6a 65 63 74 | 20 72 65 63 65 69 76 69 |l object| receivi|
|00005880| 6e 67 20 61 6e 20 ff 00 | 15 18 02 f7 65 76 65 6e |ng an ..|....even|
|00005890| 74 20 6d 65 73 73 61 67 | 65 ff 00 15 18 00 f7 20 |t messag|e...... |
|000058a0| 74 72 61 6e 73 6c 61 74 | 65 73 20 69 74 20 69 6e |translat|es it in|
|000058b0| 74 6f 20 61 6e 20 ff 00 | 15 18 02 f7 61 63 74 69 |to an ..|....acti|
|000058c0| 6f 6e 20 6d 65 73 73 61 | 67 65 ff 00 15 18 00 f7 |on messa|ge......|
|000058d0| 20 74 6f 20 61 20 74 61 | 72 67 65 74 20 6f 62 6a | to a ta|rget obj|
|000058e0| 65 63 74 2e 0d 0d 02 8a | fc 00 5a 02 a4 00 5a 00 |ect.....|..Z...Z.|
|000058f0| 0c 02 8c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |....H...|..t.0...|
|00005900| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 24 03 f7 |..`.....|.....$..|
|00005910| 54 61 72 67 65 74 2d 41 | 63 74 69 6f 6e 20 ff 00 |Target-A|ction ..|
|00005920| 15 18 02 f7 28 63 6f 6e | 74 69 6e 75 65 64 29 ff |....(con|tinued).|
|00005930| 00 15 18 00 f7 0d fc 00 | 7d 02 a4 00 7d 00 0c 03 |........|}...}...|
|00005940| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|00005950| 18 09 d4 0a 90 f7 0d 41 | 63 74 69 6f 6e 20 6d 65 |.......A|ction me|
|00005960| 73 73 61 67 65 73 20 74 | 6f 20 74 68 65 20 74 61 |ssages t|o the ta|
|00005970| 72 67 65 74 20 66 72 6f | 6d 20 74 68 65 20 73 65 |rget fro|m the se|
|00005980| 6e 64 65 72 20 61 72 65 | 20 61 6c 77 61 79 73 20 |nder are| always |
|00005990| 6f 66 20 74 68 65 20 73 | 70 65 63 69 61 6c 20 66 |of the s|pecial f|
|000059a0| 6f 72 6d 3a 0d 0d fc 00 | aa 02 a4 00 aa 00 0c 04 |orm:....|........|
|000059b0| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|000059c0| d4 0a 90 f7 f9 00 f7 ff | 00 16 18 01 f7 5b 74 61 |........|.....[ta|
|000059d0| 72 67 65 74 20 61 63 74 | 69 6f 6e 4d 65 74 68 6f |rget act|ionMetho|
|000059e0| 64 4e 61 6d 65 3a 73 65 | 6c 66 5d 0d fc 00 7d 02 |dName:se|lf]...}.|
|000059f0| a4 00 7d 00 0c 04 00 04 | bc 05 74 06 30 06 ec 07 |..}.....|..t.0...|
|00005a00| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 18 00 f7 |..`.....|........|
|00005a10| 0d fc 00 7d 02 a4 00 7d | 00 0c 03 48 04 00 04 bc |...}...}|...H....|
|00005a20| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00005a30| f7 f9 00 f7 54 68 65 20 | 74 61 72 67 65 74 20 6f |....The |target o|
|00005a40| 62 6a 65 63 74 20 6d 75 | 73 74 20 68 61 76 65 20 |bject mu|st have |
|00005a50| 61 6e 20 61 63 74 69 6f | 6e 20 6d 65 74 68 6f 64 |an actio|n method|
|00005a60| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 3a 0d 0d fc | of the |form:...|
|00005a70| 00 aa 02 a4 00 aa 00 0c | 04 00 04 bc 05 74 06 30 |........|.....t.0|
|00005a80| 06 ec 07 a4 08 60 09 18 | 09 d4 0a 90 f7 ff 00 16 |.....`..|........|
|00005a90| 18 01 f7 2d 61 63 74 69 | 6f 6e 4d 65 74 68 6f 64 |...-acti|onMethod|
|00005aa0| 4e 61 6d 65 3a 73 65 6e | 64 65 72 7b 0d 09 3c 63 |Name:sen|der{..<c|
|00005ab0| 6f 64 65 20 74 6f 20 74 | 61 6b 65 20 61 63 74 69 |ode to t|ake acti|
|00005ac0| 6f 6e 3e 0d 09 72 65 74 | 75 72 6e 20 73 65 6c 66 |on>..ret|urn self|
|00005ad0| 3b 0d 7d ff 00 16 18 01 | f7 0d fc 00 7d 02 a4 00 |;.}.....|....}...|
|00005ae0| 7d 00 0c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |}...H...|..t.0...|
|00005af0| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 18 00 f7 |..`.....|........|
|00005b00| 0d fc 00 74 02 a4 00 74 | 00 0c 02 8c 03 48 04 00 |...t...t|.....H..|
|00005b10| 04 bc 05 74 06 30 06 ec | 07 a4 08 60 09 18 09 d4 |...t.0..|...`....|
|00005b20| 0a 90 f7 28 ff 00 16 18 | 01 f7 73 65 6e 64 65 72 |...(....|..sender|
|00005b30| ff 00 15 18 00 f7 20 77 | 69 6c 6c 20 63 6f 6e 74 |...... w|ill cont|
|00005b40| 61 69 6e 20 74 68 65 20 | ff 00 16 18 01 f7 69 64 |ain the |......id|
|00005b50| f9 00 f7 ff 00 15 18 00 | f7 20 6f 66 20 74 68 65 |........|. of the|
|00005b60| 20 73 65 6e 64 69 6e 67 | 20 6f 62 6a 65 63 74 2e | sending| object.|
|00005b70| 29 0d 02 bc fc 00 5a 02 | a4 00 5a 00 0c 04 00 04 |).....Z.|..Z.....|
|00005b80| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|00005b90| 90 f7 ff 00 15 24 03 f7 | 44 65 6c 65 67 61 74 69 |.....$..|Delegati|
|00005ba0| 6f 6e 20 61 6e 64 20 4e | 6f 74 69 66 69 63 61 74 |on and N|otificat|
|00005bb0| 69 6f 6e ff 00 15 18 03 | f7 0d fc 00 5c 02 bf 00 |ion.....|....\...|
|00005bc0| 5c 00 0c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |\...H...|..t.0...|
|00005bd0| a4 08 60 09 18 09 d4 0a | 90 f7 ff 00 15 18 02 f7 |..`.....|........|
|00005be0| 28 63 6f 6e 74 69 6e 75 | 65 64 29 0d ff 00 15 18 |(continu|ed).....|
|00005bf0| 03 f7 0d fc 00 5f 02 a4 | 00 5e 00 0c 02 8c 03 48 |....._..|.^.....H|
|00005c00| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00005c10| 09 d4 0a 90 f7 ff 00 15 | 18 03 f7 41 20 64 65 6c |........|...A del|
|00005c20| 65 67 61 74 65 20 6e 65 | 65 64 20 6f 6e 6c 79 20 |egate ne|ed only |
|00005c30| 69 6d 70 6c 65 6d 65 6e | 74 20 6d 65 74 68 6f 64 |implemen|t method|
|00005c40| 73 20 66 6f 72 20 74 68 | 6f 73 65 20 6e 6f 74 69 |s for th|ose noti|
|00005c50| 66 69 63 61 74 69 6f 6e | 20 6d 65 73 73 61 67 65 |fication| message|
|00005c60| 73 20 74 6f 20 77 68 69 | 63 68 20 69 74 20 63 61 |s to whi|ch it ca|
|00005c70| 72 65 73 20 74 6f 20 72 | 65 73 70 6f 6e 64 2e ff |res to r|espond..|
|00005c80| 00 15 10 00 f7 0d fc 00 | 7f 02 a4 00 7e 00 0c 02 |........|....~...|
|00005c90| 8c 03 48 04 00 04 bc 05 | 74 06 30 06 ec 07 a4 08 |..H.....|t.0.....|
|00005ca0| 60 09 18 09 d4 0a 90 f7 | 0d fc 00 78 02 a4 00 77 |`.......|...x...w|
|00005cb0| 00 0c 02 8c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.....H..|...t.0..|
|00005cc0| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 18 00 |...`....|........|
|00005cd0| f7 57 68 65 6e 20 61 20 | 64 65 6c 65 67 61 74 65 |.When a |delegate|
|00005ce0| 20 68 61 73 20 6e 6f 74 | 20 69 6d 70 6c 65 6d 65 | has not| impleme|
|00005cf0| 6e 74 65 64 20 74 68 65 | 20 63 6f 72 72 65 73 70 |nted the| corresp|
|00005d00| 6f 6e 64 69 6e 67 20 6d | 65 74 68 6f 64 20 66 6f |onding m|ethod fo|
|00005d10| 72 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 6e |r a part|icular n|
|00005d20| 6f 74 69 66 69 63 61 74 | 69 6f 6e 20 6d 65 73 73 |otificat|ion mess|
|00005d30| 61 67 65 2c 20 74 68 65 | 20 73 65 6e 64 65 72 20 |age, the| sender |
|00005d40| 64 6f 65 73 20 6e 6f 74 | 20 73 65 6e 64 20 74 68 |does not| send th|
|00005d50| 65 20 6d 65 73 73 61 67 | 65 2e 0d 0d 46 6f 72 20 |e messag|e...For |
|00005d60| 6d 61 6e 79 20 41 70 70 | 4b 69 74 20 6e 6f 74 69 |many App|Kit noti|
|00005d70| 66 69 63 61 74 69 6f 6e | 20 6d 65 73 73 61 67 65 |fication| message|
|00005d80| 73 2c 20 74 68 65 20 64 | 65 6c 65 67 61 74 65 20 |s, the d|elegate |
|00005d90| 63 61 6e 20 62 6c 6f 63 | 6b 20 61 20 70 72 6f 70 |can bloc|k a prop|
|00005da0| 6f 73 65 64 20 63 68 61 | 6e 67 65 20 62 79 20 72 |osed cha|nge by r|
|00005db0| 65 74 75 72 6e 69 6e 67 | 20 ff 00 15 18 01 f7 6e |eturning| ......n|
|00005dc0| 69 6c ff 00 15 18 00 f7 | 2e 20 20 ff 00 15 18 00 |il......|. .....|
|00005dd0| f7 49 66 20 74 68 65 20 | 64 65 6c 65 67 61 74 65 |.If the |delegate|
|00005de0| 20 64 6f 65 73 20 6e 6f | 74 20 69 6d 70 6c 65 6d | does no|t implem|
|00005df0| 65 6e 74 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f |ent the |correspo|
|00005e00| 6e 64 69 6e 67 20 6d 65 | 74 68 6f 64 2c 20 74 68 |nding me|thod, th|
|00005e10| 65 20 63 68 61 6e 67 65 | 20 77 69 6c 6c 20 6f 63 |e change| will oc|
|00005e20| 63 75 72 20 62 79 20 64 | 65 66 61 75 6c 74 2e 0d |cur by d|efault..|
|00005e30| 02 6a fc 00 76 02 a4 00 | 75 00 0c 02 8c 03 48 04 |.j..v...|u.....H.|
|00005e40| 00 04 bc 05 74 06 30 06 | ec 07 a4 08 60 09 18 09 |....t.0.|....`...|
|00005e50| d4 0a 90 f7 ff 00 15 18 | 03 f7 45 78 61 6d 70 6c |........|..Exampl|
|00005e60| 65 3a ff 00 15 18 00 f7 | 0d 0d 54 68 65 20 63 6f |e:......|..The co|
|00005e70| 64 65 20 69 6e 20 74 68 | 65 20 6f 62 6a 65 63 74 |de in th|e object|
|00005e80| 20 73 65 6e 64 69 6e 67 | 20 74 68 65 20 6e 6f 74 | sending| the not|
|00005e90| 69 66 69 63 61 74 69 6f | 6e 20 6d 65 73 73 61 67 |ificatio|n messag|
|00005ea0| 65 20 28 69 6e 20 74 68 | 69 73 20 65 78 61 6d 70 |e (in th|is examp|
|00005eb0| 6c 65 2c 20 74 68 65 20 | 57 69 6e 64 6f 77 20 6f |le, the |Window o|
|00005ec0| 62 6a 65 63 74 29 20 77 | 6f 75 6c 64 20 6c 6f 6f |bject) w|ould loo|
|00005ed0| 6b 20 73 6f 6d 65 74 68 | 69 6e 67 20 6c 69 6b 65 |k someth|ing like|
|00005ee0| 20 74 68 69 73 3a 0d fc | 00 9d 02 a4 00 9c 00 0c | this:..|........|
|00005ef0| 02 8c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00005f00| 08 60 09 18 09 d4 0a 90 | f7 f9 00 f7 ff 00 16 18 |.`......|........|
|00005f10| 01 f7 0d fc 00 73 02 ce | 00 72 00 0c 02 8c 03 48 |.....s..|.r.....H|
|00005f20| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00005f30| 09 d4 0a 90 f7 69 66 28 | 64 65 6c 65 67 61 74 65 |.....if(|delegate|
|00005f40| 20 26 26 5b 64 65 6c 65 | 67 61 74 65 20 72 65 73 | &&[dele|gate res|
|00005f50| 70 6f 6e 64 73 54 6f 3a | 40 73 65 6c 65 63 74 6f |pondsTo:|@selecto|
|00005f60| 72 28 77 69 6e 64 6f 77 | 57 69 6c 6c 43 6c 6f 73 |r(window|WillClos|
|00005f70| 65 3a 29 5d 29 0d 09 09 | 5b 64 65 6c 65 67 61 74 |e:)])...|[delegat|
|00005f80| 65 20 77 69 6e 64 6f 77 | 57 69 6c 6c 43 6c 6f 73 |e window|WillClos|
|00005f90| 65 3a 73 65 6c 66 5d 3b | 0d fc 00 5a 02 a4 00 5a |e:self];|...Z...Z|
|00005fa0| 00 0c 04 00 04 bc 05 74 | 06 30 06 ec 07 a4 08 60 |.......t|.0.....`|
|00005fb0| 09 18 09 d4 0a 90 f7 ff | 00 16 18 01 f7 0d 0d fc |........|........|
|00005fc0| 00 76 02 a4 00 75 00 0c | 02 8c 03 48 04 00 04 bc |.v...u..|...H....|
|00005fd0| 05 74 06 30 06 ec 07 a4 | 08 60 09 18 09 d4 0a 90 |.t.0....|.`......|
|00005fe0| f7 ff 00 15 18 00 f7 46 | 6f 72 20 57 69 6e 64 6f |.......F|or Windo|
|00005ff0| 77 27 73 20 20 ff 00 16 | 18 01 f7 77 69 6e 64 6f |w's ...|...windo|
|00006000| 77 57 69 6c 6c 43 6c 6f | 73 65 3a ff 00 15 18 00 |wWillClo|se:.....|
|00006010| f7 20 6e 6f 74 69 66 69 | 63 61 74 69 6f 6e 20 6d |. notifi|cation m|
|00006020| 65 73 73 61 67 65 2c 20 | 69 66 20 74 68 65 20 64 |essage, |if the d|
|00006030| 65 6c 65 67 61 74 65 20 | 72 65 74 75 72 6e 73 20 |elegate |returns |
|00006040| ff 00 15 18 01 f7 6e 69 | 6c ff 00 15 18 00 f7 2c |......ni|l......,|
|00006050| 20 74 68 65 20 77 69 6e | 64 6f 77 20 77 69 6c 6c | the win|dow will|
|00006060| 20 6e 6f 74 20 63 6c 6f | 73 65 20 28 74 68 65 20 | not clo|se (the |
|00006070| 63 6f 64 65 20 61 62 6f | 76 65 20 64 6f 65 73 20 |code abo|ve does |
|00006080| 6e 6f 74 20 72 65 66 6c | 65 63 74 20 74 68 61 74 |not refl|ect that|
|00006090| 29 2e f9 00 f7 ff 00 16 | 18 01 f7 0d 01 f2 fc 00 |).......|........|
|000060a0| 5b 02 a4 00 5b 00 0c 02 | 8c 03 48 04 00 04 bc 05 |[...[...|..H.....|
|000060b0| 74 06 30 06 ec 07 a4 08 | 60 09 18 09 d4 0a 90 f7 |t.0.....|`.......|
|000060c0| ff 00 15 24 03 f7 46 69 | 72 73 74 20 52 65 73 70 |...$..Fi|rst Resp|
|000060d0| 6f 6e 64 65 72 0d ff 00 | 15 18 00 f7 fc 00 74 02 |onder...|......t.|
|000060e0| a4 00 74 00 0c 02 8c 03 | 48 04 00 04 bc 05 74 06 |..t.....|H.....t.|
|000060f0| 30 06 ec 07 a4 08 60 09 | 18 09 d4 0a 90 f7 0d fc |0.....`.|........|
|00006100| 00 5f 02 a4 00 5f 00 0c | 03 48 04 00 04 bc 05 74 |._..._..|.H.....t|
|00006110| 06 30 06 ec 07 a4 08 60 | 09 18 09 d4 0a 90 f7 f9 |.0.....`|........|
|00006120| 00 f7 ff 00 15 18 03 f7 | 6b 65 79 44 6f 77 6e 20 |........|keyDown |
|00006130| 65 76 65 6e 74 73 20 61 | 72 65 20 64 69 73 70 61 |events a|re dispa|
|00006140| 74 63 68 65 64 20 74 6f | 20 74 68 65 20 66 72 6f |tched to| the fro|
|00006150| 6e 74 6d 6f 73 74 20 77 | 69 6e 64 6f 77 20 77 69 |ntmost w|indow wi|
|00006160| 6c 6c 69 6e 67 20 74 6f | 20 61 63 63 65 70 74 20 |lling to| accept |
|00006170| 6b 65 79 44 6f 77 6e 20 | 65 76 65 6e 74 73 3a ff |keyDown |events:.|
|00006180| 00 15 18 00 f7 0d fc 00 | 89 02 a4 00 89 00 0c 03 |........|........|
|00006190| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000061a0| 18 09 d4 0a 90 f7 0d 44 | 65 74 65 72 6d 69 6e 65 |.......D|etermine|
|000061b0| 64 20 62 79 20 77 69 6e | 64 6f 77 27 73 20 ff 00 |d by win|dow's ..|
|000061c0| 15 18 03 f7 65 76 65 6e | 74 4d 61 73 6b ff 00 15 |....even|tMask...|
|000061d0| 18 00 f7 2e 0d 0d 44 65 | 66 61 75 6c 74 20 6f 66 |......De|fault of|
|000061e0| 20 61 20 74 69 74 6c 65 | 64 20 77 69 6e 64 6f 77 | a title|d window|
|000061f0| 20 69 73 20 74 6f 20 61 | 63 63 65 70 74 20 ff 00 | is to a|ccept ..|
|00006200| 15 18 03 f7 6b 65 79 44 | 6f 77 6e ff 00 15 18 00 |....keyD|own.....|
|00006210| f7 20 65 76 65 6e 74 73 | 2e 0d 0d fc 00 5f 02 a4 |. events|....._..|
|00006220| 00 5f 00 0c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |._...H..|...t.0..|
|00006230| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 18 03 |...`....|........|
|00006240| f7 57 69 74 68 69 6e 20 | 61 20 77 69 6e 64 6f 77 |.Within |a window|
|00006250| 2c 20 6b 65 79 44 6f 77 | 6e 20 65 76 65 6e 74 73 |, keyDow|n events|
|00006260| 20 61 72 65 20 64 69 73 | 70 61 74 63 68 65 64 20 | are dis|patched |
|00006270| 74 6f 20 74 68 65 20 77 | 69 6e 64 6f 77 27 73 20 |to the w|indow's |
|00006280| 66 69 72 73 74 52 65 73 | 70 6f 6e 64 65 72 2e 0d |firstRes|ponder..|
|00006290| 03 45 fc 00 70 02 a4 00 | 70 00 0c 03 48 04 00 04 |.E..p...|p...H...|
|000062a0| bc 05 74 06 30 06 ec 07 | a4 08 60 09 18 09 d4 0a |..t.0...|..`.....|
|000062b0| 90 f7 ff 00 15 18 03 f7 | 0d fc 00 5b 02 a4 00 5b |........|...[...[|
|000062c0| 00 0c 02 8c 03 48 04 00 | 04 bc 05 74 06 30 06 ec |.....H..|...t.0..|
|000062d0| 07 a4 08 60 09 18 09 d4 | 0a 90 f7 ff 00 15 24 03 |...`....|......$.|
|000062e0| f7 46 69 72 73 74 20 52 | 65 73 70 6f 6e 64 65 72 |.First R|esponder|
|000062f0| 20 ff 00 15 18 00 f7 28 | 63 6f 6e 74 69 6e 75 65 | ......(|continue|
|00006300| 64 29 ff 00 15 18 03 f7 | 0d fc 00 6e 02 a4 00 6e |d)......|...n...n|
|00006310| 00 0c 03 48 04 00 04 bc | 05 74 06 30 06 ec 07 a4 |...H....|.t.0....|
|00006320| 08 60 09 18 09 d4 0a 90 | f7 0d fc 00 5f 02 a4 00 |.`......|...._...|
|00006330| 5f 00 0c 03 48 04 00 04 | bc 05 74 06 30 06 ec 07 |_...H...|..t.0...|
|00006340| a4 08 60 09 18 09 d4 0a | 90 f7 54 77 6f 20 77 61 |..`.....|..Two wa|
|00006350| 79 73 20 74 6f 20 62 65 | 63 6f 6d 65 20 61 20 20 |ys to be|come a |
|00006360| 66 69 72 73 74 52 65 73 | 70 6f 6e 64 65 72 ff 00 |firstRes|ponder..|
|00006370| 15 18 00 f7 0d fc 00 89 | 02 a4 00 89 00 0c 03 48 |........|.......H|
|00006380| 04 00 04 bc 05 74 06 30 | 06 ec 07 a4 08 60 09 18 |.....t.0|.....`..|
|00006390| 09 d4 0a 90 f7 0d fc 00 | 84 02 a4 00 6d 00 0c 03 |........|....m...|
|000063a0| 48 04 00 04 bc 05 74 06 | 30 06 ec 07 a4 08 60 09 |H.....t.|0.....`.|
|000063b0| 18 09 d4 0a 90 f7 31 2e | 20 20 4f 6e 20 ff 00 15 |......1.| On ...|
|000063c0| 18 03 f7 6d 6f 75 73 65 | 44 6f 77 6e 20 ff 00 15 |...mouse|Down ...|
|000063d0| 18 00 f7 65 76 65 6e 74 | 2c 20 74 68 65 20 77 69 |...event|, the wi|
|000063e0| 6e 64 6f 77 20 61 73 6b | 73 20 61 20 76 69 65 77 |ndow ask|s a view|
|000063f0| 20 6f 62 6a 65 63 74 20 | 69 66 20 69 74 20 77 61 | object |if it wa|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.