home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 13 / develop 13 < prev   
MacBinary  |  1994-10-25  |  3.4 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: develop 13

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Fri Mar 12 06:15:40 1993, modified Tue Oct 25 04:36:00 1994, creator 'HLX2', type 'ONLN', 3533110 bytes "develop 13" , at 0x35e9b6 34057 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 64 65 76 65 6c 6f | 70 20 31 33 00 00 00 00 |..develo|p 13....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 35 e9 36 00 | 00 85 09 a7 c6 21 5c aa |....5.6.|.....!\.|
|00000060| d2 73 f0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.s......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3e 48 00 00 |........|....>H..|
|00000080| 64 65 76 65 6c 6f 70 0d | 54 68 65 20 41 70 70 6c |develop.|The Appl|
|00000090| 65 20 54 65 63 68 6e 69 | 63 61 6c 20 4a 6f 75 72 |e Techni|cal Jour|
|000000a0| 6e 61 6c 0d 09 41 53 59 | 4e 43 48 52 4f 4e 4f 55 |nal..ASY|NCHRONOU|
|000000b0| 53 20 52 4f 55 54 49 4e | 45 53 0d 4f 4e 20 54 48 |S ROUTIN|ES.ON TH|
|000000c0| 45 20 4d 41 43 49 4e 54 | 4f 53 48 0d 49 4e 53 49 |E MACINT|OSH.INSI|
|000000d0| 44 45 20 51 55 49 43 4b | 54 49 4d 45 20 41 4e 44 |DE QUICK|TIME AND|
|000000e0| 0d 43 4f 4d 50 4f 4e 45 | 4e 54 2d 42 41 53 45 44 |.COMPONE|NT-BASED|
|000000f0| 20 4d 41 4e 41 47 45 52 | 53 0d 4d 41 43 49 4e 54 | MANAGER|S.MACINT|
|00000100| 4f 53 48 20 44 45 42 55 | 47 47 49 4e 47 3a 0d 54 |OSH DEBU|GGING:.T|
|00000110| 48 45 20 42 45 4c 4c 59 | 20 4f 46 20 54 48 45 20 |HE BELLY| OF THE |
|00000120| 42 45 41 53 54 0d 52 45 | 56 49 53 49 54 45 44 0d |BEAST.RE|VISITED.|
|00000130| 41 44 56 45 4e 54 55 52 | 45 53 20 49 4e 0d 43 4f |ADVENTUR|ES IN.CO|
|00000140| 4c 4f 52 20 50 52 49 4e | 54 49 4e 47 0d 44 45 56 |LOR PRIN|TING.DEV|
|00000150| 49 43 45 4c 4f 4f 50 20 | 4d 45 45 54 53 20 54 48 |ICELOOP |MEETS TH|
|00000160| 45 0d 49 4e 54 45 52 46 | 41 43 45 20 44 45 53 49 |E.INTERF|ACE DESI|
|00000170| 47 4e 45 52 0d 4c 4f 4f | 4b 49 4e 47 20 41 48 45 |GNER.LOO|KING AHE|
|00000180| 41 44 20 54 4f 0d 50 52 | 49 4e 54 49 4e 47 20 49 |AD TO.PR|INTING I|
|00000190| 4e 20 51 55 49 43 4b 44 | 52 41 57 20 47 58 0d 54 |N QUICKD|RAW GX.T|
|000001a0| 48 45 20 50 41 4c 45 54 | 54 45 20 4d 41 4e 41 47 |HE PALET|TE MANAG|
|000001b0| 45 52 20 57 41 59 0d 4b | 4f 4e 20 26 20 42 41 4c |ER WAY.K|ON & BAL|
|000001c0| d5 53 20 50 55 5a 5a 4c | 45 20 50 41 47 45 0d 4d |.S PUZZL|E PAGE.M|
|000001d0| 41 43 49 4e 54 4f 53 48 | 20 51 20 26 20 41 0d 4e |ACINTOSH| Q & A.N|
|000001e0| 45 57 20 51 55 49 43 4b | 54 49 4d 45 20 43 4f 4c |EW QUICK|TIME COL|
|000001f0| 55 4d 4e 3a 0d 54 4f 50 | 20 31 30 20 51 55 49 43 |UMN:.TOP| 10 QUIC|
|00000200| 4b 54 49 4d 45 20 54 49 | 50 53 0d f0 0d 49 73 73 |KTIME TI|PS...Iss|
|00000210| 75 65 20 31 33 20 20 20 | 4d 61 72 63 68 20 31 39 |ue 13 |March 19|
|00000220| 39 33 09 0d 0d 41 70 70 | 6c 65 20 43 6f 6d 70 75 |93...App|le Compu|
|00000230| 74 65 72 2c 20 49 6e 63 | 2e 0d 45 20 44 20 49 20 |ter, Inc|..E D I |
|00000240| 54 20 4f 20 52 20 49 20 | 41 20 4c 20 20 53 20 54 |T O R I |A L S T|
|00000250| 20 41 20 46 20 46 0d 45 | 64 69 74 6f 72 2d 69 6e | A F F.E|ditor-in|
|00000260| 2d 43 68 65 65 6b 20 20 | 43 61 72 6f 6c 69 6e 65 |-Cheek |Caroline|
|00000270| 20 52 6f 73 65 0d 54 65 | 63 68 6e 69 63 61 6c 20 | Rose.Te|chnical |
|00000280| 42 75 63 6b 73 74 6f 70 | 70 65 72 20 20 44 61 76 |Buckstop|per Dav|
|00000290| 65 20 4a 6f 68 6e 73 6f | 6e 0d 4f 75 72 20 42 6f |e Johnso|n.Our Bo|
|000002a0| 73 73 20 20 47 72 65 67 | 20 4a 6f 73 77 69 61 6b |ss Greg| Joswiak|
|000002b0| 0d 48 69 73 20 42 6f 73 | 73 20 20 44 61 76 69 64 |.His Bos|s David|
|000002c0| 20 4b 72 61 74 68 77 6f | 68 6c 0d 52 65 76 69 65 | Krathwo|hl.Revie|
|000002d0| 77 20 42 6f 61 72 64 20 | 20 50 65 74 65 20 28 d2 |w Board | Pete (.|
|000002e0| 4c 75 6b 65 d3 29 20 41 | 6c 65 78 61 6e 64 65 72 |Luke.) A|lexander|
|000002f0| 2c 20 4e 65 69 6c 20 44 | 61 79 2c 20 43 2e 20 4b |, Neil D|ay, C. K|
|00000300| 2e 20 48 61 75 6e 2c 20 | 4a 69 6d 20 52 65 65 6b |. Haun, |Jim Reek|
|00000310| 65 73 2c 20 42 72 79 61 | 6e 20 4b 2e 20 28 d2 42 |es, Brya|n K. (.B|
|00000320| 65 61 6b 65 72 d3 29 20 | 52 65 73 73 6c 65 72 2c |eaker.) |Ressler,|
|00000330| 20 4c 61 72 72 79 20 52 | 6f 73 65 6e 73 74 65 69 | Larry R|osenstei|
|00000340| 6e 2c 20 41 6e 64 79 20 | 53 68 65 62 61 6e 6f 77 |n, Andy |Shebanow|
|00000350| 2c 20 47 72 65 67 67 20 | 57 69 6c 6c 69 61 6d 73 |, Gregg |Williams|
|00000360| 0d 4d 61 6e 61 67 69 6e | 67 20 45 64 69 74 6f 72 |.Managin|g Editor|
|00000370| 20 20 4d 6f 6e 69 63 61 | 20 4d 65 66 66 65 72 74 | Monica| Meffert|
|00000380| 0d 41 73 73 69 73 74 61 | 6e 74 20 4d 61 6e 61 67 |.Assista|nt Manag|
|00000390| 69 6e 67 20 45 64 69 74 | 6f 72 20 20 43 79 6e 74 |ing Edit|or Cynt|
|000003a0| 68 69 61 20 4a 61 73 70 | 65 72 0d 43 6f 6e 74 72 |hia Jasp|er.Contr|
|000003b0| 69 62 75 74 69 6e 67 20 | 45 64 69 74 6f 72 73 20 |ibuting |Editors |
|000003c0| 20 4c 6f 72 72 61 69 6e | 65 20 41 6e 64 65 72 73 | Lorrain|e Anders|
|000003d0| 6f 6e 2c 20 47 65 74 61 | 20 43 61 72 6c 73 6f 6e |on, Geta| Carlson|
|000003e0| 2c 20 54 6f 6e 69 20 48 | 61 73 6b 65 6c 6c 2c 20 |, Toni H|askell, |
|000003f0| 4a 75 64 79 20 48 65 6c | 66 61 6e 64 2c 20 52 69 |Judy Hel|fand, Ri|
|00000400| 6c 6c 61 20 52 65 79 6e | 6f 6c 64 73 0d 49 6e 64 |lla Reyn|olds.Ind|
|00000410| 65 78 65 72 20 20 49 72 | 61 20 4b 6c 65 69 6e 62 |exer Ir|a Kleinb|
|00000420| 65 72 67 0d 41 20 52 20 | 54 20 20 26 20 20 50 20 |erg.A R |T & P |
|00000430| 52 20 4f 20 44 20 55 20 | 43 20 54 20 49 20 4f 20 |R O D U |C T I O |
|00000440| 4e 0d 50 72 6f 64 75 63 | 74 69 6f 6e 20 4d 61 6e |N.Produc|tion Man|
|00000450| 61 67 65 72 20 20 48 61 | 72 74 6c 65 79 20 4c 65 |ager Ha|rtley Le|
|00000460| 73 73 65 72 0d 41 72 74 | 20 44 69 72 65 63 74 6f |sser.Art| Directo|
|00000470| 72 20 20 44 69 61 6e 65 | 20 57 69 6c 63 6f 78 0d |r Diane| Wilcox.|
|00000480| 54 65 63 68 6e 69 63 61 | 6c 20 49 6c 6c 75 73 74 |Technica|l Illust|
|00000490| 72 61 74 69 6f 6e 20 20 | 44 61 76 65 20 4f 6c 6d |ration |Dave Olm|
|000004a0| 6f 73 2c 20 4a 6f 68 6e | 20 52 79 61 6e 0d 46 6f |os, John| Ryan.Fo|
|000004b0| 72 6d 61 74 74 69 6e 67 | 20 20 46 6f 72 62 65 73 |rmatting| Forbes|
|000004c0| 20 4d 69 6c 6c 20 50 72 | 65 73 73 0d 50 72 69 6e | Mill Pr|ess.Prin|
|000004d0| 74 69 6e 67 20 20 57 6f | 6c 66 65 72 20 50 72 69 |ting Wo|lfer Pri|
|000004e0| 6e 74 69 6e 67 20 43 6f | 6d 70 61 6e 79 2c 20 49 |nting Co|mpany, I|
|000004f0| 6e 63 2e 0d 46 69 6c 6d | 20 50 72 65 70 61 72 61 |nc..Film| Prepara|
|00000500| 74 69 6f 6e 20 20 41 70 | 74 6f 73 20 50 6f 73 74 |tion Ap|tos Post|
|00000510| 2c 20 49 6e 63 2e 0d 50 | 72 6f 64 75 63 74 69 6f |, Inc..P|roductio|
|00000520| 6e 20 20 50 72 65 50 72 | 65 73 73 20 41 73 73 65 |n PrePr|ess Asse|
|00000530| 6d 62 6c 79 0d 50 68 6f | 74 6f 67 72 61 70 68 79 |mbly.Pho|tography|
|00000540| 20 20 53 68 61 72 6f 6e | 20 42 65 61 6c 73 2c 20 | Sharon| Beals, |
|00000550| 4c 69 73 61 20 4a 6f 6e | 67 65 77 61 61 72 64 2c |Lisa Jon|gewaard,|
|00000560| 20 54 6f 6d 20 53 61 6e | 64 62 6f 72 6e 0d 4f 6e | Tom San|dborn.On|
|00000570| 6c 69 6e 65 20 50 72 6f | 64 75 63 74 69 6f 6e 20 |line Pro|duction |
|00000580| 20 4b 61 72 65 6e 20 42 | 72 61 64 79 0d 09 0d 4d | Karen B|rady...M|
|00000590| 61 72 6b 20 4a 65 6e 6b | 69 6e 73 20 6f 66 20 52 |ark Jenk|ins of R|
|000005a0| 75 63 6b 65 72 20 48 75 | 67 67 69 6e 73 20 0d 63 |ucker Hu|ggins .c|
|000005b0| 72 65 61 74 65 64 20 74 | 68 69 73 20 62 65 61 75 |reated t|his beau|
|000005c0| 74 69 66 75 6c 20 69 6d | 61 67 65 20 64 65 70 69 |tiful im|age depi|
|000005d0| 63 74 69 6e 67 20 61 73 | 79 6e 63 68 72 6f 6e 6f |cting as|ynchrono|
|000005e0| 75 73 20 72 6f 75 74 69 | 6e 65 73 20 62 79 20 73 |us routi|nes by s|
|000005f0| 79 6e 63 68 72 6f 6e 69 | 7a 69 6e 67 20 66 6f 75 |ynchroni|zing fou|
|00000600| 72 20 67 72 61 70 68 69 | 63 73 20 61 70 70 6c 69 |r graphi|cs appli|
|00000610| 63 61 74 69 6f 6e 73 3a | 20 41 64 6f 62 65 20 50 |cations:| Adobe P|
|00000620| 68 6f 74 6f 73 68 6f 70 | 2c 20 41 64 6f 62 65 20 |hotoshop|, Adobe |
|00000630| 49 6c 6c 75 73 74 72 61 | 74 6f 72 2c 20 52 61 79 |Illustra|tor, Ray|
|00000640| 20 44 72 65 61 6d 20 44 | 65 73 69 67 6e 65 72 2c | Dream D|esigner,|
|00000650| 20 61 6e 64 20 46 72 61 | 63 74 61 6c 20 44 65 73 | and Fra|ctal Des|
|00000660| 69 67 6e 20 50 61 69 6e | 74 65 72 2e 0d 64 65 76 |ign Pain|ter..dev|
|00000670| 65 6c 6f 70 2c 20 54 68 | 65 20 41 70 70 6c 65 20 |elop, Th|e Apple |
|00000680| 54 65 63 68 6e 69 63 61 | 6c 20 4a 6f 75 72 6e 61 |Technica|l Journa|
|00000690| 6c 2c 20 69 73 20 61 20 | 71 75 61 72 74 65 72 6c |l, is a |quarterl|
|000006a0| 79 20 70 75 62 6c 69 63 | 61 74 69 6f 6e 20 6f 66 |y public|ation of|
|000006b0| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 d5 | Apple C|omputer.|
|000006c0| 73 20 44 65 76 65 6c 6f | 70 65 72 20 53 75 70 70 |s Develo|per Supp|
|000006d0| 6f 72 74 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ort Info|rmation |
|000006e0| 20 67 72 6f 75 70 2e 0d | 54 68 65 20 44 65 76 65 | group..|The Deve|
|000006f0| 6c 6f 70 65 72 20 43 44 | 20 53 65 72 69 65 73 20 |loper CD| Series |
|00000700| 64 69 73 63 20 66 6f 72 | 20 4d 61 72 63 68 20 31 |disc for| March 1|
|00000710| 39 39 33 20 6f 72 20 6c | 61 74 65 72 20 63 6f 6e |993 or l|ater con|
|00000720| 74 61 69 6e 73 20 74 68 | 69 73 20 69 73 73 75 65 |tains th|is issue|
|00000730| 20 61 6e 64 20 61 6c 6c | 20 62 61 63 6b 20 69 73 | and all| back is|
|00000740| 73 75 65 73 20 6f 66 20 | 64 65 76 65 6c 6f 70 20 |sues of |develop |
|00000750| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 65 20 63 |along wi|th the c|
|00000760| 6f 64 65 20 74 68 61 74 | 20 74 68 65 20 61 72 74 |ode that| the art|
|00000770| 69 63 6c 65 73 20 64 65 | 73 63 72 69 62 65 2e 20 |icles de|scribe. |
|00000780| 54 68 65 20 64 65 76 65 | 6c 6f 70 20 69 73 73 75 |The deve|lop issu|
|00000790| 65 73 20 61 6e 64 20 63 | 6f 64 65 20 61 72 65 20 |es and c|ode are |
|000007a0| 61 6c 73 6f 20 61 76 61 | 69 6c 61 62 6c 65 20 6f |also ava|ilable o|
|000007b0| 6e 20 41 70 70 6c 65 4c | 69 6e 6b 20 61 6e 64 20 |n AppleL|ink and |
|000007c0| 76 69 61 20 61 6e 6f 6e | 79 6d 6f 75 73 20 66 74 |via anon|ymous ft|
|000007d0| 70 20 6f 6e 20 66 74 70 | 2e 61 70 70 6c 65 2e 63 |p on ftp|.apple.c|
|000007e0| 6f 6d 2e 0d 09 0d 0d 09 | 45 44 49 54 4f 52 49 41 |om......|EDITORIA|
|000007f0| 4c 09 44 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |L.Docume|ntation |
|00000800| 6d 61 74 74 65 72 73 2e | 20 20 20 32 0d 09 4c 45 |matters.| 2..LE|
|00000810| 54 54 45 52 53 09 41 70 | 70 6c 65 20 44 6f 63 56 |TTERS.Ap|ple DocV|
|00000820| 69 65 77 65 72 20 71 75 | 65 72 69 65 73 2e 20 57 |iewer qu|eries. W|
|00000830| 68 61 74 d5 73 20 6f 6e | 20 79 6f 75 72 20 6d 69 |hat.s on| your mi|
|00000840| 6e 64 3f 20 20 20 34 0d | 09 41 52 54 49 43 4c 45 |nd? 4.|.ARTICLE|
|00000850| 53 09 41 73 79 6e 63 68 | 72 6f 6e 6f 75 73 20 52 |S.Asynch|ronous R|
|00000860| 6f 75 74 69 6e 65 73 20 | 6f 6e 20 74 68 65 20 4d |outines |on the M|
|00000870| 61 63 69 6e 74 6f 73 68 | 20 20 62 79 20 4a 69 6d |acintosh| by Jim|
|00000880| 20 4c 75 74 68 65 72 20 | 20 20 48 6f 77 20 74 6f | Luther | How to|
|00000890| 20 61 76 6f 69 64 20 74 | 68 65 20 70 69 74 66 61 | avoid t|he pitfa|
|000008a0| 6c 6c 73 20 6f 66 20 63 | 61 6c 6c 69 6e 67 20 72 |lls of c|alling r|
|000008b0| 6f 75 74 69 6e 65 73 20 | 61 73 79 6e 63 68 72 6f |outines |asynchro|
|000008c0| 6e 6f 75 73 6c 79 2e 20 | 20 20 35 0d 09 09 49 6e |nously. | 5...In|
|000008d0| 73 69 64 65 20 51 75 69 | 63 6b 54 69 6d 65 20 61 |side Qui|ckTime a|
|000008e0| 6e 64 20 43 6f 6d 70 6f | 6e 65 6e 74 2d 42 61 73 |nd Compo|nent-Bas|
|000008f0| 65 64 20 4d 61 6e 61 67 | 65 72 73 20 20 20 62 79 |ed Manag|ers by|
|00000900| 20 42 69 6c 6c 20 47 75 | 73 63 68 77 61 6e 20 20 | Bill Gu|schwan |
|00000910| 20 55 73 65 66 75 6c 20 | 64 65 62 75 67 67 69 6e | Useful |debuggin|
|00000920| 67 20 61 6e 64 20 74 72 | 61 63 69 6e 67 20 74 65 |g and tr|acing te|
|00000930| 63 68 6e 69 71 75 65 73 | 20 66 6f 72 20 51 75 69 |chniques| for Qui|
|00000940| 63 6b 54 69 6d 65 20 61 | 6e 64 20 74 68 65 20 43 |ckTime a|nd the C|
|00000950| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00000960| 2e 20 20 20 33 34 0d 09 | 09 4d 61 63 69 6e 74 6f |. 34..|.Macinto|
|00000970| 73 68 20 44 65 62 75 67 | 67 69 6e 67 3a 20 54 68 |sh Debug|ging: Th|
|00000980| 65 20 42 65 6c 6c 79 20 | 6f 66 20 74 68 65 20 42 |e Belly |of the B|
|00000990| 65 61 73 74 20 52 65 76 | 69 73 69 74 65 64 20 20 |east Rev|isited |
|000009a0| 62 79 20 46 72 65 64 20 | 48 75 78 68 61 6d 20 61 |by Fred |Huxham a|
|000009b0| 6e 64 20 47 72 65 67 20 | 4d 61 72 72 69 6f 74 74 |nd Greg |Marriott|
|000009c0| 20 20 20 41 20 73 75 70 | 70 6c 65 6d 65 6e 74 20 | A sup|plement |
|000009d0| 74 6f 20 74 68 65 20 42 | 65 6c 6c 79 20 6f 66 20 |to the B|elly of |
|000009e0| 74 68 65 20 42 65 61 73 | 74 20 64 65 62 75 67 67 |the Beas|t debugg|
|000009f0| 69 6e 67 20 61 72 74 69 | 63 6c 65 20 69 6e 20 49 |ing arti|cle in I|
|00000a00| 73 73 75 65 20 38 3a 20 | 66 6f 75 72 20 6e 65 77 |ssue 8: |four new|
|00000a10| 20 74 6f 6f 6c 73 20 65 | 78 70 6c 61 69 6e 65 64 | tools e|xplained|
|00000a20| 2e 20 20 20 35 34 0d 09 | 09 41 64 76 65 6e 74 75 |. 54..|.Adventu|
|00000a30| 72 65 73 20 69 6e 20 43 | 6f 6c 6f 72 20 50 72 69 |res in C|olor Pri|
|00000a40| 6e 74 69 6e 67 20 20 62 | 79 20 44 61 76 65 20 48 |nting b|y Dave H|
|00000a50| 65 72 73 65 79 20 20 20 | 41 20 67 65 6e 65 72 61 |ersey |A genera|
|00000a60| 6c 20 73 74 72 61 74 65 | 67 79 20 66 6f 72 20 70 |l strate|gy for p|
|00000a70| 72 69 6e 74 69 6e 67 20 | 63 6f 6c 6f 72 20 69 6d |rinting |color im|
|00000a80| 61 67 65 73 20 74 68 61 | 74 20 65 6e 73 75 72 65 |ages tha|t ensure|
|00000a90| 73 20 74 68 65 20 62 65 | 73 74 20 70 6f 73 73 69 |s the be|st possi|
|00000aa0| 62 6c 65 20 71 75 61 6c | 69 74 79 2e 20 20 20 36 |ble qual|ity. 6|
|00000ab0| 34 0d 09 09 44 65 76 69 | 63 65 4c 6f 6f 70 20 4d |4...Devi|ceLoop M|
|00000ac0| 65 65 74 73 20 74 68 65 | 20 49 6e 74 65 72 66 61 |eets the| Interfa|
|00000ad0| 63 65 20 44 65 73 69 67 | 6e 65 72 20 20 62 79 20 |ce Desig|ner by |
|00000ae0| 4a 6f 68 6e 20 50 6f 77 | 65 72 73 20 20 20 54 68 |John Pow|ers Th|
|00000af0| 69 73 20 6c 69 74 74 6c | 65 2d 6b 6e 6f 77 6e 20 |is littl|e-known |
|00000b00| 53 79 73 74 65 6d 20 37 | 20 72 6f 75 74 69 6e 65 |System 7| routine|
|00000b10| 20 63 61 6e 20 68 65 6c | 70 20 79 6f 75 20 64 65 | can hel|p you de|
|00000b20| 61 6c 20 77 69 74 68 20 | 6d 75 6c 74 69 70 6c 65 |al with |multiple|
|00000b30| 20 73 63 72 65 65 6e 20 | 65 6e 76 69 72 6f 6e 6d | screen |environm|
|00000b40| 65 6e 74 73 2e 20 20 20 | 39 37 0d 09 43 4f 4c 55 |ents. |97..COLU|
|00000b50| 4d 4e 53 09 53 6f 6d 65 | 77 68 65 72 65 20 69 6e |MNS.Some|where in|
|00000b60| 20 51 75 69 63 6b 54 69 | 6d 65 3a 20 54 6f 70 20 | QuickTi|me: Top |
|00000b70| 31 30 20 51 75 69 63 6b | 54 69 6d 65 20 54 69 70 |10 Quick|Time Tip|
|00000b80| 73 20 20 62 79 20 4a 6f | 68 6e 20 57 61 6e 67 20 |s by Jo|hn Wang |
|00000b90| 20 20 54 68 65 20 66 69 | 72 73 74 20 69 6e 73 74 | The fi|rst inst|
|00000ba0| 61 6c 6c 6d 65 6e 74 20 | 6f 66 20 61 20 6e 65 77 |allment |of a new|
|00000bb0| 20 63 6f 6c 75 6d 6e 20 | 6f 6e 20 51 75 69 63 6b | column |on Quick|
|00000bc0| 54 69 6d 65 3a 20 68 6f | 74 20 74 69 70 73 20 66 |Time: ho|t tips f|
|00000bd0| 72 6f 6d 20 74 68 65 20 | 6d 61 73 74 65 72 73 2e |rom the |masters.|
|00000be0| 20 20 20 33 31 0d 09 09 | 50 72 69 6e 74 20 48 69 | 31...|Print Hi|
|00000bf0| 6e 74 73 3a 20 4c 6f 6f | 6b 69 6e 67 20 41 68 65 |nts: Loo|king Ahe|
|00000c00| 61 64 20 74 6f 20 51 75 | 69 63 6b 44 72 61 77 20 |ad to Qu|ickDraw |
|00000c10| 47 58 20 20 62 79 20 50 | 65 74 65 20 28 d2 4c 75 |GX by P|ete (.Lu|
|00000c20| 6b 65 d3 29 20 41 6c 65 | 78 61 6e 64 65 72 20 20 |ke.) Ale|xander |
|00000c30| 20 53 6f 6d 65 20 74 68 | 69 6e 67 73 20 79 6f 75 | Some th|ings you|
|00000c40| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 77 61 72 65 | should |be aware|
|00000c50| 20 6f 66 20 69 6e 76 6f | 6c 76 69 6e 67 20 51 75 | of invo|lving Qu|
|00000c60| 69 63 6b 44 72 61 77 20 | 47 58 20 61 6e 64 20 69 |ickDraw |GX and i|
|00000c70| 74 73 20 65 66 66 65 63 | 74 20 6f 6e 20 70 72 69 |ts effec|t on pri|
|00000c80| 6e 74 69 6e 67 2e 20 20 | 20 35 32 0d 09 09 54 68 |nting. | 52...Th|
|00000c90| 65 20 56 65 74 65 72 61 | 6e 20 4e 65 6f 70 68 79 |e Vetera|n Neophy|
|00000ca0| 74 65 3a 20 54 6f 77 65 | 72 20 6f 66 20 42 61 62 |te: Towe|r of Bab|
|00000cb0| 62 6c 65 20 20 62 79 20 | 44 61 76 65 20 4a 6f 68 |ble by |Dave Joh|
|00000cc0| 6e 73 6f 6e 20 20 20 50 | 72 6f 67 72 61 6d 6d 69 |nson P|rogrammi|
|00000cd0| 6e 67 20 6c 61 6e 67 75 | 61 67 65 73 20 61 72 65 |ng langu|ages are|
|00000ce0| 20 6a 75 73 74 20 6c 69 | 6b 65 20 6e 61 74 75 72 | just li|ke natur|
|00000cf0| 61 6c 20 6c 61 6e 67 75 | 61 67 65 73 2c 20 6f 6e |al langu|ages, on|
|00000d00| 6c 79 20 64 69 66 66 65 | 72 65 6e 74 2e 20 20 36 |ly diffe|rent. 6|
|00000d10| 31 0d 09 09 47 72 61 70 | 68 69 63 61 6c 20 54 72 |1...Grap|hical Tr|
|00000d20| 75 66 66 6c 65 73 3a 20 | 54 68 65 20 50 61 6c 65 |uffles: |The Pale|
|00000d30| 74 74 65 20 4d 61 6e 61 | 67 65 72 20 57 61 79 20 |tte Mana|ger Way |
|00000d40| 20 62 79 20 45 64 67 61 | 72 20 4c 65 65 20 61 6e | by Edga|r Lee an|
|00000d50| 64 20 46 6f 72 72 65 73 | 74 20 54 61 6e 61 6b 61 |d Forres|t Tanaka|
|00000d60| 20 20 20 54 68 65 20 50 | 61 6c 65 74 74 65 20 4d | The P|alette M|
|00000d70| 61 6e 61 67 65 72 20 6e | 65 65 64 20 6e 6f 74 20 |anager n|eed not |
|00000d80| 62 65 20 61 20 6d 79 73 | 74 65 72 79 2e 20 48 65 |be a mys|tery. He|
|00000d90| 72 65 d5 73 20 74 68 65 | 20 73 63 6f 6f 70 2e 20 |re.s the| scoop. |
|00000da0| 20 39 31 0d 09 09 4b 4f | 4e 20 26 20 42 41 4c d5 | 91...KO|N & BAL.|
|00000db0| 73 20 50 75 7a 7a 6c 65 | 20 50 61 67 65 3a 20 42 |s Puzzle| Page: B|
|00000dc0| 6f 6f 74 69 6e 67 20 42 | 6c 75 65 73 20 20 62 79 |ooting B|lues by|
|00000dd0| 20 4b 6f 6e 73 74 61 6e | 74 69 6e 20 4f 74 68 6d | Konstan|tin Othm|
|00000de0| 65 72 20 61 6e 64 20 42 | 72 75 63 65 20 4c 65 61 |er and B|ruce Lea|
|00000df0| 6b 20 20 20 59 65 74 20 | 61 6e 6f 74 68 65 72 20 |k Yet |another |
|00000e00| 65 6c 75 73 69 76 65 20 | 63 72 61 73 68 65 72 20 |elusive |crasher |
|00000e10| 62 75 67 20 74 68 61 74 | 20 79 6f 75 d5 6c 6c 20 |bug that| you.ll |
|00000e20| 6e 65 76 65 72 20 67 75 | 65 73 73 20 69 6e 20 61 |never gu|ess in a|
|00000e30| 20 6d 69 6c 6c 69 6f 6e | 20 79 65 61 72 73 2e 20 | million| years. |
|00000e40| 20 20 31 31 38 0d 09 51 | 20 26 20 41 09 4d 61 63 | 118..Q| & A.Mac|
|00000e50| 69 6e 74 6f 73 68 20 51 | 20 26 20 41 20 20 20 41 |intosh Q| & A A|
|00000e60| 70 70 6c 65 d5 73 20 44 | 65 76 65 6c 6f 70 65 72 |pple.s D|eveloper|
|00000e70| 20 53 75 70 70 6f 72 74 | 20 43 65 6e 74 65 72 20 | Support| Center |
|00000e80| 61 6e 73 77 65 72 73 20 | 79 6f 75 72 20 70 72 6f |answers |your pro|
|00000e90| 64 75 63 74 20 64 65 76 | 65 6c 6f 70 6d 65 6e 74 |duct dev|elopment|
|00000ea0| 20 71 75 65 73 74 69 6f | 6e 73 2e 20 20 20 31 30 | questio|ns. 10|
|00000eb0| 34 0d 09 49 4e 44 45 58 | 09 31 32 32 0d 45 44 49 |4..INDEX|.122.EDI|
|00000ec0| 54 4f 52 49 41 4c 0d 43 | 41 52 4f 4c 49 4e 45 20 |TORIAL.C|AROLINE |
|00000ed0| 52 4f 53 45 0d 44 65 61 | 72 20 52 65 61 64 65 72 |ROSE.Dea|r Reader|
|00000ee0| 73 2c 0d 49 6e 20 4d 61 | 79 20 6f 66 20 6c 61 73 |s,.In Ma|y of las|
|00000ef0| 74 20 79 65 61 72 2c 20 | 49 20 73 63 68 6d 6f 6f |t year, |I schmoo|
|00000f00| 7a 65 64 20 77 69 74 68 | 20 61 20 6c 6f 74 20 6f |zed with| a lot o|
|00000f10| 66 20 64 65 76 65 6c 6f | 70 65 72 73 20 61 74 20 |f develo|pers at |
|00000f20| 41 70 70 6c 65 d5 73 20 | 57 6f 72 6c 64 77 69 64 |Apple.s |Worldwid|
|00000f30| 65 20 44 65 76 65 6c 6f | 70 65 72 d5 73 20 43 6f |e Develo|per.s Co|
|00000f40| 6e 66 65 72 65 6e 63 65 | 2c 20 61 6e 64 20 6f 6e |nference|, and on|
|00000f50| 65 20 6f 66 20 74 68 65 | 20 73 75 62 6a 65 63 74 |e of the| subject|
|00000f60| 73 20 74 68 61 74 20 63 | 61 6d 65 20 75 70 20 77 |s that c|ame up w|
|00000f70| 61 73 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |as docum|entation|
|00000f80| 2e 20 49 20 65 78 70 72 | 65 73 73 65 64 20 6d 79 |. I expr|essed my|
|00000f90| 20 69 64 65 61 73 20 6f | 6e 20 74 68 69 73 20 73 | ideas o|n this s|
|00000fa0| 75 62 6a 65 63 74 20 73 | 6f 6d 65 77 68 61 74 20 |ubject s|omewhat |
|00000fb0| 68 65 73 69 74 61 6e 74 | 6c 79 2c 20 62 65 63 61 |hesitant|ly, beca|
|00000fc0| 75 73 65 20 49 20 74 68 | 6f 75 67 68 74 20 74 68 |use I th|ought th|
|00000fd0| 65 20 74 72 75 74 68 73 | 20 49 20 77 61 73 20 73 |e truths| I was s|
|00000fe0| 70 6f 75 74 69 6e 67 20 | 77 65 72 65 20 61 6c 6c |pouting |were all|
|00000ff0| 20 70 72 65 74 74 79 20 | 6f 62 76 69 6f 75 73 2c | pretty |obvious,|
|00001000| 20 62 75 74 20 49 20 77 | 61 73 20 73 75 72 70 72 | but I w|as surpr|
|00001010| 69 73 65 64 20 74 6f 20 | 66 69 6e 64 20 74 68 61 |ised to |find tha|
|00001020| 74 20 73 65 76 65 72 61 | 6c 20 64 65 76 65 6c 6f |t severa|l develo|
|00001030| 70 65 72 73 20 73 65 65 | 6d 65 64 20 65 6e 6c 69 |pers see|med enli|
|00001040| 67 68 74 65 6e 65 64 20 | 62 79 20 74 68 65 6d 20 |ghtened |by them |
|00001050| 61 6e 64 20 65 76 65 6e | 20 73 75 67 67 65 73 74 |and even| suggest|
|00001060| 65 64 20 74 68 69 73 20 | 61 73 20 61 20 74 6f 70 |ed this |as a top|
|00001070| 69 63 20 66 6f 72 20 61 | 20 64 65 76 65 6c 6f 70 |ic for a| develop|
|00001080| 20 65 64 69 74 6f 72 69 | 61 6c 2e 20 53 6f 20 68 | editori|al. So h|
|00001090| 65 72 65 20 67 6f 65 73 | 2e 0d 42 75 74 20 66 69 |ere goes|..But fi|
|000010a0| 72 73 74 2c 20 73 6f 6d | 65 20 6d 6f 74 69 76 61 |rst, som|e motiva|
|000010b0| 74 69 6f 6e 2e 20 49 66 | 20 79 6f 75 d5 72 65 20 |tion. If| you.re |
|000010c0| 6f 6e 65 20 6f 66 20 74 | 68 6f 73 65 20 64 65 76 |one of t|hose dev|
|000010d0| 65 6c 6f 70 65 72 73 20 | 77 68 6f 20 74 68 69 6e |elopers |who thin|
|000010e0| 6b 20 6e 6f 20 6f 6e 65 | 20 72 65 61 64 73 20 6d |k no one| reads m|
|000010f0| 61 6e 75 61 6c 73 20 61 | 6e 79 77 61 79 2c 20 68 |anuals a|nyway, h|
|00001100| 61 73 20 69 74 20 6f 63 | 63 75 72 72 65 64 20 74 |as it oc|curred t|
|00001110| 6f 20 79 6f 75 20 74 68 | 61 74 20 74 68 69 73 20 |o you th|at this |
|00001120| 6d 69 67 68 74 20 62 65 | 20 61 20 73 65 6c 66 2d |might be| a self-|
|00001130| 66 75 6c 66 69 6c 6c 69 | 6e 67 20 70 72 6f 70 68 |fulfilli|ng proph|
|00001140| 65 63 79 3f 20 49 66 20 | 6d 61 6e 75 61 6c 73 20 |ecy? If |manuals |
|00001150| 77 65 72 65 20 62 65 74 | 74 65 72 2c 20 6d 61 79 |were bet|ter, may|
|00001160| 62 65 20 70 65 6f 70 6c | 65 20 77 6f 75 6c 64 20 |be peopl|e would |
|00001170| 72 65 61 64 20 74 68 65 | 6d 2e 20 41 6c 73 6f 2c |read the|m. Also,|
|00001180| 20 63 75 73 74 6f 6d 65 | 72 73 20 77 68 6f 20 64 | custome|rs who d|
|00001190| 6f 20 6e 65 76 65 72 20 | 72 65 61 64 20 74 68 65 |o never |read the|
|000011a0| 20 6d 61 6e 75 61 6c 20 | 77 69 6c 6c 20 6e 65 76 | manual |will nev|
|000011b0| 65 72 20 6c 65 61 72 6e | 20 74 68 65 20 66 75 6c |er learn| the ful|
|000011c0| 6c 20 70 6f 77 65 72 20 | 6f 66 20 79 6f 75 72 20 |l power |of your |
|000011d0| 70 72 6f 64 75 63 74 20 | 28 70 72 6f 62 61 62 6c |product |(probabl|
|000011e0| 79 20 6e 6f 74 20 65 76 | 65 72 79 20 66 65 61 74 |y not ev|ery feat|
|000011f0| 75 72 65 20 69 73 20 73 | 65 6c 66 2d 65 78 70 6c |ure is s|elf-expl|
|00001200| 61 6e 61 74 6f 72 79 29 | 20 61 6e 64 20 77 69 6c |anatory)| and wil|
|00001210| 6c 20 62 65 20 74 68 61 | 74 20 6d 75 63 68 20 71 |l be tha|t much q|
|00001220| 75 69 63 6b 65 72 20 74 | 6f 20 6d 6f 76 65 20 6f |uicker t|o move o|
|00001230| 6e 20 77 68 65 6e 20 73 | 6f 6d 65 6f 6e 65 20 73 |n when s|omeone s|
|00001240| 68 6f 77 73 20 74 68 65 | 6d 20 74 68 65 20 67 72 |hows the|m the gr|
|00001250| 65 61 74 20 74 68 69 6e | 67 73 20 61 20 72 69 76 |eat thin|gs a riv|
|00001260| 61 6c 20 70 72 6f 64 75 | 63 74 20 63 61 6e 20 64 |al produ|ct can d|
|00001270| 6f 2e 20 4d 6f 72 65 20 | 6c 69 6b 65 6c 79 2c 20 |o. More |likely, |
|00001280| 70 65 6f 70 6c 65 20 67 | 6c 61 6e 63 65 20 61 74 |people g|lance at|
|00001290| 20 74 68 65 20 6d 61 6e | 75 61 6c 20 74 6f 20 67 | the man|ual to g|
|000012a0| 65 74 20 73 74 61 72 74 | 65 64 20 61 6e 64 20 74 |et start|ed and t|
|000012b0| 68 65 6e 20 74 68 75 6d | 62 20 74 68 72 6f 75 67 |hen thum|b throug|
|000012c0| 68 20 69 74 20 6c 61 74 | 65 72 20 77 68 65 6e 20 |h it lat|er when |
|000012d0| 74 68 65 79 20 77 61 6e | 74 20 74 6f 20 65 78 70 |they wan|t to exp|
|000012e0| 6c 6f 72 65 20 63 65 72 | 74 61 69 6e 20 66 65 61 |lore cer|tain fea|
|000012f0| 74 75 72 65 73 2e 0d 41 | 6c 73 6f 20 6b 65 65 70 |tures..A|lso keep|
|00001300| 20 69 6e 20 6d 69 6e 64 | 20 74 68 61 74 20 61 20 | in mind| that a |
|00001310| 73 68 6f 64 64 79 20 6d | 61 6e 75 61 6c 20 77 69 |shoddy m|anual wi|
|00001320| 6c 6c 20 62 65 20 73 65 | 65 6e 20 61 73 20 61 20 |ll be se|en as a |
|00001330| 72 65 66 6c 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 |reflecti|on of th|
|00001340| 65 20 70 72 6f 64 75 63 | 74 20 61 73 20 61 20 77 |e produc|t as a w|
|00001350| 68 6f 6c 65 3a 20 d2 49 | 66 20 74 68 69 73 20 69 |hole: .I|f this i|
|00001360| 73 20 74 68 65 20 62 65 | 73 74 20 74 68 65 79 20 |s the be|st they |
|00001370| 63 6f 75 6c 64 20 64 6f | 20 6f 6e 20 74 68 65 20 |could do| on the |
|00001380| 6d 61 6e 75 61 6c 2c 20 | 68 6f 77 20 67 6f 6f 64 |manual, |how good|
|00001390| 20 63 61 6e 20 74 68 65 | 69 72 20 73 6f 66 74 77 | can the|ir softw|
|000013a0| 61 72 65 20 62 65 3f d3 | 20 44 6f 6e d5 74 20 66 |are be?.| Don.t f|
|000013b0| 6f 6f 6c 20 79 6f 75 72 | 73 65 6c 66 20 74 68 61 |ool your|self tha|
|000013c0| 74 20 6f 6e 6c 79 20 77 | 72 69 74 65 72 73 20 6f |t only w|riters o|
|000013d0| 72 20 65 64 69 74 6f 72 | 73 20 77 69 6c 6c 20 63 |r editor|s will c|
|000013e0| 72 69 74 69 63 69 7a 65 | 20 61 20 70 6f 6f 72 6c |riticize| a poorl|
|000013f0| 79 20 64 6f 6e 65 20 6d | 61 6e 75 61 6c 3b 20 61 |y done m|anual; a|
|00001400| 6e 79 20 72 65 61 64 65 | 72 20 77 68 6f 20 68 61 |ny reade|r who ha|
|00001410| 73 20 74 72 6f 75 62 6c | 65 20 6c 65 61 72 6e 69 |s troubl|e learni|
|00001420| 6e 67 20 66 72 6f 6d 20 | 69 74 20 77 69 6c 6c 20 |ng from |it will |
|00001430| 63 6f 6d 70 6c 61 69 6e | 2c 20 61 6e 64 20 6e 6f |complain|, and no|
|00001440| 74 20 6a 75 73 74 20 74 | 6f 20 74 68 65 6d 73 65 |t just t|o themse|
|00001450| 6c 76 65 73 2e 20 57 68 | 69 6c 65 20 74 68 65 72 |lves. Wh|ile ther|
|00001460| 65 20 61 72 65 20 74 69 | 6d 65 73 20 77 68 65 6e |e are ti|mes when|
|00001470| 20 63 6f 6e 73 69 73 74 | 65 6e 63 79 20 6d 61 79 | consist|ency may|
|00001480| 20 62 65 20 74 68 65 20 | 68 6f 62 67 6f 62 6c 69 | be the |hobgobli|
|00001490| 6e 20 6f 66 20 73 6d 61 | 6c 6c 20 6d 69 6e 64 73 |n of sma|ll minds|
|000014a0| 2c 20 69 74 d5 73 20 6f | 66 74 65 6e 20 74 68 65 |, it.s o|ften the|
|000014b0| 20 63 61 73 65 20 74 68 | 61 74 20 69 6e 63 6f 6e | case th|at incon|
|000014c0| 73 69 73 74 65 6e 74 20 | 70 72 65 73 65 6e 74 61 |sistent |presenta|
|000014d0| 74 69 6f 6e 20 6f 72 20 | 74 65 72 6d 69 6e 6f 6c |tion or |terminol|
|000014e0| 6f 67 79 20 77 69 6c 6c | 20 63 6f 6e 66 75 73 65 |ogy will| confuse|
|000014f0| 20 72 65 61 64 65 72 73 | 20 61 6e 64 20 68 61 76 | readers| and hav|
|00001500| 65 20 74 68 65 6d 20 74 | 68 72 6f 77 69 6e 67 20 |e them t|hrowing |
|00001510| 79 6f 75 72 20 6d 61 6e | 75 61 6c 20 64 6f 77 6e |your man|ual down|
|00001520| 20 69 6e 20 64 69 73 67 | 75 73 74 20 61 6e 64 20 | in disg|ust and |
|00001530| 74 68 69 6e 6b 69 6e 67 | 20 79 6f 75 72 20 70 72 |thinking| your pr|
|00001540| 6f 64 75 63 74 20 69 73 | 20 6d 6f 72 65 20 63 6f |oduct is| more co|
|00001550| 6d 70 6c 69 63 61 74 65 | 64 20 74 68 61 6e 20 69 |mplicate|d than i|
|00001560| 74 20 72 65 61 6c 6c 79 | 20 69 73 2e 20 41 6e 64 |t really| is. And|
|00001570| 20 70 65 6f 70 6c 65 20 | 77 68 6f 20 64 6f 20 6b | people |who do k|
|00001580| 6e 6f 77 20 74 68 69 6e | 67 73 20 6c 69 6b 65 20 |now thin|gs like |
|00001590| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 |the diff|erence b|
|000015a0| 65 74 77 65 65 6e 20 d2 | 69 74 73 d3 20 61 6e 64 |etween .|its. and|
|000015b0| 20 d2 69 74 d5 73 d3 20 | 77 69 6c 6c 20 77 6f 6e | .it.s. |will won|
|000015c0| 64 65 72 20 68 6f 77 20 | 77 65 6c 6c 20 79 6f 75 |der how |well you|
|000015d0| 20 64 65 62 75 67 67 65 | 64 20 79 6f 75 72 20 63 | debugge|d your c|
|000015e0| 6f 64 65 20 69 66 20 79 | 6f 75 20 63 6f 75 6c 64 |ode if y|ou could|
|000015f0| 6e d5 74 20 66 69 6e 64 | 20 6d 69 73 74 61 6b 65 |n.t find| mistake|
|00001600| 73 20 6c 69 6b 65 20 74 | 68 69 73 20 69 6e 20 79 |s like t|his in y|
|00001610| 6f 75 72 20 6d 61 6e 75 | 61 6c 2e 20 42 61 73 69 |our manu|al. Basi|
|00001620| 63 61 6c 6c 79 2c 20 79 | 6f 75 20 77 6f 6e d5 74 |cally, y|ou won.t|
|00001630| 20 6c 6f 6f 6b 20 6c 69 | 6b 65 20 61 20 63 6c 61 | look li|ke a cla|
|00001640| 73 73 20 61 63 74 2e 0d | 49 d5 6c 6c 20 73 74 61 |ss act..|I.ll sta|
|00001650| 74 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |te the f|ollowing|
|00001660| 20 70 6f 69 6e 74 73 20 | 77 69 74 68 20 75 73 65 | points |with use|
|00001670| 72 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |r docume|ntation |
|00001680| 69 6e 20 6d 69 6e 64 2c | 20 74 68 6f 75 67 68 20 |in mind,| though |
|00001690| 6d 6f 73 74 20 6f 66 20 | 74 68 65 6d 20 61 6c 73 |most of |them als|
|000016a0| 6f 20 61 70 70 6c 79 20 | 74 6f 20 74 65 63 68 6e |o apply |to techn|
|000016b0| 69 63 61 6c 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |ical doc|umentati|
|000016c0| 6f 6e 20 66 6f 72 20 64 | 65 76 65 6c 6f 70 65 72 |on for d|eveloper|
|000016d0| 73 2e 20 53 6f 6d 65 20 | 70 6f 69 6e 74 73 20 6d |s. Some |points m|
|000016e0| 61 79 20 62 65 20 75 73 | 65 66 75 6c 20 6f 6e 6c |ay be us|eful onl|
|000016f0| 79 20 74 6f 20 73 6d 61 | 6c 6c 20 63 6f 6d 70 61 |y to sma|ll compa|
|00001700| 6e 69 65 73 2c 20 62 75 | 74 20 74 68 65 72 65 20 |nies, bu|t there |
|00001710| 73 68 6f 75 6c 64 20 62 | 65 20 73 6f 6d 65 74 68 |should b|e someth|
|00001720| 69 6e 67 20 68 65 72 65 | 20 66 6f 72 20 65 76 65 |ing here| for eve|
|00001730| 72 79 6f 6e 65 2e 0d a5 | 09 47 65 74 20 61 20 74 |ryone...|.Get a t|
|00001740| 65 63 68 6e 69 63 61 6c | 20 77 72 69 74 65 72 20 |echnical| writer |
|00001750| 74 6f 20 77 72 69 74 65 | 20 79 6f 75 72 20 64 6f |to write| your do|
|00001760| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 2e 20 44 6f 6e |cumentat|ion. Don|
|00001770| d5 74 20 64 6f 20 69 74 | 20 79 6f 75 72 73 65 6c |.t do it| yoursel|
|00001780| 66 d1 61 6e 64 20 74 72 | 79 20 74 6f 20 74 61 6c |f.and tr|y to tal|
|00001790| 6b 20 74 68 65 20 43 45 | 4f 20 6f 72 20 56 50 20 |k the CE|O or VP |
|000017a0| 6f 66 20 4d 61 72 6b 65 | 74 69 6e 67 20 6f 75 74 |of Marke|ting out|
|000017b0| 20 6f 66 20 64 6f 69 6e | 67 20 69 74 2e 20 43 6f | of doin|g it. Co|
|000017c0| 6e 74 72 61 72 79 20 74 | 6f 20 6d 61 6e 79 20 70 |ntrary t|o many p|
|000017d0| 65 6f 70 6c 65 d5 73 20 | 6f 70 69 6e 69 6f 6e 73 |eople.s |opinions|
|000017e0| 2c 20 77 72 69 74 69 6e | 67 20 61 20 6d 61 6e 75 |, writin|g a manu|
|000017f0| 61 6c 20 69 73 0d 09 6e | 6f 74 20 73 6f 6d 65 74 |al is..n|ot somet|
|00001800| 68 69 6e 67 20 61 6e 79 | 20 73 6d 61 72 74 20 70 |hing any| smart p|
|00001810| 65 72 73 6f 6e 20 63 61 | 6e 20 64 6f 3b 20 69 74 |erson ca|n do; it|
|00001820| d5 73 20 61 20 73 6b 69 | 6c 6c 20 6c 69 6b 65 20 |.s a ski|ll like |
|00001830| 61 6e 79 20 6f 74 68 65 | 72 2e 20 4d 6f 73 74 20 |any othe|r. Most |
|00001840| 6c 69 6b 65 6c 79 20 79 | 6f 75 20 61 72 65 20 6e |likely y|ou are n|
|00001850| 6f 20 6d 6f 72 65 20 71 | 75 61 6c 69 66 69 65 64 |o more q|ualified|
|00001860| 20 74 6f 20 77 72 69 74 | 65 20 74 68 65 20 64 6f | to writ|e the do|
|00001870| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 74 68 61 6e |cumentat|ion than|
|00001880| 20 61 20 77 72 69 74 65 | 72 20 69 73 20 71 75 61 | a write|r is qua|
|00001890| 6c 69 66 69 65 64 20 74 | 6f 20 77 72 69 74 65 20 |lified t|o write |
|000018a0| 79 6f 75 72 20 63 6f 64 | 65 2e 20 0d a5 09 4c 6f |your cod|e. ...Lo|
|000018b0| 6f 6b 20 6f 76 65 72 20 | 61 20 72 65 6c 65 76 61 |ok over |a releva|
|000018c0| 6e 74 20 77 72 69 74 69 | 6e 67 20 73 61 6d 70 6c |nt writi|ng sampl|
|000018d0| 65 20 66 72 6f 6d 20 79 | 6f 75 72 20 70 72 6f 73 |e from y|our pros|
|000018e0| 70 65 63 74 69 76 65 20 | 77 72 69 74 65 72 2e 20 |pective |writer. |
|000018f0| 41 77 61 72 64 73 2c 20 | 63 65 72 74 69 66 69 63 |Awards, |certific|
|00001900| 61 74 65 73 2c 20 61 6e | 64 20 79 65 61 72 73 20 |ates, an|d years |
|00001910| 6f 66 20 65 78 70 65 72 | 69 65 6e 63 65 20 67 6f |of exper|ience go|
|00001920| 20 6f 6e 6c 79 20 73 6f | 20 66 61 72 3a 20 6e 6f | only so| far: no|
|00001930| 74 68 69 6e 67 20 77 69 | 6c 6c 20 74 65 6c 6c 20 |thing wi|ll tell |
|00001940| 79 6f 75 20 77 68 65 74 | 68 65 72 20 79 6f 75 d5 |you whet|her you.|
|00001950| 6c 6c 20 67 65 74 20 61 | 20 67 6f 6f 64 20 6d 61 |ll get a| good ma|
|00001960| 6e 75 61 6c 20 61 73 20 | 6d 75 63 68 20 61 73 20 |nual as |much as |
|00001970| 6c 6f 6f 6b 69 6e 67 20 | 61 74 20 70 61 73 74 20 |looking |at past |
|00001980| 77 6f 72 6b 2e 20 41 73 | 6b 20 68 6f 77 20 74 68 |work. As|k how th|
|00001990| 65 20 6d 61 74 65 72 69 | 61 6c 20 66 6f 72 20 74 |e materi|al for t|
|000019a0| 68 65 20 73 61 6d 70 6c | 65 20 77 61 73 20 67 61 |he sampl|e was ga|
|000019b0| 74 68 65 72 65 64 2c 20 | 77 68 6f 20 65 6c 73 65 |thered, |who else|
|000019c0| 20 63 6f 6e 74 72 69 62 | 75 74 65 64 20 74 6f 20 | contrib|uted to |
|000019d0| 69 74 2c 20 61 6e 64 20 | 68 6f 77 20 68 65 61 76 |it, and |how heav|
|000019e0| 69 6c 79 20 69 74 20 77 | 61 73 20 65 64 69 74 65 |ily it w|as edite|
|000019f0| 64 2e 0d a5 09 47 65 74 | 20 74 68 65 20 77 72 69 |d....Get| the wri|
|00001a00| 74 65 72 20 73 74 61 72 | 74 65 64 20 65 61 72 6c |ter star|ted earl|
|00001a10| 79 20 69 6e 20 74 68 65 | 20 70 72 6f 63 65 73 73 |y in the| process|
|00001a20| 20 d1 20 6c 6f 6e 67 20 | 62 65 66 6f 72 65 20 74 | . long |before t|
|00001a30| 68 65 20 66 65 61 74 75 | 72 65 20 73 65 74 20 69 |he featu|re set i|
|00001a40| 73 20 66 72 6f 7a 65 6e | 2e 20 57 72 69 74 65 72 |s frozen|. Writer|
|00001a50| 73 20 70 72 6f 76 69 64 | 65 20 61 20 76 61 6c 75 |s provid|e a valu|
|00001a60| 61 62 6c 65 20 70 65 72 | 73 70 65 63 74 69 76 65 |able per|spective|
|00001a70| 20 6f 66 20 79 6f 75 72 | 20 70 72 6f 64 75 63 74 | of your| product|
|00001a80| 2c 20 6e 6f 74 20 75 6e | 6c 69 6b 65 20 74 68 61 |, not un|like tha|
|00001a90| 74 20 6f 66 20 70 72 6f | 64 75 63 74 20 6d 61 6e |t of pro|duct man|
|00001aa0| 61 67 65 6d 65 6e 74 2e | 20 54 68 65 79 d5 6c 6c |agement.| They.ll|
|00001ab0| 20 68 65 6c 70 20 77 69 | 74 68 20 74 68 65 20 64 | help wi|th the d|
|00001ac0| 65 73 69 67 6e 20 6f 66 | 20 74 68 65 20 70 72 6f |esign of| the pro|
|00001ad0| 64 75 63 74 2c 20 74 65 | 6c 6c 69 6e 67 20 79 6f |duct, te|lling yo|
|00001ae0| 75 20 77 68 61 74 20 66 | 65 61 74 75 72 65 73 20 |u what f|eatures |
|00001af0| 64 6f 6e d5 74 20 66 69 | 74 20 69 6e 20 77 69 74 |don.t fi|t in wit|
|00001b00| 68 20 6f 74 68 65 72 20 | 6f 6e 65 73 20 61 6e 64 |h other |ones and|
|00001b10| 20 70 6f 69 6e 74 69 6e | 67 20 6f 75 74 20 6c 6f | pointin|g out lo|
|00001b20| 6f 70 68 6f 6c 65 73 2c | 20 69 6e 63 6f 6e 73 69 |opholes,| inconsi|
|00001b30| 73 74 65 6e 63 69 65 73 | 2c 20 61 6e 64 20 6f 74 |stencies|, and ot|
|00001b40| 68 65 72 20 42 61 64 20 | 54 68 69 6e 67 73 2e 20 |her Bad |Things. |
|00001b50| 41 6e 64 20 74 68 65 79 | d5 72 65 20 74 79 70 69 |And they|.re typi|
|00001b60| 63 61 6c 6c 79 20 65 78 | 63 65 6c 6c 65 6e 74 20 |cally ex|cellent |
|00001b70| 62 75 67 20 66 69 6e 64 | 65 72 73 2e 0d a5 09 48 |bug find|ers....H|
|00001b80| 61 76 65 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |ave the |document|
|00001b90| 61 74 69 6f 6e 20 65 64 | 69 74 65 64 20 62 79 20 |ation ed|ited by |
|00001ba0| 61 6e 20 65 64 69 74 6f | 72 2e 20 55 6e 6c 65 73 |an edito|r. Unles|
|00001bb0| 73 20 74 68 65 79 20 61 | 6c 73 6f 20 68 61 70 70 |s they a|lso happ|
|00001bc0| 65 6e 20 74 6f 20 62 65 | 20 65 64 69 74 6f 72 73 |en to be| editors|
|00001bd0| 2c 20 77 72 69 74 65 72 | 73 20 6e 65 65 64 20 74 |, writer|s need t|
|00001be0| 68 65 69 72 20 77 6f 72 | 6b 20 63 68 65 63 6b 65 |heir wor|k checke|
|00001bf0| 64 20 6c 69 6b 65 20 61 | 6e 79 6f 6e 65 20 65 6c |d like a|nyone el|
|00001c00| 73 65 20 d1 20 61 6e 64 | 20 61 6e 20 65 6c 65 63 |se . and| an elec|
|00001c10| 74 72 6f 6e 69 63 20 73 | 70 65 6c 6c 69 6e 67 20 |tronic s|pelling |
|00001c20| 6f 72 20 67 72 61 6d 6d | 61 72 20 63 68 65 63 6b |or gramm|ar check|
|00001c30| 20 28 77 68 69 6c 65 20 | 61 20 67 6f 6f 64 20 73 | (while |a good s|
|00001c40| 74 61 72 74 29 20 69 73 | 6e d5 74 20 65 6e 6f 75 |tart) is|n.t enou|
|00001c50| 67 68 2e 0d a5 09 54 65 | 73 74 20 74 68 65 20 72 |gh....Te|st the r|
|00001c60| 65 73 75 6c 74 20 6f 6e | 20 75 73 65 72 73 2c 20 |esult on| users, |
|00001c70| 61 66 74 65 72 20 79 6f | 75 72 20 70 72 6f 64 75 |after yo|ur produ|
|00001c80| 63 74 20 73 68 69 70 73 | 20 69 66 20 6e 6f 74 20 |ct ships| if not |
|00001c90| 73 6f 6f 6e 65 72 20 28 | 79 6f 75 20 63 61 6e 20 |sooner (|you can |
|00001ca0| 72 65 76 69 73 65 20 74 | 68 65 20 64 6f 63 75 6d |revise t|he docum|
|00001cb0| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 74 68 65 |entation| for the|
|00001cc0| 20 6e 65 78 74 20 70 72 | 69 6e 74 69 6e 67 29 2e | next pr|inting).|
|00001cd0| 20 41 6e 64 20 64 6f 6e | d5 74 20 62 65 20 64 65 | And don|.t be de|
|00001ce0| 66 65 6e 73 69 76 65 3a | 20 69 66 20 6f 6e 6c 79 |fensive:| if only|
|00001cf0| 20 6f 6e 65 20 6f 75 74 | 20 6f 66 20 74 65 6e 20 | one out| of ten |
|00001d00| d2 74 65 73 74 65 72 73 | d3 20 74 75 72 6e 73 20 |.testers|. turns |
|00001d10| 75 70 20 61 20 70 61 72 | 74 69 63 75 6c 61 72 20 |up a par|ticular |
|00001d20| 70 72 6f 62 6c 65 6d 2c | 20 69 74 20 6d 61 79 20 |problem,| it may |
|00001d30| 6d 65 61 6e 20 74 68 61 | 74 20 31 30 25 20 6f 66 |mean tha|t 10% of|
|00001d40| 20 79 6f 75 72 20 75 73 | 65 72 20 62 61 73 65 20 | your us|er base |
|00001d50| 77 69 6c 6c 20 68 61 76 | 65 20 74 68 65 20 73 61 |will hav|e the sa|
|00001d60| 6d 65 20 70 72 6f 62 6c | 65 6d 2e 20 4a 75 64 67 |me probl|em. Judg|
|00001d70| 65 20 6e 6f 20 6d 69 73 | 75 6e 64 65 72 73 74 61 |e no mis|understa|
|00001d80| 6e 64 69 6e 67 20 61 73 | 20 73 74 75 70 69 64 3b |nding as| stupid;|
|00001d90| 20 74 68 65 79 d5 72 65 | 20 61 6c 6c 20 76 61 6c | they.re| all val|
|00001da0| 69 64 2c 20 6e 6f 20 6d | 61 74 74 65 72 20 68 6f |id, no m|atter ho|
|00001db0| 77 20 6d 75 63 68 20 79 | 6f 75 20 6d 61 79 20 64 |w much y|ou may d|
|00001dc0| 69 73 61 67 72 65 65 20 | 77 69 74 68 20 74 68 65 |isagree |with the|
|00001dd0| 6d 2e 0d 49 20 63 6f 75 | 6c 64 20 67 6f 20 6f 6e |m..I cou|ld go on|
|00001de0| 20 66 6f 72 65 76 65 72 | 2c 20 62 75 74 20 74 68 | forever|, but th|
|00001df0| 61 74 d5 73 20 65 6e 6f | 75 67 68 20 66 6f 72 20 |at.s eno|ugh for |
|00001e00| 6e 6f 77 2e 20 50 6c 65 | 61 73 65 20 6d 61 6b 65 |now. Ple|ase make|
|00001e10| 20 6d 79 20 64 61 79 20 | 61 6e 64 20 6c 65 74 20 | my day |and let |
|00001e20| 6d 65 20 6b 6e 6f 77 20 | 69 66 20 79 6f 75 20 67 |me know |if you g|
|00001e30| 6f 74 20 61 6e 79 74 68 | 69 6e 67 20 6f 66 20 76 |ot anyth|ing of v|
|00001e40| 61 6c 75 65 20 6f 75 74 | 20 6f 66 20 74 68 69 73 |alue out| of this|
|00001e50| 2e 20 4f 72 20 63 72 69 | 74 69 63 69 7a 65 20 69 |. Or cri|ticize i|
|00001e60| 74 20 69 66 20 79 6f 75 | 20 6c 69 6b 65 3b 20 49 |t if you| like; I|
|00001e70| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 70 72 61 | can use| the pra|
|00001e80| 63 74 69 63 65 20 69 6e | 20 6e 6f 74 20 62 65 69 |ctice in| not bei|
|00001e90| 6e 67 20 64 65 66 65 6e | 73 69 76 65 2e 0d 43 61 |ng defen|sive..Ca|
|00001ea0| 72 6f 6c 69 6e 65 20 52 | 6f 73 65 0d 45 64 69 74 |roline R|ose.Edit|
|00001eb0| 6f 72 0d 4c 45 54 54 45 | 52 53 0d 54 45 43 48 20 |or.LETTE|RS.TECH |
|00001ec0| 4e 4f 54 45 53 3a 20 57 | 4f 52 44 20 49 53 20 4f |NOTES: W|ORD IS O|
|00001ed0| 55 54 0d 57 68 79 20 61 | 72 65 20 74 68 65 20 54 |UT.Why a|re the T|
|00001ee0| 65 63 68 20 4e 6f 74 65 | 73 20 69 6e 20 4d 69 63 |ech Note|s in Mic|
|00001ef0| 72 6f 73 6f 66 74 20 57 | 6f 72 64 20 64 6f 63 75 |rosoft W|ord docu|
|00001f00| 6d 65 6e 74 73 3f 20 41 | 72 65 20 79 6f 75 20 61 |ments? A|re you a|
|00001f10| 73 73 75 6d 69 6e 67 20 | 61 6c 6c 20 64 65 76 65 |ssuming |all deve|
|00001f20| 6c 6f 70 65 72 73 20 68 | 61 76 65 20 4d 69 63 72 |lopers h|ave Micr|
|00001f30| 6f 73 6f 66 74 20 57 6f | 72 64 3f 20 49 20 64 6f |osoft Wo|rd? I do|
|00001f40| 6e d5 74 20 74 68 69 6e | 6b 20 74 68 69 73 20 69 |n.t thin|k this i|
|00001f50| 73 20 61 20 67 6f 6f 64 | 20 61 73 73 75 6d 70 74 |s a good| assumpt|
|00001f60| 69 6f 6e 2e 20 44 65 76 | 65 6c 6f 70 65 72 73 20 |ion. Dev|elopers |
|00001f70| 77 68 6f 20 64 6f 6e d5 | 74 20 68 61 76 65 20 4d |who don.|t have M|
|00001f80| 69 63 72 6f 73 6f 66 74 | 20 57 6f 72 64 20 77 6f |icrosoft| Word wo|
|00001f90| 75 6c 64 20 62 65 20 72 | 65 71 75 69 72 65 64 20 |uld be r|equired |
|00001fa0| 74 6f 20 65 69 74 68 65 | 72 20 70 75 72 63 68 61 |to eithe|r purcha|
|00001fb0| 73 65 20 69 74 20 6f 72 | 20 67 65 74 20 61 6e 20 |se it or| get an |
|00001fc0| 69 6c 6c 65 67 61 6c 20 | 63 6f 70 79 2e 20 4f 72 |illegal |copy. Or|
|00001fd0| 20 49 20 73 75 70 70 6f | 73 65 20 74 68 65 79 20 | I suppo|se they |
|00001fe0| 6d 69 67 68 74 20 62 65 | 20 61 62 6c 65 20 74 6f |might be| able to|
|00001ff0| 20 75 73 65 20 74 68 65 | 69 72 20 66 61 76 6f 72 | use the|ir favor|
|00002000| 69 74 65 20 77 6f 72 64 | 20 70 72 6f 63 65 73 73 |ite word| process|
|00002010| 6f 72 20 61 6e 64 20 63 | 6f 6e 76 65 72 74 20 74 |or and c|onvert t|
|00002020| 68 65 20 54 65 63 68 20 | 4e 6f 74 65 73 20 69 66 |he Tech |Notes if|
|00002030| 20 73 75 63 68 20 63 6f | 6e 76 65 72 74 65 72 73 | such co|nverters|
|00002040| 20 65 78 69 73 74 2e 0d | 42 69 67 20 64 65 76 65 | exist..|Big deve|
|00002050| 6c 6f 70 65 72 73 20 6d | 61 79 20 68 61 76 65 20 |lopers m|ay have |
|00002060| 74 68 65 20 63 61 70 69 | 74 61 6c 20 74 6f 20 70 |the capi|tal to p|
|00002070| 75 72 63 68 61 73 65 20 | 4d 69 63 72 6f 73 6f 66 |urchase |Microsof|
|00002080| 74 20 57 6f 72 64 20 62 | 75 74 20 73 6d 61 6c 6c |t Word b|ut small|
|00002090| 20 6f 72 20 73 74 61 72 | 74 69 6e 67 20 64 65 76 | or star|ting dev|
|000020a0| 65 6c 6f 70 65 72 73 20 | 6d 61 79 20 6e 6f 74 2c |elopers |may not,|
|000020b0| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 74 68 6f 73 | especia|lly thos|
|000020c0| 65 20 65 6e 74 68 75 73 | 69 61 73 74 69 63 20 61 |e enthus|iastic a|
|000020d0| 6e 64 20 63 72 65 61 74 | 69 76 65 20 70 72 6f 67 |nd creat|ive prog|
|000020e0| 72 61 6d 6d 65 72 73 20 | 69 6e 20 73 63 68 6f 6f |rammers |in schoo|
|000020f0| 6c 2e 20 49 74 20 77 6f | 75 6c 64 20 62 65 20 61 |l. It wo|uld be a|
|00002100| 20 73 68 61 6d 65 20 74 | 6f 20 66 6f 72 63 65 20 | shame t|o force |
|00002110| 74 68 65 6d 20 74 6f 20 | 67 65 74 20 61 6e 20 69 |them to |get an i|
|00002120| 6c 6c 65 67 61 6c 20 63 | 6f 70 79 20 6f 66 20 4d |llegal c|opy of M|
|00002130| 69 63 72 6f 73 6f 66 74 | 20 57 6f 72 64 20 73 6f |icrosoft| Word so|
|00002140| 20 74 68 61 74 20 74 68 | 65 79 20 63 6f 75 6c 64 | that th|ey could|
|00002150| 20 6c 65 61 72 6e 20 74 | 68 65 20 73 61 6d 65 20 | learn t|he same |
|00002160| 77 6f 6e 64 65 72 66 75 | 6c 20 6d 61 67 69 63 20 |wonderfu|l magic |
|00002170| 74 72 69 63 6b 73 20 74 | 68 61 74 20 6f 74 68 65 |tricks t|hat othe|
|00002180| 72 73 20 67 65 74 20 66 | 72 6f 6d 20 74 68 65 20 |rs get f|rom the |
|00002190| 54 65 63 68 20 4e 6f 74 | 65 73 2e 0d 49 73 20 69 |Tech Not|es..Is i|
|000021a0| 74 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 70 72 |t possib|le to pr|
|000021b0| 6f 64 75 63 65 20 74 68 | 65 20 54 65 63 68 20 4e |oduce th|e Tech N|
|000021c0| 6f 74 65 73 20 69 6e 20 | 61 20 6d 69 6e 69 6d 61 |otes in |a minima|
|000021d0| 6c 20 74 65 78 74 20 65 | 64 69 74 6f 72 20 73 75 |l text e|ditor su|
|000021e0| 63 68 20 61 73 20 54 65 | 61 63 68 54 65 78 74 20 |ch as Te|achText |
|000021f0| 6f 72 20 44 6f 63 4d 61 | 6b 65 72 3f 20 4f 72 20 |or DocMa|ker? Or |
|00002200| 62 65 74 74 65 72 20 79 | 65 74 2c 20 77 68 79 20 |better y|et, why |
|00002210| 6e 6f 74 20 75 73 65 20 | 41 70 70 6c 65 20 44 6f |not use |Apple Do|
|00002220| 63 56 69 65 77 65 72 20 | 6c 69 6b 65 20 74 68 65 |cViewer |like the|
|00002230| 20 4e 65 77 20 49 6e 73 | 69 64 65 20 4d 61 63 69 | New Ins|ide Maci|
|00002240| 6e 74 6f 73 68 20 64 6f | 63 75 6d 65 6e 74 73 3f |ntosh do|cuments?|
|00002250| 0d d1 20 48 6f 6f 6e 20 | 49 6d 0d 54 68 69 73 20 |.. Hoon |Im.This |
|00002260| 69 73 20 61 20 74 69 6d | 65 6c 79 20 71 75 65 73 |is a tim|ely ques|
|00002270| 74 69 6f 6e 2c 20 61 73 | 20 74 68 65 20 66 6f 72 |tion, as| the for|
|00002280| 6d 61 74 20 6f 66 20 54 | 65 63 68 20 4e 6f 74 65 |mat of T|ech Note|
|00002290| 73 20 6f 6e 20 74 68 65 | 20 43 44 20 68 61 73 20 |s on the| CD has |
|000022a0| 63 68 61 6e 67 65 64 2e | 20 42 75 74 20 66 69 72 |changed.| But fir|
|000022b0| 73 74 2c 20 73 6f 6d 65 | 20 62 61 63 6b 67 72 6f |st, some| backgro|
|000022c0| 75 6e 64 2e 0d 54 68 65 | 72 65 20 61 72 65 20 73 |und..The|re are s|
|000022d0| 65 76 65 72 61 6c 20 72 | 65 61 73 6f 6e 73 20 77 |everal r|easons w|
|000022e0| 68 79 20 77 65 20 64 69 | 73 74 72 69 62 75 74 65 |hy we di|stribute|
|000022f0| 64 20 54 65 63 68 20 4e | 6f 74 65 73 20 61 73 20 |d Tech N|otes as |
|00002300| 4d 69 63 72 6f 73 6f 66 | 74 20 57 6f 72 64 20 64 |Microsof|t Word d|
|00002310| 6f 63 75 6d 65 6e 74 73 | 2e 20 49 6e 74 65 72 6e |ocuments|. Intern|
|00002320| 61 6c 6c 79 20 77 65 20 | 75 73 65 20 4d 69 63 72 |ally we |use Micr|
|00002330| 6f 73 6f 66 74 20 57 6f | 72 64 20 61 73 20 74 68 |osoft Wo|rd as th|
|00002340| 65 20 61 75 74 68 6f 72 | 69 6e 67 20 74 6f 6f 6c |e author|ing tool|
|00002350| 20 66 6f 72 20 54 65 63 | 68 20 4e 6f 74 65 73 20 | for Tec|h Notes |
|00002360| 62 65 63 61 75 73 65 20 | 6f 66 20 69 74 73 20 72 |because |of its r|
|00002370| 65 6c 61 74 69 76 65 6c | 79 20 70 6f 77 65 72 66 |elativel|y powerf|
|00002380| 75 6c 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 61 62 |ul forma|tting ab|
|00002390| 69 6c 69 74 69 65 73 20 | 61 6e 64 20 65 61 73 65 |ilities |and ease|
|000023a0| 20 6f 66 20 75 73 65 2e | 20 49 74 20 61 6c 73 6f | of use.| It also|
|000023b0| 20 74 75 72 6e 73 20 6f | 75 74 20 74 68 61 74 20 | turns o|ut that |
|000023c0| 6d 6f 73 74 20 77 6f 72 | 64 20 70 72 6f 63 65 73 |most wor|d proces|
|000023d0| 73 69 6e 67 20 70 61 63 | 6b 61 67 65 73 2c 20 73 |sing pac|kages, s|
|000023e0| 75 63 68 20 61 73 20 4d | 61 63 57 72 69 74 65 a8 |uch as M|acWrite.|
|000023f0| 20 49 49 2c 20 68 61 76 | 65 20 74 72 61 6e 73 6c | II, hav|e transl|
|00002400| 61 74 6f 72 73 20 74 68 | 61 74 20 64 6f 20 61 20 |ators th|at do a |
|00002410| 72 65 61 73 6f 6e 61 62 | 6c 65 20 6a 6f 62 20 6f |reasonab|le job o|
|00002420| 6e 20 4d 69 63 72 6f 73 | 6f 66 74 20 57 6f 72 64 |n Micros|oft Word|
|00002430| 20 64 6f 63 75 6d 65 6e | 74 73 2c 20 73 6f 20 6d | documen|ts, so m|
|00002440| 6f 73 74 20 70 65 6f 70 | 6c 65 20 68 61 76 65 20 |ost peop|le have |
|00002450| 61 63 63 65 73 73 20 74 | 6f 20 74 68 65 20 69 6e |access t|o the in|
|00002460| 66 6f 72 6d 61 74 69 6f | 6e 2e 20 57 65 d5 72 65 |formatio|n. We.re|
|00002470| 20 66 69 72 6d 6c 79 20 | 61 67 61 69 6e 73 74 20 | firmly |against |
|00002480| 70 69 72 61 74 69 6e 67 | 20 73 6f 66 74 77 61 72 |pirating| softwar|
|00002490| 65 21 20 09 41 6c 73 6f | 2c 20 6f 75 72 20 70 72 |e! .Also|, our pr|
|000024a0| 69 6d 61 72 79 20 63 6f | 6d 6d 69 74 6d 65 6e 74 |imary co|mmitment|
|000024b0| 20 68 61 73 20 62 65 65 | 6e 20 74 6f 20 70 72 6f | has bee|n to pro|
|000024c0| 76 69 64 69 6e 67 20 74 | 68 65 20 68 69 67 68 65 |viding t|he highe|
|000024d0| 73 74 20 71 75 61 6c 69 | 74 79 20 74 65 63 68 6e |st quali|ty techn|
|000024e0| 69 63 61 6c 20 6d 61 74 | 65 72 69 61 6c 20 70 6f |ical mat|erial po|
|000024f0| 73 73 69 62 6c 65 3b 20 | 72 61 74 68 65 72 20 74 |ssible; |rather t|
|00002500| 68 61 6e 20 66 6f 63 75 | 73 69 6e 67 20 6f 6e 20 |han focu|sing on |
|00002510| 66 6f 72 6d 61 74 20 63 | 6f 6e 76 65 72 73 69 6f |format c|onversio|
|00002520| 6e 2c 20 77 65 20 63 68 | 6f 73 65 20 74 6f 20 69 |n, we ch|ose to i|
|00002530| 6d 70 72 6f 76 65 20 74 | 68 65 20 6f 76 65 72 61 |mprove t|he overa|
|00002540| 6c 6c 20 63 6f 6e 74 65 | 6e 74 20 61 6e 64 20 6f |ll conte|nt and o|
|00002550| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 20 6f 66 20 74 |rganizat|ion of t|
|00002560| 68 65 20 54 65 63 68 20 | 4e 6f 74 65 73 2e 20 4f |he Tech |Notes. O|
|00002570| 6e 6c 79 20 74 68 65 6e | 20 77 65 72 65 20 77 65 |nly then| were we|
|00002580| 20 72 65 61 64 79 20 74 | 6f 20 74 75 72 6e 20 6f | ready t|o turn o|
|00002590| 75 72 20 66 75 6c 6c 20 | 61 74 74 65 6e 74 69 6f |ur full |attentio|
|000025a0| 6e 20 74 6f 20 74 68 65 | 20 71 75 65 73 74 69 6f |n to the| questio|
|000025b0| 6e 20 6f 66 20 66 6f 72 | 6d 61 74 2e 0d 59 6f 75 |n of for|mat..You|
|000025c0| 20 6d 65 6e 74 69 6f 6e | 20 41 70 70 6c 65 20 44 | mention| Apple D|
|000025d0| 6f 63 56 69 65 77 65 72 | 20 61 73 20 61 20 70 6f |ocViewer| as a po|
|000025e0| 73 73 69 62 6c 65 20 61 | 6c 74 65 72 6e 61 74 69 |ssible a|lternati|
|000025f0| 76 65 20 66 6f 72 6d 61 | 74 20 d1 20 77 65 20 68 |ve forma|t . we h|
|00002600| 61 76 65 20 69 6e 20 66 | 61 63 74 20 63 6f 6e 76 |ave in f|act conv|
|00002610| 65 72 74 65 64 20 74 68 | 65 20 54 65 63 68 20 4e |erted th|e Tech N|
|00002620| 6f 74 65 73 20 69 6e 74 | 6f 20 41 70 70 6c 65 20 |otes int|o Apple |
|00002630| 44 6f 63 56 69 65 77 65 | 72 20 66 6f 72 6d 61 74 |DocViewe|r format|
|00002640| 20 28 74 61 6b 65 20 61 | 20 6c 6f 6f 6b 20 6f 6e | (take a| look on|
|00002650| 20 74 68 65 20 43 44 29 | 2e 20 4f 76 65 72 20 74 | the CD)|. Over t|
|00002660| 69 6d 65 20 74 68 69 73 | 20 77 69 6c 6c 20 62 65 |ime this| will be|
|00002670| 20 69 6d 70 72 6f 76 65 | 64 20 74 6f 20 70 72 6f | improve|d to pro|
|00002680| 76 69 64 65 20 62 65 74 | 74 65 72 20 69 6e 64 65 |vide bet|ter inde|
|00002690| 78 69 6e 67 20 61 6e 64 | 20 63 72 6f 73 73 2d 72 |xing and| cross-r|
|000026a0| 65 66 65 72 65 6e 63 65 | 20 66 61 63 69 6c 69 74 |eference| facilit|
|000026b0| 69 65 73 20 d1 20 77 68 | 6f 73 65 20 61 62 73 65 |ies . wh|ose abse|
|000026c0| 6e 63 65 20 77 65 d5 76 | 65 20 62 65 65 6e 20 70 |nce we.v|e been p|
|000026d0| 61 69 6e 66 75 6c 6c 79 | 20 61 77 61 72 65 20 6f |ainfully| aware o|
|000026e0| 66 20 69 6e 20 74 68 65 | 20 4d 69 63 72 6f 73 6f |f in the| Microso|
|000026f0| 66 74 20 57 6f 72 64 20 | 66 6f 72 6d 61 74 2e 0d |ft Word |format..|
|00002700| d1 20 4e 65 69 6c 20 44 | 61 79 2c 20 54 65 63 68 |. Neil D|ay, Tech|
|00002710| 20 4e 6f 74 65 20 50 6f | 6f 68 2d 42 61 68 0d 4c | Note Po|oh-Bah.L|
|00002720| 49 43 45 4e 53 49 4e 47 | 20 44 4f 43 56 49 45 57 |ICENSING| DOCVIEW|
|00002730| 45 52 0d 57 65 20 61 72 | 65 20 61 20 6c 6f 6e 67 |ER.We ar|e a long|
|00002740| 2d 74 69 6d 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |-time Ma|cintosh |
|00002750| 65 64 75 63 61 74 69 6f | 6e 61 6c 20 73 6f 66 74 |educatio|nal soft|
|00002760| 77 61 72 65 20 64 65 76 | 65 6c 6f 70 65 72 2e 20 |ware dev|eloper. |
|00002770| 57 65 d5 76 65 20 74 72 | 61 64 69 74 69 6f 6e 61 |We.ve tr|aditiona|
|00002780| 6c 6c 79 20 63 6f 6e 76 | 65 72 74 65 64 20 6f 75 |lly conv|erted ou|
|00002790| 72 20 70 72 69 6e 74 65 | 64 20 64 6f 63 75 6d 65 |r printe|d docume|
|000027a0| 6e 74 61 74 69 6f 6e 20 | 74 6f 20 48 79 70 65 72 |ntation |to Hyper|
|000027b0| 43 61 72 64 a8 20 66 6f | 72 20 6f 6e 2d 6c 69 6e |Card. fo|r on-lin|
|000027c0| 65 20 75 73 65 20 62 79 | 20 6f 75 72 20 63 75 73 |e use by| our cus|
|000027d0| 74 6f 6d 65 72 73 2e 20 | 49 20 77 6f 6e 64 65 72 |tomers. |I wonder|
|000027e0| 65 64 20 74 6f 20 77 68 | 6f 6d 20 77 65 20 73 68 |ed to wh|om we sh|
|000027f0| 6f 75 6c 64 20 73 70 65 | 61 6b 20 74 6f 20 72 65 |ould spe|ak to re|
|00002800| 71 75 65 73 74 20 64 65 | 76 65 6c 6f 70 65 72 20 |quest de|veloper |
|00002810| 6c 69 63 65 6e 73 69 6e | 67 20 6f 66 20 41 70 70 |licensin|g of App|
|00002820| 6c 65 20 44 6f 63 56 69 | 65 77 65 72 3f 0d d1 52 |le DocVi|ewer?..R|
|00002830| 68 65 74 74 20 54 69 6e | 64 61 6c 6c 0d 41 70 70 |hett Tin|dall.App|
|00002840| 6c 65 20 44 6f 63 56 69 | 65 77 65 72 20 64 6f 63 |le DocVi|ewer doc|
|00002850| 75 6d 65 6e 74 73 20 61 | 72 65 20 73 6f 75 72 63 |uments a|re sourc|
|00002860| 65 64 20 66 72 6f 6d 20 | 73 65 76 65 72 61 6c 20 |ed from |several |
|00002870| 77 6f 72 64 20 70 72 6f | 63 65 73 73 6f 72 73 2e |word pro|cessors.|
|00002880| 20 54 68 65 73 65 20 64 | 6f 63 75 6d 65 6e 74 73 | These d|ocuments|
|00002890| 20 6d 75 73 74 20 62 65 | 20 70 72 6f 63 65 73 73 | must be| process|
|000028a0| 65 64 20 69 6e 20 61 6e | 6f 74 68 65 72 20 61 70 |ed in an|other ap|
|000028b0| 70 6c 69 63 61 74 69 6f | 6e 20 62 65 66 6f 72 65 |plicatio|n before|
|000028c0| 20 74 68 65 79 20 62 65 | 63 6f 6d 65 20 44 6f 63 | they be|come Doc|
|000028d0| 56 69 65 77 65 72 20 64 | 6f 63 75 6d 65 6e 74 73 |Viewer d|ocuments|
|000028e0| 2e 20 54 68 69 73 20 61 | 70 70 6c 69 63 61 74 69 |. This a|pplicati|
|000028f0| 6f 6e 20 69 73 20 63 75 | 72 72 65 6e 74 6c 79 20 |on is cu|rrently |
|00002900| 6e 6f 74 20 6f 66 20 63 | 6f 6d 6d 65 72 63 69 61 |not of c|ommercia|
|00002910| 6c 20 71 75 61 6c 69 74 | 79 20 61 6e 64 20 69 73 |l qualit|y and is|
|00002920| 20 66 6f 72 20 41 70 70 | 6c 65 20 69 6e 74 65 72 | for App|le inter|
|00002930| 6e 61 6c 20 75 73 65 20 | 6f 6e 6c 79 2e 20 48 6f |nal use |only. Ho|
|00002940| 77 65 76 65 72 2c 20 77 | 65 d5 72 65 20 69 6e 20 |wever, w|e.re in |
|00002950| 74 68 65 20 70 72 6f 63 | 65 73 73 20 6f 66 20 69 |the proc|ess of i|
|00002960| 6e 76 65 73 74 69 67 61 | 74 69 6e 67 20 77 68 65 |nvestiga|ting whe|
|00002970| 74 68 65 72 20 74 6f 20 | 72 65 66 69 6e 65 20 74 |ther to |refine t|
|00002980| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 61 |he appli|cation a|
|00002990| 6e 64 20 6d 61 6b 65 20 | 69 74 20 61 76 61 69 6c |nd make |it avail|
|000029a0| 61 62 6c 65 20 6f 75 74 | 73 69 64 65 20 41 70 70 |able out|side App|
|000029b0| 6c 65 2e 20 54 68 69 73 | 20 70 72 6f 63 65 73 73 |le. This| process|
|000029c0| 20 6d 61 79 20 74 61 6b | 65 20 73 6f 6d 65 20 74 | may tak|e some t|
|000029d0| 69 6d 65 20 61 6e 64 20 | 6d 61 79 20 6e 6f 74 20 |ime and |may not |
|000029e0| 72 65 73 75 6c 74 20 69 | 6e 20 70 72 6f 76 69 64 |result i|n provid|
|000029f0| 69 6e 67 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 |ing the |software|
|00002a00| 20 74 6f 20 65 78 74 65 | 72 6e 61 6c 20 70 61 72 | to exte|rnal par|
|00002a10| 74 69 65 73 2e 20 50 6c | 65 61 73 65 20 73 74 61 |ties. Pl|ease sta|
|00002a20| 79 20 74 75 6e 65 64 21 | 0d d1 49 6e 2d 59 75 6e |y tuned!|..In-Yun|
|00002a30| 67 20 4b 69 6d 09 0d 0d | 41 53 59 4e 43 48 52 4f |g Kim...|ASYNCHRO|
|00002a40| 4e 4f 55 53 20 52 4f 55 | 54 49 4e 45 53 20 4f 4e |NOUS ROU|TINES ON|
|00002a50| 20 54 48 45 20 4d 41 43 | 49 4e 54 4f 53 48 0d 4a | THE MAC|INTOSH.J|
|00002a60| 49 4d 20 4c 55 54 48 45 | 52 0d 54 68 65 20 4d 61 |IM LUTHE|R.The Ma|
|00002a70| 63 69 6e 74 6f 73 68 20 | 68 61 73 20 61 6c 77 61 |cintosh |has alwa|
|00002a80| 79 73 20 73 75 70 70 6f | 72 74 65 64 20 61 73 79 |ys suppo|rted asy|
|00002a90| 6e 63 68 72 6f 6e 6f 75 | 73 20 63 61 6c 6c 73 20 |nchronou|s calls |
|00002aa0| 74 6f 20 6d 61 6e 79 20 | 70 61 72 74 73 20 0d 6f |to many |parts .o|
|00002ab0| 66 20 69 74 73 20 6f 70 | 65 72 61 74 69 6e 67 20 |f its op|erating |
|00002ac0| 73 79 73 74 65 6d 2e 20 | 54 68 69 73 20 61 72 74 |system. |This art|
|00002ad0| 69 63 6c 65 20 65 78 70 | 61 6e 64 73 20 6f 6e 20 |icle exp|ands on |
|00002ae0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00002af0| 66 6f 75 6e 64 20 69 6e | 20 49 6e 73 69 64 65 20 |found in| Inside |
|00002b00| 4d 61 63 69 6e 74 6f 73 | 68 20 62 79 20 74 65 6c |Macintos|h by tel|
|00002b10| 6c 69 6e 67 20 77 68 65 | 6e 20 77 68 79 2c 20 61 |ling whe|n why, a|
|00002b20| 6e 64 20 68 6f 77 20 79 | 6f 75 20 73 68 6f 75 6c |nd how y|ou shoul|
|00002b30| 64 20 75 73 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |d use fu|nctions |
|00002b40| 61 73 79 6e 63 68 72 6f | 6e 6f 75 73 6c 79 20 6f |asynchro|nously o|
|00002b50| 6e 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 2e |n the Ma|cintosh.|
|00002b60| 20 49 74 20 69 6e 63 6c | 75 64 65 73 20 64 65 62 | It incl|udes deb|
|00002b70| 75 67 67 69 6e 67 20 68 | 69 6e 74 73 20 61 6e 64 |ugging h|ints and|
|00002b80| 20 73 6f 6c 75 74 69 6f | 6e 73 20 74 6f 20 70 72 | solutio|ns to pr|
|00002b90| 6f 62 6c 65 6d 73 20 63 | 6f 6d 6d 6f 6e 6c 79 20 |oblems c|ommonly |
|00002ba0| 65 6e 63 6f 75 6e 74 65 | 72 65 64 20 77 68 65 6e |encounte|red when|
|00002bb0| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 | asynchr|onous ca|
|00002bc0| 6c 6c 73 20 61 72 65 20 | 75 73 65 64 2e 0d 57 68 |lls are |used..Wh|
|00002bd0| 65 6e 20 63 61 6c 6c 69 | 6e 67 20 61 20 72 6f 75 |en calli|ng a rou|
|00002be0| 74 69 6e 65 20 73 79 6e | 63 68 72 6f 6e 6f 75 73 |tine syn|chronous|
|00002bf0| 6c 79 2c 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |ly, your| program|
|00002c00| 20 70 61 73 73 65 73 20 | 63 6f 6e 74 72 6f 6c 20 | passes |control |
|00002c10| 74 6f 20 74 68 65 20 72 | 6f 75 74 69 6e 65 20 61 |to the r|outine a|
|00002c20| 6e 64 20 64 6f 65 73 6e | d5 74 20 63 6f 6e 74 69 |nd doesn|.t conti|
|00002c30| 6e 75 65 20 65 78 65 63 | 75 74 69 6f 6e 20 75 6e |nue exec|ution un|
|00002c40| 74 69 6c 20 74 68 65 20 | 72 6f 75 74 69 6e 65 d5 |til the |routine.|
|00002c50| 73 20 77 6f 72 6b 20 68 | 61 73 20 63 6f 6d 70 6c |s work h|as compl|
|00002c60| 65 74 65 64 20 28 65 69 | 74 68 65 72 20 73 75 63 |eted (ei|ther suc|
|00002c70| 63 65 73 73 66 75 6c 6c | 79 20 6f 72 20 75 6e 73 |cessfull|y or uns|
|00002c80| 75 63 63 65 73 73 66 75 | 6c 6c 79 29 2e 20 54 68 |uccessfu|lly). Th|
|00002c90| 69 73 20 77 6f 75 6c 64 | 20 62 65 20 6c 69 6b 65 |is would| be like|
|00002ca0| 20 67 69 76 69 6e 67 20 | 73 6f 6d 65 6f 6e 65 20 | giving |someone |
|00002cb0| 61 20 74 61 73 6b 20 61 | 6e 64 20 74 68 65 6e 20 |a task a|nd then |
|00002cc0| 77 61 74 63 68 69 6e 67 | 20 74 68 65 6d 20 70 65 |watching| them pe|
|00002cd0| 72 66 6f 72 6d 20 74 68 | 61 74 20 74 61 73 6b 2e |rform th|at task.|
|00002ce0| 20 41 6c 74 68 6f 75 67 | 68 20 74 68 65 20 74 61 | Althoug|h the ta|
|00002cf0| 73 6b 20 69 73 20 65 76 | 65 6e 74 75 61 6c 6c 79 |sk is ev|entually|
|00002d00| 20 63 6f 6d 70 6c 65 74 | 65 64 2c 20 79 6f 75 20 | complet|ed, you |
|00002d10| 64 6f 6e d5 74 20 67 65 | 74 20 61 6e 79 74 68 69 |don.t ge|t anythi|
|00002d20| 6e 67 20 64 6f 6e 65 20 | 77 68 69 6c 65 20 79 6f |ng done |while yo|
|00002d30| 75 20 77 61 74 63 68 2e | 20 0d 4f 6e 20 74 68 65 |u watch.| .On the|
|00002d40| 20 6f 74 68 65 72 20 68 | 61 6e 64 2c 20 77 68 65 | other h|and, whe|
|00002d50| 6e 20 63 61 6c 6c 69 6e | 67 20 61 20 72 6f 75 74 |n callin|g a rout|
|00002d60| 69 6e 65 20 61 73 79 6e | 63 68 72 6f 6e 6f 75 73 |ine asyn|chronous|
|00002d70| 6c 79 2c 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |ly, your| program|
|00002d80| 20 70 61 73 73 65 73 20 | 63 6f 6e 74 72 6f 6c 20 | passes |control |
|00002d90| 74 6f 20 74 68 65 20 72 | 6f 75 74 69 6e 65 2c 20 |to the r|outine, |
|00002da0| 61 6e 64 20 74 68 65 20 | 70 72 6f 67 72 61 6d d5 |and the |program.|
|00002db0| 73 20 72 65 71 75 65 73 | 74 20 69 73 20 70 6c 61 |s reques|t is pla|
|00002dc0| 63 65 64 20 69 6e 20 61 | 20 71 75 65 75 65 20 6f |ced in a| queue o|
|00002dd0| 72 2c 20 69 66 20 74 68 | 65 20 71 75 65 75 65 20 |r, if th|e queue |
|00002de0| 69 73 20 65 6d 70 74 79 | 2c 20 65 78 65 63 75 74 |is empty|, execut|
|00002df0| 65 64 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 3b 20 |ed immed|iately; |
|00002e00| 69 6e 20 65 69 74 68 65 | 72 20 63 61 73 65 2c 20 |in eithe|r case, |
|00002e10| 63 6f 6e 74 72 6f 6c 20 | 72 65 74 75 72 6e 73 20 |control |returns |
|00002e20| 74 6f 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 76 |to the p|rogram v|
|00002e30| 65 72 79 20 71 75 69 63 | 6b 6c 79 2c 20 65 76 65 |ery quic|kly, eve|
|00002e40| 6e 20 69 66 20 74 68 65 | 20 72 65 71 75 65 73 74 |n if the| request|
|00002e50| 20 63 61 6e d5 74 20 62 | 65 20 65 78 65 63 75 74 | can.t b|e execut|
|00002e60| 65 64 20 75 6e 74 69 6c | 20 6c 61 74 65 72 2e 20 |ed until| later. |
|00002e70| 54 68 65 20 73 79 73 74 | 65 6d 20 70 72 6f 63 65 |The syst|em proce|
|00002e80| 73 73 65 73 20 61 6e 79 | 20 71 75 65 75 65 64 20 |sses any| queued |
|00002e90| 72 65 71 75 65 73 74 73 | 20 77 68 69 6c 65 20 79 |requests| while y|
|00002ea0| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 69 73 20 66 |our prog|ram is f|
|00002eb0| 72 65 65 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 20 |ree to c|ontinue |
|00002ec0| 65 78 65 63 75 74 69 6f | 6e 2c 20 74 68 65 6e 20 |executio|n, then |
|00002ed0| 69 6e 74 65 72 72 75 70 | 74 73 20 79 6f 75 20 6c |interrup|ts you l|
|00002ee0| 61 74 65 72 20 77 68 65 | 6e 20 74 68 65 20 72 65 |ater whe|n the re|
|00002ef0| 71 75 65 73 74 20 69 73 | 20 63 6f 6d 70 6c 65 74 |quest is| complet|
|00002f00| 65 64 2e 20 54 68 69 73 | 20 69 73 20 6c 69 6b 65 |ed. This| is like|
|00002f10| 20 67 69 76 69 6e 67 20 | 73 6f 6d 65 6f 6e 65 20 | giving |someone |
|00002f20| 61 20 74 61 73 6b 20 61 | 6e 64 20 67 6f 69 6e 67 |a task a|nd going|
|00002f30| 20 62 61 63 6b 20 74 6f | 20 79 6f 75 72 20 77 6f | back to| your wo|
|00002f40| 72 6b 20 77 68 69 6c 65 | 20 74 68 65 79 20 66 69 |rk while| they fi|
|00002f50| 6e 69 73 68 20 74 68 65 | 20 74 61 73 6b 2e 20 49 |nish the| task. I|
|00002f60| 6e 20 6d 6f 73 74 20 63 | 61 73 65 73 2c 20 69 74 |n most c|ases, it|
|00002f70| 20 72 65 73 75 6c 74 73 | 20 69 6e 20 6d 6f 72 65 | results| in more|
|00002f80| 20 77 6f 72 6b 20 62 65 | 69 6e 67 20 61 63 63 6f | work be|ing acco|
|00002f90| 6d 70 6c 69 73 68 65 64 | 20 64 75 72 69 6e 67 20 |mplished| during |
|00002fa0| 74 68 65 20 73 61 6d 65 | 20 70 65 72 69 6f 64 20 |the same| period |
|00002fb0| 6f 66 20 74 69 6d 65 2e | 20 46 69 67 75 72 65 20 |of time.| Figure |
|00002fc0| 31 20 69 6c 6c 75 73 74 | 72 61 74 65 73 20 74 68 |1 illust|rates th|
|00002fd0| 65 20 64 69 66 66 65 72 | 65 6e 63 65 20 62 65 74 |e differ|ence bet|
|00002fe0| 77 65 65 6e 20 73 79 6e | 63 68 72 6f 6e 6f 75 73 |ween syn|chronous|
|00002ff0| 20 61 6e 64 20 61 73 79 | 6e 63 68 72 6f 6e 6f 75 | and asy|nchronou|
|00003000| 73 20 63 61 6c 6c 73 2e | 0d 4f 6e 65 20 73 69 74 |s calls.|.One sit|
|00003010| 75 61 74 69 6f 6e 20 69 | 6e 20 77 68 69 63 68 20 |uation i|n which |
|00003020| 79 6f 75 20 73 68 6f 75 | 6c 64 6e d5 74 20 75 73 |you shou|ldn.t us|
|00003030| 65 20 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 |e synchr|onous ca|
|00003040| 6c 6c 73 20 69 73 20 77 | 68 65 6e 20 79 6f 75 20 |lls is w|hen you |
|00003050| 64 6f 6e d5 74 20 6b 6e | 6f 77 20 68 6f 77 20 6c |don.t kn|ow how l|
|00003060| 6f 6e 67 20 69 74 20 6d | 61 79 20 74 61 6b 65 20 |ong it m|ay take |
|00003070| 66 6f 72 20 74 68 65 20 | 6f 70 65 72 61 74 69 6f |for the |operatio|
|00003080| 6e 20 74 6f 20 63 6f 6d | 70 6c 65 74 65 2c 20 61 |n to com|plete, a|
|00003090| 73 20 77 69 74 68 20 74 | 68 65 20 50 50 43 20 54 |s with t|he PPC T|
|000030a0| 6f 6f 6c 62 6f 78 d5 73 | 20 50 50 43 49 6e 66 6f |oolbox.s| PPCInfo|
|000030b0| 72 6d 20 66 75 6e 63 74 | 69 6f 6e 2c 20 66 6f 72 |rm funct|ion, for|
|000030c0| 20 65 78 61 6d 70 6c 65 | 2e 20 50 50 43 49 6e 66 | example|. PPCInf|
|000030d0| 6f 72 6d 20 77 6f 6e d5 | 74 20 63 6f 6d 70 6c 65 |orm won.|t comple|
|000030e0| 74 65 20 75 6e 74 69 6c | 20 61 6e 6f 74 68 65 72 |te until| another|
|000030f0| 20 70 72 6f 67 72 61 6d | 20 61 74 74 65 6d 70 74 | program| attempt|
|00003100| 73 20 74 6f 20 73 74 61 | 72 74 20 61 20 73 65 73 |s to sta|rt a ses|
|00003110| 73 69 6f 6e 20 77 69 74 | 68 20 79 6f 75 72 20 70 |sion wit|h your p|
|00003120| 72 6f 67 72 61 6d 2e 20 | 54 68 69 73 20 63 6f 75 |rogram. |This cou|
|00003130| 6c 64 20 68 61 70 70 65 | 6e 20 69 6d 6d 65 64 69 |ld happe|n immedi|
|00003140| 61 74 65 6c 79 2c 20 62 | 75 74 20 74 68 65 20 63 |ately, b|ut the c|
|00003150| 68 61 6e 63 65 73 20 61 | 72 65 20 66 61 72 20 67 |hances a|re far g|
|00003160| 72 65 61 74 65 72 20 74 | 68 61 74 20 69 74 20 77 |reater t|hat it w|
|00003170| 6f 6e d5 74 2e 20 49 66 | 20 50 50 43 49 6e 66 6f |on.t. If| PPCInfo|
|00003180| 72 6d 20 69 73 20 63 61 | 6c 6c 65 64 20 73 79 6e |rm is ca|lled syn|
|00003190| 63 68 72 6f 6e 6f 75 73 | 6c 79 2c 20 69 74 20 61 |chronous|ly, it a|
|000031a0| 70 70 65 61 72 73 20 74 | 68 61 74 20 74 68 65 20 |ppears t|hat the |
|000031b0| 73 79 73 74 65 6d 20 68 | 61 73 20 6c 6f 63 6b 65 |system h|as locke|
|000031c0| 64 20 75 70 20 62 65 63 | 61 75 73 65 20 74 68 65 |d up bec|ause the|
|000031d0| 20 75 73 65 72 20 77 6f | 6e d5 74 20 67 65 74 20 | user wo|n.t get |
|000031e0| 63 6f 6e 74 72 6f 6c 20 | 62 61 63 6b 20 75 6e 74 |control |back unt|
|000031f0| 69 6c 20 74 68 65 20 63 | 61 6c 6c 20 63 6f 6d 70 |il the c|all comp|
|00003200| 6c 65 74 65 73 2e 20 49 | 66 20 79 6f 75 20 63 61 |letes. I|f you ca|
|00003210| 6c 6c 20 50 50 43 49 6e | 66 6f 72 6d 20 61 73 79 |ll PPCIn|form asy|
|00003220| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2c 20 69 74 20 |nchronou|sly, it |
|00003230| 64 6f 65 73 6e d5 74 20 | 6d 61 74 74 65 72 20 69 |doesn.t |matter i|
|00003240| 66 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 64 |f the fu|nction d|
|00003250| 6f 65 73 6e d5 74 20 63 | 6f 6d 70 6c 65 74 65 20 |oesn.t c|omplete |
|00003260| 66 6f 72 20 6d 69 6e 75 | 74 65 73 2c 20 68 6f 75 |for minu|tes, hou|
|00003270| 72 73 2c 20 6f 72 20 65 | 76 65 6e 20 64 61 79 73 |rs, or e|ven days|
|00003280| 20 d1 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 | . your |program |
|00003290| 28 61 6e 64 20 74 68 65 | 20 72 65 73 74 20 6f 66 |(and the| rest of|
|000032a0| 20 74 68 65 20 73 79 73 | 74 65 6d 29 20 63 61 6e | the sys|tem) can|
|000032b0| 20 63 6f 6e 74 69 6e 75 | 65 20 6e 6f 72 6d 61 6c | continu|e normal|
|000032c0| 6c 79 2e 0d 0d 0d 46 69 | 67 75 72 65 20 31 0d 48 |ly....Fi|gure 1.H|
|000032d0| 6f 77 20 53 79 6e 63 68 | 72 6f 6e 6f 75 73 20 61 |ow Synch|ronous a|
|000032e0| 6e 64 20 41 73 79 6e 63 | 68 72 6f 6e 6f 75 73 20 |nd Async|hronous |
|000032f0| 43 61 6c 6c 73 20 57 6f | 72 6b 0d 59 6f 75 20 73 |Calls Wo|rk.You s|
|00003300| 68 6f 75 6c 64 20 61 6c | 73 6f 20 61 76 6f 69 64 |hould al|so avoid|
|00003310| 20 73 79 6e 63 68 72 6f | 6e 6f 75 73 20 63 61 6c | synchro|nous cal|
|00003320| 6c 73 20 77 68 65 6e 20 | 79 6f 75 20 63 61 6e d5 |ls when |you can.|
|00003330| 74 20 6b 6e 6f 77 20 74 | 68 65 20 73 74 61 74 65 |t know t|he state|
|00003340| 20 6f 66 20 74 68 65 20 | 73 65 72 76 69 63 65 20 | of the |service |
|00003350| 79 6f 75 d5 76 65 20 61 | 73 6b 65 64 20 66 6f 72 |you.ve a|sked for|
|00003360| 2e 20 50 72 6f 67 72 61 | 6d 20 63 6f 64 65 20 74 |. Progra|m code t|
|00003370| 68 61 74 d5 73 20 70 61 | 72 74 20 6f 66 20 61 20 |hat.s pa|rt of a |
|00003380| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 72 6f 75 74 69 |completi|on routi|
|00003390| 6e 65 2c 20 56 42 4c 20 | 74 61 73 6b 2c 20 54 69 |ne, VBL |task, Ti|
|000033a0| 6d 65 20 4d 61 6e 61 67 | 65 72 20 74 61 73 6b 2c |me Manag|er task,|
|000033b0| 20 44 65 66 65 72 72 65 | 64 20 54 61 73 6b 20 4d | Deferre|d Task M|
|000033c0| 61 6e 61 67 65 72 20 74 | 61 73 6b 2c 20 6f 72 20 |anager t|ask, or |
|000033d0| 69 6e 74 65 72 72 75 70 | 74 20 68 61 6e 64 6c 65 |interrup|t handle|
|000033e0| 72 20 69 73 20 65 78 65 | 63 75 74 65 64 20 61 74 |r is exe|cuted at|
|000033f0| 20 77 68 61 74 d5 73 20 | 63 6f 6d 6d 6f 6e 6c 79 | what.s |commonly|
|00003400| 20 63 61 6c 6c 65 64 20 | 69 6e 74 65 72 72 75 70 | called |interrup|
|00003410| 74 20 74 69 6d 65 2e 20 | 53 79 6e 63 68 72 6f 6e |t time. |Synchron|
|00003420| 6f 75 73 20 63 61 6c 6c | 73 20 6d 61 64 65 20 61 |ous call|s made a|
|00003430| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|00003440| 20 6f 66 74 65 6e 20 72 | 65 73 75 6c 74 20 69 6e | often r|esult in|
|00003450| 20 64 65 61 64 6c 6f 63 | 6b 2e 20 28 53 65 65 20 | deadloc|k. (See |
|00003460| d2 44 65 61 64 6c 6f 63 | 6b 2e d3 29 20 41 6e 20 |.Deadloc|k..) An |
|00003470| 61 73 79 6e 63 68 72 6f | 6e 6f 75 73 20 63 61 6c |asynchro|nous cal|
|00003480| 6c 20 63 61 6e 20 73 6f | 6c 76 65 20 74 68 65 20 |l can so|lve the |
|00003490| 70 72 6f 62 6c 65 6d 3a | 20 69 66 20 74 68 65 20 |problem:| if the |
|000034a0| 73 65 72 76 69 63 65 20 | 79 6f 75 20 63 61 6c 6c |service |you call|
|000034b0| 20 69 73 20 62 75 73 79 | 20 68 61 6e 64 6c 69 6e | is busy| handlin|
|000034c0| 67 20 61 6e 6f 74 68 65 | 72 20 72 65 71 75 65 73 |g anothe|r reques|
|000034d0| 74 2c 20 79 6f 75 72 20 | 61 73 79 6e 63 68 72 6f |t, your |asynchro|
|000034e0| 6e 6f 75 73 20 72 65 71 | 75 65 73 74 20 69 73 20 |nous req|uest is |
|000034f0| 71 75 65 75 65 64 20 61 | 6e 64 20 79 6f 75 72 20 |queued a|nd your |
|00003500| 70 72 6f 67 72 61 6d 20 | 63 6f 64 65 20 63 61 6e |program |code can|
|00003510| 20 67 69 76 65 20 75 70 | 20 63 6f 6e 74 72 6f 6c | give up| control|
|00003520| 20 28 74 68 61 74 20 69 | 73 2c 20 74 68 65 20 63 | (that i|s, the c|
|00003530| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|00003540| 65 20 6f 72 20 74 61 73 | 6b 20 79 6f 75 72 20 63 |e or tas|k your c|
|00003550| 6f 64 65 20 69 73 20 70 | 61 72 74 20 6f 66 20 63 |ode is p|art of c|
|00003560| 61 6e 20 65 6e 64 29 2c | 20 6c 65 74 74 69 6e 67 |an end),| letting|
|00003570| 20 74 68 65 20 73 65 72 | 76 69 63 65 20 63 6f 6d | the ser|vice com|
|00003580| 70 6c 65 74 65 20 74 68 | 65 20 63 75 72 72 65 6e |plete th|e curren|
|00003590| 74 20 72 65 71 75 65 73 | 74 20 61 6e 64 20 65 76 |t reques|t and ev|
|000035a0| 65 6e 74 75 61 6c 6c 79 | 20 70 72 6f 63 65 73 73 |entually| process|
|000035b0| 20 79 6f 75 72 20 72 65 | 71 75 65 73 74 2e 0d 52 | your re|quest..R|
|000035c0| 6f 75 74 69 6e 65 73 20 | 63 61 6c 6c 65 64 20 73 |outines |called s|
|000035d0| 79 6e 63 68 72 6f 6e 6f | 75 73 6c 79 20 61 72 65 |ynchrono|usly are|
|000035e0| 20 61 6c 6c 6f 77 65 64 | 20 74 6f 20 6d 6f 76 65 | allowed| to move|
|000035f0| 20 6d 65 6d 6f 72 79 2c | 20 77 68 69 6c 65 20 72 | memory,| while r|
|00003600| 6f 75 74 69 6e 65 73 20 | 63 61 6c 6c 65 64 20 61 |outines |called a|
|00003610| 73 79 6e 63 68 72 6f 6e | 6f 75 73 6c 79 20 70 75 |synchron|ously pu|
|00003620| 72 70 6f 73 65 6c 79 20 | 61 76 6f 69 64 20 6d 6f |rposely |avoid mo|
|00003630| 76 69 6e 67 20 6d 65 6d | 6f 72 79 20 73 6f 20 74 |ving mem|ory so t|
|00003640| 68 61 74 20 74 68 65 79 | 20 63 61 6e 20 62 65 20 |hat they| can be |
|00003650| 63 61 6c 6c 65 64 20 61 | 74 20 69 6e 74 65 72 72 |called a|t interr|
|00003660| 75 70 74 20 74 69 6d 65 | 2e 20 46 6f 72 20 65 78 |upt time|. For ex|
|00003670| 61 6d 70 6c 65 2c 20 74 | 68 65 20 46 69 6c 65 20 |ample, t|he File |
|00003680| 4d 61 6e 61 67 65 72 d5 | 73 20 50 42 48 4f 70 65 |Manager.|s PBHOpe|
|00003690| 6e 20 72 6f 75 74 69 6e | 65 20 6d 61 79 20 6d 6f |n routin|e may mo|
|000036a0| 76 65 20 6d 65 6d 6f 72 | 79 20 77 68 65 6e 20 63 |ve memor|y when c|
|000036b0| 61 6c 6c 65 64 20 73 79 | 6e 63 68 72 6f 6e 6f 75 |alled sy|nchronou|
|000036c0| 73 6c 79 2c 20 62 75 74 | 20 77 6f 6e d5 74 20 77 |sly, but| won.t w|
|000036d0| 68 65 6e 20 63 61 6c 6c | 65 64 20 61 73 79 6e 63 |hen call|ed async|
|000036e0| 68 72 6f 6e 6f 75 73 6c | 79 2e 20 49 66 20 79 6f |hronousl|y. If yo|
|000036f0| 75 72 20 63 6f 64 65 20 | 69 73 20 65 78 65 63 75 |ur code |is execu|
|00003700| 74 69 6e 67 20 69 6e 20 | 61 6e 20 65 6e 76 69 72 |ting in |an envir|
|00003710| 6f 6e 6d 65 6e 74 20 77 | 68 65 72 65 20 6d 65 6d |onment w|here mem|
|00003720| 6f 72 79 20 63 61 6e d5 | 74 20 62 65 20 6d 6f 76 |ory can.|t be mov|
|00003730| 65 64 20 28 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ed (for |example,|
|00003740| 20 61 74 20 69 6e 74 65 | 72 72 75 70 74 20 74 69 | at inte|rrupt ti|
|00003750| 6d 65 29 2c 20 79 6f 75 | 20 6d 75 73 74 20 63 61 |me), you| must ca|
|00003760| 6c 6c 20 72 6f 75 74 69 | 6e 65 73 20 61 73 79 6e |ll routi|nes asyn|
|00003770| 63 68 72 6f 6e 6f 75 73 | 6c 79 20 74 6f 20 65 6e |chronous|ly to en|
|00003780| 73 75 72 65 20 74 68 61 | 74 20 74 68 65 79 20 64 |sure tha|t they d|
|00003790| 6f 6e d5 74 20 6d 6f 76 | 65 20 6d 65 6d 6f 72 79 |on.t mov|e memory|
|000037a0| 2e 0d 41 74 20 74 68 69 | 73 20 74 69 6d 65 2c 20 |..At thi|s time, |
|000037b0| 74 68 65 20 76 61 72 69 | 6f 75 73 20 6c 69 73 74 |the vari|ous list|
|000037c0| 73 20 69 6e 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |s in Ins|ide Maci|
|000037d0| 6e 74 6f 73 68 20 6f 66 | 20 d2 52 6f 75 74 69 6e |ntosh of| .Routin|
|000037e0| 65 73 20 54 68 61 74 20 | 4d 61 79 20 4d 6f 76 65 |es That |May Move|
|000037f0| 20 6f 72 20 50 75 72 67 | 65 20 4d 65 6d 6f 72 79 | or Purg|e Memory|
|00003800| 2c d3 20 d2 52 6f 75 74 | 69 6e 65 73 20 61 6e 64 |,. .Rout|ines and|
|00003810| 20 54 68 65 69 72 20 4d | 65 6d 6f 72 79 20 42 65 | Their M|emory Be|
|00003820| 68 61 76 69 6f 72 2c d3 | 20 61 6e 64 20 d2 52 6f |havior,.| and .Ro|
|00003830| 75 74 69 6e 65 73 20 54 | 68 61 74 0d 0d 44 45 41 |utines T|hat..DEA|
|00003840| 44 4c 4f 43 4b 0d 42 59 | 20 47 4f 52 44 4f 4e 20 |DLOCK.BY| GORDON |
|00003850| 53 48 45 52 49 44 41 4e | 09 0d 44 65 61 64 6c 6f |SHERIDAN|..Deadlo|
|00003860| 63 6b 20 69 73 20 61 20 | 73 74 61 74 65 20 69 6e |ck is a |state in|
|00003870| 20 77 68 69 63 68 20 65 | 61 63 68 20 6f 66 20 74 | which e|ach of t|
|00003880| 77 6f 20 6f 72 20 6d 6f | 72 65 20 70 72 6f 63 65 |wo or mo|re proce|
|00003890| 73 73 65 73 20 69 73 20 | 77 61 69 74 69 6e 67 20 |sses is |waiting |
|000038a0| 66 6f 72 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 6f |for one |of the o|
|000038b0| 74 68 65 72 20 70 72 6f | 63 65 73 73 65 73 20 74 |ther pro|cesses t|
|000038c0| 6f 20 72 65 6c 65 61 73 | 65 20 73 6f 6d 65 20 72 |o releas|e some r|
|000038d0| 65 73 6f 75 72 63 65 20 | 6e 65 63 65 73 73 61 72 |esource |necessar|
|000038e0| 79 20 66 6f 72 20 69 74 | 73 20 63 6f 6d 70 6c 65 |y for it|s comple|
|000038f0| 74 69 6f 6e 2e 20 54 68 | 65 20 72 65 73 6f 75 72 |tion. Th|e resour|
|00003900| 63 65 20 6d 61 79 20 62 | 65 20 61 20 66 69 6c 65 |ce may b|e a file|
|00003910| 2c 20 61 20 67 6c 6f 62 | 61 6c 20 76 61 72 69 61 |, a glob|al varia|
|00003920| 62 6c 65 2c 20 6f 72 20 | 65 76 65 6e 20 74 68 65 |ble, or |even the|
|00003930| 20 43 50 55 2e 20 54 68 | 65 20 70 72 6f 63 65 73 | CPU. Th|e proces|
|00003940| 73 20 63 6f 75 6c 64 2c | 20 66 6f 72 20 65 78 61 |s could,| for exa|
|00003950| 6d 70 6c 65 2c 20 62 65 | 20 61 6e 20 61 70 70 6c |mple, be| an appl|
|00003960| 69 63 61 74 69 6f 6e d5 | 73 20 6d 61 69 6e 20 65 |ication.|s main e|
|00003970| 76 65 6e 74 20 6c 6f 6f | 70 20 6f 72 20 61 20 54 |vent loo|p or a T|
|00003980| 69 6d 65 20 4d 61 6e 61 | 67 65 72 20 74 61 73 6b |ime Mana|ger task|
|00003990| 2e 0d 57 68 65 6e 20 64 | 65 61 64 6c 6f 63 6b 20 |..When d|eadlock |
|000039a0| 6f 63 63 75 72 73 20 6f | 6e 20 74 68 65 20 4d 61 |occurs o|n the Ma|
|000039b0| 63 69 6e 74 6f 73 68 2c | 20 75 73 75 61 6c 6c 79 |cintosh,| usually|
|000039c0| 20 61 74 20 6c 65 61 73 | 74 20 6f 6e 65 20 6f 66 | at leas|t one of|
|000039d0| 20 74 68 65 20 70 72 6f | 63 65 73 73 65 73 20 69 | the pro|cesses i|
|000039e0| 73 20 65 78 65 63 75 74 | 69 6e 67 20 61 73 20 74 |s execut|ing as t|
|000039f0| 68 65 20 72 65 73 75 6c | 74 20 6f 66 20 61 6e 20 |he resul|t of an |
|00003a00| 69 6e 74 65 72 72 75 70 | 74 2e 20 56 42 4c 20 74 |interrup|t. VBL t|
|00003a10| 61 73 6b 73 2c 20 54 69 | 6d 65 20 4d 61 6e 61 67 |asks, Ti|me Manag|
|00003a20| 65 72 20 74 61 73 6b 73 | 2c 20 44 65 66 65 72 72 |er tasks|, Deferr|
|00003a30| 65 64 20 54 61 73 6b 20 | 4d 61 6e 61 67 65 72 20 |ed Task |Manager |
|00003a40| 74 61 73 6b 73 2c 20 63 | 6f 6d 70 6c 65 74 69 6f |tasks, c|ompletio|
|00003a50| 6e 20 72 6f 75 74 69 6e | 65 73 2c 20 61 6e 64 20 |n routin|es, and |
|00003a60| 69 6e 74 65 72 72 75 70 | 74 20 68 61 6e 64 6c 65 |interrup|t handle|
|00003a70| 72 73 20 63 61 6e 20 61 | 6c 6c 20 69 6e 74 65 72 |rs can a|ll inter|
|00003a80| 72 75 70 74 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |rupt an |applicat|
|00003a90| 69 6f 6e d5 73 20 6d 61 | 69 6e 20 74 68 72 65 61 |ion.s ma|in threa|
|00003aa0| 64 20 6f 66 20 65 78 65 | 63 75 74 69 6f 6e 2e 20 |d of exe|cution. |
|00003ab0| 57 68 65 6e 20 74 68 65 | 20 69 6e 74 65 72 72 75 |When the| interru|
|00003ac0| 70 74 65 64 20 70 72 6f | 63 65 73 73 20 69 73 20 |pted pro|cess is |
|00003ad0| 75 73 69 6e 67 20 61 20 | 72 65 73 6f 75 72 63 65 |using a |resource|
|00003ae0| 20 74 68 61 74 20 74 68 | 65 20 69 6e 74 65 72 72 | that th|e interr|
|00003af0| 75 70 74 69 6e 67 20 70 | 72 6f 63 65 73 73 20 6e |upting p|rocess n|
|00003b00| 65 65 64 73 2c 20 74 68 | 65 20 70 72 6f 63 65 73 |eeds, th|e proces|
|00003b10| 73 65 73 20 61 72 65 20 | 64 65 61 64 6c 6f 63 6b |ses are |deadlock|
|00003b20| 65 64 2e 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ed..For |example,|
|00003b30| 20 73 75 70 70 6f 73 65 | 20 61 20 54 69 6d 65 20 | suppose| a Time |
|00003b40| 4d 61 6e 61 67 65 72 20 | 74 61 73 6b 20 70 65 72 |Manager |task per|
|00003b50| 69 6f 64 69 63 61 6c 6c | 79 20 77 72 69 74 65 73 |iodicall|y writes|
|00003b60| 20 64 61 74 61 20 74 6f | 20 61 20 66 69 6c 65 20 | data to| a file |
|00003b70| 62 79 20 6d 61 6b 69 6e | 67 20 61 20 73 79 6e 63 |by makin|g a sync|
|00003b80| 68 72 6f 6e 6f 75 73 20 | 57 72 69 74 65 20 72 65 |hronous |Write re|
|00003b90| 71 75 65 73 74 2c 20 61 | 6e 64 20 61 6e 20 61 70 |quest, a|nd an ap|
|00003ba0| 70 6c 69 63 61 74 69 6f | 6e 20 72 65 61 64 73 20 |plicatio|n reads |
|00003bb0| 74 68 65 20 64 61 74 61 | 20 66 72 6f 6d 20 69 74 |the data| from it|
|00003bc0| 73 20 6d 61 69 6e 20 65 | 76 65 6e 74 20 6c 6f 6f |s main e|vent loo|
|00003bd0| 70 2e 20 44 65 70 65 6e | 64 69 6e 67 20 6f 6e 20 |p. Depen|ding on |
|00003be0| 74 68 65 20 66 72 65 71 | 75 65 6e 63 79 20 6f 66 |the freq|uency of|
|00003bf0| 20 74 68 65 20 74 61 73 | 6b 20 61 6e 64 20 74 68 | the tas|k and th|
|00003c00| 65 20 61 63 74 69 76 69 | 74 79 20 6c 65 76 65 6c |e activi|ty level|
|00003c10| 20 6f 66 20 74 68 65 20 | 46 69 6c 65 20 4d 61 6e | of the |File Man|
|00003c20| 61 67 65 72 2c 20 74 68 | 65 20 54 69 6d 65 20 4d |ager, th|e Time M|
|00003c30| 61 6e 61 67 65 72 20 74 | 61 73 6b 20 6d 61 79 20 |anager t|ask may |
|00003c40| 6f 66 74 65 6e 20 77 72 | 69 74 65 20 73 75 63 63 |often wr|ite succ|
|00003c50| 65 73 73 66 75 6c 6c 79 | 2e 20 49 6e 65 76 69 74 |essfully|. Inevit|
|00003c60| 61 62 6c 79 2c 20 68 6f | 77 65 76 65 72 2c 20 0d |ably, ho|wever, .|
|00003c70| 09 74 68 65 20 54 69 6d | 65 20 4d 61 6e 61 67 65 |.the Tim|e Manage|
|00003c80| 72 20 74 61 73 6b 20 77 | 69 6c 6c 20 69 6e 74 65 |r task w|ill inte|
|00003c90| 72 72 75 70 74 20 74 68 | 65 20 61 70 70 6c 69 63 |rrupt th|e applic|
|00003ca0| 61 74 69 6f 6e d5 73 20 | 52 65 61 64 20 72 65 71 |ation.s |Read req|
|00003cb0| 75 65 73 74 20 61 6e 64 | 20 64 65 61 64 6c 6f 63 |uest and| deadloc|
|00003cc0| 6b 20 77 69 6c 6c 20 6f | 63 63 75 72 2e 0d 42 65 |k will o|ccur..Be|
|00003cd0| 63 61 75 73 65 20 74 68 | 65 20 46 69 6c 65 20 4d |cause th|e File M|
|00003ce0| 61 6e 61 67 65 72 20 70 | 72 6f 63 65 73 73 65 73 |anager p|rocesses|
|00003cf0| 20 6f 6e 6c 79 20 6f 6e | 65 20 72 65 71 75 65 73 | only on|e reques|
|00003d00| 74 20 61 74 20 61 20 74 | 69 6d 65 2c 20 61 6e 79 |t at a t|ime, any|
|00003d10| 20 73 75 62 73 65 71 75 | 65 6e 74 20 72 65 71 75 | subsequ|ent requ|
|00003d20| 65 73 74 73 20 6d 75 73 | 74 20 77 61 69 74 20 66 |ests mus|t wait f|
|00003d30| 6f 72 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 72 |or the c|urrent r|
|00003d40| 65 71 75 65 73 74 20 74 | 6f 20 63 6f 6d 70 6c 65 |equest t|o comple|
|00003d50| 74 65 2e 20 49 6e 20 74 | 68 69 73 20 63 61 73 65 |te. In t|his case|
|00003d60| 2c 20 74 68 65 20 73 79 | 6e 63 68 72 6f 6e 6f 75 |, the sy|nchronou|
|00003d70| 73 20 72 65 71 75 65 73 | 74 20 6d 61 64 65 20 62 |s reques|t made b|
|00003d80| 79 20 74 68 65 20 54 69 | 6d 65 20 4d 61 6e 61 67 |y the Ti|me Manag|
|00003d90| 65 72 20 74 61 73 6b 20 | 6d 75 73 74 20 77 61 69 |er task |must wai|
|00003da0| 74 20 66 6f 72 20 74 68 | 65 20 61 70 70 6c 69 63 |t for th|e applic|
|00003db0| 61 74 69 6f 6e d5 73 20 | 52 65 61 64 20 72 65 71 |ation.s |Read req|
|00003dc0| 75 65 73 74 20 74 6f 20 | 63 6f 6d 70 6c 65 74 65 |uest to |complete|
|00003dd0| 20 62 65 66 6f 72 65 20 | 69 74 73 20 57 72 69 74 | before |its Writ|
|00003de0| 65 20 72 65 71 75 65 73 | 74 20 77 69 6c 6c 20 62 |e reques|t will b|
|00003df0| 65 20 70 72 6f 63 65 73 | 73 65 64 2e 20 55 6e 66 |e proces|sed. Unf|
|00003e00| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 20 74 68 65 20 |ortunate|ly, the |
|00003e10| 46 69 6c 65 20 4d 61 6e | 61 67 65 72 20 6d 75 73 |File Man|ager mus|
|00003e20| 74 20 77 61 69 74 20 66 | 6f 72 20 74 68 65 20 54 |t wait f|or the T|
|00003e30| 69 6d 65 20 4d 61 6e 61 | 67 65 72 20 74 61 73 6b |ime Mana|ger task|
|00003e40| 20 74 6f 20 63 6f 6d 70 | 6c 65 74 65 20 62 65 66 | to comp|lete bef|
|00003e50| 6f 72 65 20 69 74 20 63 | 61 6e 20 72 65 73 75 6d |ore it c|an resum|
|00003e60| 65 20 65 78 65 63 75 74 | 69 6f 6e 2e 20 45 61 63 |e execut|ion. Eac|
|00003e70| 68 20 70 72 6f 63 65 73 | 73 20 69 73 20 6e 6f 77 |h proces|s is now|
|00003e80| 20 77 61 69 74 69 6e 67 | 20 66 6f 72 20 74 68 65 | waiting| for the|
|00003e90| 20 6f 74 68 65 72 20 74 | 6f 20 63 6f 6d 70 6c 65 | other t|o comple|
|00003ea0| 74 65 2c 20 61 6e 64 20 | 74 68 65 79 d5 6c 6c 20 |te, and |they.ll |
|00003eb0| 63 6f 6e 74 69 6e 75 65 | 20 74 6f 20 77 61 69 74 |continue| to wait|
|00003ec0| 20 66 6f 72 65 76 65 72 | 2e 0d 53 79 6e 63 68 72 | forever|..Synchr|
|00003ed0| 6f 6e 6f 75 73 20 72 65 | 71 75 65 73 74 73 20 61 |onous re|quests a|
|00003ee0| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|00003ef0| 20 74 65 6e 64 20 74 6f | 20 70 72 6f 64 75 63 65 | tend to| produce|
|00003f00| 20 64 65 61 64 6c 6f 63 | 6b 2c 20 62 65 63 61 75 | deadloc|k, becau|
|00003f10| 73 65 20 74 68 65 20 63 | 61 6c 6c 20 69 73 20 71 |se the c|all is q|
|00003f20| 75 65 75 65 64 20 66 6f | 72 20 70 72 6f 63 65 73 |ueued fo|r proces|
|00003f30| 73 69 6e 67 20 61 6e 64 | 20 74 68 65 6e 20 74 68 |sing and| then th|
|00003f40| 65 20 43 50 55 20 73 69 | 74 73 20 61 6e 64 20 73 |e CPU si|ts and s|
|00003f50| 70 69 6e 73 2c 20 77 61 | 69 74 69 6e 67 20 66 6f |pins, wa|iting fo|
|00003f60| 72 20 61 6e 20 69 6e 74 | 65 72 72 75 70 74 20 74 |r an int|errupt t|
|00003f70| 6f 20 6f 63 63 75 72 2c | 20 77 68 69 63 68 20 73 |o occur,| which s|
|00003f80| 69 67 6e 61 6c 73 20 74 | 68 61 74 20 74 68 65 20 |ignals t|hat the |
|00003f90| 72 65 71 75 65 73 74 20 | 68 61 73 20 62 65 65 6e |request |has been|
|00003fa0| 20 63 6f 6d 70 6c 65 74 | 65 64 2e 20 49 66 20 69 | complet|ed. If i|
|00003fb0| 6e 74 65 72 72 75 70 74 | 73 20 61 72 65 20 74 75 |nterrupt|s are tu|
|00003fc0| 72 6e 65 64 20 6f 66 66 | 2c 20 6f 72 20 69 66 20 |rned off|, or if |
|00003fd0| 61 20 70 72 65 76 69 6f | 75 73 20 70 65 6e 64 69 |a previo|us pendi|
|00003fe0| 6e 67 20 72 65 71 75 65 | 73 74 20 63 61 6e d5 74 |ng reque|st can.t|
|00003ff0| 20 66 69 6e 69 73 68 20 | 62 65 63 61 75 73 65 20 | finish |because |
|00004000| 69 74 d5 73 20 77 61 69 | 74 69 6e 67 20 74 6f 20 |it.s wai|ting to |
|00004010| 72 65 73 75 6d 65 20 65 | 78 65 63 75 74 69 6f 6e |resume e|xecution|
|00004020| 20 61 66 74 65 72 20 74 | 68 65 20 69 6e 74 65 72 | after t|he inter|
|00004030| 72 75 70 74 2c 20 74 68 | 65 20 43 50 55 20 77 69 |rupt, th|e CPU wi|
|00004040| 6c 6c 20 77 61 69 74 20 | 70 61 74 69 65 6e 74 6c |ll wait |patientl|
|00004050| 79 20 28 61 6e 64 20 65 | 74 65 72 6e 61 6c 6c 79 |y (and e|ternally|
|00004060| 29 20 66 6f 72 20 74 68 | 65 20 72 65 71 75 65 73 |) for th|e reques|
|00004070| 74 20 74 6f 20 66 69 6e | 69 73 68 20 d1 20 75 6e |t to fin|ish . un|
|00004080| 74 69 6c 20 79 6f 75 20 | 79 61 6e 6b 20 74 68 65 |til you |yank the|
|00004090| 20 70 6f 77 65 72 20 63 | 6f 72 64 20 66 72 6f 6d | power c|ord from|
|000040a0| 20 74 68 65 20 77 61 6c | 6c 2e 0d 09 0d 53 68 6f | the wal|l....Sho|
|000040b0| 75 6c 64 20 4e 6f 74 20 | 42 65 20 43 61 6c 6c 65 |uld Not |Be Calle|
|000040c0| 64 20 46 72 6f 6d 20 57 | 69 74 68 69 6e 20 61 6e |d From W|ithin an|
|000040d0| 20 49 6e 74 65 72 72 75 | 70 74 d3 20 61 72 65 20 | Interru|pt. are |
|000040e0| 65 69 74 68 65 72 20 69 | 6e 63 6f 6d 70 6c 65 74 |either i|ncomplet|
|000040f0| 65 20 6f 72 20 69 6e 63 | 6f 72 72 65 63 74 20 61 |e or inc|orrect a|
|00004100| 6e 64 20 63 61 6e d5 74 | 20 62 65 20 74 72 75 73 |nd can.t| be trus|
|00004110| 74 65 64 20 65 6e 74 69 | 72 65 6c 79 2e 20 54 68 |ted enti|rely. Th|
|00004120| 65 20 72 65 61 73 6f 6e | 73 20 77 68 79 20 61 20 |e reason|s why a |
|00004130| 73 79 73 74 65 6d 20 72 | 6f 75 74 69 6e 65 20 63 |system r|outine c|
|00004140| 61 6e d5 74 20 62 65 20 | 63 61 6c 6c 65 64 20 61 |an.t be |called a|
|00004150| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|00004160| 20 69 6e 63 6c 75 64 65 | 3a 20 74 68 65 20 72 6f | include|: the ro|
|00004170| 75 74 69 6e 65 20 6d 61 | 79 20 6d 6f 76 65 20 6d |utine ma|y move m|
|00004180| 65 6d 6f 72 79 3b 20 74 | 68 65 20 72 6f 75 74 69 |emory; t|he routi|
|00004190| 6e 65 20 6d 61 79 20 63 | 61 75 73 65 20 61 20 64 |ne may c|ause a d|
|000041a0| 65 61 64 6c 6f 63 6b 20 | 63 6f 6e 64 69 74 69 6f |eadlock |conditio|
|000041b0| 6e 3b 20 74 68 65 20 72 | 6f 75 74 69 6e 65 20 69 |n; the r|outine i|
|000041c0| 73 20 6e 6f 74 20 72 65 | 65 6e 74 72 61 6e 74 2e |s not re|entrant.|
|000041d0| 20 54 68 69 73 20 61 72 | 74 69 63 6c 65 20 73 68 | This ar|ticle sh|
|000041e0| 6f 77 73 20 68 6f 77 20 | 74 6f 20 70 6f 73 74 70 |ows how |to postp|
|000041f0| 6f 6e 65 20 6d 6f 73 74 | 20 73 79 73 74 65 6d 20 |one most| system |
|00004200| 63 61 6c 6c 73 20 75 6e | 74 69 6c 20 61 20 73 61 |calls un|til a sa|
|00004210| 66 65 20 74 69 6d 65 2e | 20 59 6f 75 d5 72 65 20 |fe time.| You.re |
|00004220| 65 6e 63 6f 75 72 61 67 | 65 64 20 74 6f 20 63 61 |encourag|ed to ca|
|00004230| 6c 6c 20 61 73 20 66 65 | 77 20 73 79 73 74 65 6d |ll as fe|w system|
|00004240| 20 72 6f 75 74 69 6e 65 | 73 20 61 74 20 69 6e 74 | routine|s at int|
|00004250| 65 72 72 75 70 74 20 74 | 69 6d 65 20 61 73 20 70 |errupt t|ime as p|
|00004260| 6f 73 73 69 62 6c 65 2e | 20 0d 54 68 65 20 72 6f |ossible.| .The ro|
|00004270| 75 74 69 6e 65 73 20 64 | 69 73 63 75 73 73 65 64 |utines d|iscussed|
|00004280| 20 69 6e 20 74 68 69 73 | 20 61 72 74 69 63 6c 65 | in this| article|
|00004290| 20 61 72 65 20 6c 6f 77 | 2d 6c 65 76 65 6c 20 63 | are low|-level c|
|000042a0| 61 6c 6c 73 20 74 6f 20 | 74 68 65 20 46 69 6c 65 |alls to |the File|
|000042b0| 20 4d 61 6e 61 67 65 72 | 2c 20 74 68 65 20 44 65 | Manager|, the De|
|000042c0| 76 69 63 65 20 4d 61 6e | 61 67 65 72 20 28 69 6e |vice Man|ager (in|
|000042d0| 63 6c 75 64 69 6e 67 20 | 41 70 70 6c 65 54 61 6c |cluding |AppleTal|
|000042e0| 6b 20 64 72 69 76 65 72 | 2c 20 53 65 72 69 61 6c |k driver|, Serial|
|000042f0| 20 44 72 69 76 65 72 2c | 20 61 6e 64 20 64 69 73 | Driver,| and dis|
|00004300| 6b 20 64 72 69 76 65 72 | 20 63 61 6c 6c 73 29 2c |k driver| calls),|
|00004310| 20 61 6e 64 20 74 68 65 | 20 50 50 43 20 54 6f 6f | and the| PPC Too|
|00004320| 6c 62 6f 78 2e 20 41 6c | 6c 20 74 68 65 73 65 20 |lbox. Al|l these |
|00004330| 72 6f 75 74 69 6e 65 73 | 20 74 61 6b 65 20 74 68 |routines| take th|
|00004340| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 6f 72 6d |e follow|ing form|
|00004350| 3a 0d 46 55 4e 43 54 49 | 4f 4e 20 53 6f 6d 65 46 |:.FUNCTI|ON SomeF|
|00004360| 75 6e 63 74 69 6f 6e 20 | 28 70 62 50 74 72 3a 20 |unction |(pbPtr: |
|00004370| 61 50 61 72 61 6d 42 6c | 6f 63 6b 50 74 72 3b 20 |aParamBl|ockPtr; |
|00004380| 61 73 79 6e 63 3a 20 42 | 4f 4f 4c 45 41 4e 29 3a |async: B|OOLEAN):|
|00004390| 20 4f 53 45 72 72 3b 0d | 52 6f 75 74 69 6e 65 73 | OSErr;.|Routines|
|000043a0| 20 6f 66 20 74 68 69 73 | 20 66 6f 72 6d 20 61 72 | of this| form ar|
|000043b0| 65 20 65 78 65 63 75 74 | 65 64 20 73 79 6e 63 68 |e execut|ed synch|
|000043c0| 72 6f 6e 6f 75 73 6c 79 | 20 77 68 65 6e 20 61 73 |ronously| when as|
|000043d0| 79 6e 63 20 3d 20 46 41 | 4c 53 45 20 6f 72 20 61 |ync = FA|LSE or a|
|000043e0| 73 79 6e 63 68 72 6f 6e | 6f 75 73 6c 79 20 77 68 |synchron|ously wh|
|000043f0| 65 6e 20 61 73 79 6e 63 | 20 3d 20 54 52 55 45 2e |en async| = TRUE.|
|00004400| 20 0d 44 65 74 65 72 6d | 69 6e 69 6e 67 20 61 73 | .Determ|ining as|
|00004410| 79 6e 63 68 72 6f 6e 6f | 75 73 20 63 61 6c 6c 20 |ynchrono|us call |
|00004420| 63 6f 6d 70 6c 65 74 69 | 6f 6e 0d 59 6f 75 72 20 |completi|on.Your |
|00004430| 70 72 6f 67 72 61 6d 20 | 63 61 6e 20 75 73 65 20 |program |can use |
|00004440| 74 77 6f 20 6d 65 74 68 | 6f 64 73 20 74 6f 20 64 |two meth|ods to d|
|00004450| 65 74 65 72 6d 69 6e 65 | 20 77 68 65 6e 20 61 6e |etermine| when an|
|00004460| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 | asynchr|onous ca|
|00004470| 6c 6c 20 68 61 73 20 63 | 6f 6d 70 6c 65 74 65 64 |ll has c|ompleted|
|00004480| 3a 20 70 65 72 69 6f 64 | 69 63 61 6c 6c 79 20 70 |: period|ically p|
|00004490| 6f 6c 6c 20 66 6f 72 20 | 63 6f 6d 70 6c 65 74 69 |oll for |completi|
|000044a0| 6f 6e 20 28 63 68 65 63 | 6b 20 74 68 65 20 69 6f |on (chec|k the io|
|000044b0| 52 65 73 75 6c 74 20 66 | 69 65 6c 64 20 6f 66 20 |Result f|ield of |
|000044c0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |the para|meter bl|
|000044d0| 6f 63 6b 20 70 61 73 73 | 65 64 20 74 6f 20 74 68 |ock pass|ed to th|
|000044e0| 65 20 66 75 6e 63 74 69 | 6f 6e 29 20 6f 72 20 75 |e functi|on) or u|
|000044f0| 73 65 20 61 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 |se a com|pletion |
|00004500| 72 6f 75 74 69 6e 65 2e | 20 42 6f 74 68 20 6d 65 |routine.| Both me|
|00004510| 74 68 6f 64 73 20 65 6e | 61 62 6c 65 20 79 6f 75 |thods en|able you|
|00004520| 72 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 63 6f 6e |r progra|m to con|
|00004530| 74 69 6e 75 65 20 77 69 | 74 68 20 6f 74 68 65 72 |tinue wi|th other|
|00004540| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 77 68 69 6c | operati|ons whil|
|00004550| 65 20 77 61 69 74 69 6e | 67 20 66 6f 72 20 61 6e |e waitin|g for an|
|00004560| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 | asynchr|onous ca|
|00004570| 6c 6c 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 2e 0d |ll to co|mplete..|
|00004580| 50 6f 6c 6c 69 6e 67 20 | 66 6f 72 20 63 6f 6d 70 |Polling |for comp|
|00004590| 6c 65 74 69 6f 6e 0d 50 | 6f 6c 6c 69 6e 67 20 66 |letion.P|olling f|
|000045a0| 6f 72 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 69 73 |or compl|etion is|
|000045b0| 20 61 20 73 69 6d 70 6c | 65 20 6d 65 74 68 6f 64 | a simpl|e method|
|000045c0| 20 74 6f 20 75 73 65 20 | 77 68 65 6e 20 79 6f 75 | to use |when you|
|000045d0| 20 68 61 76 65 20 6f 6e | 6c 79 20 6f 6e 65 20 6f | have on|ly one o|
|000045e0| 72 20 74 77 6f 20 61 73 | 79 6e 63 68 72 6f 6e 6f |r two as|ynchrono|
|000045f0| 75 73 20 63 61 6c 6c 73 | 20 6f 75 74 73 74 61 6e |us calls| outstan|
|00004600| 64 69 6e 67 20 61 74 20 | 61 20 74 69 6d 65 2e 20 |ding at |a time. |
|00004610| 49 74 d5 73 20 6c 69 6b | 65 20 67 69 76 69 6e 67 |It.s lik|e giving|
|00004620| 20 73 6f 6d 65 6f 6e 65 | 20 61 20 74 61 73 6b 20 | someone| a task |
|00004630| 61 6e 64 20 63 61 6c 6c | 69 6e 67 20 74 68 65 6d |and call|ing them|
|00004640| 20 70 65 72 69 6f 64 69 | 63 61 6c 6c 79 20 74 6f | periodi|cally to|
|00004650| 20 73 65 65 20 69 66 20 | 74 68 65 79 d5 76 65 20 | see if |they.ve |
|00004660| 63 6f 6d 70 6c 65 74 65 | 64 20 69 74 2e 20 57 68 |complete|d it. Wh|
|00004670| 65 6e 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 |en your |program |
|00004680| 66 69 6c 6c 73 20 69 6e | 20 74 68 65 20 70 61 72 |fills in| the par|
|00004690| 61 6d 65 74 65 72 20 62 | 6c 6f 63 6b 20 74 6f 20 |ameter b|lock to |
|000046a0| 70 61 73 73 20 74 6f 20 | 74 68 65 20 66 75 6e 63 |pass to |the func|
|000046b0| 74 69 6f 6e 2c 20 69 74 | 20 73 65 74 73 20 74 68 |tion, it| sets th|
|000046c0| 65 20 69 6f 43 6f 6d 70 | 6c 65 74 69 6f 6e 20 66 |e ioComp|letion f|
|000046d0| 69 65 6c 64 20 74 6f 20 | 4e 49 4c 2c 20 69 6e 64 |ield to |NIL, ind|
|000046e0| 69 63 61 74 69 6e 67 20 | 74 68 61 74 20 74 68 65 |icating |that the|
|000046f0| 72 65 d5 73 20 6e 6f 20 | 63 6f 6d 70 6c 65 74 69 |re.s no |completi|
|00004700| 6f 6e 20 72 6f 75 74 69 | 6e 65 2e 20 54 68 65 6e |on routi|ne. Then|
|00004710| 2c 20 61 66 74 65 72 20 | 63 61 6c 6c 69 6e 67 20 |, after |calling |
|00004720| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 61 73 79 |the func|tion asy|
|00004730| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2c 20 79 6f 75 |nchronou|sly, you|
|00004740| 72 20 70 72 6f 67 72 61 | 6d 20 6f 6e 6c 79 20 6e |r progra|m only n|
|00004750| 65 65 64 73 20 74 6f 20 | 70 6f 6c 6c 20 74 68 65 |eeds to |poll the|
|00004760| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 69 6f | value o|f the io|
|00004770| 52 65 73 75 6c 74 20 66 | 69 65 6c 64 20 6f 66 20 |Result f|ield of |
|00004780| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |the para|meter bl|
|00004790| 6f 63 6b 20 70 61 73 73 | 65 64 20 74 6f 20 74 68 |ock pass|ed to th|
|000047a0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 61 6e 64 20 77 |e functi|on and w|
|000047b0| 61 69 74 20 66 6f 72 20 | 69 74 20 74 6f 20 63 68 |ait for |it to ch|
|000047c0| 61 6e 67 65 3a 20 0d a5 | 09 41 20 70 6f 73 69 74 |ange: ..|.A posit|
|000047d0| 69 76 65 20 76 61 6c 75 | 65 20 69 6e 64 69 63 61 |ive valu|e indica|
|000047e0| 74 65 73 20 74 68 65 20 | 63 61 6c 6c 20 69 73 20 |tes the |call is |
|000047f0| 65 69 74 68 65 72 20 73 | 74 69 6c 6c 20 71 75 65 |either s|till que|
|00004800| 75 65 64 20 6f 72 20 69 | 6e 20 74 68 65 20 70 72 |ued or i|n the pr|
|00004810| 6f 63 65 73 73 20 6f 66 | 20 65 78 65 63 75 74 69 |ocess of| executi|
|00004820| 6e 67 2e 0d a5 09 41 20 | 76 61 6c 75 65 20 6c 65 |ng....A |value le|
|00004830| 73 73 20 74 68 61 6e 20 | 6f 72 20 65 71 75 61 6c |ss than |or equal|
|00004840| 20 74 6f 20 30 20 28 6e | 6f 45 72 72 29 20 69 6e | to 0 (n|oErr) in|
|00004850| 64 69 63 61 74 65 73 20 | 74 68 65 20 63 61 6c 6c |dicates |the call|
|00004860| 20 68 61 73 20 63 6f 6d | 70 6c 65 74 65 64 20 28 | has com|pleted (|
|00004870| 65 69 74 68 65 72 20 77 | 69 74 68 20 6f 72 20 77 |either w|ith or w|
|00004880| 69 74 68 6f 75 74 20 61 | 6e 20 65 72 72 6f 72 20 |ithout a|n error |
|00004890| 63 6f 6e 64 69 74 69 6f | 6e 29 2e 0d 50 6f 6c 6c |conditio|n)..Poll|
|000048a0| 69 6e 67 20 69 73 20 75 | 73 75 61 6c 6c 79 20 73 |ing is u|sually s|
|000048b0| 74 72 61 69 67 68 74 66 | 6f 72 77 61 72 64 20 61 |traightf|orward a|
|000048c0| 6e 64 20 73 69 6d 70 6c | 65 20 74 6f 20 69 6d 70 |nd simpl|e to imp|
|000048d0| 6c 65 6d 65 6e 74 2c 20 | 77 68 69 63 68 20 6d 61 |lement, |which ma|
|000048e0| 6b 65 73 20 74 68 65 20 | 63 6f 64 65 20 75 73 65 |kes the |code use|
|000048f0| 64 20 74 6f 20 69 6d 70 | 6c 65 6d 65 6e 74 20 70 |d to imp|lement p|
|00004900| 6f 6c 6c 69 6e 67 20 65 | 61 73 79 20 74 6f 20 64 |olling e|asy to d|
|00004910| 65 62 75 67 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |ebug. Th|e follow|
|00004920| 69 6e 67 20 63 6f 64 65 | 20 73 68 6f 77 73 20 61 |ing code| shows a|
|00004930| 6e 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 20 50 |n asynch|ronous P|
|00004940| 50 43 49 6e 66 6f 72 6d | 20 63 61 6c 6c 20 61 6e |PCInform| call an|
|00004950| 64 20 68 6f 77 20 74 6f | 20 70 6f 6c 6c 20 66 6f |d how to| poll fo|
|00004960| 72 20 69 74 73 20 63 6f | 6d 70 6c 65 74 69 6f 6e |r its co|mpletion|
|00004970| 3a 0d 50 52 4f 43 45 44 | 55 52 45 20 4d 79 50 50 |:.PROCED|URE MyPP|
|00004980| 43 49 6e 66 6f 72 6d 3b | 0d 09 56 41 52 0d 09 09 |CInform;|..VAR...|
|00004990| 65 72 72 3a 20 4f 53 45 | 72 72 3b 09 7b 20 45 72 |err: OSE|rr;.{ Er|
|000049a0| 72 6f 72 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 61 |ror cond|itions a|
|000049b0| 72 65 20 69 67 6e 6f 72 | 65 64 20 69 6e 20 74 68 |re ignor|ed in th|
|000049c0| 69 73 20 70 72 6f 63 65 | 64 75 72 65 20 7d 0d 09 |is proce|dure }..|
|000049d0| 09 09 09 09 09 09 7b 20 | 62 65 63 61 75 73 65 20 |......{ |because |
|000049e0| 74 68 65 79 20 61 72 65 | 20 63 61 75 67 68 74 20 |they are| caught |
|000049f0| 69 6e 20 50 6f 6c 6c 46 | 6f 72 43 6f 6d 70 6c 65 |in PollF|orComple|
|00004a00| 74 69 6f 6e 2e 20 7d 0d | 42 45 47 49 4e 0d 09 67 |tion. }.|BEGIN..g|
|00004a10| 50 50 43 50 61 72 61 6d | 42 6c 6f 63 6b 2e 69 6e |PPCParam|Block.in|
|00004a20| 66 6f 72 6d 50 61 72 61 | 6d 2e 69 6f 43 6f 6d 70 |formPara|m.ioComp|
|00004a30| 6c 65 74 69 6f 6e 20 3a | 3d 20 4e 49 4c 3b 0d 09 |letion :|= NIL;..|
|00004a40| 67 50 50 43 50 61 72 61 | 6d 42 6c 6f 63 6b 2e 69 |gPPCPara|mBlock.i|
|00004a50| 6e 66 6f 72 6d 50 61 72 | 61 6d 2e 70 6f 72 74 52 |nformPar|am.portR|
|00004a60| 65 66 4e 75 6d 20 3a 3d | 20 67 50 6f 72 74 52 65 |efNum :=| gPortRe|
|00004a70| 66 4e 75 6d 3b 0d 09 67 | 50 50 43 50 61 72 61 6d |fNum;..g|PPCParam|
|00004a80| 42 6c 6f 63 6b 2e 69 6e | 66 6f 72 6d 50 61 72 61 |Block.in|formPara|
|00004a90| 6d 2e 61 75 74 6f 41 63 | 63 65 70 74 20 3a 3d 20 |m.autoAc|cept := |
|00004aa0| 54 52 55 45 3b 0d 09 67 | 50 50 43 50 61 72 61 6d |TRUE;..g|PPCParam|
|00004ab0| 42 6c 6f 63 6b 2e 69 6e | 66 6f 72 6d 50 61 72 61 |Block.in|formPara|
|00004ac0| 6d 2e 70 6f 72 74 4e 61 | 6d 65 20 3a 3d 20 40 67 |m.portNa|me := @g|
|00004ad0| 50 50 43 50 6f 72 74 3b | 0d 09 67 50 50 43 50 61 |PPCPort;|..gPPCPa|
|00004ae0| 72 61 6d 42 6c 6f 63 6b | 2e 69 6e 66 6f 72 6d 50 |ramBlock|.informP|
|00004af0| 61 72 61 6d 2e 6c 6f 63 | 61 74 69 6f 6e 4e 61 6d |aram.loc|ationNam|
|00004b00| 65 20 3a 3d 20 40 67 4c | 6f 63 61 74 69 6f 6e 4e |e := @gL|ocationN|
|00004b10| 61 6d 65 3b 0d 09 67 50 | 50 43 50 61 72 61 6d 42 |ame;..gP|PCParamB|
|00004b20| 6c 6f 63 6b 2e 69 6e 66 | 6f 72 6d 50 61 72 61 6d |lock.inf|ormParam|
|00004b30| 2e 75 73 65 72 4e 61 6d | 65 20 3a 3d 20 40 67 55 |.userNam|e := @gU|
|00004b40| 73 65 72 4e 61 6d 65 3b | 0d 09 65 72 72 20 3a 3d |serName;|..err :=|
|00004b50| 20 50 50 43 49 6e 66 6f | 72 6d 28 50 50 43 49 6e | PPCInfo|rm(PPCIn|
|00004b60| 66 6f 72 6d 50 42 50 74 | 72 28 40 67 50 50 43 50 |formPBPt|r(@gPPCP|
|00004b70| 61 72 61 6d 42 6c 6f 63 | 6b 29 2c 20 54 52 55 45 |aramBloc|k), TRUE|
|00004b80| 29 3b 0d 45 4e 44 3b 0d | 49 6e 20 74 68 69 73 20 |);.END;.|In this |
|00004b90| 63 6f 64 65 2c 20 4d 79 | 50 50 43 49 6e 66 6f 72 |code, My|PPCInfor|
|00004ba0| 6d 20 63 61 6c 6c 73 20 | 74 68 65 20 50 50 43 49 |m calls |the PPCI|
|00004bb0| 6e 66 6f 72 6d 20 66 75 | 6e 63 74 69 6f 6e 20 61 |nform fu|nction a|
|00004bc0| 73 79 6e 63 68 72 6f 6e | 6f 75 73 6c 79 20 77 69 |synchron|ously wi|
|00004bd0| 74 68 20 6e 6f 20 63 6f | 6d 70 6c 65 74 69 6f 6e |th no co|mpletion|
|00004be0| 20 72 6f 75 74 69 6e 65 | 20 28 69 6f 43 6f 6d 70 | routine| (ioComp|
|00004bf0| 6c 65 74 69 6f 6e 20 69 | 73 20 4e 49 4c 29 2e 20 |letion i|s NIL). |
|00004c00| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 63 61 6e 20 |The prog|ram can |
|00004c10| 74 68 65 6e 20 63 6f 6e | 74 69 6e 75 65 20 74 6f |then con|tinue to|
|00004c20| 20 64 6f 20 6f 74 68 65 | 72 20 74 68 69 6e 67 73 | do othe|r things|
|00004c30| 20 77 68 69 6c 65 20 70 | 65 72 69 6f 64 69 63 61 | while p|eriodica|
|00004c40| 6c 6c 79 20 63 61 6c 6c | 69 6e 67 20 74 68 65 20 |lly call|ing the |
|00004c50| 50 6f 6c 6c 46 6f 72 43 | 6f 6d 70 6c 65 74 69 6f |PollForC|ompletio|
|00004c60| 6e 20 70 72 6f 63 65 64 | 75 72 65 20 74 6f 20 66 |n proced|ure to f|
|00004c70| 69 6e 64 20 6f 75 74 20 | 77 68 65 6e 20 74 68 65 |ind out |when the|
|00004c80| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 | asynchr|onous ca|
|00004c90| 6c 6c 20 63 6f 6d 70 6c | 65 74 65 73 2e 0d 0d 50 |ll compl|etes...P|
|00004ca0| 52 4f 43 45 44 55 52 45 | 20 50 6f 6c 6c 46 6f 72 |ROCEDURE| PollFor|
|00004cb0| 43 6f 6d 70 6c 65 74 69 | 6f 6e 3b 0d 42 45 47 49 |Completi|on;.BEGI|
|00004cc0| 4e 0d 09 49 46 20 67 50 | 50 43 50 61 72 61 6d 42 |N..IF gP|PCParamB|
|00004cd0| 6c 6f 63 6b 2e 69 6e 66 | 6f 72 6d 50 61 72 61 6d |lock.inf|ormParam|
|00004ce0| 2e 69 6f 52 65 73 75 6c | 74 20 3c 3d 20 6e 6f 45 |.ioResul|t <= noE|
|00004cf0| 72 72 20 54 48 45 4e 0d | 09 09 42 45 47 49 4e 09 |rr THEN.|..BEGIN.|
|00004d00| 7b 20 54 68 65 20 63 61 | 6c 6c 20 68 61 73 20 63 |{ The ca|ll has c|
|00004d10| 6f 6d 70 6c 65 74 65 64 | 2e 20 7d 0d 09 09 09 49 |ompleted|. }....I|
|00004d20| 46 20 67 50 50 43 50 61 | 72 61 6d 42 6c 6f 63 6b |F gPPCPa|ramBlock|
|00004d30| 2e 69 6e 66 6f 72 6d 50 | 61 72 61 6d 2e 69 6f 52 |.informP|aram.ioR|
|00004d40| 65 73 75 6c 74 20 3d 20 | 6e 6f 45 72 72 20 54 48 |esult = |noErr TH|
|00004d50| 45 4e 0d 09 09 09 09 42 | 45 47 49 4e 0d 09 09 09 |EN.....B|EGIN....|
|00004d60| 09 09 7b 20 54 68 65 20 | 63 61 6c 6c 20 63 6f 6d |..{ The |call com|
|00004d70| 70 6c 65 74 65 64 20 73 | 75 63 63 65 73 73 66 75 |pleted s|uccessfu|
|00004d80| 6c 6c 79 2e 20 7d 0d 09 | 09 09 09 45 4e 44 0d 09 |lly. }..|...END..|
|00004d90| 09 09 45 4c 53 45 0d 09 | 09 09 09 42 45 47 49 4e |..ELSE..|...BEGIN|
|00004da0| 0d 09 09 09 09 09 7b 20 | 54 68 65 20 63 61 6c 6c |......{ |The call|
|00004db0| 20 66 61 69 6c 65 64 2c | 20 68 61 6e 64 6c 65 20 | failed,| handle |
|00004dc0| 74 68 65 20 65 72 72 6f | 72 2e 20 7d 0d 09 09 09 |the erro|r. }....|
|00004dd0| 09 45 4e 44 3b 0d 09 09 | 45 4e 44 3b 0d 45 4e 44 |.END;...|END;.END|
|00004de0| 3b 0d 50 6f 6c 6c 46 6f | 72 43 6f 6d 70 6c 65 74 |;.PollFo|rComplet|
|00004df0| 69 6f 6e 20 63 68 65 63 | 6b 73 20 74 68 65 20 76 |ion chec|ks the v|
|00004e00| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 69 6f 52 65 |alue of |the ioRe|
|00004e10| 73 75 6c 74 20 66 69 65 | 6c 64 20 74 6f 20 66 69 |sult fie|ld to fi|
|00004e20| 6e 64 20 6f 75 74 20 77 | 68 65 74 68 65 72 20 50 |nd out w|hether P|
|00004e30| 50 43 49 6e 66 6f 72 6d | 20 68 61 73 20 63 6f 6d |PCInform| has com|
|00004e40| 70 6c 65 74 65 64 2e 20 | 49 66 20 74 68 65 20 63 |pleted. |If the c|
|00004e50| 61 6c 6c 20 68 61 73 20 | 63 6f 6d 70 6c 65 74 65 |all has |complete|
|00004e60| 64 2c 20 50 6f 6c 6c 46 | 6f 72 43 6f 6d 70 6c 65 |d, PollF|orComple|
|00004e70| 74 69 6f 6e 20 63 68 65 | 63 6b 73 20 66 6f 72 20 |tion che|cks for |
|00004e80| 61 6e 20 61 72 72 6f 72 | 20 63 6f 6e 64 69 74 69 |an arror| conditi|
|00004e90| 6f 6e 20 61 6e 64 20 74 | 68 65 6e 20 70 65 72 66 |on and t|hen perf|
|00004ea0| 6f 72 6d 73 20 61 6e 20 | 61 70 70 72 6f 70 72 69 |orms an |appropri|
|00004eb0| 61 74 65 20 61 63 74 69 | 6f 6e 2e 0d 54 68 65 72 |ate acti|on..Ther|
|00004ec0| 65 20 61 72 65 20 74 68 | 72 65 65 20 69 6d 70 6f |e are th|ree impo|
|00004ed0| 72 74 61 6e 74 20 74 68 | 69 6e 67 73 20 74 6f 20 |rtant th|ings to |
|00004ee0| 6e 6f 74 65 20 69 6e 20 | 74 68 69 73 20 65 78 61 |note in |this exa|
|00004ef0| 6d 70 6c 65 20 6f 66 20 | 70 6f 6c 6c 69 6e 67 20 |mple of |polling |
|00004f00| 66 6f 72 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 3a 20 |for comp|letion: |
|00004f10| 0d a5 09 54 68 65 20 70 | 61 72 61 6d 65 74 65 72 |...The p|arameter|
|00004f20| 20 62 6c 6f 63 6b 20 70 | 61 73 73 65 64 20 74 6f | block p|assed to|
|00004f30| 20 50 50 43 49 6e 66 6f | 72 6d 2c 20 67 50 50 43 | PPCInfo|rm, gPPC|
|00004f40| 50 61 72 61 6d 42 6c 6f | 63 6b 2c 20 69 73 20 61 |ParamBlo|ck, is a|
|00004f50| 20 70 72 6f 67 72 61 6d | 20 67 6c 6f 62 61 6c 20 | program| global |
|00004f60| 76 61 72 69 61 62 6c 65 | 2e 20 53 69 6e 63 65 20 |variable|. Since |
|00004f70| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |the para|meter bl|
|00004f80| 6f 63 6b 20 70 61 73 73 | 65 64 20 74 6f 20 61 6e |ock pass|ed to an|
|00004f90| 20 61 73 79 6e 63 68 72 | 6f 6e 6f 75 73 20 63 61 | asynchr|onous ca|
|00004fa0| 6c 6c 20 69 73 20 6f 77 | 6e 65 64 20 62 79 20 74 |ll is ow|ned by t|
|00004fb0| 68 65 20 73 79 73 74 65 | 6d 20 75 6e 74 69 6c 20 |he syste|m until |
|00004fc0| 74 68 65 20 63 61 6c 6c | 20 63 6f 6d 70 6c 65 74 |the call| complet|
|00004fd0| 65 73 2c 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |es, the |paramete|
|00004fe0| 72 20 62 6c 6f 63 6b 20 | 6d 75 73 74 20 6e 6f 74 |r block |must not|
|00004ff0| 20 62 65 20 64 65 63 6c | 61 72 65 64 20 61 73 20 | be decl|ared as |
|00005000| 61 20 6c 6f 63 61 6c 20 | 76 61 72 69 61 62 6c 65 |a local |variable|
|00005010| 20 77 69 74 68 69 6e 20 | 74 68 65 20 72 6f 75 74 | within |the rout|
|00005020| 69 6e 65 20 74 68 61 74 | 20 6d 61 6b 65 73 20 74 |ine that| makes t|
|00005030| 68 65 20 61 73 79 6e 63 | 68 72 6f 6e 6f 75 73 20 |he async|hronous |
|00005040| 63 61 6c 6c 2e 20 54 68 | 65 20 6d 65 6d 6f 72 79 |call. Th|e memory|
|00005050| 20 75 73 65 64 20 62 79 | 20 6c 6f 63 61 6c 20 76 | used by| local v|
|00005060| 61 72 69 61 62 6c 65 73 | 20 69 73 20 72 65 6c 65 |ariables| is rele|
|00005070| 61 73 65 64 20 74 6f 20 | 74 68 65 20 73 74 61 63 |ased to |the stac|
|00005080| 6b 20 77 68 65 6e 20 61 | 20 72 6f 75 74 69 6e 65 |k when a| routine|
|00005090| 20 65 6e 64 73 2c 20 61 | 6e 64 20 69 66 20 74 68 | ends, a|nd if th|
|000050a0| 61 74 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 73 |at part |of the s|
|000050b0| 74 61 63 6b 20 67 65 74 | 73 20 72 65 75 73 65 64 |tack get|s reused|
|000050c0| 2c 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |, the pa|rameter |
|000050d0| 62 6c 6f 63 6b 2c 20 77 | 68 69 63 68 20 63 6f 75 |block, w|hich cou|
|000050e0| 6c 64 20 73 74 69 6c 6c | 20 62 65 20 70 61 72 74 |ld still| be part|
|000050f0| 20 6f 66 20 61 6e 20 6f | 70 65 72 61 74 69 6e 67 | of an o|perating|
|00005100| 20 73 79 73 74 65 6d 20 | 71 75 65 75 65 2c 20 63 | system |queue, c|
|00005110| 61 6e 20 67 65 74 20 74 | 72 61 73 68 65 64 2c 20 |an get t|rashed, |
|00005120| 63 61 75 73 69 6e 67 20 | 65 69 74 68 65 72 20 75 |causing |either u|
|00005130| 6e 65 78 70 65 63 74 65 | 64 20 72 65 73 75 6c 74 |nexpecte|d result|
|00005140| 73 20 6f 72 20 61 20 73 | 79 73 74 65 6d 20 63 72 |s or a s|ystem cr|
|00005150| 61 73 68 2e 20 41 6c 77 | 61 79 73 20 64 65 63 6c |ash. Alw|ays decl|
|00005160| 61 72 65 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |are para|meter bl|
|00005170| 6f 63 6b 73 20 67 6c 6f | 62 61 6c 6c 79 20 6f 72 |ocks glo|bally or|
|00005180| 20 61 73 20 6e 6f 6e 72 | 65 6c 6f 63 61 74 61 62 | as nonr|elocatab|
|00005190| 6c 65 20 6f 62 6a 65 63 | 74 73 20 69 6e 20 74 68 |le objec|ts in th|
|000051a0| 65 20 68 65 61 70 2e 0d | a5 09 43 61 6c 6c 73 20 |e heap..|..Calls |
|000051b0| 74 6f 20 50 6f 6c 6c 46 | 6f 72 43 6f 6d 70 6c 65 |to PollF|orComple|
|000051c0| 74 69 6f 6e 20 6d 75 73 | 74 20 62 65 20 6d 61 64 |tion mus|t be mad|
|000051d0| 65 20 66 72 6f 6d 20 61 | 20 70 72 6f 67 72 61 6d |e from a| program|
|000051e0| 20 6c 6f 6f 70 20 74 68 | 61 74 d5 73 20 6e 6f 74 | loop th|at.s not|
|000051f0| 20 65 78 65 63 75 74 65 | 64 20 63 6f 6d 70 6c 65 | execute|d comple|
|00005200| 74 65 6c 79 20 61 74 20 | 69 6e 74 65 72 72 75 70 |tely at |interrup|
|00005210| 74 20 74 69 6d 65 2e 20 | 54 68 69 73 20 70 72 65 |t time. |This pre|
|00005220| 76 65 6e 74 73 20 64 65 | 61 64 6c 6f 63 6b 2e 20 |vents de|adlock. |
|00005230| 59 6f 75 20 64 6f 6e d5 | 74 20 6e 65 63 65 73 73 |You don.|t necess|
|00005240| 61 72 69 6c 79 20 68 61 | 76 65 20 74 6f 20 70 6f |arily ha|ve to po|
|00005250| 6c 6c 20 66 72 6f 6d 20 | 61 6e 20 61 70 70 6c 69 |ll from |an appli|
|00005260| 63 61 74 69 6f 6e d5 73 | 20 65 76 65 6e 74 20 6c |cation.s| event l|
|00005270| 6f 6f 70 20 28 77 68 69 | 63 68 20 69 73 20 65 78 |oop (whi|ch is ex|
|00005280| 65 63 75 74 65 64 20 61 | 74 20 6e 6f 6e 69 6e 74 |ecuted a|t nonint|
|00005290| 65 72 72 75 70 74 20 74 | 69 6d 65 29 2c 20 62 75 |errupt t|ime), bu|
|000052a0| 74 20 69 66 20 79 6f 75 | 20 70 6f 6c 6c 20 66 72 |t if you| poll fr|
|000052b0| 6f 6d 20 63 6f 64 65 20 | 74 68 61 74 20 65 78 65 |om code |that exe|
|000052c0| 63 75 74 65 73 20 61 74 | 20 69 6e 74 65 72 72 75 |cutes at| interru|
|000052d0| 70 74 20 74 69 6d 65 2c | 20 74 68 61 74 20 63 6f |pt time,| that co|
|000052e0| 64 65 20 6d 75 73 74 20 | 67 69 76 65 20 75 70 20 |de must |give up |
|000052f0| 63 6f 6e 74 72 6f 6c 20 | 62 65 74 77 65 65 6e 20 |control |between |
|00005300| 70 6f 6c 6c 73 2e 0d a5 | 09 50 6f 6c 6c 46 6f 72 |polls...|.PollFor|
|00005310| 43 6f 6d 70 6c 65 74 69 | 6f 6e 20 63 68 65 63 6b |Completi|on check|
|00005320| 73 20 74 68 65 20 69 6f | 52 65 73 75 6c 74 20 66 |s the io|Result f|
|00005330| 69 65 6c 64 20 6f 66 20 | 74 68 65 20 70 61 72 61 |ield of |the para|
|00005340| 6d 65 74 65 72 20 62 6c | 6f 63 6b 20 74 6f 20 64 |meter bl|ock to d|
|00005350| 65 74 65 72 6d 69 6e 65 | 20 77 68 65 74 68 65 72 |etermine| whether|
|00005360| 20 50 50 43 49 6e 66 6f | 72 6d 20 63 6f 6d 70 6c | PPCInfo|rm compl|
|00005370| 65 74 65 64 20 61 6e 64 | 2c 20 69 66 20 69 74 20 |eted and|, if it |
|00005380| 63 6f 6d 70 6c 65 74 65 | 64 2c 20 74 6f 20 73 65 |complete|d, to se|
|00005390| 65 20 69 66 20 69 74 20 | 63 6f 6d 70 6c 65 74 65 |e if it |complete|
|000053a0| 64 20 73 75 63 63 65 73 | 73 66 75 6c 6c 79 2e 0d |d succes|sfully..|
|000053b0| 4f 6e 65 20 64 72 61 77 | 62 61 63 6b 20 74 6f 20 |One draw|back to |
|000053c0| 70 6f 6c 6c 69 6e 67 20 | 66 6f 72 20 63 6f 6d 70 |polling |for comp|
|000053d0| 6c 65 74 69 6f 6e 20 69 | 73 20 6c 61 74 65 6e 63 |letion i|s latenc|
|000053e0| 79 2e 20 57 68 65 6e 20 | 74 68 65 20 61 73 79 6e |y. When |the asyn|
|000053f0| 63 68 72 6f 6e 6f 75 73 | 20 72 6f 75 74 69 6e 65 |chronous| routine|
|00005400| 20 63 6f 6d 70 6c 65 74 | 65 73 20 69 74 73 20 6a | complet|es its j|
|00005410| 6f 62 2c 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |ob, your| program|
|00005420| 20 77 6f 6e d5 74 20 6b | 6e 6f 77 20 69 74 20 75 | won.t k|now it u|
|00005430| 6e 74 69 6c 20 74 68 65 | 20 6e 65 78 74 20 74 69 |ntil the| next ti|
|00005440| 6d 65 20 79 6f 75 20 70 | 6f 6c 6c 2e 20 54 68 69 |me you p|oll. Thi|
|00005450| 73 20 63 61 6e 20 62 65 | 20 77 61 73 74 65 64 20 |s can be| wasted |
|00005460| 74 69 6d 65 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |time. Fo|r exampl|
|00005470| 65 2c 20 61 73 73 75 6d | 65 20 79 6f 75 20 67 69 |e, assum|e you gi|
|00005480| 76 65 20 73 6f 6d 65 6f | 6e 65 20 61 20 74 61 73 |ve someo|ne a tas|
|00005490| 6b 20 61 6e 64 20 61 73 | 6b 20 74 68 65 6d 20 69 |k and as|k them i|
|000054a0| 66 20 74 68 65 79 d5 72 | 65 20 64 6f 6e 65 20 28 |f they.r|e done (|
|000054b0| 70 6f 6c 6c 29 20 6f 6e | 6c 79 20 6f 6e 63 65 20 |poll) on|ly once |
|000054c0| 61 20 64 61 79 3a 20 69 | 66 20 74 68 65 79 20 66 |a day: i|f they f|
|000054d0| 69 6e 69 73 68 20 74 68 | 65 20 74 61 73 6b 20 61 |inish th|e task a|
|000054e0| 66 74 65 72 20 61 6e 20 | 68 6f 75 72 2c 20 79 6f |fter an |hour, yo|
|000054f0| 75 20 77 6f 6e d5 74 0d | 0d 0d 46 55 4e 43 54 49 |u won.t.|..FUNCTI|
|00005500| 4f 4e 20 52 45 53 55 4c | 54 53 20 41 4e 44 20 46 |ON RESUL|TS AND F|
|00005510| 55 4e 43 54 49 4f 4e 20 | 43 4f 4d 50 4c 45 54 49 |UNCTION |COMPLETI|
|00005520| 4f 4e 20 0d 42 59 20 53 | 43 4f 54 54 20 42 4f 59 |ON .BY S|COTT BOY|
|00005530| 44 20 41 4e 44 20 4a 49 | 4d 20 4c 55 54 48 45 52 |D AND JI|M LUTHER|
|00005540| 20 09 0d 4e 6f 74 20 61 | 6c 6c 20 66 75 6e 63 74 | ..Not a|ll funct|
|00005550| 69 6f 6e 20 72 65 73 75 | 6c 74 73 20 61 72 65 20 |ion resu|lts are |
|00005560| 65 71 75 61 6c 2e 20 49 | 67 6e 6f 72 65 20 73 6f |equal. I|gnore so|
|00005570| 6d 65 2c 20 70 61 79 20 | 61 74 74 65 6e 74 69 6f |me, pay |attentio|
|00005580| 6e 20 74 6f 20 6f 74 68 | 65 72 73 2e 20 49 67 6e |n to oth|ers. Ign|
|00005590| 6f 72 65 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 73 |ore func|tion res|
|000055a0| 75 6c 74 73 20 66 72 6f | 6d 20 61 73 79 6e 63 68 |ults fro|m asynch|
|000055b0| 72 6f 6e 6f 75 73 20 46 | 69 6c 65 20 4d 61 6e 61 |ronous F|ile Mana|
|000055c0| 67 65 72 20 61 6e 64 20 | 50 50 43 20 54 6f 6f 6c |ger and |PPC Tool|
|000055d0| 62 6f 78 20 63 61 6c 6c | 73 2e 20 54 68 65 79 20 |box call|s. They |
|000055e0| 63 6f 6e 74 61 69 6e 20 | 6e 6f 20 75 73 65 66 75 |contain |no usefu|
|000055f0| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 54 |l inform|ation. T|
|00005600| 6f 20 67 65 74 20 75 73 | 65 66 75 6c 20 72 65 73 |o get us|eful res|
|00005610| 75 6c 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ult info|rmation,|
|00005620| 20 77 61 69 74 20 66 6f | 72 20 74 68 65 20 63 61 | wait fo|r the ca|
|00005630| 6c 6c 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ll to co|mplete, |
|00005640| 74 68 65 6e 20 63 68 65 | 63 6b 20 69 6f 52 65 73 |then che|ck ioRes|
|00005650| 75 6c 74 20 6f 72 20 72 | 65 67 69 73 74 65 72 20 |ult or r|egister |
|00005660| 44 30 3b 20 62 6f 74 68 | 20 63 6f 6e 74 61 69 6e |D0; both| contain|
|00005670| 20 74 68 65 20 72 65 73 | 75 6c 74 2e 0d 42 6f 74 | the res|ult..Bot|
|00005680| 68 20 74 68 65 20 46 69 | 6c 65 20 4d 61 6e 61 67 |h the Fi|le Manag|
|00005690| 65 72 20 61 6e 64 20 74 | 68 65 20 50 50 43 20 54 |er and t|he PPC T|
|000056a0| 6f 6f 6c 62 6f 78 20 77 | 69 6c 6c 20 61 6c 77 61 |oolbox w|ill alwa|
|000056b0| 79 73 20 63 61 6c 6c 20 | 79 6f 75 72 20 63 6f 6d |ys call |your com|
|000056c0| 70 6c 65 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |pletion |routine |
|000056d0| 69 66 20 79 6f 75 20 73 | 70 65 63 69 66 69 65 64 |if you s|pecified|
|000056e0| 20 6f 6e 65 2e 20 49 66 | 20 79 6f 75 20 64 69 64 | one. If| you did|
|000056f0| 6e d5 74 20 73 75 70 70 | 6c 79 20 6f 6e 65 2c 20 |n.t supp|ly one, |
|00005700| 61 6e 64 20 69 6e 73 74 | 65 61 64 20 61 72 65 20 |and inst|ead are |
|00005710| 70 6f 6c 6c 69 6e 67 2c | 20 74 65 73 74 20 69 6f |polling,| test io|
|00005720| 52 65 73 75 6c 74 20 69 | 6e 20 79 6f 75 72 20 70 |Result i|n your p|
|00005730| 61 72 61 6d 65 74 65 72 | 20 62 6c 6f 63 6b 2e 20 |arameter| block. |
|00005740| 54 68 65 20 63 61 6c 6c | 20 68 61 73 20 63 6f 6d |The call| has com|
|00005750| 70 6c 65 74 65 64 20 69 | 66 20 69 6f 52 65 73 75 |pleted i|f ioResu|
|00005760| 6c 74 20 69 73 20 6c 65 | 73 73 20 74 68 61 6e 20 |lt is le|ss than |
|00005770| 6f 72 20 65 71 75 61 6c | 20 74 6f 20 6e 6f 45 72 |or equal| to noEr|
|00005780| 72 2e 20 0d 09 44 6f 6e | d5 74 20 69 67 6e 6f 72 |r. ..Don|.t ignor|
|00005790| 65 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 73 75 6c |e functi|on resul|
|000057a0| 74 73 20 66 72 6f 6d 20 | 61 73 79 6e 63 68 72 6f |ts from |asynchro|
|000057b0| 6e 6f 75 73 20 44 65 76 | 69 63 65 20 4d 61 6e 61 |nous Dev|ice Mana|
|000057c0| 67 65 72 20 63 61 6c 6c | 73 20 28 66 6f 72 20 65 |ger call|s (for e|
|000057d0| 78 61 6d 70 6c 65 2c 20 | 41 70 70 6c 65 54 61 6c |xample, |AppleTal|
|000057e0| 6b 20 64 72 69 76 65 72 | 2c 20 53 65 72 69 61 6c |k driver|, Serial|
|000057f0| 20 44 72 69 76 65 72 2c | 20 61 6e 64 20 64 69 73 | Driver,| and dis|
|00005800| 6b 20 64 72 69 76 65 72 | 20 63 61 6c 6c 73 29 2e |k driver| calls).|
|00005810| 20 54 68 65 20 66 75 6e | 63 74 69 6f 6e 20 72 65 | The fun|ction re|
|00005820| 73 75 6c 74 20 74 65 6c | 6c 73 20 79 6f 75 20 77 |sult tel|ls you w|
|00005830| 68 65 74 68 65 72 20 74 | 68 65 20 44 65 76 69 63 |hether t|he Devic|
|00005840| 65 20 4d 61 6e 61 67 65 | 72 20 73 75 63 63 65 73 |e Manage|r succes|
|00005850| 73 66 75 6c 6c 79 20 64 | 65 6c 69 76 65 72 65 64 |sfully d|elivered|
|00005860| 20 79 6f 75 72 20 72 65 | 71 75 65 73 74 20 74 6f | your re|quest to|
|00005870| 20 74 68 65 20 64 65 76 | 69 63 65 20 64 72 69 76 | the dev|ice driv|
|00005880| 65 72 2e 20 53 75 63 63 | 65 73 73 20 69 73 20 69 |er. Succ|ess is i|
|00005890| 6e 64 69 63 61 74 65 64 | 20 62 79 20 6e 6f 45 72 |ndicated| by noEr|
|000058a0| 72 3b 20 61 6e 79 20 6f | 74 68 65 72 20 76 61 6c |r; any o|ther val|
|000058b0| 75 65 20 69 6e 64 69 63 | 61 74 65 73 20 66 61 69 |ue indic|ates fai|
|000058c0| 6c 75 72 65 2e 0d 54 68 | 65 20 73 79 73 74 65 6d |lure..Th|e system|
|000058d0| 20 63 61 6c 6c 73 20 79 | 6f 75 72 20 63 6f 6d 70 | calls y|our comp|
|000058e0| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 20 6f |letion r|outine o|
|000058f0| 6e 6c 79 20 69 66 20 74 | 68 65 20 44 65 76 69 63 |nly if t|he Devic|
|00005900| 65 20 4d 61 6e 61 67 65 | 72 20 73 75 63 63 65 73 |e Manage|r succes|
|00005910| 73 66 75 6c 6c 79 20 64 | 65 6c 69 76 65 72 65 64 |sfully d|elivered|
|00005920| 20 79 6f 75 72 20 72 65 | 71 75 65 73 74 20 74 6f | your re|quest to|
|00005930| 20 74 68 65 20 64 72 69 | 76 65 72 2e 20 4f 6e 20 | the dri|ver. On |
|00005940| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2c 20 63 68 65 63 |completi|on, chec|
|00005950| 6b 20 77 68 65 74 68 65 | 72 20 79 6f 75 72 20 63 |k whethe|r your c|
|00005960| 61 6c 6c 20 73 75 63 63 | 65 65 64 65 64 20 62 79 |all succ|eeded by|
|00005970| 20 6c 6f 6f 6b 69 6e 67 | 20 69 6e 20 69 6f 52 65 | looking| in ioRe|
|00005980| 73 75 6c 74 20 6f 72 20 | 72 65 67 69 73 74 65 72 |sult or |register|
|00005990| 20 44 30 2e 09 0d 74 68 | 65 79 d5 76 65 20 63 6f | D0...th|ey.ve co|
|000059a0| 6d 70 6c 65 74 65 64 20 | 74 68 65 20 74 61 73 6b |mpleted |the task|
|000059b0| 20 75 6e 74 69 6c 20 32 | 33 20 68 6f 75 72 73 20 | until 2|3 hours |
|000059c0| 6c 61 74 65 72 20 28 61 | 20 32 33 2d 68 6f 75 72 |later (a| 23-hour|
|000059d0| 20 6c 61 74 65 6e 63 79 | 29 2e 20 54 6f 20 61 76 | latency|). To av|
|000059e0| 6f 69 64 20 6c 61 74 65 | 6e 63 79 2c 20 75 73 65 |oid late|ncy, use|
|000059f0| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 72 6f 75 74 | complet|ion rout|
|00005a00| 69 6e 65 73 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |ines ins|tead of |
|00005a10| 70 6f 6c 6c 69 6e 67 20 | 69 6f 52 65 73 75 6c 74 |polling |ioResult|
|00005a20| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 77 68 65 | to find| out whe|
|00005a30| 6e 20 61 20 72 6f 75 74 | 69 6e 65 20 63 6f 6d 70 |n a rout|ine comp|
|00005a40| 6c 65 74 65 73 2e 0d 55 | 73 69 6e 67 20 43 6f 6d |letes..U|sing Com|
|00005a50| 70 6c 65 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 73 |pletion |routines|
|00005a60| 0d 4d 61 6b 69 6e 67 20 | 61 6e 20 61 73 79 6e 63 |.Making |an async|
|00005a70| 68 72 6f 6e 6f 75 73 20 | 63 61 6c 6c 20 77 69 74 |hronous |call wit|
|00005a80| 68 20 61 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 72 |h a comp|letion r|
|00005a90| 6f 75 74 69 6e 65 20 69 | 73 20 6f 6e 6c 79 20 73 |outine i|s only s|
|00005aa0| 6c 69 67 68 74 6c 79 20 | 6d 6f 72 65 20 63 6f 6d |lightly |more com|
|00005ab0| 70 6c 65 78 20 74 68 61 | 6e 20 70 6f 6c 6c 69 6e |plex tha|n pollin|
|00005ac0| 67 20 66 6f 72 20 63 6f | 6d 70 6c 65 74 69 6f 6e |g for co|mpletion|
|00005ad0| 2e 20 41 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 72 |. A comp|letion r|
|00005ae0| 6f 75 74 69 6e 65 20 69 | 73 20 61 20 70 72 6f 63 |outine i|s a proc|
|00005af0| 65 64 75 72 65 20 74 68 | 61 74 d5 73 20 63 61 6c |edure th|at.s cal|
|00005b00| 6c 65 64 20 61 73 20 73 | 6f 6f 6e 20 61 73 20 74 |led as s|oon as t|
|00005b10| 68 65 20 61 73 79 6e 63 | 68 72 6f 6e 6f 75 73 20 |he async|hronous |
|00005b20| 66 75 6e 63 74 69 6f 6e | 20 63 6f 6d 70 6c 65 74 |function| complet|
|00005b30| 65 73 20 69 74 73 20 74 | 61 73 6b 2e 20 57 68 65 |es its t|ask. Whe|
|00005b40| 6e 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 66 |n your p|rogram f|
|00005b50| 69 6c 6c 73 20 69 6e 20 | 74 68 65 20 70 61 72 61 |ills in |the para|
|00005b60| 6d 65 74 65 72 20 62 6c | 6f 63 6b 20 74 6f 20 70 |meter bl|ock to p|
|00005b70| 61 73 73 20 74 6f 20 74 | 68 65 20 66 75 6e 63 74 |ass to t|he funct|
|00005b80| 69 6f 6e 2c 20 69 74 20 | 73 65 74 73 20 74 68 65 |ion, it |sets the|
|00005b90| 20 69 6f 43 6f 6d 70 6c | 65 74 69 6f 6e 20 66 69 | ioCompl|etion fi|
|00005ba0| 65 6c 64 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 |eld to p|oint to |
|00005bb0| 74 68 65 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 72 |the comp|letion r|
|00005bc0| 6f 75 74 69 6e 65 2e 20 | 54 68 65 6e 2c 20 61 66 |outine. |Then, af|
|00005bd0| 74 65 72 20 63 61 6c 6c | 69 6e 67 20 74 68 65 20 |ter call|ing the |
|00005be0| 66 75 6e 63 74 69 6f 6e | 20 61 73 79 6e 63 68 72 |function| asynchr|
|00005bf0| 6f 6e 6f 75 73 6c 79 2c | 20 79 6f 75 72 20 70 72 |onously,| your pr|
|00005c00| 6f 67 72 61 6d 20 63 61 | 6e 20 63 6f 6e 74 69 6e |ogram ca|n contin|
|00005c10| 75 65 2e 20 57 68 65 6e | 20 74 68 65 20 66 75 6e |ue. When| the fun|
|00005c20| 63 74 69 6f 6e 20 63 6f | 6d 70 6c 65 74 65 73 2c |ction co|mpletes,|
|00005c30| 20 74 68 65 20 73 79 73 | 74 65 6d 20 69 6e 74 65 | the sys|tem inte|
|00005c40| 72 72 75 70 74 73 20 74 | 68 65 20 70 72 6f 67 72 |rrupts t|he progr|
|00005c50| 61 6d 20 74 68 61 74 d5 | 73 20 72 75 6e 6e 69 6e |am that.|s runnin|
|00005c60| 67 20 61 6e 64 20 74 68 | 65 20 63 6f 6d 70 6c 65 |g and th|e comple|
|00005c70| 74 69 6f 6e 20 72 6f 75 | 74 69 6e 65 20 69 73 20 |tion rou|tine is |
|00005c80| 65 78 65 63 75 74 65 64 | 2e 20 28 54 68 65 72 65 |executed|. (There|
|00005c90| 20 61 72 65 20 73 6f 6d | 65 20 73 70 65 63 69 61 | are som|e specia|
|00005ca0| 6c 20 74 68 69 6e 67 73 | 20 79 6f 75 20 6e 65 65 |l things| you nee|
|00005cb0| 64 20 74 6f 20 6b 6e 6f | 77 20 61 62 6f 75 74 20 |d to kno|w about |
|00005cc0| 66 75 6e 63 74 69 6f 6e | 20 72 65 73 75 6c 74 73 |function| results|
|00005cd0| 20 74 6f 20 75 73 65 20 | 74 68 69 73 20 6d 6f 64 | to use |this mod|
|00005ce0| 65 6c 3b 20 73 65 65 20 | d2 46 75 6e 63 74 69 6f |el; see |.Functio|
|00005cf0| 6e 20 52 65 73 75 6c 74 | 73 20 61 6e 64 20 46 75 |n Result|s and Fu|
|00005d00| 6e 63 74 69 6f 6e 20 43 | 6f 6d 70 6c 65 74 69 6f |nction C|ompletio|
|00005d10| 6e 2e d3 29 0d 53 69 6e | 63 65 20 74 68 65 20 63 |n..).Sin|ce the c|
|00005d20| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|00005d30| 65 20 69 73 20 65 78 65 | 63 75 74 65 64 20 61 73 |e is exe|cuted as|
|00005d40| 20 73 6f 6f 6e 20 61 73 | 20 74 68 65 20 66 75 6e | soon as| the fun|
|00005d50| 63 74 69 6f 6e d5 73 20 | 74 61 73 6b 20 69 73 20 |ction.s |task is |
|00005d60| 63 6f 6d 70 6c 65 74 65 | 2c 20 79 6f 75 72 20 70 |complete|, your p|
|00005d70| 72 6f 67 72 61 6d 20 66 | 69 6e 64 73 20 6f 75 74 |rogram f|inds out|
|00005d80| 20 61 62 6f 75 74 20 63 | 6f 6d 70 6c 65 74 69 6f | about c|ompletio|
|00005d90| 6e 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 61 6e |n immedi|ately an|
|00005da0| 64 20 63 61 6e 20 73 74 | 61 72 74 20 70 72 6f 63 |d can st|art proc|
|00005db0| 65 73 73 69 6e 67 20 74 | 68 65 20 72 65 73 75 6c |essing t|he resul|
|00005dc0| 74 73 20 6f 66 20 74 68 | 65 20 66 75 6e 63 74 69 |ts of th|e functi|
|00005dd0| 6f 6e 2e 20 55 73 69 6e | 67 20 61 20 63 6f 6d 70 |on. Usin|g a comp|
|00005de0| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 20 69 |letion r|outine i|
|00005df0| 73 20 6c 69 6b 65 20 67 | 69 76 69 6e 67 20 73 6f |s like g|iving so|
|00005e00| 6d 65 6f 6e 65 20 61 20 | 74 61 73 6b 20 61 6e 64 |meone a |task and|
|00005e10| 20 74 68 65 6e 20 61 73 | 6b 69 6e 67 20 74 68 65 | then as|king the|
|00005e20| 6d 20 74 6f 20 63 61 6c | 6c 20 79 6f 75 20 61 73 |m to cal|l you as|
|00005e30| 20 73 6f 6f 6e 20 61 73 | 20 74 68 65 79 d5 76 65 | soon as| they.ve|
|00005e40| 20 63 6f 6d 70 6c 65 74 | 65 64 20 69 74 2e 0d 42 | complet|ed it..B|
|00005e50| 65 63 61 75 73 65 20 61 | 20 63 6f 6d 70 6c 65 74 |ecause a| complet|
|00005e60| 69 6f 6e 20 72 6f 75 74 | 69 6e 65 20 6d 61 79 20 |ion rout|ine may |
|00005e70| 62 65 20 63 61 6c 6c 65 | 64 20 61 74 20 69 6e 74 |be calle|d at int|
|00005e80| 65 72 72 75 70 74 20 74 | 69 6d 65 2c 20 69 74 20 |errupt t|ime, it |
|00005e90| 63 61 6e d5 74 20 61 73 | 73 75 6d 65 20 74 68 69 |can.t as|sume thi|
|00005ea0| 6e 67 73 20 74 68 61 74 | 20 6d 6f 73 74 20 61 70 |ngs that| most ap|
|00005eb0| 70 6c 69 63 61 74 69 6f | 6e 20 63 6f 64 65 20 63 |plicatio|n code c|
|00005ec0| 61 6e 2e 20 57 68 65 6e | 20 61 20 63 6f 6d 70 6c |an. When| a compl|
|00005ed0| 65 74 69 6f 6e 20 72 6f | 75 74 69 6e 65 20 66 6f |etion ro|utine fo|
|00005ee0| 72 20 61 6e 20 61 73 79 | 6e 63 68 72 6f 6e 6f 75 |r an asy|nchronou|
|00005ef0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 73 20 |s functi|on gets |
|00005f00| 63 6f 6e 74 72 6f 6c 2c | 20 74 68 65 20 73 79 73 |control,| the sys|
|00005f10| 74 65 6d 20 69 73 20 69 | 6e 20 74 68 65 20 66 6f |tem is i|n the fo|
|00005f20| 6c 6c 6f 77 69 6e 67 20 | 73 74 61 74 65 3a 0d a5 |llowing |state:..|
|00005f30| 09 4f 6e 20 65 6e 74 72 | 79 2c 20 72 65 67 69 73 |.On entr|y, regis|
|00005f40| 74 65 72 20 41 30 20 70 | 6f 69 6e 74 73 20 74 6f |ter A0 p|oints to|
|00005f50| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 20 62 | the par|ameter b|
|00005f60| 6c 6f 63 6b 20 75 73 65 | 64 20 74 6f 20 6d 61 6b |lock use|d to mak|
|00005f70| 65 20 74 68 65 20 61 73 | 79 6e 63 68 72 6f 6e 6f |e the as|ynchrono|
|00005f80| 75 73 20 63 61 6c 6c 2e | 0d a5 09 59 6f 75 72 20 |us call.|...Your |
|00005f90| 70 72 6f 67 72 61 6d 20 | 61 67 61 69 6e 20 6f 77 |program |again ow|
|00005fa0| 6e 73 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |ns the p|arameter|
|00005fb0| 20 62 6c 6f 63 6b 20 75 | 73 65 64 20 74 6f 20 6d | block u|sed to m|
|00005fc0| 61 6b 65 20 74 68 65 20 | 61 73 79 6e 63 68 72 6f |ake the |asynchro|
|00005fd0| 6e 6f 75 73 20 63 61 6c | 6c 2c 20 77 68 69 63 68 |nous cal|l, which|
|00005fe0| 20 6d 65 61 6e 73 20 79 | 6f 75 20 63 61 6e 20 72 | means y|ou can r|
|00005ff0| 65 75 73 65 20 74 68 65 | 20 70 61 72 61 6d 65 74 |euse the| paramet|
|00006000| 65 72 20 62 6c 6f 63 6b | 20 74 6f 20 6d 61 6b 65 |er block| to make|
|00006010| 20 61 6e 6f 74 68 65 72 | 20 61 73 79 6e 63 68 72 | another| asynchr|
|00006020| 6f 6e 6f 75 73 20 63 61 | 6c 6c 20 28 73 65 65 20 |onous ca|ll (see |
|00006030| 74 68 65 20 73 65 63 74 | 69 6f 6e 20 d2 43 61 6c |the sect|ion .Cal|
|00006040| 6c 20 43 68 61 69 6e 69 | 6e 67 d3 20 6c 61 74 65 |l Chaini|ng. late|
|00006050| 72 20 69 6e 20 74 68 69 | 73 20 61 72 74 69 63 6c |r in thi|s articl|
|00006060| 65 29 2e 0d a5 09 42 6f | 74 68 20 72 65 67 69 73 |e)....Bo|th regis|
|00006070| 74 65 72 20 44 30 20 61 | 6e 64 20 69 6f 52 65 73 |ter D0 a|nd ioRes|
|00006080| 75 6c 74 20 69 6e 20 74 | 68 65 20 70 61 72 61 6d |ult in t|he param|
|00006090| 65 74 65 72 20 62 6c 6f | 63 6b 20 63 6f 6e 74 61 |eter blo|ck conta|
|000060a0| 69 6e 20 74 68 65 20 72 | 65 73 75 6c 74 20 73 74 |in the r|esult st|
|000060b0| 61 74 75 73 20 66 72 6f | 6d 20 74 68 65 20 66 75 |atus fro|m the fu|
|000060c0| 6e 63 74 69 6f 6e 20 63 | 61 6c 6c 2e 0d a5 09 46 |nction c|all....F|
|000060d0| 6f 72 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 72 6f |or compl|etion ro|
|000060e0| 75 74 69 6e 65 73 20 63 | 61 6c 6c 65 64 20 62 79 |utines c|alled by|
|000060f0| 20 74 68 65 20 46 69 6c | 65 20 4d 61 6e 61 67 65 | the Fil|e Manage|
|00006100| 72 20 6f 72 20 44 65 76 | 69 63 65 20 4d 61 6e 61 |r or Dev|ice Mana|
|00006110| 67 65 72 2c 20 74 68 65 | 20 41 35 20 77 6f 72 6c |ger, the| A5 worl|
|00006120| 64 20 69 73 20 75 6e 64 | 65 66 69 6e 65 64 20 61 |d is und|efined a|
|00006130| 6e 64 20 6d 75 73 74 20 | 62 65 20 72 65 73 74 6f |nd must |be resto|
|00006140| 72 65 64 20 62 65 66 6f | 72 65 20 74 68 65 20 63 |red befo|re the c|
|00006150| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|00006160| 65 20 75 73 65 73 20 61 | 6e 79 20 61 70 70 6c 69 |e uses a|ny appli|
|00006170| 63 61 74 69 6f 6e 20 67 | 6c 6f 62 61 6c 20 76 61 |cation g|lobal va|
|00006180| 72 69 61 62 6c 65 73 2e | 0d 53 69 6e 63 65 20 63 |riables.|.Since c|
|00006190| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|000061a0| 65 73 20 65 78 65 63 75 | 74 65 20 61 74 20 69 6e |es execu|te at in|
|000061b0| 74 65 72 72 75 70 74 20 | 74 69 6d 65 2c 20 74 68 |terrupt |time, th|
|000061c0| 65 79 20 6d 75 73 74 20 | 66 6f 6c 6c 6f 77 20 74 |ey must |follow t|
|000061d0| 68 65 73 65 20 72 75 6c | 65 73 3a 0d a5 09 54 68 |hese rul|es:...Th|
|000061e0| 65 79 20 6d 75 73 74 20 | 70 72 65 73 65 72 76 65 |ey must |preserve|
|000061f0| 20 61 6c 6c 20 72 65 67 | 69 73 74 65 72 73 20 65 | all reg|isters e|
|00006200| 78 63 65 70 74 20 41 30 | 2c 20 41 31 2c 20 61 6e |xcept A0|, A1, an|
|00006210| 64 20 44 30 2d 44 32 2e | 0d a5 09 54 68 65 79 20 |d D0-D2.|...They |
|00006220| 63 61 6e d5 74 20 63 61 | 6c 6c 20 72 6f 75 74 69 |can.t ca|ll routi|
|00006230| 6e 65 73 20 74 68 61 74 | 20 63 61 6e 20 64 69 72 |nes that| can dir|
|00006240| 65 63 74 6c 79 20 6f 72 | 20 69 6e 64 69 72 65 63 |ectly or| indirec|
|00006250| 74 6c 79 20 6d 6f 76 65 | 20 6d 65 6d 6f 72 79 2c |tly move| memory,|
|00006260| 20 61 6e 64 20 74 68 65 | 79 20 63 61 6e d5 74 20 | and the|y can.t |
|00006270| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 76 61 |depend o|n the va|
|00006280| 6c 69 64 69 74 79 20 6f | 66 20 68 61 6e 64 6c 65 |lidity o|f handle|
|00006290| 73 20 74 6f 20 75 6e 6c | 6f 63 6b 65 64 20 62 6c |s to unl|ocked bl|
|000062a0| 6f 63 6b 73 2e 0d a5 09 | 54 68 65 79 20 73 68 6f |ocks....|They sho|
|000062b0| 75 6c 64 6e d5 74 20 70 | 65 72 66 6f 72 6d 20 74 |uldn.t p|erform t|
|000062c0| 69 6d 65 2d 63 6f 6e 73 | 75 6d 69 6e 67 20 74 61 |ime-cons|uming ta|
|000062d0| 73 6b 73 2c 20 62 65 63 | 61 75 73 65 20 69 6e 74 |sks, bec|ause int|
|000062e0| 65 72 72 75 70 74 73 20 | 6d 61 79 20 62 65 20 64 |errupts |may be d|
|000062f0| 69 73 61 62 6c 65 64 2e | 20 41 73 20 70 6f 69 6e |isabled.| As poin|
|00006300| 74 65 64 20 6f 75 74 20 | 69 6e 20 74 68 65 20 4d |ted out |in the M|
|00006310| 61 63 69 6e 74 6f 73 68 | 20 54 65 63 68 6e 69 63 |acintosh| Technic|
|00006320| 61 6c 20 4e 6f 74 65 20 | d2 4e 75 42 75 73 aa 20 |al Note |.NuBus. |
|00006330| 49 6e 74 65 72 72 75 70 | 74 20 4c 61 74 65 6e 63 |Interrup|t Latenc|
|00006340| 79 20 28 49 20 57 61 73 | 20 61 20 54 65 65 6e 61 |y (I Was| a Teena|
|00006350| 67 65 20 44 4d 41 20 4a | 75 6e 6b 69 65 29 2c d3 |ge DMA J|unkie),.|
|00006360| 20 64 69 73 61 62 6c 69 | 6e 67 20 69 6e 74 65 72 | disabli|ng inter|
|00006370| 72 75 70 74 73 20 61 6e | 64 20 74 61 6b 69 6e 67 |rupts an|d taking|
|00006380| 20 6f 76 65 72 20 74 68 | 65 20 6d 61 63 68 69 6e | over th|e machin|
|00006390| 65 20 66 6f 72 20 6c 6f | 6e 67 20 70 65 72 69 6f |e for lo|ng perio|
|000063a0| 64 73 20 6f 66 20 74 69 | 6d 65 20 d2 61 6c 6d 6f |ds of ti|me .almo|
|000063b0| 73 74 20 61 6c 77 61 79 | 73 20 72 65 73 75 6c 74 |st alway|s result|
|000063c0| 73 20 69 6e 20 61 20 73 | 6c 75 67 67 69 73 68 20 |s in a s|luggish |
|000063d0| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 2c 20 |user int|erface, |
|000063e0| 73 6f 6d 65 74 68 69 6e | 67 20 77 68 69 63 68 20 |somethin|g which |
|000063f0| 69 73 20 6e 6f 74 20 75 | 73 75 61 6c 6c 79 20 77 |is not u|sually w|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.