home *** CD-ROM | disk | FTP | other *** search
Unknown | 1994-08-11 | 7.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 e8 08 4f 76 65 72 76 | 69 65 77 08 43 6f 6e 74 |...Overv|iew.Cont|
|00000010| 65 6e 74 73 1d 46 69 67 | 75 72 65 73 2c 20 54 61 |ents.Fig|ures, Ta|
|00000020| 62 6c 65 73 2c 20 61 6e | 64 20 4c 69 73 74 69 6e |bles, an|d Listin|
|00000030| 67 73 0f 41 62 6f 75 74 | 20 54 68 69 73 20 42 6f |gs.About| This Bo|
|00000040| 6f 6b 16 41 62 6f 75 74 | 20 49 6e 73 69 64 65 20 |ok.About| Inside |
|00000050| 4d 61 63 69 6e 74 6f 73 | 68 18 54 68 65 20 4e 65 |Macintos|h.The Ne|
|00000060| 77 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |w Inside| Macinto|
|00000070| 73 68 1d 43 6f 6e 76 65 | 6e 74 69 6f 6e 73 20 55 |sh.Conve|ntions U|
|00000080| 73 65 64 20 69 6e 20 54 | 68 69 73 20 42 6f 6f 6b |sed in T|his Book|
|00000090| 0d 53 70 65 63 69 61 6c | 20 46 6f 6e 74 73 0e 54 |.Special| Fonts.T|
|000000a0| 79 70 65 73 20 6f 66 20 | 4e 6f 74 65 73 17 44 65 |ypes of |Notes.De|
|000000b0| 76 65 6c 6f 70 6d 65 6e | 74 20 45 6e 76 69 72 6f |velopmen|t Enviro|
|000000c0| 6e 6d 65 6e 74 14 46 6f | 72 20 4d 6f 72 65 20 49 |nment.Fo|r More I|
|000000d0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0c 49 6e 74 72 6f |nformati|on.Intro|
|000000e0| 64 75 63 74 69 6f 6e 0f | 47 65 74 74 69 6e 67 20 |duction.|Getting |
|000000f0| 53 74 61 72 74 65 64 2a | 4c 69 73 74 69 6e 67 20 |Started*|Listing |
|00000100| 31 2d 31 09 41 20 73 69 | 6d 70 6c 65 20 4d 61 63 |1-1.A si|mple Mac|
|00000110| 69 6e 74 6f 73 68 20 61 | 70 70 6c 69 63 61 74 69 |intosh a|pplicati|
|00000120| 6f 6e 37 46 69 67 75 72 | 65 20 31 2d 31 09 54 68 |on7Figur|e 1-1.Th|
|00000130| 65 20 77 69 6e 64 6f 77 | 20 63 72 65 61 74 65 64 |e window| created|
|00000140| 20 62 79 20 74 68 65 20 | 73 69 6d 70 6c 65 20 61 | by the |simple a|
|00000150| 70 70 6c 69 63 61 74 69 | 6f 6e 38 54 61 62 6c 65 |pplicati|on8Table|
|00000160| 20 31 2d 31 09 50 61 72 | 61 6d 65 74 65 72 73 20 | 1-1.Par|ameters |
|00000170| 70 61 73 73 65 64 20 74 | 6f 20 4e 65 77 57 69 6e |passed t|o NewWin|
|00000180| 64 6f 77 20 69 6e 20 4c | 69 73 74 69 6e 67 20 31 |dow in L|isting 1|
|00000190| 2d 31 20 1d 54 68 65 20 | 4d 61 63 69 6e 74 6f 73 |-1 .The |Macintos|
|000001a0| 68 20 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |h System| Softwar|
|000001b0| 65 2a 46 69 67 75 72 65 | 20 31 2d 32 09 4f 76 65 |e*Figure| 1-2.Ove|
|000001c0| 72 76 69 65 77 20 6f 66 | 20 74 68 65 20 73 79 73 |rview of| the sys|
|000001d0| 74 65 6d 20 73 6f 66 74 | 77 61 72 65 15 54 68 65 |tem soft|ware.The|
|000001e0| 20 4d 61 63 69 6e 74 6f | 73 68 20 54 6f 6f 6c 62 | Macinto|sh Toolb|
|000001f0| 6f 78 29 46 69 67 75 72 | 65 20 31 2d 33 09 50 61 |ox)Figur|e 1-3.Pa|
|00000200| 72 74 73 20 6f 66 20 74 | 68 65 20 4d 61 63 69 6e |rts of t|he Macin|
|00000210| 74 6f 73 68 20 54 6f 6f | 6c 62 6f 78 20 54 61 62 |tosh Too|lbox Tab|
|00000220| 6c 65 20 31 2d 32 09 54 | 68 65 20 4d 61 63 69 6e |le 1-2.T|he Macin|
|00000230| 74 6f 73 68 20 54 6f 6f | 6c 62 6f 78 20 1e 54 68 |tosh Too|lbox .Th|
|00000240| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 4f 70 65 72 |e Macint|osh Oper|
|00000250| 61 74 69 6e 67 20 53 79 | 73 74 65 6d 29 54 61 62 |ating Sy|stem)Tab|
|00000260| 6c 65 20 31 2d 33 09 54 | 68 65 20 4d 61 63 69 6e |le 1-3.T|he Macin|
|00000270| 74 6f 73 68 20 4f 70 65 | 72 61 74 69 6e 67 20 53 |tosh Ope|rating S|
|00000280| 79 73 74 65 6d 20 23 41 | 64 64 69 74 69 6f 6e 61 |ystem #A|dditiona|
|00000290| 6c 20 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |l System| Softwar|
|000002a0| 65 20 53 65 72 76 69 63 | 65 73 0d 54 65 78 74 20 |e Servic|es.Text |
|000002b0| 48 61 6e 64 6c 69 6e 67 | 38 46 69 67 75 72 65 20 |Handling|8Figure |
|000002c0| 31 2d 34 09 41 20 6d 75 | 6c 74 69 73 63 72 69 70 |1-4.A mu|ltiscrip|
|000002d0| 74 20 6c 69 6e 65 20 6f | 66 20 74 65 78 74 20 64 |t line o|f text d|
|000002e0| 72 61 77 6e 20 62 79 20 | 51 75 69 63 6b 44 72 61 |rawn by |QuickDra|
|000002f0| 77 50 46 69 67 75 72 65 | 20 31 2d 35 09 49 6e 70 |wPFigure| 1-5.Inp|
|00000300| 75 74 20 61 6e 64 20 63 | 6f 6e 76 65 72 73 69 6f |ut and c|onversio|
|00000310| 6e 20 6f 66 20 4a 61 70 | 61 6e 65 73 65 20 74 65 |n of Jap|anese te|
|00000320| 78 74 20 75 73 69 6e 67 | 20 74 68 65 20 54 65 78 |xt using| the Tex|
|00000330| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00000340| 65 72 1e 49 6e 74 65 72 | 61 70 70 6c 69 63 61 74 |er.Inter|applicat|
|00000350| 69 6f 6e 20 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ion Comm|unicatio|
|00000360| 6e 37 46 69 67 75 72 65 | 20 31 2d 36 09 53 68 61 |n7Figure| 1-6.Sha|
|00000370| 72 69 6e 67 20 64 79 6e | 61 6d 69 63 20 64 61 74 |ring dyn|amic dat|
|00000380| 61 20 77 69 74 68 20 6f | 74 68 65 72 20 61 70 70 |a with o|ther app|
|00000390| 6c 69 63 61 74 69 6f 6e | 73 31 46 69 67 75 72 65 |lication|s1Figure|
|000003a0| 20 31 2d 37 09 53 65 6e | 64 69 6e 67 20 61 6e 64 | 1-7.Sen|ding and|
|000003b0| 20 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 41 | respond|ing to A|
|000003c0| 70 70 6c 65 20 65 76 65 | 6e 74 73 09 51 75 69 63 |pple eve|nts.Quic|
|000003d0| 6b 54 69 6d 65 24 46 69 | 67 75 72 65 20 31 2d 38 |kTime$Fi|gure 1-8|
|000003e0| 09 50 6c 61 79 69 6e 67 | 20 61 20 51 75 69 63 6b |.Playing| a Quick|
|000003f0| 54 69 6d 65 20 6d 6f 76 | 69 65 16 43 6f 6d 6d 75 |Time mov|ie.Commu|
|00000400| 6e 69 63 61 74 69 6f 6e | 73 20 54 6f 6f 6c 62 6f |nication|s Toolbo|
|00000410| 78 18 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |x.System| Softwar|
|00000420| 65 20 52 6f 75 74 69 6e | 65 73 16 54 68 65 20 53 |e Routin|es.The S|
|00000430| 61 6d 70 6c 65 20 41 70 | 70 6c 69 63 61 74 69 6f |ample Ap|plicatio|
|00000440| 6e 28 46 69 67 75 72 65 | 20 31 2d 39 09 41 20 74 |n(Figure| 1-9.A t|
|00000450| 79 70 69 63 61 6c 20 56 | 65 6e 6e 20 64 69 61 67 |ypical V|enn diag|
|00000460| 72 61 6d 20 77 69 6e 64 | 6f 77 2e 46 69 67 75 72 |ram wind|ow.Figur|
|00000470| 65 20 31 2d 31 30 09 54 | 68 65 20 70 61 72 74 73 |e 1-10.T|he parts|
|00000480| 20 6f 66 20 61 20 56 65 | 6e 6e 20 64 69 61 67 72 | of a Ve|nn diagr|
|00000490| 61 6d 20 77 69 6e 64 6f | 77 30 46 69 67 75 72 65 |am windo|w0Figure|
|000004a0| 20 31 2d 31 31 09 41 20 | 63 6f 72 72 65 63 74 6c | 1-11.A |correctl|
|000004b0| 79 20 63 6f 6e 73 74 72 | 75 63 74 65 64 20 56 65 |y constr|ucted Ve|
|000004c0| 6e 6e 20 64 69 61 67 72 | 61 6d 19 46 69 67 75 72 |nn diagr|am.Figur|
|000004d0| 65 20 31 2d 31 32 09 54 | 68 65 20 56 65 6e 6e 20 |e 1-12.T|he Venn |
|000004e0| 6d 65 6e 75 1b 43 6f 6e | 76 65 6e 74 69 6f 6e 73 |menu.Con|ventions|
|000004f0| 20 66 6f 72 20 53 61 6d | 70 6c 65 20 43 6f 64 65 | for Sam|ple Code|
|00000500| 06 4d 65 6d 6f 72 79 0c | 41 62 6f 75 74 20 4d 65 |.Memory.|About Me|
|00000510| 6d 6f 72 79 4a 46 69 67 | 75 72 65 20 32 2d 31 09 |moryJFig|ure 2-1.|
|00000520| 4d 65 6d 6f 72 79 20 6f | 72 67 61 6e 69 7a 61 74 |Memory o|rganizat|
|00000530| 69 6f 6e 20 69 6e 20 74 | 68 65 20 63 6f 6f 70 65 |ion in t|he coope|
|00000540| 72 61 74 69 76 65 20 6d | 75 6c 74 69 74 61 73 6b |rative m|ultitask|
|00000550| 69 6e 67 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 0f |ing envi|ronment.|
|00000560| 54 68 65 20 53 79 73 74 | 65 6d 20 48 65 61 70 1b |The Syst|em Heap.|
|00000570| 54 68 65 20 53 79 73 74 | 65 6d 20 47 6c 6f 62 61 |The Syst|em Globa|
|00000580| 6c 20 56 61 72 69 61 62 | 6c 65 73 17 0d 41 70 70 |l Variab|les..App|
|00000590| 6c 69 63 61 74 69 6f 6e | 20 50 61 72 74 69 74 69 |lication| Partiti|
|000005a0| 6f 6e 73 33 46 69 67 75 | 72 65 20 32 2d 32 09 4f |ons3Figu|re 2-2.O|
|000005b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 20 6f 66 20 61 |rganizat|ion of a|
|000005c0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 70 61 |n applic|ation pa|
|000005d0| 72 74 69 74 69 6f 6e 15 | 54 68 65 20 41 70 70 6c |rtition.|The Appl|
|000005e0| 69 63 61 74 69 6f 6e 20 | 53 74 61 63 6b 20 46 69 |ication |Stack Fi|
|000005f0| 67 75 72 65 20 32 2d 33 | 09 54 68 65 20 61 70 70 |gure 2-3|.The app|
|00000600| 6c 69 63 61 74 69 6f 6e | 20 73 74 61 63 6b 14 54 |lication| stack.T|
|00000610| 68 65 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 48 |he Appli|cation H|
|00000620| 65 61 70 1c 46 69 67 75 | 72 65 20 32 2d 34 09 41 |eap.Figu|re 2-4.A|
|00000630| 20 66 72 61 67 6d 65 6e | 74 65 64 20 68 65 61 70 | fragmen|ted heap|
|00000640| 1b 46 69 67 75 72 65 20 | 32 2d 35 09 41 20 63 6f |.Figure |2-5.A co|
|00000650| 6d 70 61 63 74 65 64 20 | 68 65 61 70 2d 54 68 65 |mpacted |heap-The|
|00000660| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 47 6c 6f | Applica|tion Glo|
|00000670| 62 61 6c 20 56 61 72 69 | 61 62 6c 65 73 20 61 6e |bal Vari|ables an|
|00000680| 64 20 41 35 20 57 6f 72 | 6c 64 34 46 69 67 75 72 |d A5 Wor|ld4Figur|
|00000690| 65 20 32 2d 36 09 4f 72 | 67 61 6e 69 7a 61 74 69 |e 2-6.Or|ganizati|
|000006a0| 6f 6e 20 6f 66 20 61 6e | 20 61 70 70 6c 69 63 61 |on of an| applica|
|000006b0| 74 69 6f 6e d5 73 20 41 | 35 20 77 6f 72 6c 64 0d |tion.s A|5 world.|
|000006c0| 4d 65 6d 6f 72 79 20 42 | 6c 6f 63 6b 73 15 4e 6f |Memory B|locks.No|
|000006d0| 6e 72 65 6c 6f 63 61 74 | 61 62 6c 65 20 42 6c 6f |nrelocat|able Blo|
|000006e0| 63 6b 73 2e 46 69 67 75 | 72 65 20 32 2d 37 09 41 |cks.Figu|re 2-7.A|
|000006f0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 61 20 6e 6f | pointer| to a no|
|00000700| 6e 72 65 6c 6f 63 61 74 | 61 62 6c 65 20 62 6c 6f |nrelocat|able blo|
|00000710| 63 6b 12 52 65 6c 6f 63 | 61 74 61 62 6c 65 20 42 |ck.Reloc|atable B|
|00000720| 6c 6f 63 6b 73 2a 46 69 | 67 75 72 65 20 32 2d 38 |locks*Fi|gure 2-8|
|00000730| 09 41 20 68 61 6e 64 6c | 65 20 74 6f 20 61 20 72 |.A handl|e to a r|
|00000740| 65 6c 6f 63 61 74 61 62 | 6c 65 20 62 6c 6f 63 6b |elocatab|le block|
|00000750| 28 4c 6f 63 6b 69 6e 67 | 20 61 6e 64 20 55 6e 6c |(Locking| and Unl|
|00000760| 6f 63 6b 69 6e 67 20 52 | 65 6c 6f 63 61 74 61 62 |ocking R|elocatab|
|00000770| 6c 65 20 42 6c 6f 63 6b | 73 2b 50 75 72 67 69 6e |le Block|s+Purgin|
|00000780| 67 20 61 6e 64 20 52 65 | 61 6c 6c 6f 63 61 74 69 |g and Re|allocati|
|00000790| 6e 67 20 52 65 6c 6f 63 | 61 74 61 62 6c 65 20 42 |ng Reloc|atable B|
|000007a0| 6c 6f 63 6b 73 37 46 69 | 67 75 72 65 20 32 2d 39 |locks7Fi|gure 2-9|
|000007b0| 09 50 75 72 67 69 6e 67 | 20 61 6e 64 20 72 65 61 |.Purging| and rea|
|000007c0| 6c 6c 6f 63 61 74 69 6e | 67 20 61 20 72 65 6c 6f |llocatin|g a relo|
|000007d0| 63 61 74 61 62 6c 65 20 | 62 6c 6f 63 6b 0a 44 61 |catable |block.Da|
|000007e0| 74 61 20 54 79 70 65 73 | 14 50 6f 69 6e 74 65 72 |ta Types|.Pointer|
|000007f0| 73 20 61 6e 64 20 48 61 | 6e 64 6c 65 73 07 53 74 |s and Ha|ndles.St|
|00000800| 72 69 6e 67 73 12 50 72 | 6f 63 65 64 75 72 65 20 |rings.Pr|ocedure |
|00000810| 50 6f 69 6e 74 65 72 73 | 0d 54 79 70 65 20 43 6f |Pointers|.Type Co|
|00000820| 65 72 63 69 6f 6e 09 52 | 65 73 6f 75 72 63 65 73 |ercion.R|esources|
|00000830| 0f 41 62 6f 75 74 20 52 | 65 73 6f 75 72 63 65 73 |.About R|esources|
|00000840| 0e 52 65 73 6f 75 72 63 | 65 20 50 61 74 68 73 28 |.Resourc|e Paths(|
|00000850| 54 61 62 6c 65 20 33 2d | 31 09 54 79 70 69 63 61 |Table 3-|1.Typica|
|00000860| 6c 20 6c 6f 63 61 74 69 | 6f 6e 73 20 6f 66 20 72 |l locati|ons of r|
|00000870| 65 73 6f 75 72 63 65 73 | 23 46 69 67 75 72 65 20 |esources|#Figure |
|00000880| 33 2d 31 09 53 65 61 72 | 63 68 69 6e 67 20 66 6f |3-1.Sear|ching fo|
|00000890| 72 20 61 20 72 65 73 6f | 75 72 63 65 0e 52 65 73 |r a reso|urce.Res|
|000008a0| 6f 75 72 63 65 20 54 79 | 70 65 73 27 54 61 62 6c |ource Ty|pes'Tabl|
|000008b0| 65 20 33 2d 32 09 53 6f | 6d 65 20 73 74 61 6e 64 |e 3-2.So|me stand|
|000008c0| 61 72 64 20 72 65 73 6f | 75 72 63 65 20 74 79 70 |ard reso|urce typ|
|000008d0| 65 73 20 12 52 65 73 6f | 75 72 63 65 20 53 74 72 |es .Reso|urce Str|
|000008e0| 75 63 74 75 72 65 34 4c | 69 73 74 69 6e 67 20 33 |ucture4L|isting 3|
|000008f0| 2d 31 09 52 65 7a 20 69 | 6e 70 75 74 20 66 6f 72 |-1.Rez i|nput for|
|00000900| 20 74 68 65 20 50 72 65 | 66 65 72 65 6e 63 65 73 | the Pre|ferences|
|00000910| 20 64 69 61 6c 6f 67 20 | 62 6f 78 3c 46 69 67 75 | dialog |box<Figu|
|00000920| 72 65 20 33 2d 32 09 54 | 68 65 20 52 65 73 45 64 |re 3-2.T|he ResEd|
|00000930| 69 74 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |it versi|on of th|
|00000940| 65 20 50 72 65 66 65 72 | 65 6e 63 65 73 20 64 69 |e Prefer|ences di|
|00000950| 61 6c 6f 67 20 62 6f 78 | 1d 46 69 67 75 72 65 20 |alog box|.Figure |
|00000960| 33 2d 33 09 41 20 72 65 | 73 6f 75 72 63 65 20 64 |3-3.A re|source d|
|00000970| 69 61 67 72 61 6d 18 55 | 73 69 6e 67 20 53 74 61 |iagram.U|sing Sta|
|00000980| 6e 64 61 72 64 20 52 65 | 73 6f 75 72 63 65 73 16 |ndard Re|sources.|
|00000990| 55 73 69 6e 67 20 43 75 | 73 74 6f 6d 20 52 65 73 |Using Cu|stom Res|
|000009a0| 6f 75 72 63 65 73 25 46 | 69 67 75 72 65 20 33 2d |ources%F|igure 3-|
|000009b0| 34 09 54 68 65 20 50 72 | 65 66 65 72 65 6e 63 65 |4.The Pr|eference|
|000009c0| 73 20 64 69 61 6c 6f 67 | 20 62 6f 78 4b 4c 69 73 |s dialog| boxKLis|
|000009d0| 74 69 6e 67 20 33 2d 32 | 09 54 68 65 20 73 74 72 |ting 3-2|.The str|
|000009e0| 75 63 74 75 72 65 20 6f | 66 20 61 20 72 65 73 6f |ucture o|f a reso|
|000009f0| 75 72 63 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |urce con|taining |
|00000a00| 56 65 6e 6e 20 64 69 61 | 67 72 61 6d 20 70 72 65 |Venn dia|gram pre|
|00000a10| 66 65 72 65 6e 63 65 73 | 28 4c 69 73 74 69 6e 67 |ferences|(Listing|
|00000a20| 20 33 2d 33 09 52 65 61 | 64 69 6e 67 20 61 20 75 | 3-3.Rea|ding a u|
|00000a30| 73 65 72 d5 73 20 70 72 | 65 66 65 72 65 6e 63 65 |ser.s pr|eference|
|00000a40| 73 27 4c 69 73 74 69 6e | 67 20 33 2d 34 09 43 72 |s'Listin|g 3-4.Cr|
|00000a50| 65 61 74 69 6e 67 20 61 | 20 70 72 65 66 65 72 65 |eating a| prefere|
|00000a60| 6e 63 65 73 20 66 69 6c | 65 40 4c 69 73 74 69 6e |nces fil|e@Listin|
|00000a70| 67 20 33 2d 35 09 43 6f | 70 79 69 6e 67 20 61 20 |g 3-5.Co|pying a |
|00000a80| 72 65 73 6f 75 72 63 65 | 20 66 72 6f 6d 20 6f 6e |resource| from on|
|00000a90| 65 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 20 |e resour|ce file |
|00000aa0| 74 6f 20 61 6e 6f 74 68 | 65 72 2f 4c 69 73 74 69 |to anoth|er/Listi|
|00000ab0| 6e 67 20 33 2d 36 09 53 | 61 76 69 6e 67 20 63 75 |ng 3-6.S|aving cu|
|00000ac0| 72 72 65 6e 74 20 70 72 | 65 66 65 72 65 6e 63 65 |rrent pr|eference|
|00000ad0| 73 20 73 65 74 74 69 6e | 67 73 06 45 76 65 6e 74 |s settin|gs.Event|
|00000ae0| 73 0c 41 62 6f 75 74 20 | 45 76 65 6e 74 73 35 46 |s.About |Events5F|
|00000af0| 69 67 75 72 65 20 34 2d | 31 09 53 6f 75 72 63 65 |igure 4-|1.Source|
|00000b00| 73 20 6f 66 20 65 76 65 | 6e 74 73 20 73 65 6e 74 |s of eve|nts sent|
|00000b10| 20 74 6f 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | to your| applica|
|00000b20| 74 69 6f 6e 1c 0d 49 6e | 69 74 69 61 6c 69 7a 69 |tion..In|itializi|
|00000b30| 6e 67 20 61 6e 20 41 70 | 70 6c 69 63 61 74 69 6f |ng an Ap|plicatio|
|00000b40| 6e 29 4c 69 73 74 69 6e | 67 20 34 2d 31 09 49 6e |n)Listin|g 4-1.In|
|00000b50| 69 74 69 61 6c 69 7a 69 | 6e 67 20 79 6f 75 72 20 |itializi|ng your |
|00000b60| 61 70 70 6c 69 63 61 74 | 69 6f 6e 32 4c 69 73 74 |applicat|ion2List|
|00000b70| 69 6e 67 20 34 2d 32 09 | 49 6e 69 74 69 61 6c 69 |ing 4-2.|Initiali|
|00000b80| 7a 69 6e 67 20 74 68 65 | 20 6d 61 69 6e 20 54 6f |zing the| main To|
|00000b90| 6f 6c 62 6f 78 20 4d 61 | 6e 61 67 65 72 73 10 52 |olbox Ma|nagers.R|
|00000ba0| 65 63 65 69 76 69 6e 67 | 20 45 76 65 6e 74 73 29 |eceiving| Events)|
|00000bb0| 4c 69 73 74 69 6e 67 20 | 34 2d 33 09 48 61 6e 64 |Listing |4-3.Hand|
|00000bc0| 6c 69 6e 67 20 64 69 73 | 6b 2d 69 6e 73 65 72 74 |ling dis|k-insert|
|00000bd0| 65 64 20 65 76 65 6e 74 | 73 19 4c 69 73 74 69 6e |ed event|s.Listin|
|00000be0| 67 20 34 2d 34 09 41 6e | 20 65 76 65 6e 74 20 6c |g 4-4.An| event l|
|00000bf0| 6f 6f 70 2b 48 61 6e 64 | 6c 69 6e 67 20 45 76 65 |oop+Hand|ling Eve|
|00000c00| 6e 74 73 20 4f 75 74 73 | 69 64 65 20 74 68 65 20 |nts Outs|ide the |
|00000c10| 4d 61 69 6e 20 45 76 65 | 6e 74 20 4c 6f 6f 70 32 |Main Eve|nt Loop2|
|00000c20| 4c 69 73 74 69 6e 67 20 | 34 2d 35 09 54 72 61 63 |Listing |4-5.Trac|
|00000c30| 6b 69 6e 67 20 6d 6f 75 | 73 65 20 65 76 65 6e 74 |king mou|se event|
|00000c40| 73 20 69 6e 20 74 68 65 | 20 63 6c 6f 73 65 20 62 |s in the| close b|
|00000c50| 6f 78 39 4c 69 73 74 69 | 6e 67 20 34 2d 36 09 54 |ox9Listi|ng 4-6.T|
|00000c60| 72 61 63 6b 69 6e 67 20 | 74 68 65 20 63 75 72 73 |racking |the curs|
|00000c70| 6f 72 20 69 6e 20 61 6e | 20 61 72 62 69 74 72 61 |or in an| arbitra|
|00000c80| 72 79 20 72 65 63 74 61 | 6e 67 6c 65 07 44 72 61 |ry recta|ngle.Dra|
|00000c90| 77 69 6e 67 0f 41 62 6f | 75 74 20 51 75 69 63 6b |wing.Abo|ut Quick|
|00000ca0| 44 72 61 77 2b 46 69 67 | 75 72 65 20 35 2d 31 09 |Draw+Fig|ure 5-1.|
|00000cb0| 53 61 6d 70 6c 65 73 20 | 6f 66 20 51 75 69 63 6b |Samples |of Quick|
|00000cc0| 44 72 61 77 d5 73 20 61 | 62 69 6c 69 74 69 65 73 |Draw.s a|bilities|
|00000cd0| 06 50 6f 69 6e 74 73 1f | 46 69 67 75 72 65 20 35 |.Points.|Figure 5|
|00000ce0| 2d 32 09 54 68 65 20 63 | 6f 6f 72 64 69 6e 61 74 |-2.The c|oordinat|
|00000cf0| 65 20 70 6c 61 6e 65 0a | 52 65 63 74 61 6e 67 6c |e plane.|Rectangl|
|00000d00| 65 73 16 46 69 67 75 72 | 65 20 35 2d 33 09 41 20 |es.Figur|e 5-3.A |
|00000d10| 72 65 63 74 61 6e 67 6c | 65 20 46 69 67 75 72 65 |rectangl|e Figure|
|00000d20| 20 35 2d 34 09 50 69 78 | 65 6c 73 20 61 6e 64 20 | 5-4.Pix|els and |
|00000d30| 72 65 63 74 61 6e 67 6c | 65 73 07 52 65 67 69 6f |rectangl|es.Regio|
|00000d40| 6e 73 16 46 69 67 75 72 | 65 20 35 2d 35 09 54 77 |ns.Figur|e 5-5.Tw|
|00000d50| 6f 20 72 65 67 69 6f 6e | 73 0a 42 69 74 20 49 6d |o region|s.Bit Im|
|00000d60| 61 67 65 73 13 46 69 67 | 75 72 65 20 35 2d 36 09 |ages.Fig|ure 5-6.|
|00000d70| 41 20 62 69 74 6d 61 70 | 11 50 6f 72 74 73 20 61 |A bitmap|.Ports a|
|00000d80| 6e 64 20 57 69 6e 64 6f | 77 73 3a 4c 69 73 74 69 |nd Windo|ws:Listi|
|00000d90| 6e 67 20 35 2d 31 09 53 | 61 76 69 6e 67 20 61 6e |ng 5-1.S|aving an|
|00000da0| 64 20 72 65 73 74 6f 72 | 69 6e 67 20 74 68 65 20 |d restor|ing the |
|00000db0| 63 75 72 72 65 6e 74 20 | 67 72 61 70 68 69 63 73 |current |graphics|
|00000dc0| 20 70 6f 72 74 0e 44 72 | 61 77 69 6e 67 20 53 68 | port.Dr|awing Sh|
|00000dd0| 61 70 65 73 4d 4c 69 73 | 74 69 6e 67 20 35 2d 32 |apesMLis|ting 5-2|
|00000de0| 09 54 68 65 20 73 74 72 | 75 63 74 75 72 65 20 6f |.The str|ucture o|
|00000df0| 66 20 61 20 72 65 63 6f | 72 64 20 64 65 73 63 72 |f a reco|rd descr|
|00000e00| 69 62 69 6e 67 20 61 20 | 64 6f 63 75 6d 65 6e 74 |ibing a |document|
|00000e10| 20 77 69 6e 64 6f 77 d5 | 73 20 67 65 6f 6d 65 74 | window.|s geomet|
|00000e20| 72 79 2c 4c 69 73 74 69 | 6e 67 20 35 2d 33 09 49 |ry,Listi|ng 5-3.I|
|00000e30| 6e 69 74 69 61 6c 69 7a | 69 6e 67 20 74 68 65 20 |nitializ|ing the |
|00000e40| 67 65 6f 6d 65 74 72 79 | 20 72 65 63 6f 72 64 25 |geometry| record%|
|00000e50| 4c 69 73 74 69 6e 67 20 | 35 2d 34 09 44 65 66 69 |Listing |5-4.Defi|
|00000e60| 6e 69 6e 67 20 63 69 72 | 63 75 6c 61 72 20 72 65 |ning cir|cular re|
|00000e70| 67 69 6f 6e 73 28 4c 69 | 73 74 69 6e 67 20 35 2d |gions(Li|sting 5-|
|00000e80| 35 09 44 65 66 69 6e 69 | 6e 67 20 6e 6f 6e 63 69 |5.Defini|ng nonci|
|00000e90| 72 63 75 6c 61 72 20 72 | 65 67 69 6f 6e 73 3c 46 |rcular r|egions<F|
|00000ea0| 69 67 75 72 65 20 35 2d | 37 09 43 61 6c 63 75 6c |igure 5-|7.Calcul|
|00000eb0| 61 74 69 6e 67 20 74 68 | 65 20 6f 76 65 72 6c 61 |ating th|e overla|
|00000ec0| 70 20 72 65 67 69 6f 6e | 73 20 6f 66 20 61 20 56 |p region|s of a V|
|00000ed0| 65 6e 6e 20 64 69 61 67 | 72 61 6d 13 0d 44 72 61 |enn diag|ram..Dra|
|00000ee0| 77 69 6e 67 20 42 69 74 | 20 49 6d 61 67 65 73 2a |wing Bit| Images*|
|00000ef0| 46 69 67 75 72 65 20 35 | 2d 38 09 42 69 74 20 69 |Figure 5|-8.Bit i|
|00000f00| 6d 61 67 65 73 20 69 6e | 20 61 20 64 6f 63 75 6d |mages in| a docum|
|00000f10| 65 6e 74 20 77 69 6e 64 | 6f 77 30 4c 69 73 74 69 |ent wind|ow0Listi|
|00000f20| 6e 67 20 35 2d 36 09 52 | 65 61 64 69 6e 67 20 27 |ng 5-6.R|eading '|
|00000f30| 49 43 4f 4e 27 20 72 65 | 73 6f 75 72 63 65 73 20 |ICON' re|sources |
|00000f40| 69 6e 74 6f 20 6d 65 6d | 6f 72 79 37 4c 69 73 74 |into mem|ory7List|
|00000f50| 69 6e 67 20 35 2d 37 09 | 44 72 61 77 69 6e 67 20 |ing 5-7.|Drawing |
|00000f60| 74 68 65 20 74 6f 6f 6c | 73 20 61 72 65 61 20 6f |the tool|s area o|
|00000f70| 66 20 61 20 64 6f 63 75 | 6d 65 6e 74 20 77 69 6e |f a docu|ment win|
|00000f80| 64 6f 77 28 4c 69 73 74 | 69 6e 67 20 35 2d 38 09 |dow(List|ing 5-8.|
|00000f90| 44 72 61 77 69 6e 67 20 | 61 20 70 6f 72 74 69 6f |Drawing |a portio|
|00000fa0| 6e 20 6f 66 20 61 6e 20 | 69 63 6f 6e 0c 44 72 61 |n of an |icon.Dra|
|00000fb0| 77 69 6e 67 20 54 65 78 | 74 37 4c 69 73 74 69 6e |wing Tex|t7Listin|
|00000fc0| 67 20 35 2d 39 09 52 65 | 74 72 69 65 76 69 6e 67 |g 5-9.Re|trieving|
|00000fd0| 20 61 20 73 74 61 74 75 | 73 20 6d 65 73 73 61 67 | a statu|s messag|
|00000fe0| 65 20 66 72 6f 6d 20 61 | 20 72 65 73 6f 75 72 63 |e from a| resourc|
|00000ff0| 65 47 4c 69 73 74 69 6e | 67 20 35 2d 31 30 09 49 |eGListin|g 5-10.I|
|00001000| 6e 66 6f 72 6d 69 6e 67 | 20 74 68 65 20 75 73 65 |nforming| the use|
|00001010| 72 20 6f 66 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |r of an |argument|
|00001020| d5 73 20 76 61 6c 69 64 | 69 74 79 20 6f 72 20 69 |.s valid|ity or i|
|00001030| 6e 76 61 6c 69 64 69 74 | 79 28 4c 69 73 74 69 6e |nvalidit|y(Listin|
|00001040| 67 20 35 2d 31 31 09 44 | 69 73 70 6c 61 79 69 6e |g 5-11.D|isplayin|
|00001050| 67 20 61 20 73 74 61 74 | 75 73 20 6d 65 73 73 61 |g a stat|us messa|
|00001060| 67 65 07 57 69 6e 64 6f | 77 73 0d 41 62 6f 75 74 |ge.Windo|ws.About|
|00001070| 20 57 69 6e 64 6f 77 73 | 0c 57 69 6e 64 6f 77 20 | Windows|.Window |
|00001080| 50 61 72 74 73 20 46 69 | 67 75 72 65 20 36 2d 31 |Parts Fi|gure 6-1|
|00001090| 09 41 20 56 65 6e 6e 20 | 64 69 61 67 72 61 6d 20 |.A Venn |diagram |
|000010a0| 77 69 6e 64 6f 77 0e 57 | 69 6e 64 6f 77 20 52 65 |window.W|indow Re|
|000010b0| 63 6f 72 64 73 2b 4c 69 | 73 74 69 6e 67 20 36 2d |cords+Li|sting 6-|
|000010c0| 31 09 54 68 65 20 57 69 | 6e 64 6f 77 52 65 63 6f |1.The Wi|ndowReco|
|000010d0| 72 64 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |rd data |structur|
|000010e0| 65 0c 57 69 6e 64 6f 77 | 20 54 79 70 65 73 38 4c |e.Window| Types8L|
|000010f0| 69 73 74 69 6e 67 20 36 | 2d 32 09 44 65 74 65 72 |isting 6|-2.Deter|
|00001100| 6d 69 6e 69 6e 67 20 69 | 66 20 61 20 77 69 6e 64 |mining i|f a wind|
|00001110| 6f 77 20 69 73 20 61 20 | 64 6f 63 75 6d 65 6e 74 |ow is a |document|
|00001120| 20 77 69 6e 64 6f 77 33 | 4c 69 73 74 69 6e 67 20 | window3|Listing |
|00001130| 36 2d 33 09 44 65 74 65 | 72 6d 69 6e 69 6e 67 20 |6-3.Dete|rmining |
|00001140| 69 66 20 61 20 77 69 6e | 64 6f 77 20 69 73 20 61 |if a win|dow is a|
|00001150| 20 64 69 61 6c 6f 67 20 | 62 6f 78 3e 4c 69 73 74 | dialog |box>List|
|00001160| 69 6e 67 20 36 2d 34 09 | 44 65 74 65 72 6d 69 6e |ing 6-4.|Determin|
|00001170| 69 6e 67 20 69 66 20 61 | 20 77 69 6e 64 6f 77 20 |ing if a| window |
|00001180| 69 73 20 61 20 64 65 73 | 6b 20 61 63 63 65 73 73 |is a des|k access|
|00001190| 6f 72 79 20 77 69 6e 64 | 6f 77 10 43 72 65 61 74 |ory wind|ow.Creat|
|000011a0| 69 6e 67 20 57 69 6e 64 | 6f 77 73 52 4c 69 73 74 |ing Wind|owsRList|
|000011b0| 69 6e 67 20 36 2d 35 09 | 54 68 65 20 73 74 72 75 |ing 6-5.|The stru|
|000011c0| 63 74 75 72 65 20 6f 66 | 20 61 20 64 6f 63 75 6d |cture of| a docum|
|000011d0| 65 6e 74 20 72 65 63 6f | 72 64 20 66 6f 72 20 74 |ent reco|rd for t|
|000011e0| 68 65 20 56 65 6e 6e 20 | 44 69 61 67 72 61 6d 6d |he Venn |Diagramm|
|000011f0| 65 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 4c |er appli|cation.L|
|00001200| 69 73 74 69 6e 67 20 36 | 2d 36 09 43 72 65 61 74 |isting 6|-6.Creat|
|00001210| 69 6e 67 20 61 20 6e 65 | 77 20 56 65 6e 6e 20 64 |ing a ne|w Venn d|
|00001220| 69 61 67 72 61 6d 20 77 | 69 6e 64 6f 77 16 48 61 |iagram w|indow.Ha|
|00001230| 6e 64 6c 69 6e 67 20 57 | 69 6e 64 6f 77 20 45 76 |ndling W|indow Ev|
|00001240| 65 6e 74 73 0c 4d 6f 75 | 73 65 20 45 76 65 6e 74 |ents.Mou|se Event|
|00001250| 73 26 4c 69 73 74 69 6e | 67 20 36 2d 37 09 48 61 |s&Listin|g 6-7.Ha|
|00001260| 6e 64 6c 69 6e 67 20 6d | 6f 75 73 65 2d 64 6f 77 |ndling m|ouse-dow|
|00001270| 6e 20 65 76 65 6e 74 73 | 1d 4c 69 73 74 69 6e 67 |n events|.Listing|
|00001280| 20 36 2d 38 09 44 72 61 | 67 67 69 6e 67 20 61 20 | 6-8.Dra|gging a |
|00001290| 77 69 6e 64 6f 77 38 4c | 69 73 74 69 6e 67 20 36 |window8L|isting 6|
|000012a0| 2d 39 09 48 61 6e 64 6c | 69 6e 67 20 63 6c 69 63 |-9.Handl|ing clic|
|000012b0| 6b 73 20 69 6e 20 61 20 | 77 69 6e 64 6f 77 d5 73 |ks in a |window.s|
|000012c0| 20 63 6f 6e 74 65 6e 74 | 20 72 65 67 69 6f 6e 0d | content| region.|
|000012d0| 55 70 64 61 74 65 20 45 | 76 65 6e 74 73 2e 4c 69 |Update E|vents.Li|
|000012e0| 73 74 69 6e 67 20 36 2d | 31 30 09 48 61 6e 64 6c |sting 6-|10.Handl|
|000012f0| 69 6e 67 20 61 20 63 6c | 69 63 6b 20 69 6e 20 61 |ing a cl|ick in a|
|00001300| 20 66 69 67 75 72 65 20 | 69 63 6f 6e 23 4c 69 73 | figure |icon#Lis|
|00001310| 74 69 6e 67 20 36 2d 31 | 31 09 48 61 6e 64 6c 69 |ting 6-1|1.Handli|
|00001320| 6e 67 20 75 70 64 61 74 | 65 20 65 76 65 6e 74 73 |ng updat|e events|
|00001330| 0f 41 63 74 69 76 61 74 | 65 20 45 76 65 6e 74 73 |.Activat|e Events|
|00001340| 3a 4c 69 73 74 69 6e 67 | 20 36 2d 31 32 09 48 61 |:Listing| 6-12.Ha|
|00001350| 6e 64 6c 69 6e 67 20 77 | 69 6e 64 6f 77 20 61 63 |ndling w|indow ac|
|00001360| 74 69 76 61 74 69 6f 6e | 73 20 61 6e 64 20 64 65 |tivation|s and de|
|00001370| 61 63 74 69 76 61 74 69 | 6f 6e 73 31 46 69 67 75 |activati|ons1Figu|
|00001380| 72 65 20 36 2d 32 09 41 | 6e 20 69 6e 61 63 74 69 |re 6-2.A|n inacti|
|00001390| 76 65 20 77 69 6e 64 6f | 77 20 63 6f 6e 74 61 69 |ve windo|w contai|
|000013a0| 6e 69 6e 67 20 63 6f 6e | 74 72 6f 6c 73 10 0d 43 |ning con|trols..C|
|000013b0| 6c 6f 73 69 6e 67 20 57 | 69 6e 64 6f 77 73 2d 4c |losing W|indows-L|
|000013c0| 69 73 74 69 6e 67 20 36 | 2d 31 33 09 48 61 6e 64 |isting 6|-13.Hand|
|000013d0| 6c 69 6e 67 20 63 6c 69 | 63 6b 73 20 69 6e 20 74 |ling cli|cks in t|
|000013e0| 68 65 20 63 6c 6f 73 65 | 20 62 6f 78 1d 4c 69 73 |he close| box.Lis|
|000013f0| 74 69 6e 67 20 36 2d 31 | 34 09 43 6c 6f 73 69 6e |ting 6-1|4.Closin|
|00001400| 67 20 61 20 77 69 6e 64 | 6f 77 2a 4c 69 73 74 69 |g a wind|ow*Listi|
|00001410| 6e 67 20 36 2d 31 35 09 | 43 6c 6f 73 69 6e 67 20 |ng 6-15.|Closing |
|00001420| 61 20 56 65 6e 6e 20 64 | 69 61 67 72 61 6d 20 77 |a Venn d|iagram w|
|00001430| 69 6e 64 6f 77 0c 44 69 | 61 6c 6f 67 20 42 6f 78 |indow.Di|alog Box|
|00001440| 65 73 12 41 62 6f 75 74 | 20 44 69 61 6c 6f 67 20 |es.About| Dialog |
|00001450| 42 6f 78 65 73 17 46 69 | 67 75 72 65 20 37 2d 31 |Boxes.Fi|gure 7-1|
|00001460| 09 41 6e 20 41 62 6f 75 | 74 20 62 6f 78 17 46 69 |.An Abou|t box.Fi|
|00001470| 67 75 72 65 20 37 2d 32 | 09 41 6e 20 61 6c 65 72 |gure 7-2|.An aler|
|00001480| 74 20 62 6f 78 23 46 69 | 67 75 72 65 20 37 2d 33 |t box#Fi|gure 7-3|
|00001490| 09 41 20 50 72 65 66 65 | 72 65 6e 63 65 73 20 64 |.A Prefe|rences d|
|000014a0| 69 61 6c 6f 67 20 62 6f | 78 1f 4c 69 73 74 69 6e |ialog bo|x.Listin|
|000014b0| 67 20 37 2d 31 09 44 69 | 61 6c 6f 67 20 69 74 65 |g 7-1.Di|alog ite|
|000014c0| 6d 20 6e 75 6d 62 65 72 | 73 1b 55 73 69 6e 67 20 |m number|s.Using |
|000014d0| 4d 6f 64 65 6c 65 73 73 | 20 44 69 61 6c 6f 67 20 |Modeless| Dialog |
|000014e0| 42 6f 78 65 73 1e 43 72 | 65 61 74 69 6e 67 20 61 |Boxes.Cr|eating a|
|000014f0| 20 4d 6f 64 65 6c 65 73 | 73 20 44 69 61 6c 6f 67 | Modeles|s Dialog|
|00001500| 20 42 6f 78 2a 4c 69 73 | 74 69 6e 67 20 37 2d 32 | Box*Lis|ting 7-2|
|00001510| 09 43 72 65 61 74 69 6e | 67 20 61 20 6d 6f 64 65 |.Creatin|g a mode|
|00001520| 6c 65 73 73 20 64 69 61 | 6c 6f 67 20 62 6f 78 24 |less dia|log box$|
|00001530| 53 65 74 74 69 6e 67 20 | 55 70 20 41 70 70 6c 69 |Setting |Up Appli|
|00001540| 63 61 74 69 6f 6e 2d 44 | 65 66 69 6e 65 64 20 49 |cation-D|efined I|
|00001550| 74 65 6d 73 37 4c 69 73 | 74 69 6e 67 20 37 2d 33 |tems7Lis|ting 7-3|
|00001560| 09 53 65 74 74 69 6e 67 | 20 75 70 20 61 70 70 6c |.Setting| up appl|
|00001570| 69 63 61 74 69 6f 6e 2d | 64 65 66 69 6e 65 64 20 |ication-|defined |
|00001580| 64 69 61 6c 6f 67 20 69 | 74 65 6d 73 34 4c 69 73 |dialog i|tems4Lis|
|00001590| 74 69 6e 67 20 37 2d 34 | 09 44 72 61 77 69 6e 67 |ting 7-4|.Drawing|
|000015a0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2d 64 65 66 | applica|tion-def|
|000015b0| 69 6e 65 64 20 64 69 61 | 6c 6f 67 20 69 74 65 6d |ined dia|log item|
|000015c0| 73 2e 48 61 6e 64 6c 69 | 6e 67 20 55 73 65 72 20 |s.Handli|ng User |
|000015d0| 41 63 74 69 6f 6e 73 20 | 69 6e 20 61 20 4d 6f 64 |Actions |in a Mod|
|000015e0| 65 6c 65 73 73 20 44 69 | 61 6c 6f 67 20 42 6f 78 |eless Di|alog Box|
|000015f0| 34 4c 69 73 74 69 6e 67 | 20 37 2d 35 09 48 61 6e |4Listing| 7-5.Han|
|00001600| 64 6c 69 6e 67 20 65 76 | 65 6e 74 73 20 69 6e 20 |dling ev|ents in |
|00001610| 61 20 6d 6f 64 65 6c 65 | 73 73 20 64 69 61 6c 6f |a modele|ss dialo|
|00001620| 67 20 62 6f 78 3d 4c 69 | 73 74 69 6e 67 20 37 2d |g box=Li|sting 7-|
|00001630| 36 09 53 65 74 74 69 6e | 67 20 74 68 65 20 73 74 |6.Settin|g the st|
|00001640| 61 74 65 20 6f 66 20 72 | 61 64 69 6f 20 62 75 74 |ate of r|adio but|
|00001650| 74 6f 6e 73 20 61 6e 64 | 20 63 68 65 63 6b 62 6f |tons and| checkbo|
|00001660| 78 65 73 18 55 73 69 6e | 67 20 4d 6f 64 61 6c 20 |xes.Usin|g Modal |
|00001670| 44 69 61 6c 6f 67 20 42 | 6f 78 65 73 1d 44 69 73 |Dialog B|oxes.Dis|
|00001680| 70 6c 61 79 69 6e 67 20 | 61 20 4d 6f 64 61 6c 20 |playing |a Modal |
|00001690| 44 69 61 6c 6f 67 20 42 | 6f 78 29 4c 69 73 74 69 |Dialog B|ox)Listi|
|000016a0| 6e 67 20 37 2d 37 09 44 | 69 73 70 6c 61 79 69 6e |ng 7-7.D|isplayin|
|000016b0| 67 20 61 20 6d 6f 64 61 | 6c 20 64 69 61 6c 6f 67 |g a moda|l dialog|
|000016c0| 20 62 6f 78 3e 4c 69 73 | 74 69 6e 67 20 37 2d 38 | box>Lis|ting 7-8|
|000016d0| 09 4f 75 74 6c 69 6e 69 | 6e 67 20 74 68 65 20 64 |.Outlini|ng the d|
|000016e0| 65 66 61 75 6c 74 20 62 | 75 74 74 6f 6e 20 6f 66 |efault b|utton of|
|000016f0| 20 61 20 6d 6f 64 61 6c | 20 64 69 61 6c 6f 67 20 | a modal| dialog |
|00001700| 62 6f 78 27 44 65 66 69 | 6e 69 6e 67 20 61 20 4d |box'Defi|ning a M|
|00001710| 6f 64 61 6c 20 44 69 61 | 6c 6f 67 20 46 69 6c 74 |odal Dia|log Filt|
|00001720| 65 72 20 46 75 6e 63 74 | 69 6f 6e 2a 4c 69 73 74 |er Funct|ion*List|
|00001730| 69 6e 67 20 37 2d 39 09 | 41 20 6d 6f 64 61 6c 20 |ing 7-9.|A modal |
|00001740| 64 69 61 6c 6f 67 20 66 | 69 6c 74 65 72 20 66 75 |dialog f|ilter fu|
|00001750| 6e 63 74 69 6f 6e 05 4d | 65 6e 75 73 0b 41 62 6f |nction.M|enus.Abo|
|00001760| 75 74 20 4d 65 6e 75 73 | 23 46 69 67 75 72 65 20 |ut Menus|#Figure |
|00001770| 38 2d 31 09 41 20 74 79 | 70 69 63 61 6c 20 70 75 |8-1.A ty|pical pu|
|00001780| 6c 6c 2d 64 6f 77 6e 20 | 6d 65 6e 75 0e 43 72 65 |ll-down |menu.Cre|
|00001790| 61 74 69 6e 67 20 4d 65 | 6e 75 73 18 43 72 65 61 |ating Me|nus.Crea|
|000017a0| 74 69 6e 67 20 61 20 4d | 65 6e 75 20 52 65 73 6f |ting a M|enu Reso|
|000017b0| 75 72 63 65 25 46 69 67 | 75 72 65 20 38 2d 32 09 |urce%Fig|ure 8-2.|
|000017c0| 44 65 66 69 6e 69 6e 67 | 20 61 20 27 4d 45 4e 55 |Defining| a 'MENU|
|000017d0| 27 20 72 65 73 6f 75 72 | 63 65 21 46 69 67 75 72 |' resour|ce!Figur|
|000017e0| 65 20 38 2d 33 09 45 64 | 69 74 69 6e 67 20 61 20 |e 8-3.Ed|iting a |
|000017f0| 6d 65 6e 75 20 63 6f 6d | 6d 61 6e 64 1c 43 72 65 |menu com|mand.Cre|
|00001800| 61 74 69 6e 67 20 61 20 | 4d 65 6e 75 20 42 61 72 |ating a |Menu Bar|
|00001810| 20 52 65 73 6f 75 72 63 | 65 28 46 69 67 75 72 65 | Resourc|e(Figure|
|00001820| 20 38 2d 34 09 41 6e 20 | 27 4d 42 41 52 27 20 72 | 8-4.An |'MBAR' r|
|00001830| 65 73 6f 75 72 63 65 20 | 69 6e 20 52 65 73 45 64 |esource |in ResEd|
|00001840| 69 74 21 53 65 74 74 69 | 6e 67 20 55 70 20 74 68 |it!Setti|ng Up th|
|00001850| 65 20 4d 65 6e 75 20 42 | 61 72 20 61 6e 64 20 4d |e Menu B|ar and M|
|00001860| 65 6e 75 73 2d 4c 69 73 | 74 69 6e 67 20 38 2d 31 |enus-Lis|ting 8-1|
|00001870| 09 53 65 74 74 69 6e 67 | 20 75 70 20 74 68 65 20 |.Setting| up the |
|00001880| 6d 65 6e 75 20 62 61 72 | 20 61 6e 64 20 6d 65 6e |menu bar| and men|
|00001890| 75 73 15 48 61 6e 64 6c | 69 6e 67 20 4d 65 6e 75 |us.Handl|ing Menu|
|000018a0| 20 43 68 6f 69 63 65 73 | 37 4c 69 73 74 69 6e 67 | Choices|7Listing|
|000018b0| 20 38 2d 32 09 44 65 66 | 69 6e 69 6e 67 20 6d 65 | 8-2.Def|ining me|
|000018c0| 6e 75 20 6e 75 6d 62 65 | 72 73 20 61 6e 64 20 6d |nu numbe|rs and m|
|000018d0| 65 6e 75 20 69 74 65 6d | 20 6e 75 6d 62 65 72 73 |enu item| numbers|
|000018e0| 24 4c 69 73 74 69 6e 67 | 20 38 2d 33 09 48 61 6e |$Listing| 8-3.Han|
|000018f0| 64 6c 69 6e 67 20 6d 65 | 6e 75 20 73 65 6c 65 63 |dling me|nu selec|
|00001900| 74 69 6f 6e 73 2a 4c 69 | 73 74 69 6e 67 20 38 2d |tions*Li|sting 8-|
|00001910| 34 09 48 61 6e 64 6c 69 | 6e 67 20 41 70 70 6c 65 |4.Handli|ng Apple|
|00001920| 20 6d 65 6e 75 20 73 65 | 6c 65 63 74 69 6f 6e 73 | menu se|lections|
|00001930| 1e 0d 48 61 6e 64 6c 69 | 6e 67 20 4b 65 79 62 6f |..Handli|ng Keybo|
|00001940| 61 72 64 20 45 71 75 69 | 76 61 6c 65 6e 74 73 2c |ard Equi|valents,|
|00001950| 4c 69 73 74 69 6e 67 20 | 38 2d 35 09 48 61 6e 64 |Listing |8-5.Hand|
|00001960| 6c 69 6e 67 20 43 6f 6d | 6d 61 6e 64 2d 6b 65 79 |ling Com|mand-key|
|00001970| 20 65 71 75 69 76 61 6c | 65 6e 74 73 27 54 61 62 | equival|ents'Tab|
|00001980| 6c 65 20 38 2d 31 09 52 | 65 73 65 72 76 65 64 20 |le 8-1.R|eserved |
|00001990| 6b 65 79 62 6f 61 72 64 | 20 65 71 75 69 76 61 6c |keyboard| equival|
|000019a0| 65 6e 74 73 0f 41 64 6a | 75 73 74 69 6e 67 20 4d |ents.Adj|usting M|
|000019b0| 65 6e 75 73 1b 4c 69 73 | 74 69 6e 67 20 38 2d 36 |enus.Lis|ting 8-6|
|000019c0| 09 41 64 6a 75 73 74 69 | 6e 67 20 6d 65 6e 75 73 |.Adjusti|ng menus|
|000019d0| 09 50 72 6f 63 65 73 73 | 65 73 0f 41 62 6f 75 74 |.Process|es.About|
|000019e0| 20 50 72 6f 63 65 73 73 | 65 73 35 46 69 67 75 72 | Process|es5Figur|
|000019f0| 65 20 39 2d 31 09 54 68 | 65 20 64 65 73 6b 74 6f |e 9-1.Th|e deskto|
|00001a00| 70 20 77 69 74 68 20 73 | 65 76 65 72 61 6c 20 61 |p with s|everal a|
|00001a10| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6f 70 65 6e |pplicati|ons open|
|00001a20| 1e 0d 53 70 65 63 69 66 | 79 69 6e 67 20 50 72 6f |..Specif|ying Pro|
|00001a30| 63 65 73 73 69 6e 67 20 | 4f 70 74 69 6f 6e 73 37 |cessing |Options7|
|00001a40| 4c 69 73 74 69 6e 67 20 | 39 2d 31 09 54 68 65 20 |Listing |9-1.The |
|00001a50| 52 65 7a 20 69 6e 70 75 | 74 20 66 6f 72 20 61 20 |Rez inpu|t for a |
|00001a60| 73 61 6d 70 6c 65 20 27 | 53 49 5a 45 27 20 72 65 |sample '|SIZE' re|
|00001a70| 73 6f 75 72 63 65 20 22 | 48 61 6e 64 6c 69 6e 67 |source "|Handling|
|00001a80| 20 53 75 73 70 65 6e 64 | 20 61 6e 64 20 52 65 73 | Suspend| and Res|
|00001a90| 75 6d 65 20 45 76 65 6e | 74 73 2c 4c 69 73 74 69 |ume Even|ts,Listi|
|00001aa0| 6e 67 20 39 2d 32 09 48 | 61 6e 64 6c 69 6e 67 20 |ng 9-2.H|andling |
|00001ab0| 6f 70 65 72 61 74 69 6e | 67 2d 73 79 73 74 65 6d |operatin|g-system|
|00001ac0| 20 65 76 65 6e 74 73 4b | 54 61 62 6c 65 20 39 2d | eventsK|Table 9-|
|00001ad0| 31 09 54 68 65 20 62 69 | 74 73 20 69 6e 20 74 68 |1.The bi|ts in th|
|00001ae0| 65 20 6d 65 73 73 61 67 | 65 20 66 69 65 6c 64 20 |e messag|e field |
|00001af0| 6f 66 20 61 6e 20 6f 70 | 65 72 61 74 69 6e 67 2d |of an op|erating-|
|00001b00| 73 79 73 74 65 6d 20 65 | 76 65 6e 74 20 72 65 63 |system e|vent rec|
|00001b10| 6f 72 64 14 48 61 6e 64 | 6c 69 6e 67 20 4e 75 6c |ord.Hand|ling Nul|
|00001b20| 6c 20 45 76 65 6e 74 73 | 20 4c 69 73 74 69 6e 67 |l Events| Listing|
|00001b30| 20 39 2d 33 09 48 61 6e | 64 6c 69 6e 67 20 6e 75 | 9-3.Han|dling nu|
|00001b40| 6c 6c 20 65 76 65 6e 74 | 73 34 46 69 67 75 72 65 |ll event|s4Figure|
|00001b50| 20 39 2d 32 09 41 20 56 | 65 6e 6e 20 64 69 61 67 | 9-2.A V|enn diag|
|00001b60| 72 61 6d 20 62 65 66 6f | 72 65 20 61 75 74 6f 6d |ram befo|re autom|
|00001b70| 61 74 69 63 20 61 64 6a | 75 73 74 69 6e 67 33 46 |atic adj|usting3F|
|00001b80| 69 67 75 72 65 20 39 2d | 33 09 41 20 56 65 6e 6e |igure 9-|3.A Venn|
|00001b90| 20 64 69 61 67 72 61 6d | 20 61 66 74 65 72 20 61 | diagram| after a|
|00001ba0| 75 74 6f 6d 61 74 69 63 | 20 61 64 6a 75 73 74 69 |utomatic| adjusti|
|00001bb0| 6e 67 17 51 75 69 74 74 | 69 6e 67 20 61 6e 20 41 |ng.Quitt|ing an A|
|00001bc0| 70 70 6c 69 63 61 74 69 | 6f 6e 25 4c 69 73 74 69 |pplicati|on%Listi|
|00001bd0| 6e 67 20 39 2d 34 09 51 | 75 69 74 74 69 6e 67 20 |ng 9-4.Q|uitting |
|00001be0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001bf0| 0f 48 61 6e 64 6c 69 6e | 67 20 45 72 72 6f 72 73 |.Handlin|g Errors|
|00001c00| 23 4c 69 73 74 69 6e 67 | 20 39 2d 35 09 48 61 6e |#Listing| 9-5.Han|
|00001c10| 64 6c 69 6e 67 20 73 65 | 72 69 6f 75 73 20 65 72 |dling se|rious er|
|00001c20| 72 6f 72 73 22 43 68 65 | 63 6b 69 6e 67 20 74 68 |rors"Che|cking th|
|00001c30| 65 20 4f 70 65 72 61 74 | 69 6e 67 20 45 6e 76 69 |e Operat|ing Envi|
|00001c40| 72 6f 6e 6d 65 6e 74 2f | 4c 69 73 74 69 6e 67 20 |ronment/|Listing |
|00001c50| 39 2d 36 09 43 68 65 63 | 6b 69 6e 67 20 74 68 61 |9-6.Chec|king tha|
|00001c60| 74 20 46 69 6e 64 46 6f | 6c 64 65 72 20 69 73 20 |t FindFo|lder is |
|00001c70| 70 72 65 73 65 6e 74 33 | 4c 69 73 74 69 6e 67 20 |present3|Listing |
|00001c80| 39 2d 37 09 44 65 74 65 | 72 6d 69 6e 69 6e 67 20 |9-7.Dete|rmining |
|00001c90| 77 68 65 74 68 65 72 20 | 61 20 74 72 61 70 20 69 |whether |a trap i|
|00001ca0| 73 20 61 76 61 69 6c 61 | 62 6c 65 47 4c 69 73 74 |s availa|bleGList|
|00001cb0| 69 6e 67 20 39 2d 38 09 | 43 68 65 63 6b 69 6e 67 |ing 9-8.|Checking|
|00001cc0| 20 66 6f 72 20 74 68 65 | 20 61 76 61 69 6c 61 62 | for the| availab|
|00001cd0| 69 6c 69 74 79 20 6f 66 | 20 74 68 65 20 57 61 69 |ility of| the Wai|
|00001ce0| 74 4e 65 78 74 45 76 65 | 6e 74 20 66 75 6e 63 74 |tNextEve|nt funct|
|00001cf0| 69 6f 6e 0d 47 6f 69 6e | 67 20 46 75 72 74 68 65 |ion.Goin|g Furthe|
|00001d00| 72 1d 49 6d 70 6c 65 6d | 65 6e 74 69 6e 67 20 46 |r.Implem|enting F|
|00001d10| 75 72 74 68 65 72 20 46 | 65 61 74 75 72 65 73 1a |urther F|eatures.|
|00001d20| 0d 4d 61 69 6e 74 61 69 | 6e 69 6e 67 20 43 6f 6d |.Maintai|ning Com|
|00001d30| 70 61 74 69 62 69 6c 69 | 74 79 23 4d 61 6b 69 6e |patibili|ty#Makin|
|00001d40| 67 20 59 6f 75 72 20 41 | 70 70 6c 69 63 61 74 69 |g Your A|pplicati|
|00001d50| 6f 6e 20 4c 6f 63 61 6c | 69 7a 61 62 6c 65 19 0d |on Local|izable..|
|00001d60| 55 73 69 6e 67 20 44 65 | 76 65 6c 6f 70 65 72 20 |Using De|veloper |
|00001d70| 53 65 72 76 69 63 65 73 | 16 54 65 63 68 6e 69 63 |Services|.Technic|
|00001d80| 61 6c 20 50 75 62 6c 69 | 63 61 74 69 6f 6e 73 08 |al Publi|cations.|
|00001d90| 54 72 61 69 6e 69 6e 67 | 11 54 65 63 68 6e 69 63 |Training|.Technic|
|00001da0| 61 6c 20 53 75 70 70 6f | 72 74 0a 41 70 70 65 6e |al Suppo|rt.Appen|
|00001db0| 64 69 78 65 73 1f 43 6f | 6e 73 74 61 6e 74 73 2c |dixes.Co|nstants,|
|00001dc0| 20 54 79 70 65 73 2c 20 | 61 6e 64 20 56 61 72 69 | Types, |and Vari|
|00001dd0| 61 62 6c 65 73 10 55 74 | 69 6c 69 74 79 20 52 6f |ables.Ut|ility Ro|
|00001de0| 75 74 69 6e 65 73 0b 44 | 69 61 6c 6f 67 20 43 6f |utines.D|ialog Co|
|00001df0| 64 65 0d 52 65 73 6f 75 | 72 63 65 20 43 6f 64 65 |de.Resou|rce Code|
|00001e00| 13 55 73 65 72 20 49 6e | 74 65 72 66 61 63 65 20 |.User In|terface |
|00001e10| 43 6f 64 65 08 47 6c 6f | 73 73 61 72 79 05 49 6e |Code.Glo|ssary.In|
|00001e20| 64 65 78 | |dex | |
+--------+-------------------------+-------------------------+--------+--------+