home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 (1993) / nebula.bin / SourceCode / OOP_Course / Slides / 8.AdvancedTopics.wn / WNDocument.wn < prev    next >
Unknown  |  1993-06-20  |  27.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.

ConfidenceProgramDetectionMatch TypeSupport
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 6c fd 04 00 63 3c |........|..l...c<|
|00000010| 04 00 5c ef 04 00 3b 27 | 04 00 5c f1 00 04 be f0 |..\...;'|..\.....|
|00000020| 00 04 bf 00 00 04 be fc | 00 04 be e4 00 04 be e8 |........|........|
|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 ff | 00 00 00 00 01 00 f0 59 |........|.......Y|
|00000050| 00 00 f2 ca 02 fc 00 00 | 0f a7 00 39 05 47 00 74 |........|...9.G.t|
|00000060| 06 ce 02 63 00 3d 00 00 | 01 b3 ff 00 00 00 00 00 |...c.=..|........|
|00000070| 00 00 00 00 00 00 01 01 | 03 18 00 00 00 48 00 48 |........|.....H.H|
|00000080| 00 00 00 04 02 64 03 18 | 00 00 00 00 02 64 03 18 |.....d..|.....d..|
|00000090| 00 64 00 04 19 00 04 00 | 41 10 00 08 f1 33 00 d0 |.d......|A....3..|
|000000a0| 00 39 04 00 41 10 00 08 | f1 33 00 d0 00 39 00 9f |.9..A...|.3...9..|
|000000b0| 00 00 00 00 00 00 00 00 | 00 ff 00 00 00 00 00 00 |........|........|
|000000c0| 6f 69 00 00 6f 69 00 00 | 6f 69 00 00 e6 f3 00 00 |oi..oi..|oi......|
|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 6c fd | 04 00 63 3c 04 00 5c ef |......l.|..c<..\.|
|00000110| 04 00 3b 27 04 00 5c f1 | 00 04 be f0 00 04 bf 00 |..;'..\.|........|
|00000120| 00 04 be fc 00 04 be e4 | 00 04 be e8 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 ff 00 00 00 00 | 01 00 f0 59 00 00 f2 ca |........|...Y....|
|00000150| 02 fc 00 00 0f a7 00 39 | 05 47 00 74 06 ce 02 63 |.......9|.G.t...c|
|00000160| 00 3d 00 00 01 b3 ff 00 | 00 00 00 00 00 00 00 00 |.=......|........|
|00000170| 00 00 01 01 03 18 00 00 | 00 48 00 48 00 00 00 04 |........|.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 41 10 00 08 | f1 33 00 d0 00 39 04 00 |....A...|.3...9..|
|000001a0| 41 10 00 08 f1 33 00 d0 | 00 39 00 9f 00 00 00 00 |A....3..|.9......|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 6f 69 00 00 |........|....oi..|
|000001c0| 6f 69 00 00 6f 69 00 00 | e6 f3 00 00 00 00 00 00 |oi..oi..|........|
|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 1f 0d ff |........|........|
|00000210| 00 15 18 01 f7 49 6e 73 | 74 61 6e 63 65 20 44 72 |.....Ins|tance Dr|
|00000220| 61 77 69 6e 67 ff 00 15 | 0e 00 f7 0d 0d 00 03 0d |awing...|........|
|00000230| 0d 0d 00 1a 0d ff 00 15 | 18 01 f7 43 6f 6d 70 6f |........|...Compo|
|00000240| 73 69 74 69 6e 67 0d ff | 00 15 0e 00 f7 0d 00 20 |siting..|....... |
|00000250| 0d ff 00 15 18 01 f7 43 | 6f 6d 70 6f 73 69 74 69 |.......C|ompositi|
|00000260| 6e 67 20 4d 6f 64 65 73 | ff 00 15 0e 00 f7 0d 0d |ng Modes|........|
|00000270| 00 2e 0d ff 00 15 18 01 | f7 43 6f 6d 70 6f 73 69 |........|.Composi|
|00000280| 74 69 6e 67 3a 20 20 44 | 65 74 61 69 6c 73 ff 00 |ting: D|etails..|
|00000290| 15 0e 00 f7 0d fc 00 74 | 02 d1 00 74 00 0e f7 0d |.......t|...t....|
|000002a0| 00 36 0d fc 00 49 02 d1 | 00 49 00 0e f7 ff 00 15 |.6...I..|.I......|
|000002b0| 18 01 f7 43 6f 6d 70 6f | 73 69 74 69 6e 67 20 45 |...Compo|siting E|
|000002c0| 78 61 6d 70 6c 65 0d fc | 00 74 02 d1 00 74 00 0e |xample..|.t...t..|
|000002d0| f7 ff 00 15 0e 00 f7 0d | 00 46 0d fc 00 4a 02 d1 |........|.F...J..|
|000002e0| 00 4a 00 0e f7 ff 00 15 | 18 01 f7 43 6f 6d 70 6f |.J......|...Compo|
|000002f0| 73 69 74 69 6e 67 3a 20 | 20 4e 6f 74 65 73 20 66 |siting: | Notes f|
|00000300| 6f 72 20 74 68 65 20 63 | 75 72 69 6f 75 73 ff 00 |or the c|urious..|
|00000310| 15 0e 00 f7 0d fc 00 74 | 02 d1 00 74 00 0e f7 0d |.......t|...t....|
|00000320| 00 03 0d 0d 0d 00 28 fc | 00 48 02 d1 00 48 00 0e |......(.|.H...H..|
|00000330| f7 ff 00 15 0e 01 f7 0d | ff 00 15 18 01 f7 53 63 |........|......Sc|
|00000340| 72 6f 6c 6c 69 6e 67 ff | 00 15 0e 01 f7 0d 0d 00 |rolling.|........|
|00000350| 35 0d ff 00 15 18 01 f7 | 53 63 72 6f 6c 6c 69 6e |5.......|Scrollin|
|00000360| 67 3a 20 20 41 6e 20 65 | 78 61 6d 70 6c 65 20 6f |g: An e|xample o|
|00000370| 66 20 68 6f 77 20 69 74 | 20 77 6f 72 6b 73 ff 00 |f how it| works..|
|00000380| 15 0e 01 f7 0d 0d 00 18 | 0d ff 00 15 18 01 f7 53 |........|.......S|
|00000390| 63 72 6f 6c 6c 69 6e 67 | ff 00 15 0e 01 f7 0d 0d |crolling|........|
|000003a0| 00 20 0d ff 00 15 18 01 | f7 53 63 72 6f 6c 6c 69 |. ......|.Scrolli|
|000003b0| 6e 67 3a 20 20 4e 6f 74 | 65 73 ff 00 15 0e 01 f7 |ng: Not|es......|
|000003c0| 0d 0d 00 37 fc 00 74 02 | d2 00 74 00 0e 02 28 02 |...7..t.|..t...(.|
|000003d0| 8c 03 d4 04 e8 06 f0 00 | 07 a4 f7 09 fb 00 00 00 |........|........|
|000003e0| 01 01 75 02 15 57 4e 47 | 72 61 70 68 69 63 2e 30 |..u..WNG|raphic.0|
|000003f0| 39 32 31 30 37 2e 65 70 | 73 f7 0d 00 1d 20 20 20 |92107.ep|s.... |
|00000400| fb 00 00 00 01 01 0d 01 | 77 73 65 63 34 2e 32 33 |........|wsec4.23|
|00000410| 2e 70 73 2e 65 70 73 00 | f7 0d 00 03 0d 0d 0d 00 |.ps.eps.|........|
|00000420| 26 0d ff 00 15 18 01 f7 | 41 64 76 61 6e 63 65 64 |&.......|Advanced|
|00000430| 20 45 76 65 6e 74 20 48 | 61 6e 64 6c 69 6e 67 ff | Event H|andling.|
|00000440| 00 15 0e 01 f7 0d 0d 00 | 29 0d fc 00 4a 02 d1 00 |........|)...J...|
|00000450| 4a 00 0e f7 ff 00 15 18 | 01 f7 49 6e 73 74 61 6e |J.......|..Instan|
|00000460| 63 65 20 44 72 61 77 69 | 6e 67 0d ff 00 15 0e 00 |ce Drawi|ng......|
|00000470| f7 0d 00 75 0d fc 00 4a | 02 ee 00 4a 00 0e f7 ff |...u...J|...J....|
|00000480| 00 15 18 01 f7 45 78 3a | ff 00 15 18 03 f7 20 ff |.....Ex:|...... .|
|00000490| 00 15 18 01 f7 66 72 6f | 6d ff 00 15 18 03 f7 20 |.....fro|m...... |
|000004a0| 6d 6f 75 73 65 44 6f 77 | 6e 3a ff 00 15 18 01 f7 |mouseDow|n:......|
|000004b0| 20 20 6d 65 74 68 6f 64 | 20 69 6e 20 44 72 61 77 | method| in Draw|
|000004c0| 56 69 65 77 20 28 53 69 | 6d 70 6c 65 44 72 61 77 |View (Si|mpleDraw|
|000004d0| 29 ff 00 15 14 01 f7 0d | ff 00 15 0e 00 f7 fc 00 |).......|........|
|000004e0| 4a 02 d1 00 4a 00 0e f7 | 0d 00 be ff 00 15 14 01 |J...J...|........|
|000004f0| f7 fc 00 5d 02 d1 00 5d | 00 0e 01 d8 02 30 03 d4 |...]...]|.....0..|
|00000500| 04 e8 06 f0 00 07 a4 f7 | 0d 0d 0d 0d 0d 0d fc 00 |........|........|
|00000510| 74 02 d1 00 74 00 0e 02 | 28 02 88 03 d4 04 e8 06 |t...t...|(.......|
|00000520| f0 00 07 a4 f7 0d fc 00 | 74 02 d1 00 74 02 0e 02 |........|t...t...|
|00000530| 28 02 88 03 d4 04 e8 06 | f0 00 07 a4 f7 0d fc 00 |(.......|........|
|00000540| 49 02 d1 00 49 02 0e 02 | 28 02 88 03 d4 04 e8 06 |I...I...|(.......|
|00000550| f0 00 07 a4 f7 ff 00 15 | 30 00 f7 f6 ff 00 15 30 |........|0......0|
|00000560| 01 f7 49 6e 73 74 61 6e | 63 65 20 44 72 61 77 69 |..Instan|ce Drawi|
|00000570| 6e 67 ff 00 15 14 01 f7 | 0d fc 00 74 02 d1 00 74 |ng......|...t...t|
|00000580| 02 0e 02 28 02 88 03 d4 | 04 e8 06 f0 00 07 a4 f7 |...(....|........|
|00000590| 0d fc 00 74 02 d1 00 74 | 02 0e 02 28 02 8c 03 d4 |...t...t|...(....|
|000005a0| 04 e8 06 f0 00 07 a4 f7 | 0d 00 76 fc 00 8b 02 d1 |........|..v.....|
|000005b0| 00 75 00 0e 02 30 02 8c | 03 d4 04 e8 06 f0 00 07 |.u...0..|........|
|000005c0| a4 f7 ff 00 15 18 01 f7 | b7 09 49 6e 73 74 61 6e |........|..Instan|
|000005d0| 63 65 20 64 72 61 77 69 | 6e 67 20 77 6f 72 6b 73 |ce drawi|ng works|
|000005e0| 20 62 79 20 64 72 61 77 | 69 6e 67 20 6f 6e 6c 79 | by draw|ing only|
|000005f0| 20 6f 6e 2d 73 63 72 65 | 65 6e 20 61 6e 64 20 72 | on-scre|en and r|
|00000600| 65 73 74 6f 72 69 6e 67 | 20 66 72 6f 6d 20 6f 66 |estoring| from of|
|00000610| 66 2d 73 63 72 65 65 6e | 3a 0d ff 00 15 14 01 f7 |f-screen|:.......|
|00000620| 0d 00 30 fc 00 4a 02 d1 | 00 4a 02 0e 01 d8 02 30 |..0..J..|.J.....0|
|00000630| 03 d4 04 e8 06 f0 00 07 | a4 f7 fb 00 00 00 01 01 |........|........|
|00000640| 80 02 38 73 65 63 34 2e | 32 2e 70 73 2e 65 70 73 |..8sec4.|2.ps.eps|
|00000650| 00 f7 0d 02 f8 fc 00 47 | 02 d1 00 47 00 0e 01 90 |.......G|...G....|
|00000660| 02 88 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d 0d ff 00 |........|........|
|00000670| 15 18 01 f7 b7 09 49 6e | 73 74 61 6e 63 65 20 44 |......In|stance D|
|00000680| 72 61 77 69 6e 67 20 72 | 65 71 75 69 72 65 73 20 |rawing r|equires |
|00000690| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 74 |the foll|owing st|
|000006a0| 65 70 73 3a 0d fc 00 74 | 02 d1 00 74 00 0e 02 28 |eps:...t|...t...(|
|000006b0| 02 88 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d fc 00 66 |........|.......f|
|000006c0| 02 d1 00 66 00 0e 01 dc | 02 34 03 d4 04 e8 06 f0 |...f....|.4......|
|000006d0| 00 07 a4 f7 b7 09 31 2e | 20 20 54 75 72 6e 20 69 |......1.| Turn i|
|000006e0| 6e 73 74 61 6e 63 65 20 | 64 72 61 77 69 6e 67 20 |nstance |drawing |
|000006f0| 6f 6e 0d 0d ff 00 15 18 | 00 f7 09 b7 09 50 53 73 |on......|.....PSs|
|00000700| 65 74 69 6e 73 74 61 6e | 63 65 28 59 45 53 29 0d |etinstan|ce(YES).|
|00000710| 0d 09 b7 09 53 75 62 73 | 65 71 75 65 6e 74 20 64 |....Subs|equent d|
|00000720| 72 61 77 69 6e 67 20 77 | 69 6c 6c 20 62 65 20 6f |rawing w|ill be o|
|00000730| 6e 2d 73 63 72 65 65 6e | 0d 0d ff 00 15 18 01 f7 |n-screen|........|
|00000740| b7 09 32 2e 20 20 45 72 | 61 73 65 20 70 72 65 76 |..2. Er|ase prev|
|00000750| 69 6f 75 73 20 69 6e 73 | 74 61 6e 63 65 20 64 72 |ious ins|tance dr|
|00000760| 61 77 69 6e 67 2c 20 69 | 66 20 61 6e 79 0d 0d ff |awing, i|f any...|
|00000770| 00 15 18 00 f7 09 b7 09 | 50 53 6e 65 77 69 6e 73 |........|PSnewins|
|00000780| 74 61 6e 63 65 28 29 20 | 6f 72 2c 0d 0d 09 b7 09 |tance() |or,.....|
|00000790| 50 53 68 69 64 65 69 6e | 73 74 61 6e 63 65 28 78 |PShidein|stance(x|
|000007a0| 2c 79 2c 77 69 64 74 68 | 2c 68 65 69 67 68 74 29 |,y,width|,height)|
|000007b0| 20 28 70 72 65 66 65 72 | 72 65 64 29 0d 0d 09 b7 | (prefer|red)....|
|000007c0| 09 52 65 73 74 6f 72 65 | 73 20 73 63 72 65 65 6e |.Restore|s screen|
|000007d0| 20 69 6d 61 67 65 20 66 | 72 6f 6d 20 62 61 63 6b | image f|rom back|
|000007e0| 69 6e 67 20 73 74 6f 72 | 65 ff 00 15 14 00 f7 0d |ing stor|e.......|
|000007f0| 0d 0d fc 00 8b 02 d1 00 | 75 00 0e 02 30 02 8c 03 |........|u...0...|
|00000800| d4 04 e8 06 f0 00 07 a4 | f7 ff 00 15 18 01 f7 b7 |........|........|
|00000810| 09 33 2e 20 20 44 72 61 | 77 20 74 72 61 6e 73 69 |.3. Dra|w transi|
|00000820| 74 6f 72 79 20 69 6d 61 | 67 65 20 61 6e 64 20 72 |tory ima|ge and r|
|00000830| 65 70 65 61 74 20 6c 6f | 6f 70 0d fc 00 66 02 d1 |epeat lo|op...f..|
|00000840| 00 66 00 0e 01 dc 02 34 | 03 d4 04 e8 06 f0 00 07 |.f.....4|........|
|00000850| a4 f7 0d 0d fc 00 8b 02 | d1 00 75 00 0e 02 30 02 |........|..u...0.|
|00000860| 8c 03 d4 04 e8 06 f0 00 | 07 a4 f7 b7 09 34 2e 20 |........|.....4. |
|00000870| 20 57 68 65 6e 20 64 6f | 6e 65 2c 20 72 65 73 74 | When do|ne, rest|
|00000880| 6f 72 65 20 62 61 63 6b | 67 72 6f 75 6e 64 2c 20 |ore back|ground, |
|00000890| 74 75 72 6e 20 69 6e 73 | 74 61 6e 63 65 20 64 72 |turn ins|tance dr|
|000008a0| 61 77 69 6e 67 20 6f 66 | 66 2c 20 61 6e 64 20 64 |awing of|f, and d|
|000008b0| 72 61 77 20 66 69 6e 61 | 6c 20 72 65 73 75 6c 74 |raw fina|l result|
|000008c0| 0d fc 00 66 02 d1 00 66 | 00 0e 01 dc 02 34 03 d4 |...f...f|.....4..|
|000008d0| 04 e8 06 f0 00 07 a4 f7 | 0d fc 00 a3 02 d1 00 8d |........|........|
|000008e0| 00 0e 02 30 02 8c 03 d4 | 04 e8 06 f0 00 07 a4 f7 |...0....|........|
|000008f0| ff 00 15 18 00 f7 b7 09 | 50 53 73 65 74 69 6e 73 |........|PSsetins|
|00000900| 74 61 6e 63 65 28 4e 4f | 29 0d 0d b7 09 50 53 6e |tance(NO|)....PSn|
|00000910| 65 77 69 6e 73 74 61 6e | 63 65 28 29 20 6f 72 20 |ewinstan|ce() or |
|00000920| 5b 73 65 6c 66 20 64 69 | 73 70 6c 61 79 5d ff 00 |[self di|splay]..|
|00000930| 15 14 00 f7 0d fc 00 66 | 02 d1 00 66 00 0e 01 dc |.......f|...f....|
|00000940| 02 34 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d 01 d7 0d |.4......|........|
|00000950| fc 00 8b 02 d1 00 75 00 | 0e 02 30 02 8c 03 d4 04 |......u.|..0.....|
|00000960| e8 06 f0 00 07 a4 f7 ff | 00 15 18 01 f7 b7 09 43 |........|.......C|
|00000970| 6f 6e 73 69 64 65 72 20 | ff 00 15 18 03 f7 63 6f |onsider |......co|
|00000980| 6d 70 6f 73 69 74 69 6e | 67 ff 00 15 18 01 f7 20 |mpositin|g...... |
|00000990| 66 72 6f 6d 20 61 6e 20 | 6f 66 66 2d 73 63 72 65 |from an |off-scre|
|000009a0| 65 6e 20 77 69 6e 64 6f | 77 20 61 73 20 61 6e 20 |en windo|w as an |
|000009b0| 61 6c 74 65 72 6e 61 74 | 69 76 65 0d fc 00 73 02 |alternat|ive...s.|
|000009c0| d1 00 73 00 0e 02 28 02 | 88 03 d4 04 e8 06 f0 00 |..s...(.|........|
|000009d0| 07 a4 f7 0d fc 00 a4 02 | d1 00 8e 00 0e 02 30 02 |........|......0.|
|000009e0| 8c 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 15 18 00 |........|........|
|000009f0| f7 b7 09 55 73 65 20 62 | 75 66 66 65 72 65 64 20 |...Use b|uffered |
|00000a00| 77 69 6e 64 6f 77 73 0d | 0d b7 09 09 44 72 61 77 |windows.|....Draw|
|00000a10| 20 74 72 61 6e 73 69 74 | 6f 72 79 20 69 6d 61 67 | transit|ory imag|
|00000a20| 65 20 69 6e 20 61 6e 20 | 6f 66 66 2d 73 63 72 65 |e in an |off-scre|
|00000a30| 65 6e 20 77 69 6e 64 6f | 77 0d 0d b7 09 43 6f 6d |en windo|w....Com|
|00000a40| 70 6f 73 69 74 65 20 61 | 72 65 61 20 74 6f 20 62 |posite a|rea to b|
|00000a50| 65 20 61 66 66 65 63 74 | 65 64 20 69 6e 74 6f 20 |e affect|ed into |
|00000a60| 61 6e 6f 74 68 65 72 20 | 6f 66 66 2d 73 63 72 65 |another |off-scre|
|00000a70| 65 6e 20 77 69 6e 64 6f | 77 0d 0d b7 09 43 6f 6d |en windo|w....Com|
|00000a80| 70 6f 73 69 74 65 20 69 | 6e 20 74 72 61 6e 73 69 |posite i|n transi|
|00000a90| 74 6f 72 79 20 69 6d 61 | 67 65 20 61 6e 64 20 66 |tory ima|ge and f|
|00000aa0| 6c 75 73 68 20 74 6f 20 | 73 63 72 65 65 6e 0d 0d |lush to |screen..|
|00000ab0| b7 09 52 65 73 74 6f 72 | 65 20 6f 72 69 67 69 6e |..Restor|e origin|
|00000ac0| 61 6c 20 69 6d 61 67 65 | 20 66 72 6f 6d 20 6f 66 |al image| from of|
|00000ad0| 66 2d 73 63 72 65 65 6e | 20 77 69 6e 64 6f 77 20 |f-screen| window |
|00000ae0| 26 20 66 6c 75 73 68 0d | fc 00 8b 02 d1 00 75 00 |& flush.|......u.|
|00000af0| 0e 02 30 02 8c 03 d4 04 | e8 06 f0 00 07 a4 f7 0d |..0.....|........|
|00000b00| fc 00 a4 02 d1 00 8e 00 | 0e 02 30 02 8c 03 d4 04 |........|..0.....|
|00000b10| e8 06 f0 00 07 a4 f7 b7 | 09 52 65 70 65 61 74 ff |........|.Repeat.|
|00000b20| 00 15 14 01 f7 0d 00 c2 | fc 00 73 02 d1 00 73 00 |........|..s...s.|
|00000b30| 0e 02 28 02 88 03 d4 04 | e8 06 f0 00 07 a4 f7 0d |..(.....|........|
|00000b40| fc 00 8c 02 d1 00 76 00 | 0e 02 30 02 8c 03 d4 04 |......v.|..0.....|
|00000b50| e8 06 f0 00 07 a4 f7 ff | 00 15 18 01 f7 0d b7 09 |........|........|
|00000b60| 54 72 61 64 65 2d 6f 66 | 66 73 20 77 69 74 68 20 |Trade-of|fs with |
|00000b70| 43 6f 6d 70 6f 73 69 74 | 69 6e 67 0d fc 00 a4 02 |Composit|ing.....|
|00000b80| d1 00 8e 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |......0.|........|
|00000b90| 07 a4 f7 0d ff 00 15 18 | 00 f7 b7 09 4e 6f 20 66 |........|....No f|
|00000ba0| 6c 69 63 6b 65 72 0d 0d | b7 09 4d 61 79 20 72 65 |licker..|..May re|
|00000bb0| 71 75 69 72 65 20 6c 65 | 73 73 20 73 70 61 63 65 |quire le|ss space|
|00000bc0| 20 69 66 20 72 65 74 61 | 69 6e 65 64 20 77 69 6e | if reta|ined win|
|00000bd0| 64 6f 77 73 20 61 72 65 | 20 62 65 69 6e 67 20 75 |dows are| being u|
|00000be0| 73 65 64 ff 00 15 14 00 | f7 0d 00 53 ff 00 15 14 |sed.....|...S....|
|00000bf0| 01 f7 fc 00 74 02 d1 00 | 74 02 0e 02 28 02 88 03 |....t...|t...(...|
|00000c00| d4 04 e8 06 f0 00 07 a4 | f7 0d 0d f5 0d 0d 0d 0d |........|........|
|00000c10| fc 00 49 02 d1 00 49 02 | 0e 02 28 02 88 03 d4 04 |..I...I.|..(.....|
|00000c20| e8 06 f0 00 07 a4 f7 ff | 00 15 30 01 f7 43 6f 6d |........|..0..Com|
|00000c30| 70 6f 73 69 74 69 6e 67 | ff 00 15 14 01 f7 0d 02 |positing|........|
|00000c40| 7e fc 00 8c 02 d1 00 76 | 00 0e 02 30 02 8c 03 d4 |~......v|...0....|
|00000c50| 04 e8 06 f0 00 07 a4 f7 | ff 00 15 18 01 f7 b7 09 |........|........|
|00000c60| 45 76 65 72 79 20 70 69 | 78 65 6c 20 68 61 73 20 |Every pi|xel has |
|00000c70| 61 20 63 6f 6c 6f 72 20 | 61 6e 64 20 61 6e 20 6f |a color |and an o|
|00000c80| 70 61 63 69 74 79 20 6f | 72 20 63 6f 76 65 72 61 |pacity o|r covera|
|00000c90| 67 65 0d fc 00 a4 02 d1 | 00 8e 00 0e 02 30 02 8c |ge......|.....0..|
|00000ca0| 03 d4 04 e8 06 f0 00 07 | a4 f7 0d ff 00 15 18 00 |........|........|
|00000cb0| f7 b7 09 43 6f 6c 6f 72 | 20 63 6f 72 72 65 73 70 |...Color| corresp|
|00000cc0| 6f 6e 64 73 20 74 6f 20 | 69 74 73 20 67 72 61 79 |onds to |its gray|
|00000cd0| 20 6c 65 76 65 6c 3a 20 | 20 77 68 69 74 65 2c 20 | level: | white, |
|00000ce0| 62 6c 61 63 6b 20 6f 72 | 20 73 6f 6d 65 20 69 6e |black or| some in|
|00000cf0| 74 65 72 6d 65 64 69 61 | 74 65 20 67 72 61 79 20 |termedia|te gray |
|00000d00| 6c 65 76 65 6c 0d 0d b7 | 09 4f 70 61 63 69 74 79 |level...|.Opacity|
|00000d10| 20 6f 72 20 63 6f 76 65 | 72 61 67 65 20 73 70 65 | or cove|rage spe|
|00000d20| 63 69 66 69 65 73 20 74 | 68 65 20 64 65 67 72 65 |cifies t|he degre|
|00000d30| 65 20 74 68 65 20 70 69 | 78 65 6c 20 77 69 6c 6c |e the pi|xel will|
|00000d40| 20 68 69 64 65 20 61 20 | 70 69 78 65 6c 20 75 6e | hide a |pixel un|
|00000d50| 64 65 72 6e 65 61 74 68 | 20 69 74 2e 20 20 41 20 |derneath| it. A |
|00000d60| 70 69 78 65 6c 20 63 61 | 6e 20 62 65 20 74 6f 74 |pixel ca|n be tot|
|00000d70| 61 6c 6c 79 20 6f 70 61 | 71 75 65 2c 20 74 6f 74 |ally opa|que, tot|
|00000d80| 61 6c 6c 79 20 74 72 61 | 6e 73 70 61 72 65 6e 74 |ally tra|nsparent|
|00000d90| 2c 20 6f 72 20 73 6f 6d | 65 20 69 6e 74 65 72 6d |, or som|e interm|
|00000da0| 65 64 69 61 74 65 20 6c | 65 76 65 6c 0d 0d fc 00 |ediate l|evel....|
|00000db0| 8c 02 d1 00 76 00 0e 02 | 30 02 8c 03 d4 04 e8 06 |....v...|0.......|
|00000dc0| f0 00 07 a4 f7 ff 00 15 | 18 01 f7 b7 09 54 68 65 |........|.....The|
|00000dd0| 20 63 6f 6d 70 6f 73 69 | 74 69 6e 67 20 6f 70 65 | composi|ting ope|
|00000de0| 72 61 74 6f 72 73 20 75 | 73 65 20 74 68 65 20 63 |rators u|se the c|
|00000df0| 6f 6c 6f 72 20 61 6e 64 | 20 61 6c 70 68 61 20 76 |olor and| alpha v|
|00000e00| 61 6c 75 65 73 20 6f 66 | 20 72 65 73 70 65 63 74 |alues of| respect|
|00000e10| 69 76 65 20 70 69 78 65 | 6c 73 20 74 6f 20 63 6f |ive pixe|ls to co|
|00000e20| 6d 62 69 6e 65 20 74 68 | 65 6d 20 74 6f 20 66 6f |mbine th|em to fo|
|00000e30| 72 6d 20 61 20 72 65 73 | 75 6c 74 69 6e 67 20 69 |rm a res|ulting i|
|00000e40| 6d 61 67 65 0d fc 00 a4 | 02 d1 00 8e 00 0e 02 30 |mage....|.......0|
|00000e50| 02 8c 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d ff 00 15 |........|........|
|00000e60| 18 00 f7 b7 09 46 6f 6c | 6c 6f 77 69 6e 67 20 65 |.....Fol|lowing e|
|00000e70| 78 61 6d 70 6c 65 73 20 | 61 73 73 75 6d 65 20 77 |xamples |assume w|
|00000e80| 68 69 74 65 20 70 69 78 | 65 6c 73 20 61 72 65 20 |hite pix|els are |
|00000e90| 74 72 61 6e 73 70 61 72 | 65 6e 74 3b 20 6e 6f 6e |transpar|ent; non|
|00000ea0| 2d 77 68 69 74 65 20 70 | 69 78 65 6c 73 20 61 72 |-white p|ixels ar|
|00000eb0| 65 20 6f 70 61 71 75 65 | ff 00 15 14 00 f7 0d 00 |e opaque|........|
|00000ec0| 37 ff 00 15 14 01 f7 fc | 00 86 02 d1 00 86 00 0e |7.......|........|
|00000ed0| 02 30 02 88 03 d4 04 e8 | 06 f0 00 07 a4 f7 f5 fb |.0......|........|
|00000ee0| 00 00 00 01 01 cd 01 70 | 73 65 63 34 2e 38 2e 70 |.......p|sec4.8.p|
|00000ef0| 73 2e 65 70 73 00 f7 0d | 00 34 fc 00 74 02 d1 00 |s.eps...|.4..t...|
|00000f00| 74 00 0e 02 28 02 8c 03 | d4 04 e8 06 f0 00 07 a4 |t...(...|........|
|00000f10| f7 20 20 20 20 fb 00 00 | 00 01 01 cd 01 df 73 65 |. ...|......se|
|00000f20| 63 34 2e 39 2e 70 73 2e | 65 70 73 00 f7 0d 00 36 |c4.9.ps.|eps....6|
|00000f30| fc 00 78 02 d1 00 78 00 | 0e 01 d8 02 30 03 d4 04 |..x...x.|....0...|
|00000f40| e8 06 f0 00 07 a4 f7 20 | 20 20 20 20 fb 00 00 00 |....... | ....|
|00000f50| 01 01 cd 01 ee 73 65 63 | 34 2e 31 30 2e 70 73 2e |.....sec|4.10.ps.|
|00000f60| 65 70 73 00 f7 0d 00 2f | fc 00 9e 02 d1 00 9e 00 |eps..../|........|
|00000f70| 0e 02 88 03 d4 04 e8 06 | f0 00 07 a4 f7 fb 00 00 |........|........|
|00000f80| 00 01 01 6e 01 e8 73 65 | 63 34 2e 31 31 2e 70 73 |...n..se|c4.11.ps|
|00000f90| 2e 65 70 73 00 f7 0d 01 | b0 fc 00 74 02 d1 00 74 |.eps....|...t...t|
|00000fa0| 00 0e 02 30 02 88 03 d4 | 04 e8 06 f0 00 07 a4 f7 |...0....|........|
|00000fb0| f5 0d 0d fc 00 8d 02 d1 | 00 77 00 0e 02 30 02 8c |........|.w...0..|
|00000fc0| 03 d4 04 e8 06 f0 00 07 | a4 f7 ff 00 15 18 01 f7 |........|........|
|00000fd0| b7 09 57 68 65 6e 20 79 | 6f 75 20 73 65 74 20 61 |..When y|ou set a|
|00000fe0| 20 67 72 61 79 20 6c 65 | 76 65 6c 20 75 73 69 6e | gray le|vel usin|
|00000ff0| 67 20 74 68 65 20 ff 00 | 15 18 03 f7 73 65 74 67 |g the ..|....setg|
|00001000| 72 61 79 ff 00 15 18 01 | f7 20 6f 70 65 72 61 74 |ray.....|. operat|
|00001010| 6f 72 3a 0d fc 00 a4 02 | d1 00 8e 00 0e 02 30 02 |or:.....|......0.|
|00001020| 8c 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 15 18 00 |........|........|
|00001030| f7 0d b7 09 59 6f 75 20 | 73 70 65 63 69 66 79 20 |....You |specify |
|00001040| 61 20 67 72 61 79 20 6c | 65 76 65 6c 20 66 72 6f |a gray l|evel fro|
|00001050| 6d 20 30 2e 30 20 28 62 | 6c 61 63 6b 29 20 74 6f |m 0.0 (b|lack) to|
|00001060| 20 31 2e 30 20 28 77 68 | 69 74 65 29 0d 0d b7 09 | 1.0 (wh|ite)....|
|00001070| 50 6f 73 74 73 63 72 69 | 70 74 20 6d 61 63 68 69 |Postscri|pt machi|
|00001080| 6e 65 72 79 20 6d 61 70 | 73 20 74 68 65 20 73 70 |nery map|s the sp|
|00001090| 65 63 69 66 69 65 64 20 | aa 75 73 65 72 ba 20 67 |ecified |.user. g|
|000010a0| 72 61 79 20 74 6f 20 61 | 20 aa 64 65 76 69 63 65 |ray to a| .device|
|000010b0| ba 20 67 72 61 79 0d 0d | b7 09 55 73 65 72 20 67 |. gray..|..User g|
|000010c0| 72 61 79 73 20 6f 66 20 | 30 2e 30 2c 20 2e 33 33 |rays of |0.0, .33|
|000010d0| 33 2c 20 2e 36 36 36 2c | 20 31 2e 30 20 61 72 65 |3, .666,| 1.0 are|
|000010e0| 20 6e 61 74 75 72 61 6c | 20 67 72 61 79 73 3b 20 | natural| grays; |
|000010f0| 61 6c 6c 20 6f 74 68 65 | 72 73 20 61 72 65 20 73 |all othe|rs are s|
|00001100| 79 6e 74 68 65 74 69 63 | 20 62 61 73 65 64 20 6f |ynthetic| based o|
|00001110| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 63 |n the cu|rrent sc|
|00001120| 72 65 65 6e 2c 20 73 70 | 6f 74 20 61 6e 64 20 74 |reen, sp|ot and t|
|00001130| 72 61 6e 73 66 65 72 20 | 66 75 6e 63 74 69 6f 6e |ransfer |function|
|00001140| 73 0d ff 00 15 18 01 f7 | 0d 01 8c 0d fc 00 8d 02 |s.......|........|
|00001150| d1 00 77 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |..w...0.|........|
|00001160| 07 a4 f7 b7 09 41 20 70 | 69 78 65 6c 27 73 20 61 |.....A p|ixel's a|
|00001170| 6c 70 68 61 20 76 61 6c | 75 65 20 72 61 6e 67 65 |lpha val|ue range|
|00001180| 73 20 66 72 6f 6d 20 30 | 2e 30 20 74 6f 20 31 2e |s from 0|.0 to 1.|
|00001190| 30 0d fc 00 a4 02 d1 00 | 8e 00 0e 02 30 02 8c 03 |0.......|....0...|
|000011a0| d4 04 e8 06 f0 00 07 a4 | f7 0d ff 00 15 18 00 f7 |........|........|
|000011b0| b7 09 30 2e 30 20 6d 65 | 61 6e 73 20 74 6f 74 61 |..0.0 me|ans tota|
|000011c0| 6c 6c 79 20 74 72 61 6e | 73 70 61 72 65 6e 74 2c |lly tran|sparent,|
|000011d0| 20 31 2e 30 20 6d 65 61 | 6e 73 20 74 6f 74 61 6c | 1.0 mea|ns total|
|000011e0| 6c 79 20 6f 70 61 71 75 | 65 2c 20 61 6e 64 20 69 |ly opaqu|e, and i|
|000011f0| 6e 74 65 72 6d 65 64 69 | 61 74 65 20 76 61 6c 75 |ntermedi|ate valu|
|00001200| 65 73 20 72 65 70 72 65 | 73 65 6e 74 20 69 6e 74 |es repre|sent int|
|00001210| 65 72 6d 65 64 69 61 74 | 65 20 76 61 6c 75 65 73 |ermediat|e values|
|00001220| 20 6f 66 20 6f 70 61 63 | 69 74 79 0d 0d b7 09 41 | of opac|ity....A|
|00001230| 6c 70 68 61 20 76 61 6c | 75 65 73 20 6f 66 20 30 |lpha val|ues of 0|
|00001240| 2e 30 2c 20 2e 33 33 33 | 2c 20 2e 36 36 36 2c 20 |.0, .333|, .666, |
|00001250| 31 2e 30 20 61 72 65 20 | 72 65 70 72 65 73 65 6e |1.0 are |represen|
|00001260| 74 65 64 20 65 78 61 63 | 74 6c 79 0d 0d b7 09 09 |ted exac|tly.....|
|00001270| 41 6c 6c 20 6f 74 68 65 | 72 20 76 61 6c 75 65 73 |All othe|r values|
|00001280| 20 6d 75 73 74 20 62 65 | 20 61 70 70 72 6f 78 69 | must be| approxi|
|00001290| 6d 61 74 65 64 20 62 79 | 20 61 20 73 69 6d 69 6c |mated by| a simil|
|000012a0| 61 72 20 6d 65 63 68 61 | 6e 69 73 6d 20 74 6f 20 |ar mecha|nism to |
|000012b0| 74 68 61 74 20 75 73 65 | 64 20 74 6f 20 67 65 6e |that use|d to gen|
|000012c0| 65 72 61 74 65 20 73 79 | 6e 74 68 65 74 69 63 20 |erate sy|nthetic |
|000012d0| 67 72 61 79 73 0d 0d 01 | be ff 00 15 18 01 f7 0d |grays...|........|
|000012e0| 0d fc 00 8d 02 d1 00 77 | 00 0e 02 30 02 8c 03 d4 |.......w|...0....|
|000012f0| 04 e8 06 f0 00 07 a4 f7 | b7 09 41 20 70 69 78 65 |........|..A pixe|
|00001300| 6c 27 73 20 61 6c 70 68 | 61 20 76 61 6c 75 65 20 |l's alph|a value |
|00001310| 6d 61 79 20 62 65 20 73 | 65 74 3a 0d fc 00 a4 02 |may be s|et:.....|
|00001320| d1 00 8e 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |......0.|........|
|00001330| 07 a4 f7 0d ff 00 15 18 | 00 f7 b7 09 4f 70 61 71 |........|....Opaq|
|00001340| 75 65 20 62 79 20 64 65 | 66 61 75 6c 74 0d 0d b7 |ue by de|fault...|
|00001350| 09 45 78 70 6c 69 63 69 | 74 6c 79 20 62 79 20 ff |.Explici|tly by .|
|00001360| 00 15 18 02 f7 73 65 74 | 41 6c 70 68 61 ff 00 15 |.....set|Alpha...|
|00001370| 18 00 f7 20 6f 70 65 72 | 61 74 6f 72 0d 0d b7 20 |... oper|ator... |
|00001380| 20 49 6e 6b 20 68 61 73 | 20 61 20 63 6f 6c 6f 72 | Ink has| a color|
|00001390| 20 28 67 72 61 79 20 6c | 65 76 65 6c 29 20 61 6e | (gray l|evel) an|
|000013a0| 64 20 61 20 63 6f 76 65 | 72 61 67 65 20 28 61 6c |d a cove|rage (al|
|000013b0| 70 68 61 29 0d 0d b7 20 | 20 42 79 20 64 65 66 61 |pha)... | By defa|
|000013c0| 75 6c 74 2c 20 ff 00 15 | 18 02 f7 63 75 72 72 65 |ult, ...|...curre|
|000013d0| 6e 74 61 6c 70 68 61 ff | 00 15 18 00 f7 20 69 73 |ntalpha.|..... is|
|000013e0| 20 31 2e 30 20 6d 65 61 | 6e 69 6e 67 20 69 6e 6b | 1.0 mea|ning ink|
|000013f0| 20 69 73 20 6f 70 61 71 | 75 65 0d 0d b7 20 20 ff | is opaq|ue... .|
|00001400| 00 15 18 02 f7 73 65 74 | 61 6c 70 68 61 ff 00 15 |.....set|alpha...|
|00001410| 18 00 f7 20 73 65 74 73 | 20 74 68 65 20 ff 00 15 |... sets| the ...|
|00001420| 18 02 f7 63 75 72 72 65 | 6e 74 61 6c 70 68 61 ff |...curre|ntalpha.|
|00001430| 00 15 18 00 f7 20 6f 66 | 20 74 68 65 20 69 6e 6b |..... of| the ink|
|00001440| 3b 20 73 75 62 73 65 71 | 75 65 6e 74 20 20 64 72 |; subseq|uent dr|
|00001450| 61 77 69 6e 67 20 77 69 | 6c 6c 20 73 65 74 20 74 |awing wi|ll set t|
|00001460| 68 65 20 61 6c 70 68 61 | 20 6f 66 20 61 6e 79 20 |he alpha| of any |
|00001470| 61 66 66 65 63 74 65 64 | 20 70 69 78 65 6c 73 20 |affected| pixels |
|00001480| 74 6f 20 74 68 65 20 76 | 61 6c 75 65 20 73 70 65 |to the v|alue spe|
|00001490| 63 69 66 69 65 64 0d 01 | 11 0d b7 09 48 69 67 68 |cified..|....High|
|000014a0| 6c 69 67 68 74 69 6e 67 | 20 69 73 20 69 6d 70 6c |lighting| is impl|
|000014b0| 65 6d 65 6e 74 65 64 20 | 75 73 69 6e 67 20 63 6f |emented |using co|
|000014c0| 6d 70 6f 73 69 74 69 6e | 67 0d 0d b7 09 59 6f 75 |mpositin|g....You|
|000014d0| 20 61 6c 77 61 79 73 20 | 63 6f 6d 70 6f 73 69 74 | always |composit|
|000014e0| 65 20 66 72 6f 6d 20 61 | 20 69 6d 61 67 65 20 6f |e from a| image o|
|000014f0| 72 20 77 69 6e 64 6f 77 | 20 69 6e 74 6f 20 61 6e |r window| into an|
|00001500| 6f 74 68 65 72 20 6f 72 | 20 74 68 65 20 73 61 6d |other or| the sam|
|00001510| 65 20 69 6d 61 67 65 20 | 6f 72 20 77 69 6e 64 6f |e image |or windo|
|00001520| 77 0d 0d b7 09 43 6f 6d | 70 6f 73 69 74 69 6e 67 |w....Com|positing|
|00001530| 20 69 67 6e 6f 72 65 73 | 20 74 68 65 20 73 63 61 | ignores| the sca|
|00001540| 6c 65 20 61 6e 64 20 6f | 72 69 65 6e 74 61 74 69 |le and o|rientati|
|00001550| 6f 6e 20 6f 66 20 74 68 | 65 20 64 65 73 74 69 6e |on of th|e destin|
|00001560| 61 74 69 6f 6e 2e 20 20 | 54 68 69 73 20 65 66 66 |ation. |This eff|
|00001570| 65 63 74 69 76 65 6c 79 | 20 6d 65 61 6e 73 20 79 |ectively| means y|
|00001580| 6f 75 20 63 61 6e 6e 6f | 74 20 72 6f 74 61 74 65 |ou canno|t rotate|
|00001590| 20 61 20 63 6f 6d 70 6f | 73 69 74 65 64 20 69 6d | a compo|sited im|
|000015a0| 61 67 65 ff 00 15 14 01 | f7 0d 00 7f fc 00 74 02 |age.....|......t.|
|000015b0| d2 00 74 02 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |..t...0.|........|
|000015c0| 07 a4 f7 f5 0d 0d 0d 0d | 0d 0d fc 00 49 02 d2 00 |........|....I...|
|000015d0| 49 02 0e 02 30 02 8c 03 | d4 04 e8 06 f0 00 07 a4 |I...0...|........|
|000015e0| f7 ff 00 15 30 01 f7 53 | 63 72 6f 6c 6c 69 6e 67 |....0..S|crolling|
|000015f0| ff 00 15 14 01 f7 20 0d | fc 00 74 02 d2 00 74 02 |...... .|..t...t.|
|00001600| 0e 02 30 02 8c 03 d4 04 | e8 06 f0 00 07 a4 f7 0d |..0.....|........|
|00001610| 0d 0d fc 00 5d 02 d2 00 | 5d 02 0e 01 d8 02 30 03 |....]...|].....0.|
|00001620| d4 04 e8 06 f0 00 07 a4 | f7 0d 0d 01 2a fc 00 74 |........|....*..t|
|00001630| 02 d2 00 74 00 0e 02 30 | 02 88 03 d4 04 e8 06 f0 |...t...0|........|
|00001640| 00 07 a4 f7 f5 ff 00 15 | 18 01 f7 0d 0d fc 00 8c |........|........|
|00001650| 02 d1 00 76 00 0e 02 30 | 02 8c 03 d4 04 e8 06 f0 |...v...0|........|
|00001660| 00 07 a4 f7 b7 09 54 68 | 65 20 53 63 72 6f 6c 6c |......Th|e Scroll|
|00001670| 56 69 65 77 20 63 6c 61 | 73 73 20 70 72 6f 76 69 |View cla|ss provi|
|00001680| 64 65 73 20 61 6e 20 65 | 61 73 79 20 6d 65 63 68 |des an e|asy mech|
|00001690| 61 6e 69 73 6d 20 66 6f | 72 20 75 73 65 72 2d 63 |anism fo|r user-c|
|000016a0| 6f 6e 74 72 6f 6c 6c 65 | 64 20 73 63 72 6f 6c 6c |ontrolle|d scroll|
|000016b0| 69 6e 67 0d 0d b7 09 54 | 68 65 20 53 63 72 6f 6c |ing....T|he Scrol|
|000016c0| 6c 56 69 65 77 20 6f 77 | 6e 73 20 73 65 76 65 72 |lView ow|ns sever|
|000016d0| 61 6c 20 73 75 62 76 69 | 65 77 73 0d fc 00 a4 02 |al subvi|ews.....|
|000016e0| d1 00 8e 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |......0.|........|
|000016f0| 07 a4 f7 0d b7 09 ff 00 | 15 18 00 f7 76 53 63 72 |........|....vScr|
|00001700| 6f 6c 6c 65 72 ff 00 15 | 18 01 f7 0d b7 09 ff 00 |oller...|........|
|00001710| 15 18 00 f7 68 53 63 72 | 6f 6c 6c 65 72 ff 00 15 |....hScr|oller...|
|00001720| 18 01 f7 0d b7 09 ff 00 | 15 18 00 f7 63 6f 6e 74 |........|....cont|
|00001730| 65 6e 74 56 69 65 77 ff | 00 15 18 01 f7 0d fc 00 |entView.|........|
|00001740| 74 02 d2 00 74 00 0e 02 | 30 02 88 03 d4 04 e8 06 |t...t...|0.......|
|00001750| f0 00 07 a4 f7 0d 0d 00 | ae fc 00 8c 02 d1 00 76 |........|.......v|
|00001760| 00 0e 02 30 02 8c 03 d4 | 04 e8 06 f0 00 07 a4 f7 |...0....|........|
|00001770| b7 09 54 68 65 20 53 63 | 72 6f 6c 6c 56 69 65 77 |..The Sc|rollView|
|00001780| 27 73 20 63 6f 6e 74 65 | 6e 74 56 69 65 77 20 69 |'s conte|ntView i|
|00001790| 73 20 61 6e 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 |s an ins|tance of|
|000017a0| 20 61 20 43 6c 69 70 56 | 69 65 77 2c 20 77 68 69 | a ClipV|iew, whi|
|000017b0| 63 68 20 69 6e 20 74 75 | 72 6e 20 68 61 73 20 61 |ch in tu|rn has a|
|000017c0| 20 73 75 62 76 69 65 77 | 20 63 61 6c 6c 65 64 20 | subview| called |
|000017d0| 74 68 65 20 64 6f 63 56 | 69 65 77 2c 20 77 68 69 |the docV|iew, whi|
|000017e0| 63 68 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 74 |ch is ac|tually t|
|000017f0| 68 65 20 76 69 65 77 20 | 74 6f 20 62 65 20 73 63 |he view |to be sc|
|00001800| 72 6f 6c 6c 65 64 0d 00 | 80 b7 09 54 68 65 20 64 |rolled..|...The d|
|00001810| 6f 63 56 69 65 77 20 69 | 73 20 74 68 65 20 73 75 |ocView i|s the su|
|00001820| 62 76 69 65 77 20 6f 76 | 65 72 20 77 68 69 63 68 |bview ov|er which|
|00001830| 20 74 6f 20 73 63 72 6f | 6c 6c 20 61 6e 64 20 74 | to scro|ll and t|
|00001840| 68 65 20 63 6f 6e 74 65 | 6e 74 56 69 65 77 20 69 |he conte|ntView i|
|00001850| 73 20 74 68 65 20 76 69 | 73 69 62 6c 65 20 70 6f |s the vi|sible po|
|00001860| 72 74 69 6f 6e 20 6f 66 | 20 74 68 61 74 20 76 69 |rtion of| that vi|
|00001870| 65 77 20 61 74 20 61 6e | 79 20 70 6f 69 6e 74 20 |ew at an|y point |
|00001880| 69 6e 20 74 69 6d 65 3a | 0d 00 34 fc 00 5d 02 d2 |in time:|..4..]..|
|00001890| 00 5d 00 0e 01 d8 02 30 | 03 d4 04 e8 06 f0 00 07 |.].....0|........|
|000018a0| a4 f7 20 20 20 fb 00 00 | 00 01 01 75 01 d6 73 65 |.. ...|...u..se|
|000018b0| 63 34 2e 32 31 2e 70 73 | 2e 65 70 73 00 f7 0d 01 |c4.21.ps|.eps....|
|000018c0| 8d 0d fc 00 8c 02 d1 00 | 76 00 0e 02 30 02 8c 03 |........|v...0...|
|000018d0| d4 04 e8 06 f0 00 07 a4 | f7 b7 09 54 68 65 20 53 |........|...The S|
|000018e0| 63 72 6f 6c 6c 56 69 65 | 77 20 69 73 20 72 65 73 |crollVie|w is res|
|000018f0| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 20 70 72 6f |ponsible| for pro|
|00001900| 76 69 64 69 6e 67 20 26 | 20 6d 61 6e 61 67 69 6e |viding &| managin|
|00001910| 67 20 75 73 65 72 2d 63 | 6f 6e 74 72 6f 6c 6c 65 |g user-c|ontrolle|
|00001920| 64 20 73 63 72 6f 6c 6c | 69 6e 67 0d 0d b7 09 54 |d scroll|ing....T|
|00001930| 68 65 20 43 6c 69 70 56 | 69 65 77 20 69 73 20 72 |he ClipV|iew is r|
|00001940| 65 73 70 6f 6e 73 69 62 | 6c 65 20 66 6f 72 20 69 |esponsib|le for i|
|00001950| 6d 70 6c 65 6d 65 6e 74 | 69 6e 67 20 74 68 65 20 |mplement|ing the |
|00001960| 62 61 73 69 63 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |basic sc|rolling |
|00001970| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 0d 0d b7 |function|ality...|
|00001980| 09 53 63 72 6f 6c 6c 69 | 6e 67 20 69 73 20 61 63 |.Scrolli|ng is ac|
|00001990| 63 6f 6d 70 6c 69 73 68 | 65 64 20 62 79 20 74 72 |complish|ed by tr|
|000019a0| 61 6e 73 6c 61 74 69 6e | 67 20 74 68 65 20 63 6f |anslatin|g the co|
|000019b0| 6e 74 65 6e 74 56 69 65 | 77 27 73 20 28 43 6c 69 |ntentVie|w's (Cli|
|000019c0| 70 56 69 65 77 27 73 29 | 20 63 6f 6f 72 64 69 6e |pView's)| coordin|
|000019d0| 61 74 65 20 73 79 73 74 | 65 6d 20 77 68 69 63 68 |ate syst|em which|
|000019e0| 20 68 61 73 20 74 68 65 | 20 65 66 66 65 63 74 20 | has the| effect |
|000019f0| 6f 66 20 6d 6f 76 69 6e | 67 20 74 68 65 20 64 6f |of movin|g the do|
|00001a00| 63 56 69 65 77 20 72 65 | 6c 61 74 69 76 65 20 74 |cView re|lative t|
|00001a10| 6f 20 74 68 65 20 63 6f | 6e 74 65 6e 74 56 69 65 |o the co|ntentVie|
|00001a20| 77 27 73 20 66 72 61 6d | 65 20 72 65 6c 61 74 69 |w's fram|e relati|
|00001a30| 76 65 20 74 6f 20 74 68 | 65 20 63 6f 6e 74 65 6e |ve to th|e conten|
|00001a40| 74 56 69 65 77 27 73 20 | 66 72 61 6d 65 0d 00 19 |tView's |frame...|
|00001a50| fc 00 6c 02 f0 05 00 6c | 00 0e 01 b0 02 5c 03 d4 |..l....l|.....\..|
|00001a60| 04 e8 06 f0 00 07 a4 f7 | 0d 00 3a fc 00 74 02 d2 |........|..:..t..|
|00001a70| 00 74 00 0e 02 30 02 88 | 03 d4 04 e8 06 f0 00 07 |.t...0..|........|
|00001a80| a4 f7 ff 00 15 18 00 f7 | 20 20 20 fb 00 00 00 01 |........| .....|
|00001a90| 01 17 01 84 73 65 63 34 | 2e 32 32 2e 70 73 2e 65 |....sec4|.22.ps.e|
|00001aa0| 70 73 00 f7 0d 01 06 0d | 09 b7 09 ff 00 15 18 02 |ps......|........|
|00001ab0| f7 62 6f 75 6e 64 73 ff | 00 15 18 00 f7 20 6f 66 |.bounds.|..... of|
|00001ac0| 20 63 6f 6e 74 65 6e 74 | 56 69 65 77 20 3d 20 7b | content|View = {|
|00001ad0| 30 2e 30 2c 30 2e 30 2c | 32 30 30 2e 30 2c 32 32 |0.0,0.0,|200.0,22|
|00001ae0| 35 2e 30 7d 0d 09 0d 09 | b7 09 ff 00 15 18 02 f7 |5.0}....|........|
|00001af0| 66 72 61 6d 65 ff 00 15 | 18 00 f7 20 6f 66 20 64 |frame...|... of d|
|00001b00| 6f 63 56 69 65 77 20 3d | 20 7b 30 2e 30 2c 30 2e |ocView =| {0.0,0.|
|00001b10| 30 2c 35 30 30 2e 30 2c | 32 32 35 2e 30 7d 0d 0d |0,500.0,|225.0}..|
|00001b20| 0d fc 00 8c 02 d1 00 76 | 00 0e 02 30 02 8c 03 d4 |.......v|...0....|
|00001b30| 04 e8 06 f0 00 07 a4 f7 | ff 00 15 18 01 f7 b7 09 |........|........|
|00001b40| 57 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 73 63 |When the| user sc|
|00001b50| 72 6f 6c 6c 73 20 74 6f | 20 74 68 65 20 72 69 67 |rolls to| the rig|
|00001b60| 68 74 2c 20 74 68 65 20 | 63 6f 6f 72 64 69 6e 61 |ht, the |coordina|
|00001b70| 74 65 20 73 79 73 74 65 | 6d 20 6f 66 20 74 68 65 |te syste|m of the|
|00001b80| 20 63 6f 6e 74 65 6e 74 | 56 69 65 77 20 69 73 20 | content|View is |
|00001b90| 73 68 69 66 74 65 64 20 | 74 6f 20 74 68 65 20 6c |shifted |to the l|
|00001ba0| 65 66 74 2e 2e 2e ff 00 | 15 0c 01 f7 0d 00 f6 ff |eft.....|........|
|00001bb0| 00 16 0c 00 f7 fc 00 73 | 02 d2 00 73 00 0e 02 28 |.......s|...s...(|
|00001bc0| 02 80 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d ff 00 16 |........|........|
|00001bd0| 18 00 f7 fb 00 00 00 01 | 01 20 01 93 73 65 63 34 |........|. ..sec4|
|00001be0| 2e 32 33 2e 61 2e 70 73 | 2e 65 70 73 00 f7 ff 00 |.23.a.ps|.eps....|
|00001bf0| 16 0c 00 f7 0d 0d fc 00 | 8d 02 d1 00 77 00 0e 02 |........|....w...|
|00001c00| 30 02 8c 03 d4 04 e8 06 | f0 00 07 a4 f7 ff 00 15 |0.......|........|
|00001c10| 18 01 f7 b7 09 41 66 74 | 65 72 20 74 68 65 20 73 |.....Aft|er the s|
|00001c20| 63 72 6f 6c 6c 3a ff 00 | 15 0c 01 f7 0d ff 00 15 |croll:..|........|
|00001c30| 0c 00 f7 fc 00 8a 02 d2 | 00 8a 00 0e 02 28 02 80 |........|.....(..|
|00001c40| 02 cc 04 e8 06 f0 00 07 | a4 f7 0d fc 00 a4 02 d1 |........|........|
|00001c50| 00 8e 00 0e 02 30 02 8c | 03 d4 04 e8 06 f0 00 07 |.....0..|........|
|00001c60| a4 f7 ff 00 15 18 00 f7 | b7 09 62 6f 75 6e 64 73 |........|..bounds|
|00001c70| 20 6f 66 20 63 6f 6e 74 | 65 6e 74 56 69 65 77 20 | of cont|entView |
|00001c80| 3d 20 7b ff 00 15 18 01 | f7 32 30 2e 30 ff 00 15 |= {.....|.20.0...|
|00001c90| 18 00 f7 2c 30 2e 30 2c | 32 30 30 2e 30 2c 32 32 |...,0.0,|200.0,22|
|00001ca0| 35 2e 30 7d 0d 00 2b b7 | 09 66 72 61 6d 65 20 6f |5.0}..+.|.frame o|
|00001cb0| 66 20 64 6f 63 56 69 65 | 77 20 3d 20 7b 30 2e 30 |f docVie|w = {0.0|
|00001cc0| 2c 30 2e 30 2c 35 30 30 | 2e 30 2c 32 32 35 2e 30 |,0.0,500|.0,225.0|
|00001cd0| 7d 0d 01 66 fc 00 73 02 | d2 00 73 00 0e 02 28 02 |}..f..s.|..s...(.|
|00001ce0| 80 03 d4 04 e8 06 f0 00 | 07 a4 f7 0d 0d fc 00 8c |........|........|
|00001cf0| 02 d1 00 76 00 0e 02 30 | 02 8c 03 d4 04 e8 06 f0 |...v...0|........|
|00001d00| 00 07 a4 f7 ff 00 15 18 | 01 f7 b7 09 53 69 6e 63 |........|....Sinc|
|00001d10| 65 20 74 68 65 20 66 72 | 61 6d 65 20 6f 66 20 74 |e the fr|ame of t|
|00001d20| 68 65 20 64 6f 63 56 69 | 65 77 20 69 73 20 64 65 |he docVi|ew is de|
|00001d30| 66 69 6e 65 64 20 72 65 | 6c 61 74 69 76 65 20 74 |fined re|lative t|
|00001d40| 6f 20 74 68 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |o the co|ordinate|
|00001d50| 20 73 79 73 74 65 6d 20 | 6f 66 20 74 68 65 20 63 | system |of the c|
|00001d60| 6f 6e 74 65 6e 74 56 69 | 65 77 2c 20 69 74 20 65 |ontentVi|ew, it e|
|00001d70| 66 66 65 63 74 69 76 65 | 6c 79 20 73 68 69 66 74 |ffective|ly shift|
|00001d80| 73 20 74 6f 20 74 68 65 | 20 6c 65 66 74 20 72 65 |s to the| left re|
|00001d90| 6c 61 74 69 76 65 20 74 | 6f 20 74 68 65 20 66 72 |lative t|o the fr|
|00001da0| 61 6d 65 20 6f 66 20 74 | 68 65 20 63 6f 6e 74 65 |ame of t|he conte|
|00001db0| 6e 74 56 69 65 77 0d 0d | b7 09 4f 6e 6c 79 20 74 |ntView..|..Only t|
|00001dc0| 68 65 20 70 6f 72 74 69 | 6f 6e 20 6f 66 20 74 68 |he porti|on of th|
|00001dd0| 65 20 69 6d 61 67 65 20 | 63 6f 6e 74 61 69 6e 65 |e image |containe|
|00001de0| 64 20 69 6e 20 74 68 65 | 20 69 6e 74 65 72 73 65 |d in the| interse|
|00001df0| 63 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 63 6f 6e |ction of| the con|
|00001e00| 74 65 6e 74 56 69 65 77 | 27 73 20 61 6e 64 20 64 |tentView|'s and d|
|00001e10| 6f 63 56 69 65 77 27 73 | 20 72 65 73 70 65 63 74 |ocView's| respect|
|00001e20| 69 76 65 20 66 72 61 6d | 65 73 20 69 73 20 6e 6f |ive fram|es is no|
|00001e30| 77 20 76 69 73 69 62 6c | 65 0d 01 a5 fc 00 74 02 |w visibl|e.....t.|
|00001e40| d2 00 74 00 0e 02 28 02 | 8c 03 d4 04 e8 06 f0 00 |..t...(.|........|
|00001e50| 07 a4 f7 0d fc 00 82 02 | d1 00 6c 00 0e 02 04 02 |........|..l.....|
|00001e60| 58 03 d4 04 e8 06 f0 00 | 07 a4 f7 b7 09 54 68 65 |X.......|.....The|
|00001e70| 20 64 6f 63 56 69 65 77 | 20 69 73 20 6f 6e 6c 79 | docView| is only|
|00001e80| 20 72 65 73 70 6f 6e 73 | 69 62 6c 65 20 66 6f 72 | respons|ible for|
|00001e90| 20 64 72 61 77 69 6e 67 | 20 74 68 65 20 6e 65 77 | drawing| the new|
|00001ea0| 6c 79 20 65 78 70 6f 73 | 65 64 20 70 6f 72 74 69 |ly expos|ed porti|
|00001eb0| 6f 6e 20 6f 66 20 69 74 | 73 65 6c 66 0d fc 00 a4 |on of it|self....|
|00001ec0| 02 d1 00 8e 00 0e 02 30 | 02 8c 03 d4 04 e8 06 f0 |.......0|........|
|00001ed0| 00 07 a4 f7 0d fc 00 97 | 02 d1 00 81 00 0e 02 04 |........|........|
|00001ee0| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 15 18 |.X......|........|
|00001ef0| 00 f7 b7 09 54 68 65 20 | 43 6c 69 70 56 69 65 77 |....The |ClipView|
|00001f00| 20 66 69 72 73 74 20 63 | 6f 70 69 65 73 20 74 68 | first c|opies th|
|00001f10| 65 20 76 69 73 69 62 6c | 65 20 62 69 74 73 0d 0d |e visibl|e bits..|
|00001f20| b7 09 49 74 20 74 68 65 | 6e 20 63 61 6c 63 75 6c |..It the|n calcul|
|00001f30| 61 74 65 73 20 74 68 65 | 20 75 70 64 61 74 65 20 |ates the| update |
|00001f40| 72 65 63 74 61 6e 67 6c | 65 73 20 66 6f 72 20 74 |rectangl|es for t|
|00001f50| 68 65 20 64 6f 63 56 69 | 65 77 0d 0d b7 09 46 69 |he docVi|ew....Fi|
|00001f60| 6e 61 6c 6c 79 20 69 74 | 20 63 61 6c 6c 73 20 74 |nally it| calls t|
|00001f70| 68 65 20 64 6f 63 56 69 | 65 77 27 73 20 ff 00 15 |he docVi|ew's ...|
|00001f80| 18 02 f7 64 69 73 70 6c | 61 79 3a 3a 3a ff 00 15 |...displ|ay:::...|
|00001f90| 18 00 f7 20 6d 65 74 68 | 6f 64 20 70 61 73 73 69 |... meth|od passi|
|00001fa0| 6e 67 20 69 74 20 74 68 | 65 20 75 70 64 61 74 65 |ng it th|e update|
|00001fb0| 20 72 65 63 74 61 6e 67 | 6c 65 73 0d fc 00 74 02 | rectang|les...t.|
|00001fc0| d2 00 74 00 0e 02 28 02 | 8c 03 d4 04 e8 06 f0 00 |..t...(.|........|
|00001fd0| 07 a4 f7 ff 00 16 18 00 | f7 20 ff 00 15 18 00 f7 |........|. ......|
|00001fe0| 0d 00 fc fc 00 81 02 d1 | 00 6b 00 0e 02 04 02 58 |........|.k.....X|
|00001ff0| 03 d4 04 e8 06 f0 00 07 | a4 f7 ff 00 15 18 01 f7 |........|........|
|00002000| b7 09 57 68 65 6e 20 74 | 68 65 20 64 6f 63 56 69 |..When t|he docVi|
|00002010| 65 77 27 73 20 ff 00 15 | 18 03 f7 64 72 61 77 53 |ew's ...|...drawS|
|00002020| 65 6c 66 3a 3a ff 00 15 | 18 01 f7 20 6d 65 74 68 |elf::...|... meth|
|00002030| 6f 64 20 69 73 20 63 61 | 6c 6c 65 64 20 62 79 20 |od is ca|lled by |
|00002040| 43 6c 69 70 56 69 65 77 | 2c 20 69 74 20 69 73 20 |ClipView|, it is |
|00002050| 70 61 73 73 65 64 20 74 | 68 65 20 6d 69 6e 69 6d |passed t|he minim|
|00002060| 75 6d 20 61 72 65 61 20 | 69 74 20 6e 65 65 64 73 |um area |it needs|
|00002070| 20 74 6f 20 75 70 64 61 | 74 65 0d fc 00 97 02 d1 | to upda|te......|
|00002080| 00 81 00 0e 02 04 02 58 | 03 d4 04 e8 06 f0 00 07 |.......X|........|
|00002090| a4 f7 0d ff 00 15 18 00 | f7 b7 09 54 68 65 20 64 |........|...The d|
|000020a0| 6f 63 56 69 65 77 20 74 | 79 70 69 63 61 6c 6c 79 |ocView t|ypically|
|000020b0| 20 75 73 65 73 20 74 68 | 69 73 20 69 6e 66 6f 72 | uses th|is infor|
|000020c0| 6d 61 74 69 6f 6e 20 74 | 6f 20 6f 70 74 69 6d 69 |mation t|o optimi|
|000020d0| 7a 65 20 69 74 73 20 64 | 72 61 77 69 6e 67 0d 02 |ze its d|rawing..|
|000020e0| 0f fc 00 74 02 d2 00 74 | 00 0e 02 28 02 8c 03 d4 |...t...t|...(....|
|000020f0| 04 e8 06 f0 00 07 a4 f7 | 0d fc 00 81 02 d1 00 6b |........|.......k|
|00002100| 00 0e 02 04 02 58 03 d4 | 04 e8 06 f0 00 07 a4 f7 |.....X..|........|
|00002110| ff 00 15 18 01 f7 f5 b7 | 09 57 68 65 6e 20 74 68 |........|.When th|
|00002120| 65 20 75 73 65 72 20 73 | 63 72 6f 6c 6c 73 2c 20 |e user s|crolls, |
|00002130| 53 63 72 6f 6c 6c 56 69 | 65 77 20 61 63 63 6f 6d |ScrollVi|ew accom|
|00002140| 70 6c 69 73 68 65 73 20 | 74 68 65 20 73 63 72 6f |plishes |the scro|
|00002150| 6c 6c 69 6e 67 20 62 79 | 3a 0d fc 00 97 02 d1 00 |lling by|:.......|
|00002160| 81 00 0e 02 04 02 58 03 | d4 04 e8 06 f0 00 07 a4 |......X.|........|
|00002170| f7 0d ff 00 15 18 00 f7 | b7 09 54 72 61 6e 73 6c |........|..Transl|
|00002180| 61 74 69 6e 67 20 64 6f | 63 56 69 65 77 20 72 65 |ating do|cView re|
|00002190| 6c 61 74 69 76 65 20 74 | 6f 20 63 6f 6e 74 65 6e |lative t|o conten|
|000021a0| 74 56 69 65 77 27 73 20 | 66 72 61 6d 65 0d 0d b7 |tView's |frame...|
|000021b0| 09 53 63 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 76 |.Scrolli|ng the v|
|000021c0| 69 73 69 62 6c 65 20 62 | 69 74 73 0d 0d b7 09 53 |isible b|its....S|
|000021d0| 65 6e 64 69 6e 67 20 61 | 20 ff 00 15 18 02 f7 64 |ending a| ......d|
|000021e0| 69 73 70 6c 61 79 3a 3a | 3a ff 00 15 18 00 f7 20 |isplay::|:...... |
|000021f0| 6d 65 73 73 61 67 65 20 | 74 6f 20 64 6f 63 56 69 |message |to docVi|
|00002200| 65 77 20 74 6f 20 72 65 | 64 72 61 77 20 74 68 65 |ew to re|draw the|
|00002210| 20 72 65 73 74 0d 0d 0d | fc 00 81 02 d1 00 6b 00 | rest...|......k.|
|00002220| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |....X...|........|
|00002230| 00 15 18 01 f7 b7 09 45 | 76 65 6e 74 75 61 6c 6c |.......E|ventuall|
|00002240| 79 20 64 6f 63 56 69 65 | 77 27 73 20 64 72 61 77 |y docVie|w's draw|
|00002250| 53 65 6c 66 3a 3a 20 6d | 65 74 68 6f 64 20 69 73 |Self:: m|ethod is|
|00002260| 20 63 61 6c 6c 65 64 20 | 74 6f 20 72 65 64 69 73 | called |to redis|
|00002270| 70 6c 61 79 20 74 68 65 | 20 64 6f 63 56 69 65 77 |play the| docView|
|00002280| 0d fc 00 97 02 d1 00 81 | 00 0e 02 04 02 58 03 d4 |........|.....X..|
|00002290| 04 e8 06 f0 00 07 a4 f7 | 0d ff 00 15 18 00 f7 b7 |........|........|
|000022a0| 09 4e 6f 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |.No modi|fication|
|000022b0| 73 20 61 72 65 20 6e 65 | 63 65 73 73 61 72 79 20 |s are ne|cessary |
|000022c0| 66 6f 72 20 ff 00 15 18 | 02 f7 64 72 61 77 53 65 |for ....|..drawSe|
|000022d0| 6c 66 3a 3a ff 00 15 18 | 00 f7 20 74 6f 20 73 75 |lf::....|.. to su|
|000022e0| 70 70 6f 72 74 20 73 63 | 72 6f 6c 6c 69 6e 67 0d |pport sc|rolling.|
|000022f0| 02 1c fc 00 74 02 d2 00 | 74 00 0e 02 28 02 88 03 |....t...|t...(...|
|00002300| d4 04 e8 06 f0 00 07 a4 | f7 0d fc 00 81 02 d1 00 |........|........|
|00002310| 6b 00 0e 02 04 02 58 03 | d4 04 e8 06 f0 00 07 a4 |k.....X.|........|
|00002320| f7 ff 00 15 18 01 f7 b7 | 09 54 68 65 20 61 72 67 |........|.The arg|
|00002330| 75 6d 65 6e 74 73 20 74 | 6f 20 ff 00 15 18 03 f7 |uments t|o ......|
|00002340| 64 72 61 77 53 65 6c 66 | 3a 3a ff 00 15 18 01 f7 |drawSelf|::......|
|00002350| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00002360| 6f 70 74 69 6d 69 7a 65 | 20 73 63 72 6f 6c 6c 69 |optimize| scrolli|
|00002370| 6e 67 20 70 65 72 66 6f | 72 6d 61 6e 63 65 0d fc |ng perfo|rmance..|
|00002380| 00 97 02 d1 00 81 00 0e | 02 04 02 58 03 d4 04 e8 |........|...X....|
|00002390| 06 f0 00 07 a4 f7 0d ff | 00 15 18 00 f7 b7 09 46 |........|.......F|
|000023a0| 69 72 73 74 20 61 72 67 | 75 6d 65 6e 74 20 77 69 |irst arg|ument wi|
|000023b0| 6c 6c 20 62 65 20 61 20 | 70 6f 69 6e 74 65 72 20 |ll be a |pointer |
|000023c0| 74 6f 20 61 6e 20 61 72 | 72 61 79 20 6f 66 20 31 |to an ar|ray of 1|
|000023d0| 20 6f 72 20 33 20 75 70 | 64 61 74 65 20 72 65 63 | or 3 up|date rec|
|000023e0| 74 61 6e 67 6c 65 73 3b | 20 32 6e 64 20 61 72 67 |tangles;| 2nd arg|
|000023f0| 75 6d 65 6e 74 20 67 69 | 76 65 73 20 6e 75 6d 62 |ument gi|ves numb|
|00002400| 65 72 20 6f 66 20 72 65 | 63 74 61 6e 67 6c 65 73 |er of re|ctangles|
|00002410| 0d 0d b7 09 31 20 72 65 | 63 74 61 6e 67 6c 65 20 |....1 re|ctangle |
|00002420| 69 66 20 6a 75 73 74 20 | 68 6f 72 69 7a 6f 6e 74 |if just |horizont|
|00002430| 61 6c 20 6f 72 20 76 65 | 72 74 69 63 61 6c 20 73 |al or ve|rtical s|
|00002440| 63 72 6f 6c 6c 69 6e 67 | 2c 20 33 20 69 66 20 63 |crolling|, 3 if c|
|00002450| 6f 6d 62 69 6e 65 64 0d | 0d b7 09 4c 69 6d 69 74 |ombined.|...Limit|
|00002460| 20 79 6f 75 72 20 64 72 | 61 77 69 6e 67 20 74 6f | your dr|awing to|
|00002470| 20 74 68 65 20 61 72 65 | 61 73 20 63 6f 6e 74 61 | the are|as conta|
|00002480| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 75 70 64 61 |ined in |the upda|
|00002490| 74 65 20 72 65 63 74 5b | 30 5d 20 69 66 20 31 20 |te rect[|0] if 1 |
|000024a0| 72 65 63 74 61 6e 67 6c | 65 2c 20 6f 72 20 72 65 |rectangl|e, or re|
|000024b0| 63 74 5b 31 5d 20 61 6e | 64 20 72 65 63 74 5b 32 |ct[1] an|d rect[2|
|000024c0| 5d 20 69 66 20 33 20 72 | 65 63 74 61 6e 67 6c 65 |] if 3 r|ectangle|
|000024d0| 73 0d 0d b7 09 53 65 65 | 20 53 63 72 6f 6c 6c 69 |s....See| Scrolli|
|000024e0| 6e 67 44 72 61 77 56 69 | 65 77 20 69 6e 20 53 69 |ngDrawVi|ew in Si|
|000024f0| 6d 70 6c 65 44 72 61 77 | 20 66 6f 72 20 61 6e 20 |mpleDraw| for an |
|00002500| 65 78 61 6d 70 6c 65 ff | 00 16 18 00 f7 0d 00 78 |example.|.......x|
|00002510| ff 00 15 18 01 f7 fc 00 | 74 02 d2 00 74 00 0e 02 |........|t...t...|
|00002520| 28 02 88 03 d4 04 e8 06 | f0 00 07 a4 f7 0d 0d f5 |(.......|........|
|00002530| 0d 0d 0d 0d fc 00 74 02 | d2 00 74 02 0e 02 28 02 |......t.|..t...(.|
|00002540| 88 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 15 30 01 |........|......0.|
|00002550| f7 41 64 76 61 6e 63 65 | 64 20 45 76 65 6e 74 20 |.Advance|d Event |
|00002560| 48 61 6e 64 6c 69 6e 67 | ff 00 15 18 01 f7 0d fc |Handling|........|
|00002570| 00 5d 02 d2 00 5d 02 0e | 01 d8 02 30 03 d4 04 e8 |.]...]..|...0....|
|00002580| 06 f0 00 07 a4 f7 0d 0d | 01 9b fc 00 73 02 d2 00 |........|....s...|
|00002590| 73 00 0e 02 30 02 8c 03 | d4 04 e8 06 f0 00 07 a4 |s...0...|........|
|000025a0| f7 f5 0d fc 00 81 02 d1 | 00 6b 00 0e 02 04 02 58 |........|.k.....X|
|000025b0| 03 d4 04 e8 06 f0 00 07 | a4 f7 b7 09 52 75 6c 65 |........|....Rule|
|000025c0| 73 20 66 6f 72 20 73 69 | 6d 70 6c 65 20 65 76 65 |s for si|mple eve|
|000025d0| 6e 74 20 68 61 6e 64 6c | 69 6e 67 0d fc 00 97 02 |nt handl|ing.....|
|000025e0| d1 00 81 00 0e 02 04 02 | 58 03 d4 04 e8 06 f0 00 |........|X.......|
|000025f0| 07 a4 f7 0d ff 00 15 18 | 00 f7 b7 09 52 65 6c 79 |........|....Rely|
|00002600| 20 6f 6e 20 74 68 65 20 | 6b 69 74 20 74 6f 20 64 | on the |kit to d|
|00002610| 69 73 70 61 74 63 68 20 | 65 76 65 6e 74 73 0d 0d |ispatch |events..|
|00002620| b7 09 50 61 79 20 61 74 | 74 65 6e 74 69 6f 6e 20 |..Pay at|tention |
|00002630| 74 6f 20 74 68 65 20 76 | 69 65 77 20 68 69 65 72 |to the v|iew hier|
|00002640| 61 72 63 68 79 0d 0d b7 | 09 50 75 74 20 63 6f 6e |archy...|.Put con|
|00002650| 74 72 6f 6c 73 20 77 68 | 69 63 68 20 6e 65 65 64 |trols wh|ich need|
|00002660| 20 74 6f 20 72 65 73 70 | 6f 6e 64 20 74 6f 20 6b | to resp|ond to k|
|00002670| 65 79 20 65 71 75 69 76 | 61 6c 65 6e 74 73 20 69 |ey equiv|alents i|
|00002680| 6e 73 69 64 65 20 70 61 | 6e 65 6c 73 0d 0d 09 09 |nside pa|nels....|
|00002690| 55 73 65 20 74 68 65 20 | 74 65 78 74 20 63 6c 61 |Use the |text cla|
|000026a0| 73 73 20 6f 72 20 6f 6e | 65 20 6f 66 20 74 68 65 |ss or on|e of the|
|000026b0| 20 6b 69 74 20 63 6c 61 | 73 73 65 73 20 77 68 69 | kit cla|sses whi|
|000026c0| 63 68 20 75 73 65 73 20 | 74 68 65 20 74 65 78 74 |ch uses |the text|
|000026d0| 20 63 6c 61 73 73 20 28 | 54 65 78 74 56 69 65 77 | class (|TextView|
|000026e0| 65 72 2c 20 46 6f 72 6d | 2c 20 43 65 6c 6c 29 20 |er, Form|, Cell) |
|000026f0| 74 6f 20 68 61 6e 64 6c | 65 20 74 65 78 74 20 65 |to handl|e text e|
|00002700| 64 69 74 69 6e 67 0d fc | 00 73 02 d2 00 73 00 0e |diting..|.s...s..|
|00002710| 02 30 02 8c 03 d4 04 e8 | 06 f0 00 07 a4 f7 ff 00 |.0......|........|
|00002720| 15 18 01 f7 0d 01 3e 0d | fc 00 80 02 d1 00 6a 00 |......>.|......j.|
|00002730| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 b7 |....X...|........|
|00002740| 09 42 75 74 20 74 68 65 | 20 6b 69 74 20 70 72 6f |.But the| kit pro|
|00002750| 76 69 64 65 73 20 77 61 | 79 73 20 74 6f 20 6f 76 |vides wa|ys to ov|
|00002760| 65 72 2d 72 69 64 65 20 | 64 65 66 61 75 6c 74 20 |er-ride |default |
|00002770| 65 76 65 6e 74 20 09 64 | 69 73 70 61 74 63 68 69 |event .d|ispatchi|
|00002780| 6e 67 0d fc 00 97 02 d1 | 00 81 00 0e 02 04 02 58 |ng......|.......X|
|00002790| 03 d4 04 e8 06 f0 00 07 | a4 f7 0d ff 00 15 18 00 |........|........|
|000027a0| f7 b7 09 54 72 61 70 70 | 69 6e 67 20 6d 6f 75 73 |...Trapp|ing mous|
|000027b0| 65 44 6f 77 6e 73 20 77 | 69 74 68 69 6e 20 61 6e |eDowns w|ithin an|
|000027c0| 20 75 70 70 65 72 20 6c | 65 76 65 6c 20 6f 66 20 | upper l|evel of |
|000027d0| 74 68 65 20 76 69 65 77 | 20 68 69 65 72 61 72 63 |the view| hierarc|
|000027e0| 68 79 0d 0d b7 09 48 61 | 6e 64 6c 69 6e 67 20 6b |hy....Ha|ndling k|
|000027f0| 65 79 62 6f 61 72 64 20 | 65 76 65 6e 74 73 20 64 |eyboard |events d|
|00002800| 69 72 65 63 74 6c 79 0d | 0d b7 09 43 6f 6d 6d 61 |irectly.|...Comma|
|00002810| 6e 64 20 6b 65 79 20 64 | 69 73 70 61 74 63 68 69 |nd key d|ispatchi|
|00002820| 6e 67 0d 0d b7 09 4d 6f | 64 61 6c 20 77 69 6e 64 |ng....Mo|dal wind|
|00002830| 6f 77 73 20 61 6e 64 20 | 6c 6f 6f 70 73 0d 0d b7 |ows and |loops...|
|00002840| 09 41 63 63 65 73 73 69 | 6e 67 20 74 68 65 20 65 |.Accessi|ng the e|
|00002850| 76 65 6e 74 20 71 75 65 | 75 65 20 64 69 72 65 63 |vent que|ue direc|
|00002860| 74 6c 79 0d 0d 00 35 0d | ff 00 15 18 01 f7 56 69 |tly...5.|......Vi|
|00002870| 65 77 20 48 69 65 72 61 | 72 63 68 79 20 26 20 6d |ew Hiera|rchy & m|
|00002880| 6f 75 73 65 44 6f 77 6e | 20 64 69 73 70 61 74 63 |ouseDown| dispatc|
|00002890| 68 69 6e 67 ff 00 15 0e | 01 f7 0d 0d 00 31 0d ff |hing....|.....1..|
|000028a0| 00 15 18 01 f7 44 69 72 | 65 63 74 6c 79 20 61 63 |.....Dir|ectly ac|
|000028b0| 63 65 73 73 69 6e 67 20 | 74 68 65 20 65 76 65 6e |cessing |the even|
|000028c0| 74 20 71 75 65 75 65 ff | 00 15 0e 01 f7 0d 0d 00 |t queue.|........|
|000028d0| 1e 0d ff 00 15 18 01 f7 | 4b 65 79 62 6f 61 72 64 |........|Keyboard|
|000028e0| 20 45 76 65 6e 74 73 ff | 00 15 0c 01 f7 0d 0d 00 | Events.|........|
|000028f0| 1d 0d ff 00 15 18 01 f7 | 66 69 72 73 74 52 65 73 |........|firstRes|
|00002900| 70 6f 6e 64 65 72 ff 00 | 15 0c 01 f7 0d 0d 00 1b |ponder..|........|
|00002910| 0d ff 00 15 18 01 f7 43 | 6f 6d 6d 61 6e 64 20 4b |.......C|ommand K|
|00002920| 65 79 73 ff 00 15 0c 01 | f7 0d 0d 00 72 fc 00 82 |eys.....|....r...|
|00002930| 02 d1 00 6c 00 0e 02 04 | 02 58 03 d4 04 e8 06 f0 |...l....|.X......|
|00002940| 00 07 a4 f7 ff 00 15 18 | 01 f7 f5 b7 09 56 69 65 |........|.....Vie|
|00002950| 77 20 68 69 65 72 61 72 | 63 68 79 20 65 78 70 6c |w hierar|chy expl|
|00002960| 69 63 69 74 6c 79 20 63 | 72 65 61 74 65 64 20 62 |icitly c|reated b|
|00002970| 79 20 64 65 76 65 6c 6f | 70 65 72 20 76 69 61 20 |y develo|per via |
|00002980| ff 00 15 18 03 f7 61 64 | 64 53 75 62 76 69 65 77 |......ad|dSubview|
|00002990| 3a ff 00 15 18 01 f7 20 | 6d 65 74 68 6f 64 0d 00 |:...... |method..|
|000029a0| 31 fc 00 74 02 d2 00 74 | 00 0e 02 28 02 88 03 d4 |1..t...t|...(....|
|000029b0| 04 e8 06 f0 00 07 a4 f7 | fb 00 00 00 01 01 87 01 |........|........|
|000029c0| ef 73 65 63 34 2e 33 31 | 2e 70 73 2e 65 70 73 00 |.sec4.31|.ps.eps.|
|000029d0| f7 0d 01 d0 fc 00 82 02 | d1 00 6c 00 0e 02 04 02 |........|..l.....|
|000029e0| 58 03 d4 04 e8 06 f0 00 | 07 a4 f7 0d b7 09 4f 72 |X.......|......Or|
|000029f0| 64 65 72 20 6f 66 20 64 | 72 61 77 69 6e 67 20 69 |der of d|rawing i|
|00002a00| 73 20 70 72 65 2d 6f 72 | 64 65 72 20 74 72 61 76 |s pre-or|der trav|
|00002a10| 65 72 73 61 6c 20 6f 66 | 20 74 68 65 20 74 72 65 |ersal of| the tre|
|00002a20| 65 0d fc 00 97 02 d1 00 | 81 00 0e 02 04 02 58 03 |e.......|......X.|
|00002a30| d4 04 e8 06 f0 00 07 a4 | f7 0d ff 00 15 18 00 f7 |........|........|
|00002a40| b7 09 73 75 62 76 69 65 | 77 73 20 64 72 61 77 20 |..subvie|ws draw |
|00002a50| 61 66 74 65 72 20 61 6e | 64 20 6f 6e 20 74 6f 70 |after an|d on top|
|00002a60| 20 6f 66 20 74 68 65 69 | 72 20 73 75 70 65 72 76 | of thei|r superv|
|00002a70| 69 65 77 73 0d 0d fc 00 | 81 02 d1 00 6b 00 0e 02 |iews....|....k...|
|00002a80| 04 02 58 03 d4 04 e8 06 | f0 00 07 a4 f7 ff 00 15 |..X.....|........|
|00002a90| 18 01 f7 b7 09 42 75 74 | 20 6f 72 64 65 72 20 6f |.....But| order o|
|00002aa0| 66 20 65 76 65 6e 74 2d | 64 69 73 70 61 74 63 68 |f event-|dispatch|
|00002ab0| 20 69 73 20 61 20 70 6f | 73 74 2d 6f 72 64 65 72 | is a po|st-order|
|00002ac0| 20 74 72 61 76 65 72 73 | 61 6c 20 6f 66 20 74 68 | travers|al of th|
|00002ad0| 65 20 74 72 65 65 0d fc | 00 97 02 d1 00 81 00 0e |e tree..|........|
|00002ae0| 02 04 02 58 03 d4 04 e8 | 06 f0 00 07 a4 f7 0d ff |...X....|........|
|00002af0| 00 15 18 00 f7 b7 09 4c | 61 73 74 20 76 69 65 77 |.......L|ast view|
|00002b00| 20 64 72 61 77 6e 20 67 | 65 74 73 20 74 68 65 20 | drawn g|ets the |
|00002b10| 65 76 65 6e 74 0d 0d fc | 00 81 02 d1 00 6b 00 0e |event...|.....k..|
|00002b20| 02 04 02 58 03 d4 04 e8 | 06 f0 00 07 a4 f7 ff 00 |...X....|........|
|00002b30| 15 18 01 f7 b7 09 52 65 | 63 65 69 76 69 6e 67 20 |......Re|ceiving |
|00002b40| 76 69 65 77 20 65 69 74 | 68 65 72 20 68 61 6e 64 |view eit|her hand|
|00002b50| 6c 65 73 20 65 76 65 6e | 74 20 6f 72 20 70 61 73 |les even|t or pas|
|00002b60| 73 65 73 20 69 74 20 62 | 61 63 6b 20 75 70 20 74 |ses it b|ack up t|
|00002b70| 68 65 20 74 72 65 65 20 | 75 6e 74 69 6c 20 69 74 |he tree |until it|
|00002b80| 20 69 73 20 68 61 6e 64 | 6c 65 64 0d fc 00 74 02 | is hand|led...t.|
|00002b90| d2 00 5b 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |..[...0.|........|
|00002ba0| 07 a4 f7 0d 01 e1 fc 00 | 82 02 d1 00 6c 00 0e 02 |........|....l...|
|00002bb0| 04 02 58 03 d4 04 e8 06 | f0 00 07 a4 f7 0d b7 09 |..X.....|........|
|00002bc0| 56 69 65 77 20 6f 62 6a | 65 63 74 20 70 65 72 66 |View obj|ect perf|
|00002bd0| 6f 72 6d 73 20 aa 68 69 | 74 2d 74 65 73 74 69 6e |orms .hi|t-testin|
|00002be0| 67 ba 20 76 69 61 20 ff | 00 15 18 03 f7 68 69 74 |g. via .|.....hit|
|00002bf0| 54 65 73 74 3a ff 00 15 | 18 01 f7 20 6d 65 74 68 |Test:...|... meth|
|00002c00| 6f 64 0d fc 00 97 02 d1 | 00 81 00 0e 02 04 02 58 |od......|.......X|
|00002c10| 03 d4 04 e8 06 f0 00 07 | a4 f7 ff 00 15 18 00 f7 |........|........|
|00002c20| 0d b7 09 43 68 65 63 6b | 73 20 69 66 20 70 6f 69 |...Check|s if poi|
|00002c30| 6e 74 20 69 73 20 63 6f | 6e 74 61 69 6e 65 64 20 |nt is co|ntained |
|00002c40| 69 6e 20 76 69 65 77 0d | 0d b7 09 49 66 20 79 65 |in view.|...If ye|
|00002c50| 73 2c 20 73 65 6e 64 73 | 20 ff 00 15 18 02 f7 68 |s, sends| ......h|
|00002c60| 69 74 54 65 73 74 3a ff | 00 15 18 00 f7 20 6d 65 |itTest:.|..... me|
|00002c70| 73 73 61 67 65 20 74 6f | 20 65 61 63 68 20 6f 66 |ssage to| each of|
|00002c80| 20 69 74 73 20 73 75 62 | 76 69 65 77 73 0d 0d b7 | its sub|views...|
|00002c90| 09 49 66 20 6e 6f 2c 20 | 72 65 74 75 72 6e 73 20 |.If no, |returns |
|00002ca0| ff 00 15 18 02 f7 6e 69 | 6c ff 00 15 18 00 f7 0d |......ni|l.......|
|00002cb0| 0d b7 09 52 65 74 75 72 | 6e 73 20 69 64 20 6f 66 |...Retur|ns id of|
|00002cc0| 20 73 75 62 76 69 65 77 | 20 63 6f 6e 74 61 69 6e | subview| contain|
|00002cd0| 69 6e 67 20 74 68 65 20 | 70 6f 69 6e 74 20 6f 72 |ing the |point or|
|00002ce0| 20 69 64 20 6f 66 20 69 | 74 73 65 6c 66 20 69 66 | id of i|tself if|
|00002cf0| 20 6e 6f 20 73 75 62 76 | 69 65 77 20 63 6f 6e 74 | no subv|iew cont|
|00002d00| 61 69 6e 73 20 70 6f 69 | 6e 74 0d ff 00 15 18 01 |ains poi|nt......|
|00002d10| f7 0d fc 00 82 02 d1 00 | 6c 00 0e 02 04 02 58 03 |........|l.....X.|
|00002d20| d4 04 e8 06 f0 00 07 a4 | f7 b7 09 4d 6f 75 73 65 |........|...Mouse|
|00002d30| 64 6f 77 6e 73 20 63 61 | 6e 20 62 65 20 aa 74 72 |downs ca|n be .tr|
|00002d40| 61 70 70 65 64 ba 20 62 | 79 20 61 20 73 75 70 65 |apped. b|y a supe|
|00002d50| 72 76 69 65 77 20 62 79 | 20 6f 76 65 72 2d 72 69 |rview by| over-ri|
|00002d60| 64 69 6e 67 20 ff 00 15 | 18 03 f7 68 69 74 54 65 |ding ...|...hitTe|
|00002d70| 73 74 3a ff 00 15 18 01 | f7 20 6d 65 74 68 6f 64 |st:.....|. method|
|00002d80| ff 00 15 18 00 f7 0d 01 | d9 0d fc 00 81 02 d1 00 |........|........|
|00002d90| 6b 00 0e 02 04 02 58 03 | d4 04 e8 06 f0 00 07 a4 |k.....X.|........|
|00002da0| f7 ff 00 15 18 01 f7 b7 | 09 28 4e 58 45 76 65 6e |........|.(NXEven|
|00002db0| 74 20 2a 29 70 65 65 6b | 4e 65 78 74 45 76 65 6e |t *)peek|NextEven|
|00002dc0| 74 3a 20 28 69 6e 74 29 | 65 76 65 6e 74 4d 61 73 |t: (int)|eventMas|
|00002dd0| 6b 0d fc 00 81 02 d1 00 | 6b 00 0e 02 04 07 80 f7 |k.......|k.......|
|00002de0| 20 09 09 69 6e 74 6f 3a | 28 4e 58 45 76 65 6e 74 | ..into:|(NXEvent|
|00002df0| 20 2a 29 65 0d fc 00 97 | 02 d1 00 81 00 0e 02 04 | *)e....|........|
|00002e00| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d ff 00 15 |.X......|........|
|00002e10| 18 00 f7 b7 09 4d 65 74 | 68 6f 64 20 6f 66 20 41 |.....Met|hod of A|
|00002e20| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |pplicati|on objec|
|00002e30| 74 0d 0d b7 09 43 6f 70 | 69 65 73 20 6d 61 74 63 |t....Cop|ies matc|
|00002e40| 68 69 6e 67 20 65 76 65 | 6e 74 20 69 6e 74 6f 20 |hing eve|nt into |
|00002e50| 2a 65 20 61 6e 64 20 72 | 65 74 75 72 6e 73 0d 0d |*e and r|eturns..|
|00002e60| b7 09 52 65 74 75 72 6e | 73 20 69 66 20 6e 6f 6e |..Return|s if non|
|00002e70| 65 20 61 72 65 20 70 72 | 65 73 65 6e 74 0d 0d b7 |e are pr|esent...|
|00002e80| 09 43 6f 76 65 72 20 66 | 6f 72 20 ff 00 15 18 01 |.Cover f|or .....|
|00002e90| f7 70 65 65 6b 4e 65 78 | 74 45 76 65 6e 74 3a 69 |.peekNex|tEvent:i|
|00002ea0| 6e 74 6f 3a 77 61 69 74 | 46 6f 72 3a 74 68 72 65 |nto:wait|For:thre|
|00002eb0| 73 68 6f 6c 64 3a ff 00 | 15 18 00 f7 20 6d 65 74 |shold:..|.... met|
|00002ec0| 68 6f 64 20 6f 66 20 41 | 70 70 6c 69 63 61 74 69 |hod of A|pplicati|
|00002ed0| 6f 6e 0d 0d fc 00 81 02 | d1 00 6b 00 0e 02 04 02 |on......|..k.....|
|00002ee0| 58 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 15 18 01 |X.......|........|
|00002ef0| f7 b7 09 44 65 66 61 75 | 6c 74 20 70 72 69 6f 72 |...Defau|lt prior|
|00002f00| 69 74 79 20 66 6f 72 20 | 67 65 74 4e 65 78 74 45 |ity for |getNextE|
|00002f10| 76 65 6e 74 20 61 6e 64 | 20 70 65 65 6b 4e 65 78 |vent and| peekNex|
|00002f20| 74 45 76 65 6e 74 0d fc | 00 97 02 d1 00 81 00 0e |tEvent..|........|
|00002f30| 02 04 02 58 03 d4 04 e8 | 06 f0 00 07 a4 f7 ff 00 |...X....|........|
|00002f40| 15 18 00 f7 0d b7 09 4e | 58 5f 42 41 53 45 54 48 |.......N|X_BASETH|
|00002f50| 52 45 53 48 4f 4c 44 20 | 3d 20 31 ff 00 15 18 01 |RESHOLD |= 1.....|
|00002f60| f7 0d 01 9e 0d fc 00 81 | 02 d1 00 6b 00 0e 02 04 |........|...k....|
|00002f70| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 15 18 |.X......|........|
|00002f80| 01 f7 b7 09 49 6e 20 61 | 64 64 69 74 69 6f 6e 20 |....In a|ddition |
|00002f90| 74 6f 20 73 70 65 63 69 | 66 79 69 6e 67 20 61 20 |to speci|fying a |
|00002fa0| 70 72 69 6f 72 69 74 79 | 20 79 6f 75 20 63 61 6e |priority| you can|
|00002fb0| 20 61 6c 73 6f 20 73 70 | 65 63 69 66 79 20 68 6f | also sp|ecify ho|
|00002fc0| 77 20 6c 6f 6e 67 20 79 | 6f 75 20 77 61 6e 74 20 |w long y|ou want |
|00002fd0| 74 6f 20 77 61 69 74 20 | 66 6f 72 20 61 6e 20 65 |to wait |for an e|
|00002fe0| 76 65 6e 74 20 6d 61 74 | 63 68 69 6e 67 20 74 68 |vent mat|ching th|
|00002ff0| 65 20 6d 61 73 6b 20 62 | 65 66 6f 72 65 20 72 65 |e mask b|efore re|
|00003000| 74 75 72 6e 69 6e 67 0d | fc 00 97 02 d1 00 81 00 |turning.|........|
|00003010| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 0d |....X...|........|
|00003020| ff 00 15 18 00 f7 b7 09 | 44 65 66 61 75 6c 74 20 |........|Default |
|00003030| 66 6f 72 20 ff 00 15 18 | 02 f7 67 65 74 45 76 65 |for ....|..getEve|
|00003040| 6e 74 45 76 65 6e 74 ff | 00 15 18 00 f7 20 69 73 |ntEvent.|..... is|
|00003050| 20 4e 58 5f 46 4f 52 45 | 56 45 52 2c 20 61 6e 64 | NX_FORE|VER, and|
|00003060| 20 30 20 66 6f 72 20 ff | 00 15 18 02 f7 70 65 65 | 0 for .|.....pee|
|00003070| 6b 4e 65 78 74 45 76 65 | 6e 74 3a 69 6e 74 6f 3a |kNextEve|nt:into:|
|00003080| ff 00 15 18 00 f7 0d 0d | b7 09 49 66 20 79 6f 75 |........|..If you|
|00003090| 20 64 6f 20 73 65 74 20 | 61 6e 20 65 78 70 6c 69 | do set |an expli|
|000030a0| 63 69 74 20 69 6e 74 65 | 72 76 61 6c 2c 20 72 65 |cit inte|rval, re|
|000030b0| 6d 65 6d 62 65 72 20 74 | 6f 20 63 68 65 63 6b 20 |member t|o check |
|000030c0| 66 6f 72 20 61 20 6e 75 | 6c 6c 20 70 6f 69 6e 74 |for a nu|ll point|
|000030d0| 65 72 20 6f 6e 20 72 65 | 74 75 72 6e 20 66 72 6f |er on re|turn fro|
|000030e0| 6d 20 ff 00 15 18 02 f7 | 67 65 74 4e 65 78 74 45 |m ......|getNextE|
|000030f0| 76 65 6e 74 3a ff 00 15 | 18 00 f7 20 21 21 21 21 |vent:...|... !!!!|
|00003100| 0d 0d 01 57 ff 00 15 18 | 01 f7 f5 0d fc 00 81 02 |...W....|........|
|00003110| d1 00 6b 00 0e 02 04 02 | 58 03 d4 04 e8 06 f0 00 |..k.....|X.......|
|00003120| 07 a4 f7 b7 09 6b 65 79 | 44 6f 77 6e 20 65 76 65 |.....key|Down eve|
|00003130| 6e 74 73 20 61 72 65 20 | 64 69 73 70 61 74 63 68 |nts are |dispatch|
|00003140| 65 64 20 74 6f 20 66 72 | 6f 6e 74 6d 6f 73 74 20 |ed to fr|ontmost |
|00003150| 77 69 6e 64 6f 77 20 77 | 69 6c 6c 69 6e 67 20 74 |window w|illing t|
|00003160| 6f 20 61 63 63 65 70 74 | 20 6b 65 79 44 6f 77 6e |o accept| keyDown|
|00003170| 20 65 76 65 6e 74 73 3a | 0d fc 00 97 02 d1 00 81 | events:|........|
|00003180| 00 0e 02 04 02 58 03 d4 | 04 e8 06 f0 00 07 a4 f7 |.....X..|........|
|00003190| 0d ff 00 15 18 00 f7 b7 | 09 44 65 74 65 72 6d 69 |........|.Determi|
|000031a0| 6e 65 64 20 62 79 20 77 | 69 6e 64 6f 77 27 73 20 |ned by w|indow's |
|000031b0| 65 76 65 6e 74 4d 61 73 | 6b 0d 0d b7 09 44 65 66 |eventMas|k....Def|
|000031c0| 61 75 6c 74 20 6f 66 20 | 61 20 74 69 74 6c 65 64 |ault of |a titled|
|000031d0| 20 77 69 6e 64 6f 77 20 | 69 73 20 74 6f 20 61 63 | window |is to ac|
|000031e0| 63 65 70 74 20 6b 65 79 | 44 6f 77 6e 20 65 76 65 |cept key|Down eve|
|000031f0| 6e 74 73 0d 0d fc 00 82 | 02 d1 00 6c 00 0e 02 04 |nts.....|...l....|
|00003200| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 15 18 |.X......|........|
|00003210| 01 f7 b7 09 57 69 74 68 | 69 6e 20 77 69 6e 64 6f |....With|in windo|
|00003220| 77 2c 20 6b 65 79 44 6f | 77 6e 20 64 69 73 70 61 |w, keyDo|wn dispa|
|00003230| 74 63 68 65 64 20 74 6f | 20 74 68 65 20 77 69 6e |tched to| the win|
|00003240| 64 6f 77 27 73 20 ff 00 | 15 18 03 f7 66 69 72 73 |dow's ..|....firs|
|00003250| 74 52 65 73 70 6f 6e 64 | 65 72 0d 01 79 ff 00 15 |tRespond|er..y...|
|00003260| 18 01 f7 f5 0d b7 09 66 | 69 72 73 74 52 65 73 70 |.......f|irstResp|
|00003270| 6f 6e 64 65 72 20 69 73 | 20 73 65 74 20 62 79 3a |onder is| set by:|
|00003280| 0d fc 00 97 02 d1 00 81 | 00 0e 02 04 02 58 03 d4 |........|.....X..|
|00003290| 04 e8 06 f0 00 07 a4 f7 | 0d ff 00 15 18 00 f7 b7 |........|........|
|000032a0| 09 44 65 66 61 75 6c 74 | 20 74 6f 20 74 68 65 20 |.Default| to the |
|000032b0| 77 69 6e 64 6f 77 0d 0d | b7 09 4f 6e 20 70 72 65 |window..|..On pre|
|000032c0| 76 69 6f 75 73 20 6d 6f | 75 73 65 44 6f 77 6e 2c |vious mo|useDown,|
|000032d0| 20 72 65 63 65 69 76 69 | 6e 67 20 76 69 65 77 20 | receivi|ng view |
|000032e0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 59 45 53 20 74 |respondi|ng YES t|
|000032f0| 6f 20 ff 00 15 18 02 f7 | 61 63 63 65 70 74 73 46 |o ......|acceptsF|
|00003300| 69 72 73 74 52 65 73 70 | 6f 6e 64 65 72 3a ff 00 |irstResp|onder:..|
|00003310| 15 18 00 f7 20 6d 65 73 | 73 61 67 65 0d 0d b7 09 |.... mes|sage....|
|00003320| 45 78 70 6c 69 63 69 74 | 6c 79 20 76 69 61 20 ff |Explicit|ly via .|
|00003330| 00 15 18 02 f7 6d 61 6b | 65 46 69 72 73 74 52 65 |.....mak|eFirstRe|
|00003340| 73 70 6f 6e 64 65 72 3a | ff 00 15 18 00 f7 20 6d |sponder:|...... m|
|00003350| 65 73 73 61 67 65 0d 0d | fc 00 82 02 d1 00 6c 00 |essage..|......l.|
|00003360| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |....X...|........|
|00003370| 00 15 18 01 f7 b7 09 4f | 62 6a 65 63 74 73 20 77 |.......O|bjects w|
|00003380| 68 69 63 68 20 61 72 65 | 20 74 79 70 69 63 61 6c |hich are| typical|
|00003390| 6c 79 20 66 69 72 73 74 | 52 65 73 70 6f 6e 64 65 |ly first|Responde|
|000033a0| 72 73 0d fc 00 97 02 d1 | 00 81 00 0e 02 04 02 58 |rs......|.......X|
|000033b0| 03 d4 04 e8 06 f0 00 07 | a4 f7 0d ff 00 15 18 00 |........|........|
|000033c0| f7 b7 09 54 65 78 74 0d | 0d b7 09 54 65 78 74 46 |...Text.|...TextF|
|000033d0| 69 65 6c 64 0d 0d 01 6a | fc 00 82 02 d1 00 6c 00 |ield...j|......l.|
|000033e0| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |....X...|........|
|000033f0| 00 15 18 01 f7 0d ff 00 | 15 18 01 f7 b7 09 45 76 |........|......Ev|
|00003400| 65 72 79 20 77 69 6e 64 | 6f 77 20 68 61 73 20 61 |ery wind|ow has a|
|00003410| 20 66 69 72 73 74 52 65 | 73 70 6f 6e 64 65 72 0d | firstRe|sponder.|
|00003420| fc 00 97 02 d1 00 81 00 | 0e 02 04 02 58 03 d4 04 |........|....X...|
|00003430| e8 06 f0 00 07 a4 f7 0d | ff 00 15 18 00 f7 b7 09 |........|........|
|00003440| 52 65 73 70 6f 6e 64 73 | 20 74 6f 20 ff 00 15 18 |Responds| to ....|
|00003450| 02 f7 6b 65 79 44 6f 77 | 6e 3a ff 00 15 18 00 f7 |..keyDow|n:......|
|00003460| 20 6d 65 73 73 61 67 65 | 73 20 77 68 65 6e 20 69 | message|s when i|
|00003470| 74 73 20 77 69 6e 64 6f | 77 20 69 73 20 74 68 65 |ts windo|w is the|
|00003480| 20 6b 65 79 57 69 6e 64 | 6f 77 0d 0d b7 09 54 68 | keyWind|ow....Th|
|00003490| 65 20 66 69 72 73 74 52 | 65 73 70 6f 6e 64 65 72 |e firstR|esponder|
|000034a0| 20 69 6e 20 74 68 65 20 | 6b 65 79 57 69 6e 64 6f | in the |keyWindo|
|000034b0| 77 20 69 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |w is aut|omatical|
|000034c0| 6c 79 20 73 65 6e 74 20 | 61 6c 6c 20 61 63 74 69 |ly sent |all acti|
|000034d0| 6f 6e 20 6d 65 73 73 61 | 67 65 73 20 66 6f 72 20 |on messa|ges for |
|000034e0| 77 68 6f 6d 20 6e 6f 20 | 73 70 65 63 69 66 69 63 |whom no |specific|
|000034f0| 20 74 61 72 67 65 74 20 | 77 61 73 20 73 70 65 63 | target |was spec|
|00003500| 69 66 69 65 64 0d ff 00 | 16 18 00 f7 0d ff 00 15 |ified...|........|
|00003510| 18 00 f7 b7 09 42 79 20 | 64 65 66 61 75 6c 74 2c |.....By |default,|
|00003520| 20 77 69 6e 64 6f 77 20 | 69 73 20 69 74 73 20 6f | window |is its o|
|00003530| 77 6e 20 66 69 72 73 74 | 52 65 73 70 6f 6e 64 65 |wn first|Responde|
|00003540| 72 0d 02 6b ff 00 15 18 | 01 f7 ff 00 15 18 01 f7 |r..k....|........|
|00003550| 0d fc 00 82 02 d1 00 6c | 00 0e 02 04 02 58 03 d4 |.......l|.....X..|
|00003560| 04 e8 06 f0 00 07 a4 f7 | b7 09 42 65 69 6e 67 20 |........|..Being |
|00003570| 74 68 65 20 66 69 72 73 | 74 52 65 73 70 6f 6e 64 |the firs|tRespond|
|00003580| 65 72 20 69 73 20 6f 6e | 6c 79 20 69 6d 70 6f 72 |er is on|ly impor|
|00003590| 74 61 6e 74 20 69 66 20 | 74 68 65 20 6f 62 6a 65 |tant if |the obje|
|000035a0| 63 74 20 6e 65 65 64 73 | 20 74 6f 20 72 65 73 70 |ct needs| to resp|
|000035b0| 6f 6e 64 20 74 6f 20 6b | 65 79 62 6f 61 72 64 20 |ond to k|eyboard |
|000035c0| 65 76 65 6e 74 73 20 6f | 72 20 61 63 63 65 70 74 |events o|r accept|
|000035d0| 20 61 63 74 69 6f 6e 20 | 6d 65 73 73 61 67 65 73 | action |messages|
|000035e0| 20 77 69 74 68 6f 75 74 | 20 61 6e 20 65 78 70 6c | without| an expl|
|000035f0| 69 63 69 74 20 74 61 72 | 67 65 74 0d fc 00 97 02 |icit tar|get.....|
|00003600| d1 00 81 00 0e 02 04 02 | 58 03 d4 04 e8 06 f0 00 |........|X.......|
|00003610| 07 a4 f7 0d ff 00 15 18 | 00 f7 b7 09 44 65 66 61 |........|....Defa|
|00003620| 75 6c 74 20 69 73 20 6e | 6f 74 20 74 6f 20 61 63 |ult is n|ot to ac|
|00003630| 63 65 70 74 20 62 65 63 | 6f 6d 69 6e 67 20 61 20 |cept bec|oming a |
|00003640| 66 69 72 73 74 52 65 73 | 70 6f 6e 64 65 72 0d 0d |firstRes|ponder..|
|00003650| b7 09 4f 76 65 72 2d 72 | 69 64 65 20 ff 00 15 18 |..Over-r|ide ....|
|00003660| 02 f7 61 63 63 65 70 74 | 73 46 69 72 73 74 52 65 |..accept|sFirstRe|
|00003670| 73 70 6f 6e 64 65 72 3a | ff 00 15 18 00 f7 20 6d |sponder:|...... m|
|00003680| 65 74 68 6f 64 20 66 6f | 72 20 64 69 66 66 65 72 |ethod fo|r differ|
|00003690| 65 6e 74 20 62 65 68 61 | 76 69 6f 72 0d 0d fc 00 |ent beha|vior....|
|000036a0| 82 02 d1 00 6c 00 0e 02 | 04 02 58 03 d4 04 e8 06 |....l...|..X.....|
|000036b0| f0 00 07 a4 f7 ff 00 15 | 18 01 f7 b7 09 66 69 72 |........|.....fir|
|000036c0| 73 74 52 65 73 70 6f 6e | 64 65 72 20 69 73 20 6e |stRespon|der is n|
|000036d0| 6f 74 69 66 69 65 64 20 | 77 68 65 6e 20 61 6e 6f |otified |when ano|
|000036e0| 74 68 65 72 20 6f 62 6a | 65 63 74 20 69 73 20 61 |ther obj|ect is a|
|000036f0| 62 6f 75 74 20 74 6f 20 | 62 65 63 6f 6d 65 20 74 |bout to |become t|
|00003700| 68 65 20 6e 65 77 20 66 | 69 72 73 74 52 65 73 70 |he new f|irstResp|
|00003710| 6f 6e 64 65 72 0d fc 00 | 97 02 d1 00 81 00 0e 02 |onder...|........|
|00003720| 04 02 58 03 d4 04 e8 06 | f0 00 07 a4 f7 0d ff 00 |..X.....|........|
|00003730| 15 18 00 f7 b7 09 44 65 | 66 61 75 6c 74 20 69 73 |......De|fault is|
|00003740| 20 74 6f 20 67 69 76 65 | 20 75 70 20 66 69 72 73 | to give| up firs|
|00003750| 74 52 65 73 70 6f 6e 64 | 65 72 20 73 74 61 74 75 |tRespond|er statu|
|00003760| 73 0d 0d b7 09 4f 76 65 | 72 2d 72 69 64 65 20 ff |s....Ove|r-ride .|
|00003770| 00 15 18 02 f7 72 65 73 | 69 67 6e 46 69 72 73 74 |.....res|ignFirst|
|00003780| 52 65 73 70 6f 6e 64 65 | 72 3a ff 00 15 18 00 f7 |Responde|r:......|
|00003790| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 64 69 66 66 | method |for diff|
|000037a0| 65 72 65 6e 74 20 62 65 | 68 61 76 69 6f 72 0d 01 |erent be|havior..|
|000037b0| ad 0d fc 00 82 02 d1 00 | 6c 00 0e 02 04 02 58 03 |........|l.....X.|
|000037c0| d4 04 e8 06 f0 00 07 a4 | f7 ff 00 15 18 01 f7 b7 |........|........|
|000037d0| 09 54 68 65 20 66 69 72 | 73 74 52 65 73 70 6f 6e |.The fir|stRespon|
|000037e0| 64 65 72 20 69 6e 20 74 | 68 65 20 6b 65 79 57 69 |der in t|he keyWi|
|000037f0| 6e 64 6f 77 20 69 73 20 | 73 65 6e 74 20 61 6e 79 |ndow is |sent any|
|00003800| 20 61 63 74 69 6f 6e 20 | 6d 65 73 73 61 67 65 73 | action |messages|
|00003810| 20 66 6f 72 20 77 68 69 | 63 68 20 6e 6f 20 65 78 | for whi|ch no ex|
|00003820| 70 6c 69 63 69 74 20 74 | 61 72 67 65 74 20 68 61 |plicit t|arget ha|
|00003830| 73 20 62 65 65 6e 20 73 | 70 65 63 69 66 69 65 64 |s been s|pecified|
|00003840| 0d fc 00 97 02 d1 00 81 | 00 0e 02 04 02 58 03 d4 |........|.....X..|
|00003850| 04 e8 06 f0 00 07 a4 f7 | 0d ff 00 15 18 00 f7 b7 |........|........|
|00003860| 09 45 78 61 6d 70 6c 65 | 3a 20 20 61 20 6d 75 6c |.Example|: a mul|
|00003870| 74 69 2d 77 69 6e 64 6f | 77 20 74 65 78 74 20 65 |ti-windo|w text e|
|00003880| 64 69 74 6f 72 0d 0d fc | 00 ad 02 d1 00 97 00 0e |ditor...|........|
|00003890| 02 04 02 58 03 d4 04 e8 | 06 f0 00 07 a4 f7 b7 20 |...X....|....... |
|000038a0| 20 48 61 76 65 20 65 64 | 69 74 20 6d 65 6e 75 20 | Have ed|it menu |
|000038b0| 69 74 65 6d 73 20 73 65 | 6e 64 20 63 75 74 3a 2c |items se|nd cut:,|
|000038c0| 63 6f 70 79 3a 2c 70 61 | 73 74 65 3a 20 20 62 75 |copy:,pa|ste: bu|
|000038d0| 74 2c 20 64 6f 20 6e 6f | 74 20 73 70 65 63 69 66 |t, do no|t specif|
|000038e0| 79 20 61 20 74 61 72 67 | 65 74 0d 0d b7 20 20 42 |y a targ|et... B|
|000038f0| 79 20 64 65 66 61 75 6c | 74 2c 20 61 63 74 69 6f |y defaul|t, actio|
|00003900| 6e 20 77 69 6c 6c 20 67 | 65 74 20 73 65 6e 74 20 |n will g|et sent |
|00003910| 74 6f 20 74 68 65 20 66 | 69 72 73 74 52 65 73 70 |to the f|irstResp|
|00003920| 6f 6e 64 65 72 20 69 6e | 20 74 68 65 20 6b 65 79 |onder in| the key|
|00003930| 57 69 6e 64 6f 77 20 77 | 68 69 63 68 20 73 68 6f |Window w|hich sho|
|00003940| 75 6c 64 20 62 65 20 74 | 68 65 20 61 63 74 69 76 |uld be t|he activ|
|00003950| 65 20 74 65 78 74 20 6f | 62 6a 65 63 74 0d 01 c7 |e text o|bject...|
|00003960| ff 00 15 18 01 f7 ff 00 | 15 18 01 f7 fc 00 97 02 |........|........|
|00003970| d1 00 81 00 0e 02 04 02 | 58 03 d4 04 e8 06 f0 00 |........|X.......|
|00003980| 07 a4 f7 0d fc 00 82 02 | d1 00 6c 00 0e 02 04 02 |........|..l.....|
|00003990| 58 03 d4 04 e8 06 f0 00 | 07 a4 f7 b7 09 54 68 65 |X.......|.....The|
|000039a0| 20 62 6f 74 74 6f 6d 6c | 69 6e 65 3a 20 20 42 75 | bottoml|ine: Bu|
|000039b0| 74 74 6f 6e 73 20 61 6e | 64 20 6f 74 68 65 72 20 |ttons an|d other |
|000039c0| 6f 62 6a 65 63 74 73 20 | 77 69 74 68 20 6b 65 79 |objects |with key|
|000039d0| 20 65 71 75 69 76 61 6c | 65 6e 74 73 20 77 69 6c | equival|ents wil|
|000039e0| 6c 20 6f 6e 6c 79 20 72 | 65 73 70 6f 6e 64 20 74 |l only r|espond t|
|000039f0| 6f 20 74 68 65 6d 20 69 | 66 3a 0d fc 00 97 02 d1 |o them i|f:......|
|00003a00| 00 81 00 0e 02 04 02 58 | 03 d4 04 e8 06 f0 00 07 |.......X|........|
|00003a10| a4 f7 0d ff 00 15 18 00 | f7 b7 09 54 68 65 79 20 |........|...They |
|00003a20| 61 72 65 20 63 6f 6e 74 | 61 69 6e 65 64 20 77 69 |are cont|ained wi|
|00003a30| 74 68 69 6e 20 50 61 6e | 65 6c 73 20 6f 72 2c 0d |thin Pan|els or,.|
|00003a40| 0d b7 09 57 69 74 68 69 | 6e 20 77 69 6e 64 6f 77 |...Withi|n window|
|00003a50| 73 20 77 68 6f 73 65 20 | ff 00 15 18 02 f7 63 6f |s whose |......co|
|00003a60| 6d 6d 61 6e 64 4b 65 79 | 3a ff 00 15 18 00 f7 20 |mmandKey|:...... |
|00003a70| 6d 65 74 68 6f 64 20 68 | 61 73 20 62 65 65 6e 20 |method h|as been |
|00003a80| 6f 76 65 72 2d 72 69 64 | 64 65 6e 0d 0d fc 00 82 |over-rid|den.....|
|00003a90| 02 d1 00 6c 00 0e 02 04 | 02 58 03 d4 04 e8 06 f0 |...l....|.X......|
|00003aa0| 00 07 a4 f7 ff 00 15 18 | 01 f7 b7 09 57 68 65 6e |........|....When|
|00003ab0| 20 63 6f 6d 6d 61 6e 64 | 2d 6b 65 79 20 69 73 20 | command|-key is |
|00003ac0| 64 6f 77 6e 20 69 6e 20 | 61 64 64 69 74 69 6f 6e |down in |addition|
|00003ad0| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 6b 65 79 2c | to anot|her key,|
|00003ae0| 20 61 6c 74 65 72 6e 61 | 74 65 20 64 69 73 70 61 | alterna|te dispa|
|00003af0| 74 63 68 69 6e 67 20 6d | 65 63 68 61 6e 69 73 6d |tching m|echanism|
|00003b00| 20 69 73 20 75 73 65 64 | 0d ff 00 15 18 00 f7 fc | is used|........|
|00003b10| 00 97 02 d1 00 81 00 0e | 02 04 02 58 03 d4 04 e8 |........|...X....|
|00003b20| 06 f0 00 07 a4 f7 0d 00 | 06 00 08 00 00 00 01 00 |........|........|
|00003b30| 18 0d ff 00 15 18 01 f7 | 52 65 73 6f 75 72 63 65 |........|Resource|
|00003b40| 73 ff 00 15 0c 01 f7 0d | 0d 00 18 0d ff 00 15 18 |s.......|........|
|00003b50| 01 f7 52 65 73 6f 75 72 | 63 65 73 ff 00 15 0c 01 |..Resour|ces.....|
|00003b60| f7 0d 0d 00 18 0d ff 00 | 15 18 01 f7 52 65 73 6f |........|....Reso|
|00003b70| 75 72 63 65 73 ff 00 15 | 0c 01 f7 0d 0d 00 09 0d |urces...|........|
|00003b80| ff 00 15 14 03 f7 f5 0d | 00 18 0d ff 00 15 18 01 |........|........|
|00003b90| f7 52 65 73 6f 75 72 63 | 65 73 ff 00 15 0c 01 f7 |.Resourc|es......|
|00003ba0| 0d 0d 00 3f fc 00 5d 02 | d1 00 5d 00 0e 01 d8 02 |...?..].|..].....|
|00003bb0| 30 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 15 14 00 |0.......|........|
|00003bc0| f7 0d 0d 0d 0d fc 00 5d | 02 d1 00 5d 02 0e 01 d8 |.......]|...]....|
|00003bd0| 02 30 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 15 30 |.0......|.......0|
|00003be0| 03 f7 0d 00 07 ff 00 15 | 14 00 f7 0d 02 37 fc 00 |........|.....7..|
|00003bf0| 73 02 d1 00 73 00 0e 02 | 30 02 8c 03 d4 04 e8 06 |s...s...|0.......|
|00003c00| f0 00 07 a4 f7 f5 0d 0d | fc 00 8c 02 d1 00 76 00 |........|......v.|
|00003c10| 0e 02 30 02 8c 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |..0.....|........|
|00003c20| 00 15 18 01 f7 b7 09 54 | 68 65 20 42 69 67 20 49 |.......T|he Big I|
|00003c30| 64 65 61 0d fc 00 73 02 | d1 00 73 00 0e 02 30 02 |dea...s.|..s...0.|
|00003c40| 8c 03 d4 04 e8 06 f0 00 | 07 a4 f7 0d fc 00 a4 02 |........|........|
|00003c50| d1 00 8e 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |......0.|........|
|00003c60| 07 a4 f7 ff 00 15 18 00 | f7 b7 09 43 6f 6d 70 6f |........|...Compo|
|00003c70| 73 69 74 69 6e 67 20 69 | 73 20 61 20 6d 65 74 68 |siting i|s a meth|
|00003c80| 6f 64 20 66 6f 72 20 63 | 6f 6d 62 69 6e 69 6e 67 |od for c|ombining|
|00003c90| 20 6d 75 6c 74 69 70 6c | 65 20 62 69 74 2d 70 65 | multipl|e bit-pe|
|00003ca0| 72 2d 70 69 78 65 6c 20 | 69 6d 61 67 65 73 20 74 |r-pixel |images t|
|00003cb0| 6f 67 65 74 68 65 72 0d | 0d b7 09 54 79 70 69 63 |ogether.|...Typic|
|00003cc0| 61 6c 20 75 73 65 20 69 | 73 20 74 6f 20 72 65 6e |al use i|s to ren|
|00003cd0| 64 65 72 20 61 20 63 6f | 6d 70 6c 69 63 61 74 65 |der a co|mplicate|
|00003ce0| 64 20 69 6d 61 67 65 20 | 6f 6e 63 65 20 69 6e 20 |d image |once in |
|00003cf0| 61 20 4e 58 49 6d 61 67 | 65 20 6f 62 6a 65 63 74 |a NXImag|e object|
|00003d00| 20 6f 72 20 6f 66 66 2d | 73 63 72 65 65 6e 20 77 | or off-|screen w|
|00003d10| 69 6e 64 6f 77 2c 20 61 | 6e 64 20 75 73 65 20 63 |indow, a|nd use c|
|00003d20| 6f 6d 70 6f 73 69 74 69 | 6e 67 20 74 6f 20 6d 6f |ompositi|ng to mo|
|00003d30| 76 65 20 74 68 65 20 69 | 6d 61 67 65 20 69 6e 74 |ve the i|mage int|
|00003d40| 6f 20 61 6e 20 6f 6e 2d | 73 63 72 65 65 6e 20 77 |o an on-|screen w|
|00003d50| 69 6e 64 6f 77 20 6d 75 | 6c 74 69 70 6c 65 20 74 |indow mu|ltiple t|
|00003d60| 69 6d 65 73 0d 0d b7 09 | 52 65 6c 69 65 73 20 6f |imes....|Relies o|
|00003d70| 6e 20 65 76 65 72 79 20 | 70 69 78 65 6c 20 68 61 |n every |pixel ha|
|00003d80| 76 69 6e 67 20 62 6f 74 | 68 20 61 20 64 61 74 61 |ving bot|h a data|
|00003d90| 20 76 61 6c 75 65 20 77 | 68 69 63 68 20 65 78 70 | value w|hich exp|
|00003da0| 72 65 73 73 65 73 20 74 | 68 65 20 63 6f 6c 6f 72 |resses t|he color|
|00003db0| 20 6f 66 20 74 68 65 20 | 70 69 78 65 6c 20 61 6e | of the |pixel an|
|00003dc0| 64 20 61 6e 20 61 6c 70 | 68 61 20 76 61 6c 75 65 |d an alp|ha value|
|00003dd0| 20 77 68 69 63 68 20 65 | 78 70 72 65 73 73 65 73 | which e|xpresses|
|00003de0| 20 74 68 65 20 74 72 61 | 6e 73 70 61 72 65 6e 63 | the tra|nsparenc|
|00003df0| 79 20 6f 66 20 74 68 65 | 20 70 69 78 65 6c 0d 0d |y of the| pixel..|
|00003e00| b7 09 aa 63 6f 6d 70 6f | 73 69 74 69 6e 67 20 69 |...compo|siting i|
|00003e10| 73 20 79 6f 75 72 20 66 | 72 69 65 6e 64 ba ff 00 |s your f|riend...|
|00003e20| 15 14 01 f7 0d 01 69 fc | 00 5b 02 d1 00 5b 00 0e |......i.|.[...[..|
|00003e30| 01 b0 02 08 04 50 04 e8 | 06 f0 00 07 a4 f7 0d ff |.....P..|........|
|00003e40| 00 15 18 00 f7 fc 00 97 | 02 d1 00 81 00 0e 02 04 |........|........|
|00003e50| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 b7 09 42 79 |.X......|......By|
|00003e60| 20 64 65 66 61 75 6c 74 | 2c 20 50 61 6e 65 6c 73 | default|, Panels|
|00003e70| 20 77 69 6c 6c 20 61 63 | 63 65 70 74 20 63 6f 6d | will ac|cept com|
|00003e80| 6d 61 6e 64 20 4b 65 79 | 73 0d 0d ff 00 15 18 01 |mand Key|s.......|
|00003e90| f7 b7 09 57 69 6e 64 6f | 77 73 20 77 68 69 63 68 |...Windo|ws which|
|00003ea0| 20 77 61 6e 74 20 74 6f | 20 72 65 73 70 6f 6e 64 | want to| respond|
|00003eb0| 20 74 6f 20 63 6f 6d 6d | 61 6e 64 4b 65 79 73 20 | to comm|andKeys |
|00003ec0| 6d 75 73 74 20 73 65 6e | 64 20 61 20 ff 00 15 18 |must sen|d a ....|
|00003ed0| 03 f7 70 65 72 66 6f 72 | 6d 4b 65 79 45 71 75 69 |..perfor|mKeyEqui|
|00003ee0| 76 61 6c 65 6e 74 3a ff | 00 15 18 01 f7 20 6d 65 |valent:.|..... me|
|00003ef0| 73 73 61 67 65 20 74 6f | 20 65 61 63 68 20 6f 66 |ssage to| each of|
|00003f00| 20 69 74 73 20 73 75 62 | 76 69 65 77 73 20 75 6e | its sub|views un|
|00003f10| 74 69 6c 20 6f 6e 65 20 | 72 65 73 70 6f 6e 64 73 |til one |responds|
|00003f20| 20 59 45 53 0d 0d ff 00 | 15 18 00 f7 b7 09 44 65 | YES....|......De|
|00003f30| 66 61 75 6c 74 20 ff 00 | 15 18 02 f7 70 65 72 66 |fault ..|....perf|
|00003f40| 6f 72 6d 4b 65 79 45 71 | 75 69 76 61 6c 65 6e 74 |ormKeyEq|uivalent|
|00003f50| 3a ff 00 15 18 00 f7 20 | 6d 65 74 68 6f 64 20 73 |:...... |method s|
|00003f60| 69 6d 70 6c 79 20 70 61 | 73 73 65 73 20 6f 6e 20 |imply pa|sses on |
|00003f70| 6d 65 73 73 61 67 65 20 | 74 6f 20 65 61 63 68 20 |message |to each |
|00003f80| 6f 66 20 69 74 73 20 73 | 75 62 76 69 65 77 73 0d |of its s|ubviews.|
|00003f90| 01 7e fc 00 74 02 d1 00 | 74 00 0e 02 30 02 8c 03 |.~..t...|t...0...|
|00003fa0| d4 04 e8 06 f0 00 07 a4 | f7 f5 0d 0d fc 00 8b 02 |........|........|
|00003fb0| d1 00 75 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |..u...0.|........|
|00003fc0| 07 a4 f7 ff 00 15 18 01 | f7 b7 09 41 20 74 65 63 |........|...A tec|
|00003fd0| 68 6e 69 71 75 65 20 66 | 6f 72 20 64 6f 69 6e 67 |hnique f|or doing|
|00003fe0| 20 64 72 61 77 69 6e 67 | 20 69 6e 20 72 65 73 70 | drawing| in resp|
|00003ff0| 6f 6e 73 65 20 74 6f 20 | 61 20 75 73 65 72 20 61 |onse to |a user a|
|00004000| 63 74 69 6f 6e 0d fc 00 | 74 02 d1 00 74 00 0e 02 |ction...|t...t...|
|00004010| 30 02 8c 03 d4 04 e8 06 | f0 00 07 a4 f7 0d fc 00 |0.......|........|
|00004020| a4 02 d1 00 8d 00 0e 02 | 8c 03 d4 04 e8 06 f0 00 |........|........|
|00004030| 07 a4 f7 ff 00 15 18 00 | f7 b7 09 44 79 6e 61 6d |........|...Dynam|
|00004040| 69 63 20 64 72 61 77 69 | 6e 67 20 73 75 63 68 20 |ic drawi|ng such |
|00004050| 61 73 20 64 72 61 67 67 | 69 6e 67 20 6f 75 74 20 |as dragg|ing out |
|00004060| 61 20 72 65 63 74 61 6e | 67 6c 65 0d fc 00 74 02 |a rectan|gle...t.|
|00004070| d1 00 74 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |..t...0.|........|
|00004080| 07 a4 f7 0d fc 00 a4 02 | d1 00 8d 00 0e 02 8c 03 |........|........|
|00004090| d4 04 e8 06 f0 00 07 a4 | f7 b7 09 47 65 6e 65 72 |........|...Gener|
|000040a0| 61 6c 20 63 61 73 65 20 | 6f 66 20 64 72 61 77 69 |al case |of drawi|
|000040b0| 6e 67 20 61 20 74 72 61 | 6e 73 69 74 6f 72 79 20 |ng a tra|nsitory |
|000040c0| 69 6d 61 67 65 20 6f 76 | 65 72 20 61 20 66 69 78 |image ov|er a fix|
|000040d0| 65 64 20 6f 72 20 6c 65 | 73 73 20 74 72 61 6e 73 |ed or le|ss trans|
|000040e0| 69 74 6f 72 79 20 69 6d | 61 67 65 ff 00 15 14 00 |itory im|age.....|
|000040f0| f7 0d fc 00 74 02 d1 00 | 74 00 0e 02 30 02 8c 03 |....t...|t...0...|
|00004100| d4 04 e8 06 f0 00 07 a4 | f7 ff 00 15 14 01 f7 0d |........|........|
|00004110| 00 10 41 64 76 61 6e 63 | 65 64 20 54 6f 70 69 63 |..Advanc|ed Topic|
|00004120| 73 0d 02 0c 0d fc 00 6f | 02 d1 00 59 00 0e 02 30 |s......o|...Y...0|
|00004130| 02 8c 03 d4 04 e8 06 f0 | 00 07 a4 f7 b7 20 20 45 |........|..... E|
|00004140| 78 61 6d 70 6c 65 3a 0d | fc 00 a4 02 d1 00 8e 00 |xample:.|........|
|00004150| 0e 02 30 02 8c 03 d4 04 | e8 06 f0 00 07 a4 f7 0d |..0.....|........|
|00004160| fc 00 82 02 da 00 6c 00 | 0e 02 30 02 8c 03 d4 04 |......l.|..0.....|
|00004170| e8 06 f0 00 07 a4 f7 ff | 00 16 16 01 f7 50 53 73 |........|.....PSs|
|00004180| 65 74 61 6c 70 68 61 28 | 2e 33 33 29 3b 20 20 2f |etalpha(|.33); /|
|00004190| 2f 69 6e 6b 20 77 69 6c | 6c 20 62 65 20 2e 33 33 |/ink wil|l be .33|
|000041a0| 20 6f 70 61 71 75 65 0d | 50 53 66 69 6c 6c 28 29 | opaque.|PSfill()|
|000041b0| 3b 0d fc 00 a4 02 d1 00 | 8e 00 0e 02 30 02 8c 03 |;.......|....0...|
|000041c0| d4 04 e8 06 f0 00 07 a4 | f7 ff 00 16 18 00 f7 0d |........|........|
|000041d0| ff 00 15 18 00 f7 ff 00 | 15 18 00 f7 0d fc 00 5a |........|.......Z|
|000041e0| 02 d1 00 44 00 0e 02 30 | 02 8c 03 d4 04 e8 06 f0 |...D...0|........|
|000041f0| 00 07 a4 f7 b7 09 55 73 | 65 20 aa 63 6c 65 61 72 |......Us|e .clear|
|00004200| ba 20 74 6f 20 67 65 74 | 20 61 20 74 6f 74 61 6c |. to get| a total|
|00004210| 6c 79 20 74 72 61 6e 73 | 70 61 72 65 6e 74 20 62 |ly trans|parent b|
|00004220| 61 63 6b 67 72 6f 75 6e | 64 3a ff 00 15 14 00 f7 |ackgroun|d:......|
|00004230| 0d fc 00 4b 02 d1 00 4b | 00 0e 01 8c 01 d8 03 d4 |...K...K|........|
|00004240| 04 e8 06 f0 00 07 a4 f7 | 0d fc 00 6d 02 eb 00 6d |........|...m...m|
|00004250| 00 0e 01 8c 01 d8 03 d4 | 04 e8 06 f0 00 07 a4 f7 |........|........|
|00004260| ff 00 16 16 01 f7 69 64 | 20 69 6d 61 67 65 3b 0d |......id| image;.|
|00004270| 4e 58 52 65 63 74 20 72 | 3d 7b 30 2e 2c 30 2e 2c |NXRect r|={0.,0.,|
|00004280| 31 30 30 2e 2c 32 30 30 | 2e 7d 3b 0d 69 6d 61 67 |100.,200|.};.imag|
|00004290| 65 20 3d 20 5b 5b 4e 58 | 49 6d 61 67 65 20 61 6c |e = [[NX|Image al|
|000042a0| 6c 6f 63 5d 69 6e 69 74 | 53 69 7a 65 3a 26 72 2e |loc]init|Size:&r.|
|000042b0| 73 69 7a 65 5d 3b 0d fc | 00 6d 02 f0 0e 00 6d 00 |size];..|.m....m.|
|000042c0| 0e 01 8c 01 d8 03 d4 04 | e8 06 f0 00 07 a4 f7 5b |........|.......[|
|000042d0| 69 6d 61 67 65 20 63 6f | 6d 70 6f 73 69 74 65 3a |image co|mposite:|
|000042e0| 4e 58 5f 43 4c 45 41 52 | 20 66 72 6f 6d 52 65 63 |NX_CLEAR| fromRec|
|000042f0| 74 3a 26 72 0d fc 00 6d | 02 ec 00 6d 00 0e 07 90 |t:&r...m|...m....|
|00004300| f7 09 74 6f 50 6f 69 6e | 74 3a 26 72 2e 6f 72 69 |..toPoin|t:&r.ori|
|00004310| 67 69 6e 3b 0d fc 00 6d | 02 eb 00 6d 00 0e 01 8c |gin;...m|...m....|
|00004320| 01 d8 03 d4 04 e8 06 f0 | 00 07 a4 f7 2e 2e 2e 0d |........|........|
|00004330| 01 7c ff 00 16 14 00 f7 | ff 00 15 14 01 f7 fc 00 |.|......|........|
|00004340| 8d 02 d1 00 77 00 0e 02 | 30 02 8c 03 d4 04 e8 06 |....w...|0.......|
|00004350| f0 00 07 a4 f7 f5 0d ff | 00 15 18 01 f7 b7 09 44 |........|.......D|
|00004360| 61 74 61 20 61 6e 64 20 | 61 6c 70 68 61 20 76 61 |ata and |alpha va|
|00004370| 6c 75 65 73 20 61 72 65 | 20 70 72 65 2d 6d 75 6c |lues are| pre-mul|
|00004380| 74 69 70 6c 69 65 64 20 | 74 6f 20 61 76 6f 69 64 |tiplied |to avoid|
|00004390| 20 74 68 65 20 6e 65 65 | 64 20 66 6f 72 20 73 74 | the nee|d for st|
|000043a0| 6f 72 69 6e 67 20 74 68 | 65 20 61 6c 70 68 61 20 |oring th|e alpha |
|000043b0| 76 61 6c 75 65 73 20 73 | 65 70 61 72 61 74 65 6c |values s|eparatel|
|000043c0| 79 20 77 68 65 6e 65 76 | 65 72 3a 0d fc 00 a4 02 |y whenev|er:.....|
|000043d0| d1 00 8e 00 0e 02 30 02 | 8c 03 d4 04 e8 06 f0 00 |......0.|........|
|000043e0| 07 a4 f7 0d ff 00 15 18 | 00 f7 b7 09 61 6c 70 68 |........|....alph|
|000043f0| 61 20 69 73 20 6f 70 61 | 71 75 65 20 6f 72 2c 0d |a is opa|que or,.|
|00004400| 0d b7 09 61 6c 70 68 61 | 20 65 71 75 61 6c 73 20 |...alpha| equals |
|00004410| 64 61 74 61 0d 0d b7 09 | 4e 6f 74 65 3a 20 20 43 |data....|Note: C|
|00004420| 6f 6d 70 6f 73 69 74 69 | 6e 67 20 6f 70 65 72 61 |ompositi|ng opera|
|00004430| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 62 65 20 73 69 |tions wi|ll be si|
|00004440| 67 6e 69 66 69 63 61 6e | 74 6c 79 20 66 61 73 74 |gnifican|tly fast|
|00004450| 65 72 20 69 6e 20 74 68 | 65 73 65 20 63 61 73 65 |er in th|ese case|
|00004460| 73 20 74 68 61 6e 20 69 | 66 20 61 20 73 65 70 61 |s than i|f a sepa|
|00004470| 72 61 74 65 20 61 6c 70 | 68 61 20 63 68 61 6e 6e |rate alp|ha chann|
|00004480| 65 6c 20 69 73 20 72 65 | 71 75 69 72 65 64 0d 0d |el is re|quired..|
|00004490| fc 00 8c 02 d1 00 76 00 | 0e 02 30 02 8c 03 d4 04 |......v.|..0.....|
|000044a0| e8 06 f0 00 07 a4 f7 ff | 00 15 18 01 f7 0d 02 06 |........|........|
|000044b0| fc 00 52 02 d2 00 52 00 | 0e 01 b0 02 88 03 d4 04 |..R...R.|........|
|000044c0| e8 06 f0 00 07 a4 f7 f5 | 0d 0d fc 00 8d 02 d1 00 |........|........|
|000044d0| 77 00 0e 02 30 02 8c 03 | d4 04 e8 06 f0 00 07 a4 |w...0...|........|
|000044e0| f7 b7 09 54 68 65 20 64 | 6f 63 56 69 65 77 20 69 |...The d|ocView i|
|000044f0| 73 20 61 20 73 75 62 76 | 69 65 77 20 6f 66 20 74 |s a subv|iew of t|
|00004500| 68 65 20 63 6f 6e 74 65 | 6e 74 56 69 65 77 20 61 |he conte|ntView a|
|00004510| 6e 64 20 69 74 73 20 66 | 72 61 6d 65 20 69 73 20 |nd its f|rame is |
|00004520| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|00004530| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 73 79 73 74 | coordin|ate syst|
|00004540| 65 6d 20 6f 66 20 74 68 | 65 20 63 6f 6e 74 65 6e |em of th|e conten|
|00004550| 74 56 69 65 77 0d 0d b7 | 09 46 6f 72 20 65 78 61 |tView...|.For exa|
|00004560| 6d 70 6c 65 3a 0d ff 00 | 16 18 00 f7 fc 00 52 02 |mple:...|......R.|
|00004570| d2 00 52 00 0e 01 b0 02 | 88 03 d4 04 e8 06 f0 00 |..R.....|........|
|00004580| 07 a4 f7 0d fc 00 57 02 | f0 05 00 57 00 0e 01 d8 |......W.|...W....|
|00004590| 03 d4 04 e8 06 f0 00 07 | a4 f7 ff 00 16 16 01 f7 |........|........|
|000045a0| 2f 2a 20 61 73 73 75 6d | 65 20 63 6f 64 65 20 69 |/* assum|e code i|
|000045b0| 73 20 66 72 6f 6d 20 74 | 68 65 20 69 6e 69 74 46 |s from t|he initF|
|000045c0| 72 61 6d 65 3a 6d 65 74 | 68 6f 64 20 6f 66 20 61 |rame:met|hod of a|
|000045d0| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 53 63 72 | subclas|s of Scr|
|000045e0| 6f 6c 6c 56 69 65 77 20 | 2a 2f 0d 0d 09 69 64 20 |ollView |*/...id |
|000045f0| 6d 79 44 6f 63 56 69 65 | 77 3b 0d 09 4e 58 52 65 |myDocVie|w;..NXRe|
|00004600| 63 74 20 64 6f 63 46 72 | 61 6d 65 20 3d 20 7b 30 |ct docFr|ame = {0|
|00004610| 2e 30 2c 30 2e 30 2c 35 | 30 30 2e 30 2c 32 32 35 |.0,0.0,5|00.0,225|
|00004620| 2e 30 7d 3b 0d fc 00 57 | 03 14 00 57 00 0e 01 d8 |.0};...W|...W....|
|00004630| 03 d4 04 e8 06 f0 00 07 | a4 f7 09 6d 79 44 6f 63 |........|...myDoc|
|00004640| 56 69 65 77 20 3d 20 5b | 5b 4d 79 44 6f 63 56 69 |View = [|[MyDocVi|
|00004650| 65 77 20 61 6c 6c 6f 63 | 5d 0d fc 00 57 03 14 00 |ew alloc|]...W...|
|00004660| 57 00 0e 07 44 f7 09 69 | 6e 69 74 46 72 61 6d 65 |W...D..i|nitFrame|
|00004670| 3a 26 64 6f 63 46 72 61 | 6d 65 5d 0d fc 00 57 02 |:&docFra|me]...W.|
|00004680| f0 05 00 57 00 0e 01 d8 | 03 d4 04 e8 06 f0 00 07 |...W....|........|
|00004690| a4 f7 09 5b 73 65 6c 66 | 20 73 65 74 44 6f 63 56 |...[self| setDocV|
|000046a0| 69 65 77 3a 6d 79 44 6f | 63 56 69 65 77 5d 3b ff |iew:myDo|cView];.|
|000046b0| 00 16 18 00 f7 0d 03 27 | fc 00 81 02 d1 00 6b 00 |.......'|......k.|
|000046c0| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |....X...|........|
|000046d0| 00 15 18 01 f7 f5 ff 00 | 15 18 00 f7 b7 09 54 68 |........|......Th|
|000046e0| 65 20 63 6f 6e 74 65 6e | 74 56 69 65 77 20 6f 66 |e conten|tView of|
|000046f0| 20 61 20 53 63 72 6f 6c | 6c 56 69 65 77 20 69 73 | a Scrol|lView is|
|00004700| 20 61 6e 20 69 6e 73 74 | 61 6e 63 65 20 6f 66 20 | an inst|ance of |
|00004710| 74 68 65 20 43 6c 69 70 | 56 69 65 77 20 63 6c 61 |the Clip|View cla|
|00004720| 73 73 2c 20 61 6e 64 20 | 69 74 20 69 73 20 61 63 |ss, and |it is ac|
|00004730| 74 75 61 6c 6c 79 20 74 | 68 65 20 43 6c 69 70 56 |tually t|he ClipV|
|00004740| 69 65 77 20 77 68 69 63 | 68 20 64 6f 65 73 20 61 |iew whic|h does a|
|00004750| 6c 6c 20 74 68 65 20 77 | 6f 72 6b 2e 0d 0d b7 09 |ll the w|ork.....|
|00004760| 53 63 72 6f 6c 6c 65 72 | 73 20 61 72 65 20 61 63 |Scroller|s are ac|
|00004770| 74 69 76 61 74 65 64 20 | 77 68 65 6e 65 76 65 72 |tivated |whenever|
|00004780| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00004790| 20 65 78 74 65 6e 74 20 | 6f 66 20 74 68 65 20 64 | extent |of the d|
|000047a0| 6f 63 56 69 65 77 20 69 | 73 20 67 72 65 61 74 65 |ocView i|s greate|
|000047b0| 72 20 74 68 61 6e 20 74 | 68 61 74 20 6f 66 20 63 |r than t|hat of c|
|000047c0| 6f 6e 74 65 6e 74 56 69 | 65 77 0d 0d b7 09 53 63 |ontentVi|ew....Sc|
|000047d0| 72 6f 6c 6c 56 69 65 77 | 20 72 65 6c 69 65 73 20 |rollView| relies |
|000047e0| 6f 6e 20 64 6f 63 56 69 | 65 77 20 73 65 74 74 69 |on docVi|ew setti|
|000047f0| 6e 67 20 ff 00 15 18 02 | f7 6e 6f 74 69 66 79 41 |ng .....|.notifyA|
|00004800| 6e 63 65 73 74 6f 72 57 | 68 65 6e 46 72 61 6d 65 |ncestorW|henFrame|
|00004810| 43 68 61 6e 67 65 64 3a | ff 00 15 18 00 f7 20 20 |Changed:|...... |
|00004820| 61 6e 64 20 75 73 69 6e | 67 20 ff 00 15 18 02 f7 |and usin|g ......|
|00004830| 73 69 7a 65 54 6f 3a 3a | ff 00 15 18 00 f7 20 74 |sizeTo::|...... t|
|00004840| 6f 20 72 65 73 69 7a 65 | 20 69 74 73 65 6c 66 2e |o resize| itself.|
|00004850| 20 20 42 65 20 73 75 72 | 65 20 74 6f 20 64 6f 20 | Be sur|e to do |
|00004860| 74 68 65 73 65 20 74 68 | 69 6e 67 73 2e 0d 0d b7 |these th|ings....|
|00004870| 09 49 66 20 79 6f 75 20 | 77 61 6e 74 20 79 6f 75 |.If you |want you|
|00004880| 72 20 73 63 72 6f 6c 6c | 56 69 65 77 20 74 6f 20 |r scroll|View to |
|00004890| 72 65 73 69 7a 65 20 79 | 6f 75 20 6e 65 65 64 20 |resize y|ou need |
|000048a0| 74 6f 20 75 73 65 20 63 | 6f 64 65 20 73 69 6d 69 |to use c|ode simi|
|000048b0| 6c 61 72 20 74 6f 20 74 | 68 65 20 63 6f 64 65 20 |lar to t|he code |
|000048c0| 62 65 6c 6f 77 3a ff 00 | 15 0c 00 f7 0d fc 00 74 |below:..|.......t|
|000048d0| 02 d2 00 74 00 0e 02 28 | 02 8c 03 d4 04 e8 06 f0 |...t...(|........|
|000048e0| 00 07 a4 f7 0d fc 00 80 | 02 d2 00 80 00 0e 02 28 |........|.......(|
|000048f0| 02 8c 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 16 16 |........|........|
|00004900| 01 f7 5b 63 6f 6e 74 65 | 6e 74 56 69 65 77 20 73 |..[conte|ntView s|
|00004910| 65 74 41 75 74 6f 52 65 | 73 69 7a 65 53 75 62 76 |etAutoRe|sizeSubv|
|00004920| 69 65 77 73 3a 59 45 53 | 5d 3b 0d fc 00 80 02 d2 |iews:YES|];......|
|00004930| 00 80 00 0e 07 a0 f7 5b | 73 65 6c 66 20 73 65 74 |.......[|self set|
|00004940| 41 75 74 6f 53 69 7a 69 | 6e 67 3a 0d fc 00 80 02 |AutoSizi|ng:.....|
|00004950| d2 00 80 00 0e 03 f0 00 | f7 09 4e 58 5f 48 45 49 |........|..NX_HEI|
|00004960| 47 48 54 53 49 5a 41 42 | 4c 45 7c 4e 58 5f 57 49 |GHTSIZAB|LE|NX_WI|
|00004970| 44 54 48 53 49 5a 41 42 | 4c 45 5d 3b 0d fc 00 80 |DTHSIZAB|LE];....|
|00004980| 02 e2 00 80 00 0e 07 a0 | f7 5b 5b 73 65 6c 66 20 |........|.[[self |
|00004990| 64 6f 63 56 69 65 77 5d | 20 73 65 74 41 75 74 6f |docView]| setAuto|
|000049a0| 53 69 7a 69 6e 67 3a 0d | fc 00 80 02 e2 00 80 00 |Sizing:.|........|
|000049b0| 0e 03 f0 00 f7 09 4e 58 | 5f 48 45 49 47 48 54 53 |......NX|_HEIGHTS|
|000049c0| 49 5a 41 42 4c 45 7c 4e | 58 5f 57 49 44 54 48 53 |IZABLE|N|X_WIDTHS|
|000049d0| 49 5a 41 42 4c 45 5d 3b | ff 00 16 18 00 f7 0d 02 |IZABLE];|........|
|000049e0| 7f fc 00 97 02 d1 00 81 | 00 0e 02 04 02 58 03 d4 |........|.....X..|
|000049f0| 04 e8 06 f0 00 07 a4 f7 | 0d fc 00 81 02 d1 00 6b |........|.......k|
|00004a00| 00 0e 02 04 02 58 03 d4 | 04 e8 06 f0 00 07 a4 f7 |.....X..|........|
|00004a10| ff 00 15 18 01 f7 b7 09 | 4f 76 65 72 2d 72 69 64 |........|Over-rid|
|00004a20| 65 20 ff 00 15 18 03 f7 | 68 69 74 54 65 73 74 3a |e ......|hitTest:|
|00004a30| ff 00 15 18 01 f7 20 74 | 6f 20 69 6e 74 65 72 63 |...... t|o interc|
|00004a40| 65 70 74 20 6d 6f 75 73 | 65 44 6f 77 6e 0d fc 00 |ept mous|eDown...|
|00004a50| 97 02 d1 00 81 00 0e 02 | 04 02 58 03 d4 04 e8 06 |........|..X.....|
|00004a60| f0 00 07 a4 f7 0d ff 00 | 15 18 00 f7 b7 09 ff 00 |........|........|
|00004a70| 15 18 02 f7 68 69 74 54 | 65 73 74 3a ff 00 15 18 |....hitT|est:....|
|00004a80| 00 f7 20 70 61 73 73 65 | 64 20 6c 6f 63 61 74 69 |.. passe|d locati|
|00004a90| 6f 6e 20 6f 66 20 6d 6f | 75 73 65 44 6f 77 6e 20 |on of mo|useDown |
|00004aa0| 69 6e 20 73 75 70 65 72 | 76 69 65 77 27 73 20 63 |in super|view's c|
|00004ab0| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|00004ac0| 0d 0d b7 09 55 73 65 20 | 66 6f 6c 6c 6f 77 69 6e |....Use |followin|
|00004ad0| 67 20 63 6f 64 65 20 74 | 6f 20 64 65 74 65 72 6d |g code t|o determ|
|00004ae0| 69 6e 65 20 69 66 20 6d | 6f 75 73 65 44 6f 77 6e |ine if m|ouseDown|
|00004af0| 20 69 73 20 69 6e 20 76 | 69 65 77 3a 0d fc 00 74 | is in v|iew:...t|
|00004b00| 02 d2 00 5b 00 0e 02 30 | 02 8c 03 d4 04 e8 06 f0 |...[...0|........|
|00004b10| 00 07 a4 f7 0d fc 00 47 | 02 d2 00 48 00 0e 01 88 |.......G|...H....|
|00004b20| 02 8c 03 d4 04 e8 06 f0 | 00 07 a4 f7 ff 00 16 16 |........|........|
|00004b30| 01 f7 2d 20 68 69 74 54 | 65 73 74 3a 28 4e 58 50 |..- hitT|est:(NXP|
|00004b40| 6f 69 6e 74 20 2a 29 61 | 50 74 7b 0d fc 00 47 02 |oint *)a|Pt{...G.|
|00004b50| f0 02 00 48 00 0e 01 88 | 02 8c 03 d4 04 e8 06 f0 |...H....|........|
|00004b60| 00 07 a4 f7 09 4e 58 50 | 6f 69 6e 74 20 70 74 3d |.....NXP|oint pt=|
|00004b70| 20 2a 61 50 74 3b 0d 09 | 5b 73 65 6c 66 20 63 6f | *aPt;..|[self co|
|00004b80| 6e 76 65 72 74 46 72 6f | 6d 53 75 70 65 72 76 69 |nvertFro|mSupervi|
|00004b90| 65 77 3a 26 70 74 5d 3b | 0d fc 00 47 03 10 00 48 |ew:&pt];|...G...H|
|00004ba0| 00 0e 01 88 02 8c 03 d4 | 04 e8 06 f0 00 07 a4 f7 |........|........|
|00004bb0| 09 69 66 28 4e 58 4d 6f | 75 73 65 49 6e 52 65 63 |.if(NXMo|useInRec|
|00004bc0| 74 28 26 70 74 2c 26 62 | 6f 75 6e 64 73 2c 5b 73 |t(&pt,&b|ounds,[s|
|00004bd0| 65 6c 66 20 69 73 46 6c | 69 70 70 65 64 5d 29 29 |elf isFl|ipped]))|
|00004be0| 0d fc 00 47 02 f0 02 00 | 48 00 0e 01 88 02 8c 03 |...G....|H.......|
|00004bf0| d4 04 e8 06 f0 00 07 a4 | f7 09 09 2f 2a 20 79 65 |........|.../* ye|
|00004c00| 73 2c 20 6e 6f 77 20 63 | 68 65 63 6b 20 73 75 62 |s, now c|heck sub|
|00004c10| 76 69 65 77 73 20 2a 2f | 0d fc 00 47 02 d2 00 48 |views */|...G...H|
|00004c20| 00 0e 01 88 02 8c 03 d4 | 04 e8 06 f0 00 07 a4 f7 |........|........|
|00004c30| 09 65 6c 73 65 0d 09 09 | 72 65 74 75 72 6e 20 6e |.else...|return n|
|00004c40| 69 6c 3b 20 20 2f 2f 6e | 6f 74 20 69 6e 20 74 68 |il; //n|ot in th|
|00004c50| 69 73 20 76 69 65 77 0d | 7d ff 00 16 18 00 f7 0d |is view.|}.......|
|00004c60| 01 d8 fc 00 81 02 d1 00 | 6b 00 0e 02 04 02 58 03 |........|k.....X.|
|00004c70| d4 04 e8 06 f0 00 07 a4 | f7 b7 09 28 4e 58 45 76 |........|...(NXEv|
|00004c80| 65 6e 74 20 2a 29 63 75 | 72 72 65 6e 74 45 76 65 |ent *)cu|rrentEve|
|00004c90| 6e 74 0d fc 00 97 02 d1 | 00 81 00 0e 02 04 02 58 |nt......|.......X|
|00004ca0| 03 d4 04 e8 06 f0 00 07 | a4 f7 0d ff 00 15 18 00 |........|........|
|00004cb0| f7 b7 09 4d 65 74 68 6f | 64 20 6f 66 20 41 70 70 |...Metho|d of App|
|00004cc0| 6c 69 63 61 74 69 6f 6e | 20 43 6c 61 73 73 0d 0d |lication| Class..|
|00004cd0| b7 09 52 65 74 75 72 6e | 73 20 6c 61 73 74 20 65 |..Return|s last e|
|00004ce0| 76 65 6e 74 20 72 65 63 | 65 69 76 65 64 20 62 79 |vent rec|eived by|
|00004cf0| 20 74 68 65 20 41 70 70 | 6c 69 63 61 74 69 6f 6e | the App|lication|
|00004d00| 20 4f 62 6a 65 63 74 0d | ff 00 15 18 01 f7 0d fc | Object.|........|
|00004d10| 00 81 02 d1 00 6b 00 0e | 02 04 02 58 03 d4 04 e8 |.....k..|...X....|
|00004d20| 06 f0 00 07 a4 f7 b7 09 | 4d 6f 64 61 6c 20 72 65 |........|Modal re|
|00004d30| 73 70 6f 6e 64 65 72 73 | 20 74 79 70 69 63 61 6c |sponders| typical|
|00004d40| 6c 79 20 75 73 65 20 61 | 20 68 69 67 68 65 72 20 |ly use a| higher |
|00004d50| 70 72 69 6f 72 69 74 79 | 20 75 73 69 6e 67 20 67 |priority| using g|
|00004d60| 65 74 4e 65 78 74 45 76 | 65 6e 74 3a 77 61 69 74 |etNextEv|ent:wait|
|00004d70| 46 6f 72 3a 74 68 72 65 | 73 68 6f 6c 64 3a 0d fc |For:thre|shold:..|
|00004d80| 00 97 02 d1 00 81 00 0e | 02 04 02 58 03 d4 04 e8 |........|...X....|
|00004d90| 06 f0 00 07 a4 f7 0d ff | 00 15 18 00 f7 b7 09 4e |........|.......N|
|00004da0| 58 5f 4d 4f 44 41 4c 52 | 45 53 50 54 48 52 45 53 |X_MODALR|ESPTHRES|
|00004db0| 48 4f 4c 44 20 3d 20 31 | 30 0d 0d b7 09 46 6f 72 |HOLD = 1|0....For|
|00004dc0| 20 65 78 61 6d 70 6c 65 | 3a 0d 0d ff 00 16 18 00 | example|:.......|
|00004dd0| f7 09 ff 00 16 16 01 f7 | 09 5b 4e 58 41 70 70 20 |........|.[NXApp |
|00004de0| 67 65 74 4e 65 78 74 45 | 76 65 6e 74 3a 4e 58 5f |getNextE|vent:NX_|
|00004df0| 4d 4f 55 53 45 55 50 0d | 09 09 09 77 61 69 74 46 |MOUSEUP.|...waitF|
|00004e00| 6f 72 3a 4e 58 5f 46 4f | 52 45 56 45 52 0d 09 09 |or:NX_FO|REVER...|
|00004e10| 09 74 68 72 65 73 68 6f | 6c 64 3a 4e 58 5f 4d 4f |.thresho|ld:NX_MO|
|00004e20| 44 41 4c 52 45 53 50 54 | 48 52 45 53 48 4f 4c 44 |DALRESPT|HRESHOLD|
|00004e30| 5d 3b ff 00 16 18 00 f7 | 0d 0d 02 bb 0d fc 00 82 |];......|........|
|00004e40| 02 d1 00 6c 00 0e 02 04 | 02 58 03 d4 04 e8 06 f0 |...l....|.X......|
|00004e50| 00 07 a4 f7 ff 00 15 18 | 01 f7 b7 09 32 20 77 61 |........|....2 wa|
|00004e60| 79 73 20 74 6f 20 62 65 | 63 6f 6d 65 20 61 20 66 |ys to be|come a f|
|00004e70| 69 72 73 74 52 65 73 70 | 6f 6e 64 65 72 0d fc 00 |irstResp|onder...|
|00004e80| 97 02 d1 00 81 00 0e 02 | 04 02 58 03 d4 04 e8 06 |........|..X.....|
|00004e90| f0 00 07 a4 f7 0d ff 00 | 15 18 00 f7 b7 09 4f 6e |........|......On|
|00004ea0| 20 ff 00 15 18 02 f7 6d | 6f 75 73 65 44 6f 77 6e | ......m|ouseDown|
|00004eb0| 3a ff 00 15 18 00 f7 20 | 77 69 6e 64 6f 77 20 61 |:...... |window a|
|00004ec0| 73 6b 73 20 6f 62 6a 65 | 63 74 20 69 66 20 69 74 |sks obje|ct if it|
|00004ed0| 20 77 61 6e 74 73 20 74 | 6f 20 62 65 63 6f 6d 65 | wants t|o become|
|00004ee0| 20 66 69 72 73 74 52 65 | 73 70 6f 6e 64 65 72 20 | firstRe|sponder |
|00004ef0| 76 69 61 3a 0d 0d fc 00 | 97 02 d1 00 81 00 0e 02 |via:....|........|
|00004f00| 04 02 5c 02 c0 04 e8 06 | f0 00 07 a4 f7 ff 00 16 |..\.....|........|
|00004f10| 18 00 f7 09 09 ff 00 16 | 16 01 f7 5b 6d 79 56 69 |........|...[myVi|
|00004f20| 65 77 20 20 61 63 63 65 | 70 74 73 46 69 72 73 74 |ew acce|ptsFirst|
|00004f30| 52 65 73 70 6f 6e 64 65 | 72 5d 3b ff 00 16 18 00 |Responde|r];.....|
|00004f40| f7 0d fc 00 97 02 d1 00 | 81 00 0e 02 04 02 58 03 |........|......X.|
|00004f50| d4 04 e8 06 f0 00 07 a4 | f7 0d ff 00 15 18 00 f7 |........|........|
|00004f60| 09 09 44 65 66 61 75 6c | 74 20 6d 65 74 68 6f 64 |..Defaul|t method|
|00004f70| 20 72 65 74 75 72 6e 73 | 20 ff 00 16 18 01 f7 4e | returns| ......N|
|00004f80| 4f ff 00 16 18 00 f7 3b | ff 00 15 18 00 f7 20 6f |O......;|...... o|
|00004f90| 76 65 72 2d 72 69 64 65 | 20 64 65 66 61 75 6c 74 |ver-ride| default|
|00004fa0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 76 69 65 | if you |want vie|
|00004fb0| 77 20 74 6f 20 72 65 73 | 70 6f 6e 64 20 74 6f 20 |w to res|pond to |
|00004fc0| 6b 65 79 62 6f 61 72 64 | 20 6d 65 73 73 61 67 65 |keyboard| message|
|00004fd0| 73 3a 0d 0d fc 00 97 03 | 02 00 81 00 0e 02 04 02 |s:......|........|
|00004fe0| 58 03 d4 04 e8 06 f0 00 | 07 a4 f7 ff 00 16 18 00 |X.......|........|
|00004ff0| f7 09 09 ff 00 16 16 01 | f7 2d 20 28 42 4f 4f 4c |........|.- (BOOL|
|00005000| 29 61 63 63 65 70 74 73 | 46 69 72 73 74 52 65 73 |)accepts|FirstRes|
|00005010| 70 6f 6e 64 65 72 7b 72 | 65 74 75 72 6e 20 59 45 |ponder{r|eturn YE|
|00005020| 53 3b 7d f9 00 f7 ff 00 | 16 18 00 f7 0d fc 00 97 |S;}.....|........|
|00005030| 02 d1 00 81 00 0e 02 04 | 02 58 03 d4 04 e8 06 f0 |........|.X......|
|00005040| 00 07 a4 f7 0d ff 00 15 | 18 00 f7 b7 09 45 78 70 |........|.....Exp|
|00005050| 6c 69 63 69 74 6c 79 20 | 64 65 63 6c 61 72 65 20 |licitly |declare |
|00005060| 6f 62 6a 65 63 74 20 74 | 6f 20 62 65 20 66 69 72 |object t|o be fir|
|00005070| 73 74 52 65 73 70 6f 6e | 64 65 72 0d 0d ff 00 16 |stRespon|der.....|
|00005080| 18 00 f7 09 09 ff 00 16 | 16 01 f7 5b 77 69 6e 64 |........|...[wind|
|00005090| 6f 77 20 20 6d 61 6b 65 | 46 69 72 73 74 52 65 73 |ow make|FirstRes|
|000050a0| 70 6f 6e 64 65 72 3a 73 | 65 6c 66 5d 3b f9 00 f7 |ponder:s|elf];...|
|000050b0| ff 00 16 18 00 f7 0d 09 | 09 09 09 ff 00 15 18 00 |........|........|
|000050c0| f7 6f 72 ff 00 16 18 00 | f7 0d 09 09 ff 00 16 16 |.or.....|........|
|000050d0| 01 f7 5b 6d 79 54 65 78 | 74 4f 62 6a 65 63 74 20 |..[myTex|tObject |
|000050e0| 20 73 65 74 53 65 6c 3a | 30 3a 30 5d 3b f9 00 f7 | setSel:|0:0];...|
|000050f0| ff 00 16 18 00 f7 0d 02 | e6 fc 00 6c 02 d1 00 56 |........|...l...V|
|00005100| 00 0e 02 04 02 58 03 d4 | 04 e8 06 f0 00 07 a4 f7 |.....X..|........|
|00005110| f5 ff 00 15 18 01 f7 b7 | 09 41 70 70 6c 69 63 61 |........|.Applica|
|00005120| 74 69 6f 6e 20 6f 62 6a | 65 63 74 20 73 65 6e 64 |tion obj|ect send|
|00005130| 73 20 ff 00 15 18 03 f7 | 63 6f 6d 6d 61 6e 64 4b |s ......|commandK|
|00005140| 65 79 3a ff 00 15 18 01 | f7 20 6d 65 73 73 61 67 |ey:.....|. messag|
|00005150| 65 20 74 6f 20 65 61 63 | 68 20 6f 66 20 69 74 73 |e to eac|h of its|
|00005160| 20 77 69 6e 64 6f 77 73 | 20 75 6e 74 69 6c 20 69 | windows| until i|
|00005170| 74 20 66 69 6e 64 73 20 | 61 20 77 69 6e 64 6f 77 |t finds |a window|
|00005180| 20 77 69 6c 6c 69 6e 67 | 20 74 6f 20 70 65 72 66 | willing| to perf|
|00005190| 6f 72 6d 20 74 68 65 20 | 6b 65 79 20 65 71 75 69 |orm the |key equi|
|000051a0| 76 61 6c 65 6e 74 20 63 | 6f 6d 6d 61 6e 64 20 61 |valent c|ommand a|
|000051b0| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 74 |ssociate|d with t|
|000051c0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6b 65 79 0d fc |he comma|nd key..|
|000051d0| 00 97 02 d1 00 81 00 0e | 02 04 02 58 03 d4 04 e8 |........|...X....|
|000051e0| 06 f0 00 07 a4 f7 0d fc | 00 82 02 d1 00 6c 00 0e |........|.....l..|
|000051f0| 02 04 02 58 03 d4 04 e8 | 06 f0 00 07 a4 f7 ff 00 |...X....|........|
|00005200| 15 18 00 f7 b7 09 44 65 | 66 61 75 6c 74 20 ff 00 |......De|fault ..|
|00005210| 15 18 02 f7 63 6f 6d 6d | 61 6e 64 4b 65 79 3a ff |....comm|andKey:.|
|00005220| 00 15 18 00 f7 20 6d 65 | 74 68 6f 64 20 69 67 6e |..... me|thod ign|
|00005230| 6f 72 65 73 20 63 6f 6d | 6d 61 6e 64 20 6b 65 79 |ores com|mand key|
|00005240| 73 3a 0d 0d fc 00 5b 02 | d1 00 5b 00 0e 02 58 02 |s:....[.|..[...X.|
|00005250| c4 04 50 04 e8 06 f0 00 | 07 a4 f7 ff 00 16 16 01 |..P.....|........|
|00005260| f7 2d 28 42 4f 4f 4c 29 | 20 63 6f 6d 6d 61 6e 64 |.-(BOOL)| command|
|00005270| 4b 65 79 3a 28 4e 58 45 | 76 65 6e 74 20 2a 29 74 |Key:(NXE|vent *)t|
|00005280| 45 76 65 6e 74 20 7b 72 | 65 74 75 72 6e 28 4e 4f |Event {r|eturn(NO|
|00005290| 29 3b 7d f9 00 f7 ff 00 | 16 18 00 f7 0d f9 00 f7 |);}.....|........|
|000052a0| fc 00 97 02 d1 00 81 00 | 0e 02 04 02 58 03 d4 04 |........|....X...|
|000052b0| e8 06 f0 00 07 a4 f7 0d | fc 00 82 02 d1 00 6c 00 |........|......l.|
|000052c0| 0e 02 04 02 58 03 d4 04 | e8 06 f0 00 07 a4 f7 ff |....X...|........|
|000052d0| 00 15 18 00 f7 b7 09 4f | 76 65 72 2d 72 69 64 65 |.......O|ver-ride|
|000052e0| 20 6d 65 74 68 6f 64 20 | 69 66 20 79 6f 75 20 77 | method |if you w|
|000052f0| 61 6e 74 20 61 20 76 69 | 65 77 20 77 69 74 68 69 |ant a vi|ew withi|
|00005300| 6e 20 77 69 6e 64 6f 77 | 20 74 6f 20 72 65 73 70 |n window| to resp|
|00005310| 6f 6e 64 3a 0d fc 00 97 | 02 d1 00 81 00 0e 02 04 |ond:....|........|
|00005320| 02 58 03 d4 04 e8 06 f0 | 00 07 a4 f7 0d fc 00 5b |.X......|.......[|
|00005330| 02 d1 00 5b 00 0e 01 b0 | 02 08 04 50 04 e8 06 f0 |...[....|...P....|
|00005340| 00 07 a4 f7 ff 00 16 16 | 01 f7 2d 28 42 4f 4f 4c |........|..-(BOOL|
|00005350| 29 20 63 6f 6d 6d 61 6e | 64 4b 65 79 3a 28 4e 58 |) comman|dKey:(NX|
|00005360| 45 76 65 6e 74 20 2a 29 | 74 45 76 65 6e 74 20 7b |Event *)|tEvent {|
|00005370| 0d fc 00 5b 02 f0 05 00 | 5b 00 0e 01 b0 02 08 04 |...[....|[.......|
|00005380| 50 04 e8 06 f0 00 07 a4 | f7 09 69 66 28 5b 63 6f |P.......|..if([co|
|00005390| 6e 74 65 6e 74 56 69 65 | 77 20 70 65 72 66 6f 72 |ntentVie|w perfor|
|000053a0| 6d 4b 65 79 45 71 75 69 | 76 61 6c 65 6e 74 3a 74 |mKeyEqui|valent:t|
|000053b0| 45 76 65 6e 74 5d 29 0d | fc 00 5b 02 d1 00 5b 00 |Event]).|..[...[.|
|000053c0| 0e 01 b0 02 08 02 a4 04 | e8 06 f0 00 07 a4 f7 09 |........|........|
|000053d0| 09 09 72 65 74 75 72 6e | 28 59 45 53 29 3b 0d 00 |..return|(YES);..|
|000053e0| 4e fc 00 5b 02 d1 00 5b | 00 0e 01 b0 02 08 04 50 |N..[...[|.......P|
|000053f0| 04 e8 06 f0 00 07 a4 f7 | 09 09 65 6c 73 65 0d fc |........|..else..|
|00005400| 00 5b 02 d1 00 5b 00 0e | 01 b0 02 08 02 a4 04 e8 |.[...[..|........|
|00005410| 06 f0 00 07 a4 f7 09 09 | 09 72 65 74 75 72 6e 28 |........|.return(|
|00005420| 4e 4f 29 3b 7d f9 00 f7 | ff 00 16 18 00 f7 0d 02 |NO);}...|........|
|00005430| 01 fc 00 4c 02 d1 00 4c | 00 0e 01 98 01 f0 0c 02 |...L...L|........|
|00005440| 68 04 e8 06 f0 00 07 a4 | f7 ff 00 15 18 01 f7 45 |h.......|.......E|
|00005450| 78 61 6d 70 6c 65 20 70 | 65 72 66 6f 72 6d 4b 65 |xample p|erformKe|
|00005460| 79 45 71 75 69 76 61 6c | 65 6e 74 3a 20 6d 65 74 |yEquival|ent: met|
|00005470| 68 6f 64 ff 00 15 10 01 | f7 0d fc 00 49 02 d1 00 |hod.....|....I...|
|00005480| 49 00 0e 01 8c 01 f0 00 | 02 5c 02 d4 05 10 f7 0d |I.......|.\......|
|00005490| ff 00 16 15 01 f7 23 69 | 6d 70 6f 72 74 20 22 50 |......#i|mport "P|
|000054a0| 56 69 65 77 2e 68 22 0d | 23 64 65 66 69 6e 65 20 |View.h".|#define |
|000054b0| 4b 45 59 45 51 55 49 56 | 41 4c 45 4e 54 20 a9 6b |KEYEQUIV|ALENT .k|
|000054c0| a9 0d 40 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |..@imple|mentatio|
|000054d0| 6e 20 50 56 69 65 77 0d | 0d 2d 20 28 42 4f 4f 4c |n PView.|.- (BOOL|
|000054e0| 29 61 63 63 65 70 74 73 | 46 69 72 73 74 52 65 73 |)accepts|FirstRes|
|000054f0| 70 6f 6e 64 65 72 20 7b | 72 65 74 75 72 6e 20 59 |ponder {|return Y|
|00005500| 45 53 3b 7d 0d 2d 20 28 | 42 4f 4f 4c 29 70 65 72 |ES;}.- (|BOOL)per|
|00005510| 66 6f 72 6d 4b 65 79 45 | 71 75 69 76 61 6c 65 6e |formKeyE|quivalen|
|00005520| 74 3a 28 4e 58 45 76 65 | 6e 74 20 2a 29 65 0d 7b |t:(NXEve|nt *)e.{|
|00005530| 0d 09 09 69 66 28 65 2d | 3e 64 61 74 61 2e 6b 65 |...if(e-|>data.ke|
|00005540| 79 2e 63 68 61 72 43 6f | 64 65 20 21 3d 20 4b 45 |y.charCo|de != KE|
|00005550| 59 45 51 55 49 56 41 4c | 45 4e 54 29 0d 09 09 09 |YEQUIVAL|ENT)....|
|00005560| 72 65 74 75 72 6e 28 5b | 73 75 70 65 72 20 70 65 |return([|super pe|
|00005570| 72 66 6f 72 6d 4b 65 79 | 45 71 75 69 76 61 6c 65 |rformKey|Equivale|
|00005580| 6e 74 3a 65 5d 29 3b 0d | 09 09 65 6c 73 65 7b 5b |nt:e]);.|..else{[|
|00005590| 73 65 6c 66 20 64 6f 4d | 6f 75 73 65 41 63 74 69 |self doM|ouseActi|
|000055a0| 6f 6e 5d 3b 0d 09 09 20 | 20 20 20 20 20 72 65 74 |on];... | ret|
|000055b0| 75 72 6e 20 59 45 53 3b | 0d 09 09 7d 0d 7d 0d 2d |urn YES;|...}.}.-|
|000055c0| 20 64 6f 4d 6f 75 73 65 | 41 63 74 69 6f 6e 0d 7b | doMouse|Action.{|
|000055d0| 0d 09 09 4e 58 41 6c 65 | 72 74 28 22 6d 6f 75 73 |...NXAle|rt("mous|
|000055e0| 65 20 6f 72 20 6b 65 79 | 20 65 71 75 69 76 61 6c |e or key| equival|
|000055f0| 65 6e 74 0d 09 09 09 09 | 20 61 63 74 69 76 61 74 |ent.....| activat|
|00005600| 65 64 20 69 6e 20 76 69 | 65 77 22 2c 20 22 4f 4b |ed in vi|ew", "OK|
|00005610| 22 2c 30 2c 30 29 3b 0d | 09 09 72 65 74 75 72 6e |",0,0);.|..return|
|00005620| 20 73 65 6c 66 3b 0d 7d | f9 00 f7 ff 00 16 18 00 | self;.}|........|
|00005630| f7 0d 02 0d ff 00 15 18 | 01 f7 ff 00 15 18 01 f7 |........|........|
|00005640| 0d b7 09 53 6f 6d 65 74 | 69 6d 65 73 20 79 6f 75 |...Somet|imes you|
|00005650| 20 6d 61 79 20 77 61 6e | 74 20 74 6f 20 64 69 73 | may wan|t to dis|
|00005660| 70 61 74 63 68 20 61 20 | 63 6f 6d 6d 61 6e 64 2d |patch a |command-|
|00005670| 6b 65 79 20 65 71 75 69 | 76 61 6c 65 6e 74 20 77 |key equi|valent w|
|00005680| 69 74 68 6f 75 74 20 68 | 61 76 69 6e 67 20 74 68 |ithout h|aving th|
|00005690| 65 20 63 6f 6d 6d 61 6e | 64 20 6b 65 79 20 64 6f |e comman|d key do|
|000056a0| 77 6e 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |wn. For| example|
|000056b0| 2c 20 6b 65 79 62 6f 61 | 72 64 20 69 6e 74 65 72 |, keyboa|rd inter|
|000056c0| 66 61 63 65 20 74 6f 20 | 66 6c 69 67 68 74 20 73 |face to |flight s|
|000056d0| 69 6d 75 6c 61 74 6f 72 | 2e 20 20 0d fc 00 49 02 |imulator|. ...I.|
|000056e0| d1 00 49 00 0e 01 8c 01 | f0 00 02 5c 02 d4 05 10 |..I.....|...\....|
|000056f0| f7 0d ff 00 16 16 01 f7 | 2f 2a 20 61 73 73 75 6d |........|/* assum|
|00005700| 65 20 61 20 76 69 65 77 | 20 63 61 6c 6c 65 64 20 |e a view| called |
|00005710| 49 6e 73 74 72 75 6d 65 | 6e 74 50 61 6e 65 6c 20 |Instrume|ntPanel |
|00005720| 77 68 69 63 68 20 69 6d | 70 6c 65 6d 65 6e 74 73 |which im|plements|
|00005730| 20 74 68 65 20 69 6e 74 | 65 72 66 61 63 65 20 74 | the int|erface t|
|00005740| 6f 20 74 68 65 20 75 73 | 65 72 20 2a 2f 0d 0d 2f |o the us|er */../|
|00005750| 2a 20 49 6e 20 69 6e 69 | 74 46 72 61 6d 65 20 6d |* In ini|tFrame m|
|00005760| 65 74 68 6f 64 20 6f 66 | 20 49 6e 73 74 72 75 6d |ethod of| Instrum|
|00005770| 65 6e 74 50 61 6e 65 6c | 20 6d 61 6b 65 20 69 74 |entPanel| make it|
|00005780| 20 74 68 65 20 66 69 72 | 73 74 20 72 65 73 70 6f | the fir|st respo|
|00005790| 6e 64 65 72 20 66 6f 72 | 20 74 68 65 20 77 69 6e |nder for| the win|
|000057a0| 64 6f 77 20 73 6f 20 69 | 74 20 77 69 6c 6c 20 67 |dow so i|t will g|
|000057b0| 65 74 20 6b 65 79 44 6f | 77 6e 73 20 2a 2f 0d 09 |et keyDo|wns */..|
|000057c0| 5b 61 57 69 6e 20 6d 61 | 6b 65 46 69 72 73 74 52 |[aWin ma|keFirstR|
|000057d0| 65 73 70 6f 6e 64 65 72 | 3a 73 65 6c 66 5d 3b 0d |esponder|:self];.|
|000057e0| 0d 2f 2f 20 4f 76 65 72 | 2d 72 69 64 65 20 64 65 |.// Over|-ride de|
|000057f0| 66 61 75 6c 74 20 61 63 | 63 65 70 74 73 46 69 72 |fault ac|ceptsFir|
|00005800| 73 74 52 65 73 70 6f 6e | 64 65 72 0d 2d 20 28 42 |stRespon|der.- (B|
|00005810| 4f 4f 4c 29 61 63 63 65 | 70 74 73 46 69 72 73 74 |OOL)acce|ptsFirst|
|00005820| 52 65 73 70 6f 6e 64 65 | 72 7b 72 65 74 75 72 6e |Responde|r{return|
|00005830| 20 59 45 53 3b 7d f9 00 | f7 ff 00 16 18 00 f7 0d | YES;}..|........|
|00005840| 0d 01 c5 0d ff 00 16 16 | 01 f7 2f 2f 20 4f 76 65 |........|..// Ove|
|00005850| 72 2d 72 69 64 65 20 64 | 65 66 61 75 6c 74 20 6b |r-ride d|efault k|
|00005860| 65 79 44 6f 77 6e 20 6d | 65 74 68 6f 64 0d 09 2d |eyDown m|ethod..-|
|00005870| 20 6b 65 79 64 6f 77 6e | 3a 28 4e 58 45 76 65 6e | keydown|:(NXEven|
|00005880| 74 20 2a 29 74 45 0d 09 | 7b 0d 09 2f 2a 20 69 67 |t *)tE..|{../* ig|
|00005890| 6e 6f 72 65 20 6b 65 79 | 20 72 65 70 65 61 74 73 |nore key| repeats|
|000058a0| 20 2a 2f 0d 09 69 66 28 | 21 74 45 2d 3e 64 61 74 | */..if(|!tE->dat|
|000058b0| 61 2e 6b 65 79 2e 72 65 | 70 65 61 74 29 7b 0d 09 |a.key.re|peat){..|
|000058c0| 09 69 66 28 74 45 2d 3e | 64 61 74 61 2e 6b 65 79 |.if(tE->|data.key|
|000058d0| 2e 63 68 61 72 43 6f 64 | 65 3d 3d a9 2b a9 29 0d |.charCod|e==.+.).|
|000058e0| 09 09 09 5b 73 65 6c 66 | 20 73 65 74 54 68 72 6f |...[self| setThro|
|000058f0| 74 74 6c 65 42 79 56 61 | 6c 75 65 3a 0d 09 09 09 |ttleByVa|lue:....|
|00005900| 09 09 54 48 52 4f 54 54 | 4c 45 49 4e 43 52 45 4d |..THROTT|LEINCREM|
|00005910| 45 4e 54 5d 3b 0d 09 09 | 20 65 6c 73 65 20 69 66 |ENT];...| else if|
|00005920| 28 74 45 2d 3e 64 61 74 | 61 2e 6b 65 79 2e 63 68 |(tE->dat|a.key.ch|
|00005930| 61 72 43 6f 64 65 3d 3d | a9 2d a9 29 0d 09 09 09 |arCode==|.-.)....|
|00005940| 5b 73 65 6c 66 20 73 65 | 74 54 68 72 6f 74 74 6c |[self se|tThrottl|
|00005950| 65 42 79 56 61 6c 75 65 | 3a 0d 09 09 09 09 09 2d |eByValue|:......-|
|00005960| 54 48 52 4f 54 54 4c 45 | 49 4e 43 52 45 4d 45 4e |THROTTLE|INCREMEN|
|00005970| 54 5d 3b 0d 09 09 20 65 | 6c 73 65 0d 09 09 09 2f |T];... e|lse..../|
|00005980| 2a 20 64 69 73 70 61 74 | 63 68 20 74 6f 20 70 61 |* dispat|ch to pa|
|00005990| 6e 65 6c 20 63 6f 6e 74 | 61 69 6e 69 6e 67 0d 09 |nel cont|aining..|
|000059a0| 09 09 09 63 6f 6e 74 72 | 6f 6c 73 20 2a 2f 0d 09 |...contr|ols */..|
|000059b0| 09 09 5b 5b 76 69 65 77 | 50 61 6e 65 6c 20 63 6f |..[[view|Panel co|
|000059c0| 6e 74 65 6e 74 56 69 65 | 77 5d 0d 09 09 09 09 09 |ntentVie|w]......|
|000059d0| 70 65 72 66 6f 72 6d 4b | 65 79 45 71 75 69 76 61 |performK|eyEquiva|
|000059e0| 6c 65 6e 74 3a 74 45 5d | 3b 0d 09 09 7d 0d 09 72 |lent:tE]|;...}..r|
|000059f0| 65 74 75 72 6e 20 73 65 | 6c 66 3b 0d 09 7d f9 00 |eturn se|lf;..}..|
|00005a00| f7 ff 00 16 18 00 f7 0d | 02 e5 fc 00 73 02 d1 00 |........|....s...|
|00005a10| 59 00 0e f7 ff 00 15 18 | 03 f7 f5 ff 00 15 14 03 |Y.......|........|
|00005a20| f7 2f 4e 65 78 74 4c 69 | 62 72 61 72 79 2f 44 6f |./NextLi|brary/Do|
|00005a30| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 2f 4e 65 78 74 |cumentat|ion/Next|
|00005a40| 44 65 76 2f 4e 65 78 74 | 53 74 65 70 2f 43 6f 6e |Dev/Next|Step/Con|
|00005a50| 63 65 70 74 73 5f 76 2e | 31 2e 30 2f 0d fc 00 73 |cepts_v.|1.0/...s|
|00005a60| 02 d0 00 59 00 0e f7 09 | 30 35 5f 44 72 61 77 69 |...Y....|05_Drawi|
|00005a70| 6e 67 2e 72 74 66 64 0d | 2f 4e 65 78 74 4c 69 62 |ng.rtfd.|/NextLib|
|00005a80| 72 61 72 79 2f 44 6f 63 | 75 6d 65 6e 74 61 74 69 |rary/Doc|umentati|
|00005a90| 6f 6e 2f 4e 65 78 74 44 | 65 76 2f 4e 65 78 74 53 |on/NextD|ev/NextS|
|00005aa0| 74 65 70 2f 43 6f 6e 63 | 65 70 74 73 5f 76 2e 31 |tep/Conc|epts_v.1|
|00005ab0| 2e 30 2f 0d 09 30 35 5f | 45 76 65 6e 74 73 2e 72 |.0/..05_|Events.r|
|00005ac0| 74 66 64 0d 2f 4e 65 78 | 74 4c 69 62 72 61 72 79 |tfd./Nex|tLibrary|
|00005ad0| 2f 44 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2f 4e |/Documen|tation/N|
|00005ae0| 65 78 74 44 65 76 2f 4e | 65 78 74 53 74 65 70 2f |extDev/N|extStep/|
|00005af0| 43 6f 6e 63 65 70 74 73 | 5f 76 2e 31 2e 30 2f 0d |Concepts|_v.1.0/.|
|00005b00| 09 30 37 5f 50 72 6f 67 | 44 79 6e 61 6d 2e 72 74 |.07_Prog|Dynam.rt|
|00005b10| 66 64 0d ff 00 15 14 00 | f7 09 54 68 65 73 65 20 |fd......|..These |
|00005b20| 63 68 61 70 74 65 72 73 | 20 68 61 76 65 20 6d 75 |chapters| have mu|
|00005b30| 63 68 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |ch infor|mation o|
|00005b40| 6e 20 61 64 76 61 6e 63 | 65 64 20 64 72 61 77 69 |n advanc|ed drawi|
|00005b50| 6e 67 20 74 65 63 68 6e | 69 71 75 65 73 20 61 6e |ng techn|iques an|
|00005b60| 64 20 65 76 65 6e 74 20 | 68 61 6e 64 6c 69 6e 67 |d event |handling|
|00005b70| 2e 20 20 ff 00 15 14 02 | f7 42 61 73 65 64 20 6f |. .....|.Based o|
|00005b80| 6e 20 52 65 6c 65 61 73 | 65 20 31 2e 30 ff 00 15 |n Releas|e 1.0...|
|00005b90| 14 00 f7 2e 0d 0d fc 00 | 73 02 d1 00 59 00 0e f7 |........|s...Y...|
|00005ba0| ff 00 15 14 03 f7 2f 4e | 65 78 74 44 65 76 65 6c |....../N|extDevel|
|00005bb0| 6f 70 65 72 2f 45 78 61 | 6d 70 6c 65 73 2f 56 69 |oper/Exa|mples/Vi|
|00005bc0| 73 69 62 6c 65 56 69 65 | 77 0d f9 00 f7 ff 00 15 |sibleVie|w.......|
|00005bd0| 14 00 f7 09 54 68 69 73 | 20 65 78 63 65 6c 6c 65 |....This| excelle|
|00005be0| 6e 74 20 64 65 6d 6f 6e | 73 74 72 61 74 69 6f 6e |nt demon|stration|
|00005bf0| 20 6f 66 20 76 69 65 77 | 73 20 69 6e 63 6c 75 64 | of view|s includ|
|00005c00| 65 73 20 65 78 61 6d 70 | 6c 65 73 20 6f 66 20 6d |es examp|les of m|
|00005c10| 6f 75 73 65 74 72 61 63 | 6b 69 6e 67 2e 20 20 54 |ousetrac|king. T|
|00005c20| 68 69 73 20 69 73 20 75 | 73 65 64 20 61 73 20 61 |his is u|sed as a|
|00005c30| 20 74 65 61 63 68 69 6e | 67 20 61 69 64 20 61 74 | teachin|g aid at|
|00005c40| 20 74 68 65 20 4e 65 58 | 54 20 44 65 76 65 6c 6f | the NeX|T Develo|
|00005c50| 70 65 72 20 43 61 6d 70 | 2e 0d 0d ff 00 15 14 03 |per Camp|........|
|00005c60| f7 2f 4e 65 78 74 44 65 | 76 65 6c 6f 70 65 72 2f |./NextDe|veloper/|
|00005c70| 45 78 61 6d 70 6c 65 73 | 2f 43 6f 6d 70 6f 73 69 |Examples|/Composi|
|00005c80| 74 65 4c 61 62 0d ff 00 | 15 14 00 f7 09 54 68 69 |teLab...|.....Thi|
|00005c90| 73 20 69 73 20 61 20 67 | 6f 6f 64 20 64 65 6d 6f |s is a g|ood demo|
|00005ca0| 6e 73 74 72 61 74 69 6f | 6e 20 61 6e 64 20 65 78 |nstratio|n and ex|
|00005cb0| 61 6d 70 6c 65 20 6f 66 | 20 74 68 65 20 76 61 72 |ample of| the var|
|00005cc0| 69 6f 75 73 20 63 6f 6d | 70 6f 73 69 74 69 6e 67 |ious com|positing|
|00005cd0| 20 6d 6f 64 65 73 20 61 | 6e 64 20 74 68 65 20 75 | modes a|nd the u|
|00005ce0| 73 65 20 6f 66 20 4e 58 | 49 6d 61 67 65 2e 0d 00 |se of NX|Image...|
|00005cf0| 00 00 78 00 03 00 00 00 | 48 00 48 00 00 00 00 02 |..x.....|H.H.....|
|00005d00| 64 03 18 00 00 00 00 02 | 64 03 18 01 5b 05 28 03 |d.......|d...[.(.|
|00005d10| fc 00 02 00 00 00 48 00 | 48 00 00 00 00 03 18 02 |......H.|H.......|
|00005d20| 64 00 01 00 00 00 64 00 | 00 00 01 00 01 01 01 00 |d.....d.|........|
|00005d30| 00 00 01 27 0f 00 01 00 | 01 00 00 00 00 00 00 00 |...'....|........|
|00005d40| 00 00 00 00 00 00 02 00 | 19 01 90 00 00 00 00 00 |........|........|
|00005d50| 40 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |@.......|........|
|00005d60| 00 00 00 00 00 00 00 00 | 00 00 00 01 b3 2f 4e 65 |........|...../Ne|
|00005d70| 78 74 44 65 76 65 6c 6f | 70 65 72 2f 45 78 61 6d |xtDevelo|per/Exam|
|00005d80| 70 6c 65 73 2f 50 61 69 | 6e 74 4c 61 62 0d f9 00 |ples/Pai|ntLab...|
|00005d90| f7 ff 00 15 14 00 f7 09 | 42 6f 74 68 20 63 6f 6d |........|Both com|
|00005da0| 70 6f 73 69 74 69 6e 67 | 20 61 6e 64 20 6d 6f 75 |positing| and mou|
|00005db0| 73 65 74 72 61 63 6b 69 | 6e 67 20 61 72 65 20 73 |setracki|ng are s|
|00005dc0| 68 6f 77 6e 20 68 65 72 | 65 2e 20 20 54 68 69 73 |hown her|e. This|
|00005dd0| 20 69 73 20 66 72 6f 6d | 20 74 68 65 20 4e 65 58 | is from| the NeX|
|00005de0| 54 20 44 65 76 65 6c 6f | 70 65 72 27 73 20 43 61 |T Develo|per's Ca|
|00005df0| 6d 70 2e 0d 0d ff 00 15 | 14 03 f7 f5 2f 4e 65 78 |mp......|..../Nex|
|00005e00| 74 44 65 76 65 6c 6f 70 | 65 72 2f 45 78 61 6d 70 |tDevelop|er/Examp|
|00005e10| 6c 65 73 2f 53 63 72 6f | 6c 6c 44 6f 6f 64 53 63 |les/Scro|llDoodSc|
|00005e20| 72 6f 6c 6c 0d f9 00 f7 | ff 00 15 14 00 f7 09 45 |roll....|.......E|
|00005e30| 78 61 6d 70 6c 65 20 6f | 66 20 74 68 65 20 75 73 |xample o|f the us|
|00005e40| 65 20 6f 66 20 73 63 72 | 6f 6c 6c 56 69 65 77 73 |e of scr|ollViews|
|00005e50| 2e 0d 0d ff 00 15 14 03 | f7 f5 2f 50 75 62 6c 69 |........|../Publi|
|00005e60| 63 44 65 76 65 6c 6f 70 | 65 72 2f 45 78 61 6d 70 |cDevelop|er/Examp|
|00005e70| 6c 65 73 2f 53 69 6d 70 | 6c 65 44 72 61 77 ff 00 |les/Simp|leDraw..|
|00005e80| 15 14 01 f7 0d ff 00 15 | 14 00 f7 09 54 68 69 73 |........|....This|
|00005e90| 20 65 78 61 6d 70 6c 65 | 20 69 6e 63 6c 75 64 65 | example| include|
|00005ea0| 73 20 64 72 61 77 69 6e | 67 2c 20 69 6e 73 74 61 |s drawin|g, insta|
|00005eb0| 6e 63 65 20 64 72 61 77 | 69 6e 67 2c 20 73 63 72 |nce draw|ing, scr|
|00005ec0| 6f 6c 6c 56 69 65 77 73 | 2c 20 61 6e 64 20 6d 6f |ollViews|, and mo|
|00005ed0| 75 73 65 74 72 61 63 6b | 69 6e 67 2e 20 20 49 74 |usetrack|ing. It|
|00005ee0| 20 69 73 20 69 6e 63 6f | 6d 70 6c 65 74 65 20 61 | is inco|mplete a|
|00005ef0| 6e 64 20 6e 65 65 64 73 | 20 73 6f 6d 65 20 77 6f |nd needs| some wo|
|00005f00| 72 6b 2c 20 61 20 67 6f | 6f 64 20 70 72 6f 6a 65 |rk, a go|od proje|
|00005f10| 63 74 20 74 6f 20 6c 65 | 61 72 6e 20 6f 6e 2e 0d |ct to le|arn on..|
|00005f20| 00 3a fc 00 74 02 d1 00 | 74 03 0e f7 0d fc 00 74 |.:..t...|t......t|
|00005f30| 02 d1 00 74 02 0e f7 ff | 00 15 12 00 f7 38 20 2d |...t....|.....8 -|
|00005f40| 20 fd 00 f7 ff 00 15 0c | 03 f7 0d fc 00 74 02 d1 | .......|.....t..|
|00005f50| 00 74 00 0e f7 ff 00 15 | 0e 00 f7 0d 02 bc fc 00 |.t......|........|
|00005f60| 37 02 f0 03 00 37 80 15 | 01 64 01 b8 03 d4 04 e8 |7....7..|.d......|
|00005f70| 06 f0 00 07 a4 f7 ff 00 | 15 14 01 f7 f5 ff 00 16 |........|........|
|00005f80| 16 01 f7 2d 6d 61 6b 65 | 41 6e 64 44 72 61 77 53 |...-make|AndDrawS|
|00005f90| 6f 75 72 63 65 3a 28 66 | 6c 6f 61 74 29 72 61 64 |ource:(f|loat)rad|
|00005fa0| 69 75 73 20 77 69 74 68 | 47 72 61 79 3a 28 66 6c |ius with|Gray:(fl|
|00005fb0| 6f 61 74 29 67 72 61 79 | 0d fc 00 37 02 d1 00 37 |oat)gray|...7...7|
|00005fc0| 80 15 01 64 01 b8 03 d4 | 04 e8 06 f0 00 07 a4 f7 |...d....|........|
|00005fd0| 7b 0d fc 00 37 02 d1 00 | 37 80 15 01 44 01 f0 0c |{...7...|7...D...|
|00005fe0| 03 d4 04 e8 06 f0 00 07 | a4 f7 09 4e 58 52 65 63 |........|...NXRec|
|00005ff0| 74 20 72 3b 0d fc 00 37 | 03 02 00 37 80 15 01 44 |t r;...7|...7...D|
|00006000| 01 f0 0c 03 d4 04 e8 06 | f0 00 07 a4 f7 09 4e 58 |........|......NX|
|00006010| 53 65 74 52 65 63 74 28 | 26 72 2c 30 2e 30 2c 30 |SetRect(|&r,0.0,0|
|00006020| 2e 30 2c 32 2e 2a 72 61 | 64 69 75 73 2c 32 2e 2a |.0,2.*ra|dius,2.*|
|00006030| 72 61 64 69 75 73 29 3b | 0d 09 73 6f 75 72 63 65 |radius);|..source|
|00006040| 20 3d 20 5b 5b 4e 58 49 | 6d 61 67 65 20 61 6c 6c | = [[NXI|mage all|
|00006050| 6f 63 5d 20 69 6e 69 74 | 53 69 7a 65 3a 26 72 2e |oc] init|Size:&r.|
|00006060| 73 69 7a 65 5d 3b 0d 09 | 5b 73 6f 75 72 63 65 20 |size];..|[source |
|00006070| 6c 6f 63 6b 46 6f 63 75 | 73 5d 3b 0d 09 09 5b 73 |lockFocu|s];...[s|
|00006080| 6f 75 72 63 65 20 63 6f | 6d 70 6f 73 69 74 65 3a |ource co|mposite:|
|00006090| 4e 58 5f 43 4c 45 41 52 | 20 66 72 6f 6d 52 65 63 |NX_CLEAR| fromRec|
|000060a0| 74 3a 26 72 0d 09 09 09 | 09 09 20 74 6f 50 6f 69 |t:&r....|.. toPoi|
|000060b0| 6e 74 3a 26 72 2e 6f 72 | 69 67 69 6e 5d 3b 0d 09 |nt:&r.or|igin];..|
|000060c0| 09 50 53 61 72 63 28 72 | 61 64 69 75 73 2c 72 61 |.PSarc(r|adius,ra|
|000060d0| 64 69 75 73 2c 72 61 64 | 69 75 73 2c 30 2e 2c 33 |dius,rad|ius,0.,3|
|000060e0| 36 30 2e 30 29 3b 0d 09 | 09 50 53 73 65 74 67 72 |60.0);..|.PSsetgr|
|000060f0| 61 79 28 67 72 61 79 29 | 3b 0d 09 09 50 53 66 69 |ay(gray)|;...PSfi|
|00006100| 6c 6c 28 29 3b 0d 09 5b | 73 6f 75 72 63 65 20 75 |ll();..[|source u|
|00006110| 6e 6c 6f 63 6b 46 6f 63 | 75 73 5d 3b 0d 09 72 65 |nlockFoc|us];..re|
|00006120| 74 75 72 6e 20 73 65 6c | 66 3b 0d 7d 0d 0d 2d 64 |turn sel|f;.}..-d|
|00006130| 72 61 77 53 65 6c 66 3a | 28 63 6f 6e 73 74 20 4e |rawSelf:|(const N|
|00006140| 58 52 65 63 74 20 2a 29 | 72 20 3a 28 69 6e 74 29 |XRect *)|r :(int)|
|00006150| 63 0d 7b 0d 09 4e 58 45 | 72 61 73 65 52 65 63 74 |c.{..NXE|raseRect|
|00006160| 28 26 62 6f 75 6e 64 73 | 29 3b 0d 09 5b 73 65 6c |(&bounds|);..[sel|
|00006170| 66 20 64 6f 53 6f 6d 65 | 4f 74 68 65 72 44 72 61 |f doSome|OtherDra|
|00006180| 77 69 6e 67 5d 3b 0d fc | 00 37 03 0e 00 37 80 15 |wing];..|.7...7..|
|00006190| 01 44 01 f0 0c 03 d4 04 | e8 06 f0 00 07 a4 f7 09 |.D......|........|
|000061a0| 5b 73 6f 75 72 63 65 20 | 63 6f 6d 70 6f 73 69 74 |[source |composit|
|000061b0| 65 3a 4e 58 5f 53 4f 56 | 45 52 20 74 6f 50 6f 69 |e:NX_SOV|ER toPoi|
|000061c0| 6e 74 3a 26 62 6f 75 6e | 64 73 2e 6f 72 69 67 69 |nt:&boun|ds.origi|
|000061d0| 6e 5d 3b 0d fc 00 37 03 | 02 00 37 80 15 01 44 01 |n];...7.|..7...D.|
|000061e0| f0 0c 03 d4 04 e8 06 f0 | 00 07 a4 f7 09 72 65 74 |........|.....ret|
|000061f0| 75 72 6e 20 73 65 6c 66 | 3b 0d fc 00 37 03 02 00 |urn self|;...7...|
|00006200| 37 80 15 01 94 01 f0 0c | 03 d4 04 e8 06 f0 00 07 |7.......|........|
|00006210| a4 f7 7d ff 00 16 14 00 | f7 0d 01 20 0d ff 00 16 |..}.....|... ....|
|00006220| 16 01 f7 2d 20 6d 6f 75 | 73 65 55 70 3a 28 4e 58 |...- mou|seUp:(NX|
|00006230| 45 76 65 6e 74 20 2a 29 | 65 0d 7b 0d 09 09 4e 58 |Event *)|e.{...NX|
|00006240| 50 6f 69 6e 74 20 70 74 | 20 3d 20 65 2d 3e 6c 6f |Point pt| = e->lo|
|00006250| 63 61 74 69 6f 6e 3b 0d | 09 09 5b 73 65 6c 66 20 |cation;.|..[self |
|00006260| 63 6f 6e 76 65 72 74 50 | 6f 69 6e 74 3a 26 70 74 |convertP|oint:&pt|
|00006270| 20 66 72 6f 6d 56 69 65 | 77 3a 6e 69 6c 5d 3b 0d | fromVie|w:nil];.|
|00006280| 09 09 69 66 28 4e 58 4d | 6f 75 73 65 49 6e 52 65 |..if(NXM|ouseInRe|
|00006290| 63 74 28 26 70 74 2c 26 | 62 6f 75 6e 64 73 2c 0d |ct(&pt,&|bounds,.|
|000062a0| 09 09 09 09 09 5b 73 65 | 6c 66 20 69 73 46 6c 69 |.....[se|lf isFli|
|000062b0| 70 70 65 64 5d 29 29 0d | 09 09 09 5b 73 65 6c 66 |pped])).|...[self|
|000062c0| 20 64 6f 4d 6f 75 73 65 | 41 63 74 69 6f 6e 5d 3b | doMouse|Action];|
|000062d0| 0d 09 09 72 65 74 75 72 | 6e 20 73 65 6c 66 3b 0d |...retur|n self;.|
|000062e0| 7d 0d 2d 20 64 72 61 77 | 53 65 6c 66 3a 28 63 6f |}.- draw|Self:(co|
|000062f0| 6e 73 74 20 4e 58 52 65 | 63 74 20 2a 29 72 20 3a |nst NXRe|ct *)r :|
|00006300| 28 69 6e 74 29 20 63 0d | 7b 0d 09 09 4e 58 44 72 |(int) c.|{...NXDr|
|00006310| 61 77 52 69 64 67 65 28 | 26 62 6f 75 6e 64 73 29 |awRidge(|&bounds)|
|00006320| 3b 0d 09 09 72 65 74 75 | 72 6e 20 73 65 6c 66 3b |;...retu|rn self;|
|00006330| 0d 7d f9 00 f7 ff 00 16 | 18 00 f7 0d 00 a8 04 00 |.}......|........|
|00006340| 02 00 00 4c 04 00 02 06 | 00 4c 64 00 5f 20 00 38 |...L....|.Ld._ .8|
|00006350| 64 00 04 47 00 3c 64 00 | 04 72 00 3c 24 00 02 0c |d..G.<d.|.r.<$...|
|00006360| 00 3c 04 00 02 2d 00 30 | 24 00 02 32 00 3c 24 00 |.<...-.0|$..2.<$.|
|00006370| 02 4e 00 3c 64 00 02 70 | 00 3c 64 00 02 a0 00 3c |.N.<d..p|.<d....<|
|00006380| 64 00 02 d8 00 3c 04 00 | 03 20 00 30 64 00 03 25 |d....<..|. .0d..%|
|00006390| 00 3c 24 00 03 4f 00 3c | 24 00 03 86 00 3c 24 00 |.<$..O.<|$....<$.|
|000063a0| 03 a0 00 3c 04 00 04 1a | 00 30 24 00 04 1f 00 3c |...<....|.0$....<|
|000063b0| 24 00 28 65 00 3c 24 00 | 28 9c 00 3c 24 00 28 cf |$.(e.<$.|(..<$.(.|
|000063c0| 00 3b 24 00 28 ef 00 3a | 24 00 29 0e 00 3a 24 00 |.;$.(..:|$.)..:$.|
|000063d0| 3b 2f 00 3a 24 00 3b 49 | 00 3a 24 00 3b 88 00 3a |;/.:$.;I|.:$.;..:|
|000063e0| 24 00 3b 63 00 3a 02 1c | f5 09 ff 00 15 18 01 f7 |$.;c.:..|........|
|000063f0| 41 6e 20 65 78 61 6d 70 | 6c 65 20 6d 6f 64 61 6c |An examp|le modal|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.