home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / macintosh technotes and q&as / technotes / tn / apple_guide_variables.sit / Apple Guide Variables / AG Variables - Read me next >
MacBinary  |  1996-08-21  |  25.6 KB  |  [ttro/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 21 21:39:48 1996, modified Wed Aug 21 21:39:48 1996, creator SimpleText, type SimpleText read-only, 20770 bytes "AG Variables - Read me" , at 0x51a2 5132 bytes resource default (weak)
99% file data default
74% TrID Mac SimpleText read-only (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ttro]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 41 47 20 56 61 72 | 69 61 62 6c 65 73 20 2d |..AG Var|iables -|
|00000010| 20 52 65 61 64 20 6d 65 | 00 00 00 00 00 00 00 00 | Read me|........|
|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 74 74 72 6f 74 74 78 | 74 01 00 00 00 00 00 00 |.ttrottx|t.......|
|00000050| 00 00 00 00 00 51 22 00 | 00 14 0c ae 41 6a e4 ae |.....Q".|....Aj..|
|00000060| 41 6a e4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Aj......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c9 e6 00 00 |........|........|
|00000080| 56 61 72 69 61 62 6c 65 | 20 53 74 6f 72 61 67 65 |Variable| Storage|
|00000090| 20 69 6e 20 41 70 70 6c | 65 20 47 75 69 64 65 0d | in Appl|e Guide.|
|000000a0| 0d 57 72 69 74 74 65 6e | 20 42 79 20 3a 20 44 6f |.Written| By : Do|
|000000b0| 6e 20 53 77 61 74 6d 61 | 6e 2c 20 44 65 76 65 6c |n Swatma|n, Devel|
|000000c0| 6f 70 65 72 20 54 65 63 | 68 6e 69 63 61 6c 20 53 |oper Tec|hnical S|
|000000d0| 75 70 70 6f 72 74 0d 0d | 43 6f 70 79 72 69 67 68 |upport..|Copyrigh|
|000000e0| 74 3a 20 a9 20 31 39 39 | 36 20 62 79 20 41 70 70 |t: . 199|6 by App|
|000000f0| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000100| 2e 20 41 6c 6c 20 72 69 | 67 68 74 73 20 72 65 73 |. All ri|ghts res|
|00000110| 65 72 76 65 64 2e 0d 0d | 57 68 61 74 20 74 68 65 |erved...|What the|
|00000120| 20 73 61 6d 70 6c 65 20 | 73 68 6f 77 73 0d 0d 54 | sample |shows..T|
|00000130| 68 69 73 20 63 6f 64 65 | 20 73 61 6d 70 6c 65 20 |his code| sample |
|00000140| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 73 65 76 |demonstr|ates sev|
|00000150| 65 72 61 6c 20 69 6d 70 | 6f 72 74 61 6e 74 20 74 |eral imp|ortant t|
|00000160| 65 63 68 6e 69 71 75 65 | 73 20 74 68 61 74 20 63 |echnique|s that c|
|00000170| 61 6e 20 62 65 20 75 73 | 65 64 20 69 6e 20 74 68 |an be us|ed in th|
|00000180| 65 20 63 72 65 61 74 69 | 6f 6e 20 6f 66 20 61 20 |e creati|on of a |
|00000190| 67 75 69 64 65 20 66 69 | 6c 65 2e 20 49 74 20 64 |guide fi|le. It d|
|000001a0| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 68 6f 77 20 |emonstra|tes how |
|000001b0| 74 6f 20 77 72 69 74 65 | 20 61 20 62 61 63 6b 67 |to write| a backg|
|000001c0| 72 6f 75 6e 64 20 6f 6e | 6c 79 20 68 65 6c 70 65 |round on|ly helpe|
|000001d0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 61 6e |r applic|ation an|
|000001e0| 64 20 68 6f 77 20 74 6f | 20 75 73 65 20 69 74 20 |d how to| use it |
|000001f0| 74 6f 20 73 74 6f 72 65 | 20 61 6e 64 20 61 63 63 |to store| and acc|
|00000200| 65 73 73 20 76 61 72 69 | 61 62 6c 65 73 20 77 68 |ess vari|ables wh|
|00000210| 69 63 68 20 61 72 65 20 | 75 73 65 64 20 62 79 20 |ich are |used by |
|00000220| 74 68 65 20 67 75 69 64 | 65 2e 20 49 6e 20 61 64 |the guid|e. In ad|
|00000230| 64 69 74 69 6f 6e 20 69 | 74 20 73 68 6f 77 73 20 |dition i|t shows |
|00000240| 68 6f 77 20 74 6f 20 61 | 64 64 20 61 20 63 6f 61 |how to a|dd a coa|
|00000250| 63 68 20 6d 61 72 6b 20 | 68 61 6e 64 6c 65 72 2e |ch mark |handler.|
|00000260| 0d 0d 0d 57 68 79 20 79 | 6f 75 20 6d 69 67 68 74 |...Why y|ou might|
|00000270| 20 77 61 6e 74 20 74 6f | 20 73 74 6f 72 65 20 76 | want to| store v|
|00000280| 61 72 69 61 62 6c 65 73 | 0d 0d 41 70 70 6c 65 20 |ariables|..Apple |
|00000290| 47 75 69 64 65 20 68 61 | 73 20 6d 61 6e 79 20 61 |Guide ha|s many a|
|000002a0| 64 76 61 6e 74 61 67 65 | 73 20 6f 76 65 72 20 6f |dvantage|s over o|
|000002b0| 74 68 65 72 20 68 65 6c | 70 20 73 79 73 74 65 6d |ther hel|p system|
|000002c0| 73 20 62 75 74 20 68 61 | 73 20 73 65 76 65 72 61 |s but ha|s severa|
|000002d0| 6c 20 64 72 61 77 62 61 | 63 6b 73 2e 20 4f 6e 65 |l drawba|cks. One|
|000002e0| 20 69 73 20 74 68 61 74 | 20 69 74 20 69 73 20 6e | is that| it is n|
|000002f0| 6f 74 20 65 61 73 79 20 | 74 6f 20 6b 65 65 70 20 |ot easy |to keep |
|00000300| 74 72 61 63 6b 20 6f 66 | 20 77 68 61 74 20 74 68 |track of| what th|
|00000310| 65 20 75 73 65 72 20 68 | 61 73 20 61 6c 72 65 61 |e user h|as alrea|
|00000320| 64 79 20 64 6f 6e 65 2e | 20 54 68 69 73 20 62 65 |dy done.| This be|
|00000330| 63 6f 6d 65 73 20 61 20 | 70 61 72 74 69 63 75 6c |comes a |particul|
|00000340| 61 72 20 70 72 6f 62 6c | 65 6d 20 69 66 20 79 6f |ar probl|em if yo|
|00000350| 75 20 61 72 65 20 77 72 | 69 74 69 6e 67 20 61 20 |u are wr|iting a |
|00000360| 74 75 74 6f 72 69 61 6c | 2e 20 46 6f 72 20 65 78 |tutorial|. For ex|
|00000370| 61 6d 70 6c 65 2c 20 79 | 6f 75 72 20 74 75 74 6f |ample, y|our tuto|
|00000380| 72 69 61 6c 20 6d 69 67 | 68 74 20 68 61 76 65 20 |rial mig|ht have |
|00000390| 31 30 20 64 69 66 66 65 | 72 65 6e 74 20 6c 65 73 |10 diffe|rent les|
|000003a0| 73 6f 6e 73 20 77 68 69 | 63 68 20 74 68 65 20 75 |sons whi|ch the u|
|000003b0| 73 65 72 20 6d 61 79 20 | 6e 65 65 64 20 74 6f 20 |ser may |need to |
|000003c0| 63 6f 6d 70 6c 65 74 65 | 20 6f 76 65 72 20 73 65 |complete| over se|
|000003d0| 76 65 72 61 6c 20 64 61 | 79 73 2e 20 48 6f 77 20 |veral da|ys. How |
|000003e0| 63 61 6e 20 74 68 65 20 | 75 73 65 72 20 62 65 20 |can the |user be |
|000003f0| 73 75 72 65 20 74 68 61 | 74 20 74 68 65 79 20 68 |sure tha|t they h|
|00000400| 61 76 65 20 67 6f 6e 65 | 20 62 61 63 6b 20 74 6f |ave gone| back to|
|00000410| 20 74 68 65 20 70 6f 69 | 6e 74 20 77 68 65 72 65 | the poi|nt where|
|00000420| 20 74 68 65 79 20 6c 65 | 66 74 20 74 68 65 20 74 | they le|ft the t|
|00000430| 75 74 6f 72 69 61 6c 20 | 61 6e 64 20 6e 6f 74 20 |utorial |and not |
|00000440| 73 6b 69 70 70 65 64 20 | 73 74 61 67 65 73 3f 20 |skipped |stages? |
|00000450| 4f 6e 65 20 77 61 79 20 | 74 6f 20 64 6f 20 74 68 |One way |to do th|
|00000460| 69 73 20 69 73 20 74 6f | 20 73 74 6f 72 65 20 76 |is is to| store v|
|00000470| 61 72 69 61 62 6c 65 73 | 20 77 69 74 68 69 6e 20 |ariables| within |
|00000480| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |an appli|cation..|
|00000490| 0d 0d 57 68 79 20 79 6f | 75 20 6d 69 67 68 74 20 |..Why yo|u might |
|000004a0| 77 61 6e 74 20 74 6f 20 | 75 73 65 20 61 20 68 65 |want to |use a he|
|000004b0| 6c 70 65 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |lper app|lication|
|000004c0| 0d 0d 49 74 20 69 73 20 | 6e 6f 74 20 61 6c 77 61 |..It is |not alwa|
|000004d0| 79 73 20 70 6f 73 73 69 | 62 6c 65 20 66 6f 72 20 |ys possi|ble for |
|000004e0| 74 68 65 20 67 75 69 64 | 65 20 61 75 74 68 6f 72 |the guid|e author|
|000004f0| 20 74 6f 20 68 61 76 65 | 20 61 63 63 65 73 73 20 | to have| access |
|00000500| 74 6f 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |to the a|pplicati|
|00000510| 6f 6e 27 73 20 73 6f 75 | 72 63 65 2e 20 54 68 69 |on's sou|rce. Thi|
|00000520| 73 20 69 73 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |s is esp|ecially |
|00000530| 74 72 75 65 20 69 66 20 | 74 68 65 79 20 61 72 65 |true if |they are|
|00000540| 20 77 72 69 74 69 6e 67 | 20 61 20 67 75 69 64 65 | writing| a guide|
|00000550| 20 66 6f 72 20 73 6f 6d | 65 62 6f 64 79 20 65 6c | for som|ebody el|
|00000560| 73 65 27 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |se's app|lication|
|00000570| 2e 20 20 59 6f 75 20 6d | 61 79 20 61 6c 73 6f 20 |. You m|ay also |
|00000580| 77 61 6e 74 20 74 6f 20 | 61 64 64 20 63 6f 6d 70 |want to |add comp|
|00000590| 6c 65 78 20 41 70 70 6c | 65 20 45 76 65 6e 74 73 |lex Appl|e Events|
|000005a0| 20 74 6f 20 61 6e 20 61 | 70 70 6c 69 63 61 74 69 | to an a|pplicati|
|000005b0| 6f 6e 20 74 68 61 74 20 | 68 61 73 20 62 65 65 6e |on that |has been|
|000005c0| 20 66 61 63 74 6f 72 65 | 64 20 62 75 74 20 6e 6f | factore|d but no|
|000005d0| 74 20 66 75 6c 6c 79 20 | 73 63 72 69 70 74 65 64 |t fully |scripted|
|000005e0| 2e 20 54 68 65 20 77 61 | 79 20 74 6f 20 64 6f 20 |. The wa|y to do |
|000005f0| 74 68 69 73 20 69 73 20 | 74 6f 20 77 72 69 74 65 |this is |to write|
|00000600| 20 61 20 73 6d 61 6c 6c | 20 62 61 63 6b 67 72 6f | a small| backgro|
|00000610| 75 6e 64 20 6f 6e 6c 79 | 20 61 70 70 6c 69 63 61 |und only| applica|
|00000620| 74 69 6f 6e 20 72 65 66 | 65 72 72 65 64 20 74 6f |tion ref|erred to|
|00000630| 20 61 73 20 61 20 68 65 | 6c 70 65 72 20 61 70 70 | as a he|lper app|
|00000640| 6c 69 63 61 74 69 6f 6e | 2e 20 59 6f 75 72 20 67 |lication|. Your g|
|00000650| 75 69 64 65 20 73 65 6e | 64 73 20 41 70 70 6c 65 |uide sen|ds Apple|
|00000660| 20 45 76 65 6e 74 73 20 | 6f 72 20 63 6f 6e 74 65 | Events |or conte|
|00000670| 78 74 20 63 68 65 63 6b | 73 20 74 6f 20 74 68 65 |xt check|s to the|
|00000680| 20 68 65 6c 70 65 72 20 | 61 70 70 6c 69 63 61 74 | helper |applicat|
|00000690| 69 6f 6e 20 61 6e 64 20 | 69 6e 20 74 75 72 6e 20 |ion and |in turn |
|000006a0| 74 68 65 20 68 65 6c 70 | 65 72 20 61 70 70 20 6d |the help|er app m|
|000006b0| 61 6b 65 73 20 63 68 61 | 6e 67 65 73 2c 20 63 72 |akes cha|nges, cr|
|000006c0| 65 61 74 65 73 20 63 6f | 6d 70 6c 65 78 20 65 76 |eates co|mplex ev|
|000006d0| 65 6e 74 73 2c 20 65 74 | 63 2e 20 61 6e 64 20 70 |ents, et|c. and p|
|000006e0| 61 73 73 65 73 20 74 68 | 65 73 65 20 6f 6e 20 74 |asses th|ese on t|
|000006f0| 6f 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |o the ap|plicatio|
|00000700| 6e 2e 20 49 6e 20 74 68 | 69 73 20 73 61 6d 70 6c |n. In th|is sampl|
|00000710| 65 20 74 68 65 20 68 65 | 6c 70 65 72 20 61 70 70 |e the he|lper app|
|00000720| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 75 73 65 64 |lication| is used|
|00000730| 20 74 6f 20 73 74 6f 72 | 65 20 76 61 72 69 61 62 | to stor|e variab|
|00000740| 6c 65 73 2e 20 54 68 65 | 20 62 61 63 6b 67 72 6f |les. The| backgro|
|00000750| 75 6e 64 20 6f 6e 6c 79 | 20 61 70 70 6c 69 63 61 |und only| applica|
|00000760| 74 69 6f 6e 20 69 73 20 | 62 61 73 65 64 20 6f 6e |tion is |based on|
|00000770| 20 74 68 65 20 53 6d 61 | 6c 6c 44 61 65 6d 6f 6e | the Sma|llDaemon|
|00000780| 20 73 61 6d 70 6c 65 20 | 6f 6e 20 74 68 65 20 74 | sample |on the t|
|00000790| 6f 6f 6c 63 68 65 73 74 | 20 43 44 2e 20 54 68 69 |oolchest| CD. Thi|
|000007a0| 73 20 77 61 73 20 6f 72 | 69 67 69 6e 61 6c 6c 79 |s was or|iginally|
|000007b0| 20 77 72 69 74 74 65 6e | 20 62 79 20 47 72 65 67 | written| by Greg|
|000007c0| 20 52 6f 62 62 69 6e 73 | 20 62 61 73 65 64 20 6f | Robbins| based o|
|000007d0| 6e 20 63 6f 64 65 20 62 | 79 20 43 2e 4b 2e 20 48 |n code b|y C.K. H|
|000007e0| 61 75 6e 2e 0d 0d 48 6f | 77 20 74 6f 20 75 73 65 |aun...Ho|w to use|
|000007f0| 20 74 68 65 20 54 75 74 | 6f 72 69 61 6c 0d 0d 44 | the Tut|orial..D|
|00000800| 6f 75 62 6c 65 20 63 6c | 69 63 6b 20 22 4f 70 65 |ouble cl|ick "Ope|
|00000810| 6e 20 74 68 69 73 20 41 | 70 70 22 20 61 6e 64 20 |n this A|pp" and |
|00000820| 6f 70 65 6e 20 74 68 65 | 20 74 75 74 6f 72 69 61 |open the| tutoria|
|00000830| 6c 20 69 6e 20 74 68 65 | 20 68 65 6c 70 20 6d 65 |l in the| help me|
|00000840| 6e 75 2e 20 41 70 70 6c | 65 20 47 75 69 64 65 20 |nu. Appl|e Guide |
|00000850| 77 69 6c 6c 20 73 74 61 | 72 74 20 75 70 20 70 72 |will sta|rt up pr|
|00000860| 65 73 65 6e 74 69 6e 67 | 20 79 6f 75 20 77 69 74 |esenting| you wit|
|00000870| 68 20 61 20 73 69 6e 67 | 6c 65 20 6c 69 73 74 20 |h a sing|le list |
|00000880| 61 63 63 65 73 73 20 77 | 69 6e 64 6f 77 2e 20 54 |access w|indow. T|
|00000890| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |he appli|cation i|
|000008a0| 73 20 6e 6f 74 68 69 6e | 67 20 6d 6f 72 65 20 74 |s nothin|g more t|
|000008b0| 68 61 6e 20 61 20 73 69 | 6d 70 6c 65 20 73 68 65 |han a si|mple she|
|000008c0| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |ll appli|cation t|
|000008d0| 68 61 74 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |hat allo|ws you t|
|000008e0| 6f 20 6f 70 65 6e 20 73 | 65 76 65 72 61 6c 20 77 |o open s|everal w|
|000008f0| 69 6e 64 6f 77 73 2e 0d | 0d 22 54 75 74 6f 72 69 |indows..|."Tutori|
|00000900| 61 6c 22 0d 0d 09 09 22 | 46 72 6f 6d 20 53 74 61 |al"...."|From Sta|
|00000910| 72 74 22 0d 54 68 69 73 | 20 77 69 6c 6c 20 74 61 |rt".This| will ta|
|00000920| 6b 65 20 79 6f 75 20 74 | 68 72 6f 75 67 68 20 65 |ke you t|hrough e|
|00000930| 61 63 68 20 6c 65 73 73 | 6f 6e 20 69 6e 20 6f 72 |ach less|on in or|
|00000940| 64 65 72 2c 20 72 65 67 | 61 72 64 6c 65 73 73 20 |der, reg|ardless |
|00000950| 77 68 65 74 68 65 72 20 | 79 6f 75 27 76 65 20 63 |whether |you've c|
|00000960| 6f 6d 70 6c 65 74 65 64 | 20 74 68 65 20 6c 65 73 |ompleted| the les|
|00000970| 73 6f 6e 20 61 6c 72 65 | 61 64 79 2e 0d 0d 09 09 |son alre|ady.....|
|00000980| 22 53 6b 69 70 20 63 6f | 6d 70 6c 65 74 65 64 20 |"Skip co|mpleted |
|00000990| 6c 65 73 73 6f 6e 73 22 | 0d 54 68 69 73 20 77 69 |lessons"|.This wi|
|000009a0| 6c 6c 20 6f 6e 6c 79 20 | 74 61 6b 65 20 79 6f 75 |ll only |take you|
|000009b0| 20 74 68 72 6f 75 67 68 | 20 65 61 63 68 20 6c 65 | through| each le|
|000009c0| 73 73 6f 6e 73 20 74 68 | 61 74 20 68 61 76 65 20 |ssons th|at have |
|000009d0| 4e 4f 54 20 62 65 65 6e | 20 63 6f 6d 70 6c 65 74 |NOT been| complet|
|000009e0| 65 64 2e 0d 0d 09 09 22 | 20 4c 65 73 73 6f 6e 20 |ed....."| Lesson |
|000009f0| 31 22 2c 0d 20 20 20 22 | 20 4c 65 73 73 6f 6e 20 |1",. "| Lesson |
|00000a00| 32 22 2c 0d 20 20 20 22 | 20 4c 65 73 73 6f 6e 20 |2",. "| Lesson |
|00000a10| 33 22 0d 4c 65 74 73 20 | 79 6f 75 20 67 6f 20 73 |3".Lets |you go s|
|00000a20| 74 72 61 69 67 68 74 20 | 74 6f 20 61 20 6c 65 73 |traight |to a les|
|00000a30| 73 6f 6e 20 77 68 65 74 | 68 65 72 20 79 6f 75 20 |son whet|her you |
|00000a40| 68 61 76 65 20 73 65 65 | 6e 20 69 74 20 61 6c 72 |have see|n it alr|
|00000a50| 65 61 64 79 20 6f 72 20 | 6e 6f 74 2e 0d 0d 48 6f |eady or |not...Ho|
|00000a60| 75 73 65 20 4b 65 65 70 | 69 6e 67 0d 0d 09 09 22 |use Keep|ing...."|
|00000a70| 52 65 73 65 74 20 74 68 | 65 20 4c 65 73 73 6f 6e |Reset th|e Lesson|
|00000a80| 20 70 6c 61 6e 22 0d 54 | 68 69 73 20 63 6c 65 61 | plan".T|his clea|
|00000a90| 72 73 20 61 6c 6c 20 70 | 72 65 76 69 6f 75 73 6c |rs all p|reviousl|
|00000aa0| 79 20 63 6f 6d 70 6c 65 | 74 65 64 20 6c 65 73 73 |y comple|ted less|
|00000ab0| 6f 6e 73 2e 0d 0d 09 09 | 22 57 68 61 74 20 69 73 |ons.....|"What is|
|00000ac0| 20 74 68 65 20 4c 65 73 | 73 6f 6e 20 53 74 61 74 | the Les|son Stat|
|00000ad0| 75 73 22 0d 4c 65 74 73 | 20 79 6f 75 20 66 69 6e |us".Lets| you fin|
|00000ae0| 64 20 6f 75 74 20 77 68 | 69 63 68 20 6c 65 73 73 |d out wh|ich less|
|00000af0| 6f 6e 73 20 69 66 20 61 | 6e 79 20 68 61 76 65 20 |ons if a|ny have |
|00000b00| 62 65 65 6e 20 63 6f 6d | 70 6c 65 74 65 64 2e 0d |been com|pleted..|
|00000b10| 0d 53 63 72 69 70 74 73 | 0d 0d 22 53 74 61 72 74 |.Scripts|.."Start|
|00000b20| 48 65 6c 70 65 72 41 70 | 70 22 0d 54 68 69 73 20 |HelperAp|p".This |
|00000b30| 73 63 72 69 70 74 20 77 | 69 6c 6c 20 73 74 61 72 |script w|ill star|
|00000b40| 74 20 74 68 65 20 62 61 | 63 6b 67 72 6f 75 6e 64 |t the ba|ckground|
|00000b50| 20 6f 6e 6c 79 20 61 70 | 70 6c 69 63 61 74 69 6f | only ap|plicatio|
|00000b60| 6e 20 63 61 6c 6c 65 64 | 20 22 41 47 48 65 6c 70 |n called| "AGHelp|
|00000b70| 65 72 41 70 70 22 2e 0d | 0d 22 51 75 69 74 48 65 |erApp"..|."QuitHe|
|00000b80| 6c 70 65 72 41 70 70 22 | 0d 54 68 69 73 20 73 63 |lperApp"|.This sc|
|00000b90| 72 69 70 74 20 77 69 6c | 6c 20 71 75 69 74 20 74 |ript wil|l quit t|
|00000ba0| 68 65 20 62 61 63 6b 67 | 72 6f 75 6e 64 20 6f 6e |he backg|round on|
|00000bb0| 6c 79 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |ly appli|cation c|
|00000bc0| 61 6c 6c 65 64 20 22 41 | 47 48 65 6c 70 65 72 41 |alled "A|GHelperA|
|00000bd0| 70 70 22 2e 0d 0d 42 75 | 69 6c 64 69 6e 67 0d 0d |pp"...Bu|ilding..|
|00000be0| 22 41 47 48 65 6c 70 65 | 72 41 70 70 22 20 63 6f |"AGHelpe|rApp" co|
|00000bf0| 6d 70 69 6c 65 73 20 75 | 6e 64 65 72 20 3a 0d 20 |mpiles u|nder :. |
|00000c00| 20 20 20 4d 65 74 72 6f | 77 65 72 6b 73 20 43 6f | Metro|werks Co|
|00000c10| 64 65 57 61 72 72 69 6f | 72 20 39 20 36 38 4b 20 |deWarrio|r 9 68K |
|00000c20| 61 6e 64 20 50 50 43 0d | 20 20 20 20 4d 50 57 20 |and PPC.| MPW |
|00000c30| 45 2e 54 2e 4f 2e 20 23 | 32 30 2d 20 53 79 6d 61 |E.T.O. #|20- Syma|
|00000c40| 6e 74 65 63 20 43 2b 2b | 20 66 6f 72 20 4d 50 57 |ntec C++| for MPW|
|00000c50| 2c 20 4d 72 43 0d 0d 4d | 50 57 20 62 75 69 6c 64 |, MrC..M|PW build|
|00000c60| 20 6e 6f 74 65 73 0d 0d | 42 65 66 6f 72 65 20 62 | notes..|Before b|
|00000c70| 75 69 6c 64 69 6e 67 20 | 79 6f 75 20 6e 65 65 64 |uilding |you need|
|00000c80| 20 74 6f 20 6d 6f 76 65 | 20 41 70 70 6c 65 47 75 | to move| AppleGu|
|00000c90| 69 64 65 47 6c 75 65 4c | 69 62 2e 78 63 6f 66 66 |ideGlueL|ib.xcoff|
|00000ca0| 20 66 72 6f 6d 20 44 65 | 76 2e 43 44 20 4a 75 6c | from De|v.CD Jul|
|00000cb0| 20 39 36 20 53 44 4b 31 | 3a 44 65 76 65 6c 6f 70 | 96 SDK1|:Develop|
|00000cc0| 6d 65 6e 74 20 4b 69 74 | 73 20 28 44 69 73 63 20 |ment Kit|s (Disc |
|00000cd0| 31 29 3a 41 70 70 6c 65 | 20 47 75 69 64 65 3a 45 |1):Apple| Guide:E|
|00000ce0| 6e 67 69 6e 65 65 72 69 | 6e 67 3a 49 6e 74 65 72 |ngineeri|ng:Inter|
|00000cf0| 66 61 63 65 73 3a 20 74 | 6f 20 4d 50 57 27 73 20 |faces: t|o MPW's |
|00000d00| 50 50 43 4c 69 62 72 61 | 72 69 65 73 20 20 66 6f |PPCLibra|ries fo|
|00000d10| 6c 64 65 72 2e 0d 22 41 | 47 48 65 6c 70 65 72 41 |lder.."A|GHelperA|
|00000d20| 70 70 2e 6d 61 6b 65 22 | 20 62 75 69 6c 64 73 20 |pp.make"| builds |
|00000d30| 61 20 66 61 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 |a fat ve|rsion of|
|00000d40| 20 74 68 65 20 68 65 6c | 70 65 72 20 61 70 70 6c | the hel|per appl|
|00000d50| 69 63 61 74 69 6f 6e 2e | 0d 0d 4d 65 74 72 6f 77 |ication.|..Metrow|
|00000d60| 65 72 6b 73 20 62 75 69 | 6c 64 20 6e 6f 74 65 73 |erks bui|ld notes|
|00000d70| 0d 0d 22 41 47 48 65 6c | 70 65 72 41 70 70 20 4d |.."AGHel|perApp M|
|00000d80| 57 2d 50 50 43 2e b5 22 | 20 62 75 69 6c 64 20 61 |W-PPC.."| build a|
|00000d90| 20 50 50 43 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | PPC ver|sion of |
|00000da0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00000db0| 0d 22 41 47 48 65 6c 70 | 65 72 41 70 70 20 4d 57 |."AGHelp|erApp MW|
|00000dc0| 2d 36 38 6b 2e b5 22 20 | 62 75 69 6c 64 20 61 20 |-68k.." |build a |
|00000dd0| 36 38 6b 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |68k vers|ion of t|
|00000de0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |he appli|cation..|
|00000df0| 0d 0d 46 69 6c 65 73 0d | 0d 41 47 48 65 6c 70 65 |..Files.|.AGHelpe|
|00000e00| 72 20 41 70 70 20 53 6f | 75 72 63 65 0d 0d 41 47 |r App So|urce..AG|
|00000e10| 48 65 6c 70 65 72 2e 63 | 0d 09 2d 20 57 61 73 20 |Helper.c|..- Was |
|00000e20| 6f 72 69 67 69 6e 61 6c | 6c 79 20 63 61 6c 6c 65 |original|ly calle|
|00000e30| 64 20 63 53 6d 61 6c 6c | 44 61 65 6d 6f 6e 0d 09 |d cSmall|Daemon..|
|00000e40| 2d 20 43 6f 6e 74 61 69 | 6e 73 20 22 6d 61 69 6e |- Contai|ns "main|
|00000e50| 22 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |" functi|on which|
|00000e60| 20 68 61 73 20 74 68 65 | 20 63 61 6c 6c 73 20 74 | has the| calls t|
|00000e70| 6f 20 69 6e 73 74 61 6c | 6c 20 61 6e 64 20 72 65 |o instal|l and re|
|00000e80| 6d 6f 76 65 20 41 47 56 | 61 6c 75 65 73 2e 0d 09 |move AGV|alues...|
|00000e90| 2d 20 48 61 6e 64 6c 65 | 73 20 74 68 65 20 65 76 |- Handle|s the ev|
|00000ea0| 65 6e 74 20 6c 6f 6f 70 | 0d 0d 41 47 56 61 6c 75 |ent loop|..AGValu|
|00000eb0| 65 73 2e 63 2c 0d 41 47 | 56 61 6c 75 65 73 2e 68 |es.c,.AG|Values.h|
|00000ec0| 0d 09 2d 20 43 6f 6e 74 | 61 69 6e 73 20 74 68 65 |..- Cont|ains the|
|00000ed0| 20 63 6f 64 65 20 66 6f | 72 20 41 70 70 6c 65 20 | code fo|r Apple |
|00000ee0| 45 76 65 6e 74 73 20 61 | 6e 64 20 63 6f 6e 74 65 |Events a|nd conte|
|00000ef0| 78 74 20 63 68 65 63 6b | 73 20 74 6f 20 61 6c 6c |xt check|s to all|
|00000f00| 6f 77 20 41 70 70 6c 65 | 20 47 75 69 64 65 73 20 |ow Apple| Guides |
|00000f10| 74 6f 20 73 74 6f 72 65 | 20 61 6e 64 20 72 65 74 |to store| and ret|
|00000f20| 72 69 65 76 65 20 76 61 | 72 69 61 62 6c 65 73 2e |rieve va|riables.|
|00000f30| 0d 09 2d 20 49 6e 73 74 | 61 6c 6c 73 20 61 6e 64 |..- Inst|alls and|
|00000f40| 20 72 65 6d 6f 76 65 73 | 20 41 70 70 6c 65 20 45 | removes| Apple E|
|00000f50| 76 65 6e 74 73 20 61 6e | 64 20 63 6f 6e 74 65 78 |vents an|d contex|
|00000f60| 74 20 63 68 65 63 6b 20 | 68 61 6e 64 6c 65 72 73 |t check |handlers|
|00000f70| 0d 0d 41 47 48 65 6c 70 | 65 72 2e 72 0d 09 2d 20 |..AGHelp|er.r..- |
|00000f80| 43 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 27 53 49 |Contains| the 'SI|
|00000f90| 5a 45 27 20 72 65 73 6f | 75 72 63 65 73 20 69 6e |ZE' reso|urces in|
|00000fa0| 20 61 20 74 65 78 74 20 | 66 6f 72 6d 61 74 2e 20 | a text |format. |
|00000fb0| 54 68 69 73 20 69 73 20 | 75 73 65 64 20 62 79 20 |This is |used by |
|00000fc0| 74 68 65 20 4d 50 57 20 | 6d 61 6b 65 20 66 69 6c |the MPW |make fil|
|00000fd0| 65 73 2e 0d 0d 47 75 69 | 64 65 20 53 6f 75 72 63 |es...Gui|de Sourc|
|00000fe0| 65 0d 0d 43 6f 6e 74 65 | 6e 74 0d 09 2d 20 43 6f |e..Conte|nt..- Co|
|00000ff0| 6e 74 61 69 6e 73 20 61 | 6c 6c 20 74 68 65 20 41 |ntains a|ll the A|
|00001000| 70 70 6c 65 20 53 63 72 | 69 70 74 20 63 6f 6d 6d |pple Scr|ipt comm|
|00001010| 61 6e 64 73 20 74 6f 20 | 62 75 69 6c 64 20 74 68 |ands to |build th|
|00001020| 65 20 74 75 74 6f 72 69 | 61 6c 20 67 75 69 64 65 |e tutori|al guide|
|00001030| 0d 0d 52 65 73 6f 75 72 | 63 65 73 2c 0d 53 65 74 |..Resour|ces,.Set|
|00001040| 75 70 0d 09 2d 20 63 75 | 74 20 64 6f 77 6e 20 76 |up..- cu|t down v|
|00001050| 65 72 73 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 53 |ersions |of the S|
|00001060| 74 61 6e 64 61 72 64 20 | 52 65 73 6f 75 72 63 65 |tandard |Resource|
|00001070| 73 20 61 6e 64 20 53 74 | 61 6e 64 61 72 64 20 53 |s and St|andard S|
|00001080| 65 74 75 70 0d 0d 41 70 | 70 6c 65 20 53 63 72 69 |etup..Ap|ple Scri|
|00001090| 70 74 20 53 6f 75 72 63 | 65 0d 0d 53 74 61 72 74 |pt Sourc|e..Start|
|000010a0| 48 65 6c 70 65 72 41 70 | 70 2c 0d 53 74 61 72 74 |HelperAp|p,.Start|
|000010b0| 48 65 6c 70 65 72 41 70 | 70 20 54 65 78 74 0d 09 |HelperAp|p Text..|
|000010c0| 2d 20 43 6f 6d 70 69 6c | 65 64 20 61 6e 64 20 74 |- Compil|ed and t|
|000010d0| 65 78 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 61 |ext vers|ion of a|
|000010e0| 20 73 63 72 69 70 74 20 | 74 68 61 74 20 6c 61 75 | script |that lau|
|000010f0| 6e 63 68 65 73 20 41 47 | 48 65 6c 70 65 72 41 70 |nches AG|HelperAp|
|00001100| 70 0d 0d 51 75 69 74 48 | 65 6c 70 65 72 41 70 70 |p..QuitH|elperApp|
|00001110| 2c 0d 51 75 69 74 48 65 | 6c 70 65 72 41 70 70 20 |,.QuitHe|lperApp |
|00001120| 54 65 78 74 0d 09 2d 20 | 43 6f 6d 70 69 6c 65 64 |Text..- |Compiled|
|00001130| 20 61 6e 64 20 74 65 78 | 74 20 76 65 72 73 69 6f | and tex|t versio|
|00001140| 6e 20 6f 66 20 61 20 73 | 63 72 69 70 74 20 74 68 |n of a s|cript th|
|00001150| 61 74 20 71 75 69 74 73 | 20 41 47 48 65 6c 70 65 |at quits| AGHelpe|
|00001160| 72 41 70 70 0d 0d 0d 48 | 6f 77 20 74 68 65 20 69 |rApp...H|ow the i|
|00001170| 6e 74 65 72 65 73 74 69 | 6e 67 20 73 74 75 66 66 |nteresti|ng stuff|
|00001180| 20 77 6f 72 6b 73 0d 0d | 48 6f 77 20 74 6f 20 77 | works..|How to w|
|00001190| 72 69 74 65 20 63 6f 6e | 74 65 78 74 20 63 68 65 |rite con|text che|
|000011a0| 63 6b 20 68 61 6e 64 6c | 65 72 73 0d 0d 43 6f 6e |ck handl|ers..Con|
|000011b0| 74 65 78 74 20 63 68 65 | 63 6b 73 20 61 72 65 20 |text che|cks are |
|000011c0| 64 65 66 69 6e 65 64 20 | 69 6e 20 41 70 70 6c 65 |defined |in Apple|
|000011d0| 20 53 63 72 69 70 74 20 | 69 6e 20 74 68 65 20 66 | Script |in the f|
|000011e0| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 61 74 2e |ollowing| format.|
|000011f0| 20 0d 0d 20 20 3c 44 65 | 66 69 6e 65 20 43 6f 6e | .. <De|fine Con|
|00001200| 74 65 78 74 20 43 68 65 | 63 6b 3e 20 43 6f 6e 74 |text Che|ck> Cont|
|00001210| 65 78 74 43 68 65 63 6b | 4e 61 6d 65 2c 20 63 6f |extCheck|Name, co|
|00001220| 64 65 52 65 73 53 70 65 | 63 20 5b 20 2c 20 74 61 |deResSpe|c [ , ta|
|00001230| 72 67 65 74 41 70 70 20 | 5d 0d 20 20 20 20 20 20 |rgetApp |]. |
|00001240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001250| 20 20 20 20 20 20 20 5b | 2c 20 61 64 64 69 74 69 | [|, additi|
|00001260| 6f 6e 61 6c 50 61 72 61 | 6d 20 5d 20 5b 2c 20 61 |onalPara|m ] [, a|
|00001270| 64 64 69 74 69 6f 6e 61 | 6c 50 61 72 61 6d 20 5d |dditiona|lParam ]|
|00001280| 0d 0d 4e 6f 74 65 20 74 | 68 61 74 20 79 6f 75 20 |..Note t|hat you |
|00001290| 63 61 6e 20 75 73 65 20 | 3c 44 43 43 3e 20 61 73 |can use |<DCC> as|
|000012a0| 20 61 6e 20 61 62 62 72 | 65 76 69 61 74 69 6f 6e | an abbr|eviation|
|000012b0| 2e 20 54 68 65 20 74 61 | 72 67 65 74 41 70 70 27 |. The ta|rgetApp'|
|000012c0| 73 20 63 6f 6e 74 65 78 | 74 20 63 68 65 63 6b 20 |s contex|t check |
|000012d0| 68 61 6e 64 6c 65 72 20 | 63 61 6c 6c 65 64 20 63 |handler |called c|
|000012e0| 6f 64 65 72 52 65 73 53 | 70 65 63 20 77 69 6c 6c |oderResS|pec will|
|000012f0| 20 62 65 20 63 61 6c 6c | 65 64 20 61 6e 64 20 70 | be call|ed and p|
|00001300| 61 73 73 65 64 20 61 6e | 79 20 61 64 64 69 74 69 |assed an|y additi|
|00001310| 6f 6e 61 6c 20 70 61 72 | 61 6d 65 74 65 72 73 2e |onal par|ameters.|
|00001320| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | Informa|tion abo|
|00001330| 75 74 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 70 61 |ut addit|ional pa|
|00001340| 72 61 6d 65 74 65 72 73 | 20 63 61 6e 20 62 65 20 |rameters| can be |
|00001350| 66 6f 75 6e 64 20 6f 6e | 20 70 61 67 65 20 31 30 |found on| page 10|
|00001360| 2d 31 37 33 20 6f 66 20 | 41 70 70 6c 65 20 47 75 |-173 of |Apple Gu|
|00001370| 69 64 65 20 63 6f 6d 70 | 6c 65 74 65 2e 20 49 66 |ide comp|lete. If|
|00001380| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 64 65 66 | you wan|t to def|
|00001390| 61 75 6c 74 20 6f 6e 65 | 20 6f 72 20 6d 6f 72 65 |ault one| or more|
|000013a0| 20 6f 66 20 74 68 65 20 | 61 64 64 69 74 69 6f 6e | of the |addition|
|000013b0| 61 6c 20 70 61 72 61 6d | 65 74 65 72 73 2c 20 61 |al param|eters, a|
|000013c0| 66 74 65 72 20 74 68 65 | 20 70 61 72 61 6d 65 74 |fter the| paramet|
|000013d0| 65 72 20 74 79 70 65 20 | 61 64 64 20 61 20 63 6f |er type |add a co|
|000013e0| 6c 6f 6e 2c 20 74 68 65 | 6e 20 74 68 65 20 64 65 |lon, the|n the de|
|000013f0| 66 61 75 6c 74 20 76 61 | 6c 75 65 2e 20 46 6f 72 |fault va|lue. For|
|00001400| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 66 6f | example|, the fo|
|00001410| 6c 6c 6f 77 20 63 68 65 | 63 6b 73 20 77 69 6c 6c |llow che|cks will|
|00001420| 20 61 6c 6c 20 64 6f 20 | 74 68 65 20 73 61 6d 65 | all do |the same|
|00001430| 20 74 68 69 6e 67 20 2d | 20 73 65 6e 64 20 63 68 | thing -| send ch|
|00001440| 65 63 6b 20 27 43 68 63 | 6b 27 20 74 6f 20 61 70 |eck 'Chc|k' to ap|
|00001450| 70 6c 69 63 61 74 69 6f | 6e 20 27 4d 79 41 70 27 |plicatio|n 'MyAp'|
|00001460| 20 77 69 74 68 20 74 68 | 65 20 70 61 72 61 6d 65 | with th|e parame|
|00001470| 74 65 72 73 20 31 33 20 | 61 6e 64 20 31 35 3a 0d |ters 13 |and 15:.|
|00001480| 0d 20 20 3c 44 43 43 3e | 20 22 43 68 65 63 6b 5f |. <DCC>| "Check_|
|00001490| 32 5f 4c 6f 6e 67 73 22 | 2c 20 27 43 68 63 6b 27 |2_Longs"|, 'Chck'|
|000014a0| 2c 20 27 4d 79 41 70 27 | 2c 20 4c 4f 4e 47 2c 20 |, 'MyAp'|, LONG, |
|000014b0| 4c 4f 4e 47 0d 20 20 3c | 49 66 3e 20 28 43 68 65 |LONG. <|If> (Che|
|000014c0| 63 6b 5f 32 5f 4c 6f 6e | 67 73 28 31 33 2c 31 35 |ck_2_Lon|gs(13,15|
|000014d0| 29 29 0d 0d 20 20 3c 44 | 43 43 3e 20 22 43 68 65 |)).. <D|CC> "Che|
|000014e0| 63 6b 5f 31 73 74 5f 44 | 65 66 61 75 6c 74 22 2c |ck_1st_D|efault",|
|000014f0| 20 27 43 68 63 6b 27 2c | 20 27 4d 79 41 70 27 2c | 'Chck',| 'MyAp',|
|00001500| 20 4c 4f 4e 47 3a 31 33 | 2c 20 4c 4f 4e 47 0d 20 | LONG:13|, LONG. |
|00001510| 20 3c 49 66 3e 20 28 43 | 68 65 63 6b 5f 31 73 74 | <If> (C|heck_1st|
|00001520| 5f 44 65 66 61 75 6c 74 | 28 31 35 29 29 0d 0d 20 |_Default|(15)).. |
|00001530| 20 3c 44 43 43 3e 20 22 | 43 68 65 63 6b 5f 32 6e | <DCC> "|Check_2n|
|00001540| 64 5f 44 65 66 61 75 6c | 74 22 2c 20 27 43 68 63 |d_Defaul|t", 'Chc|
|00001550| 6b 27 2c 20 27 4d 79 41 | 70 27 2c 20 4c 4f 4e 47 |k', 'MyA|p', LONG|
|00001560| 2c 20 4c 4f 4e 47 3a 31 | 35 0d 20 20 3c 49 66 3e |, LONG:1|5. <If>|
|00001570| 20 28 43 68 65 63 6b 5f | 32 6e 64 5f 44 65 66 61 | (Check_|2nd_Defa|
|00001580| 75 6c 74 28 31 33 29 29 | 0d 0d 20 20 3c 44 43 43 |ult(13))|.. <DCC|
|00001590| 3e 20 22 43 68 65 63 6b | 5f 42 6f 74 68 5f 44 65 |> "Check|_Both_De|
|000015a0| 66 61 75 6c 74 22 2c 20 | 27 43 68 63 6b 27 2c 20 |fault", |'Chck', |
|000015b0| 27 4d 79 41 70 27 2c 20 | 4c 4f 4e 47 3a 31 33 2c |'MyAp', |LONG:13,|
|000015c0| 20 4c 4f 4e 47 3a 31 35 | 0d 20 20 3c 49 66 3e 20 | LONG:15|. <If> |
|000015d0| 28 43 68 65 63 6b 5f 42 | 6f 74 68 5f 44 65 66 61 |(Check_B|oth_Defa|
|000015e0| 75 6c 74 28 29 29 0d 0d | 54 68 65 20 61 70 70 6c |ult())..|The appl|
|000015f0| 69 63 61 74 69 6f 6e 73 | 20 63 6f 6e 74 65 78 74 |ications| context|
|00001600| 20 63 68 65 63 6b 20 68 | 61 6e 64 6c 65 72 20 63 | check h|andler c|
|00001610| 61 6e 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |an be in|stalled |
|00001620| 77 69 74 68 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |with the| followi|
|00001630| 6e 67 3a 0d 0d 20 20 74 | 68 65 45 72 72 20 3d 20 |ng:.. t|heErr = |
|00001640| 41 47 49 6e 73 74 61 6c | 6c 43 6f 6e 74 65 78 74 |AGInstal|lContext|
|00001650| 48 61 6e 64 6c 65 72 28 | 20 4e 65 77 43 6f 6e 74 |Handler(| NewCont|
|00001660| 65 78 74 52 65 70 6c 79 | 50 72 6f 63 28 4d 79 43 |extReply|Proc(MyC|
|00001670| 6f 6e 74 65 78 74 43 61 | 6c 6c 42 61 63 6b 29 2c |ontextCa|llBack),|
|00001680| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016a0| 20 20 20 20 20 27 56 61 | 6c 73 27 2c 20 30 2c 20 | 'Va|ls', 0, |
|000016b0| 26 63 6f 6e 74 65 78 74 | 52 65 66 4e 75 6d 20 29 |&context|RefNum )|
|000016c0| 3b 0d 0d 0d 4d 79 43 6f | 6e 74 65 78 74 43 61 6c |;...MyCo|ntextCal|
|000016d0| 6c 42 61 63 6b 20 69 73 | 20 74 68 65 20 66 75 6e |lBack is| the fun|
|000016e0| 63 74 69 6f 6e 20 6e 61 | 6d 65 20 6f 66 20 74 68 |ction na|me of th|
|000016f0| 65 20 68 61 6e 64 6c 65 | 72 2c 20 27 56 61 6c 73 |e handle|r, 'Vals|
|00001700| 27 20 69 73 20 75 73 65 | 64 20 74 6f 20 69 64 65 |' is use|d to ide|
|00001710| 6e 74 69 66 79 20 69 74 | 20 61 6e 64 20 63 6f 72 |ntify it| and cor|
|00001720| 72 65 73 70 6f 6e 64 73 | 20 74 6f 20 74 68 65 20 |responds| to the |
|00001730| 63 6f 64 65 52 65 73 53 | 70 65 63 20 69 6e 20 74 |codeResS|pec in t|
|00001740| 68 65 20 67 75 69 64 65 | 73 20 3c 44 43 43 3e 20 |he guide|s <DCC> |
|00001750| 63 6f 6d 6d 61 6e 64 2c | 20 74 68 65 20 30 20 69 |command,| the 0 i|
|00001760| 73 20 61 20 72 65 66 63 | 6f 6e 20 77 68 69 63 68 |s a refc|on which|
|00001770| 20 69 6e 20 74 68 69 73 | 20 63 61 73 65 20 69 73 | in this| case is|
|00001780| 6e 27 74 20 75 73 65 64 | 20 61 6e 64 20 63 6f 6e |n't used| and con|
|00001790| 74 65 78 74 52 65 66 4e | 75 6d 20 69 73 20 61 20 |textRefN|um is a |
|000017a0| 67 6c 6f 62 61 6c 20 74 | 68 61 74 20 77 69 6c 6c |global t|hat will|
|000017b0| 20 62 65 20 6e 65 65 64 | 65 64 20 77 68 65 6e 20 | be need|ed when |
|000017c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|000017d0| 71 75 69 74 73 2e 20 54 | 6f 20 72 65 6d 6f 76 65 |quits. T|o remove|
|000017e0| 20 74 68 65 20 68 61 6e | 64 6c 65 72 20 75 73 65 | the han|dler use|
|000017f0| 0d 0d 20 20 74 68 65 45 | 72 72 20 3d 20 41 47 52 |.. theE|rr = AGR|
|00001800| 65 6d 6f 76 65 43 6f 6e | 74 65 78 74 48 61 6e 64 |emoveCon|textHand|
|00001810| 6c 65 72 28 20 26 63 6f | 6e 74 65 78 74 52 65 66 |ler( &co|ntextRef|
|00001820| 4e 75 6d 20 29 3b 0d 0d | 54 68 65 20 63 6f 6e 74 |Num );..|The cont|
|00001830| 65 78 74 20 63 68 65 63 | 6b 20 68 61 6e 64 6c 65 |ext chec|k handle|
|00001840| 72 20 6d 75 73 74 20 62 | 65 20 69 6e 20 74 68 65 |r must b|e in the|
|00001850| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 6f 72 6d 61 | followi|ng forma|
|00001860| 74 2e 0d 0d 20 20 70 61 | 73 63 61 6c 20 4f 53 45 |t... pa|scal OSE|
|00001870| 72 72 20 4d 79 43 6f 6e | 74 65 78 74 43 61 6c 6c |rr MyCon|textCall|
|00001880| 42 61 63 6b 28 20 50 74 | 72 20 20 20 70 49 6e 70 |Back( Pt|r pInp|
|00001890| 75 74 44 61 74 61 2c 0d | 09 09 09 09 09 09 09 09 |utData,.|........|
|000018a0| 09 09 09 09 09 09 09 09 | 09 09 09 09 20 20 20 20 |........|.... |
|000018b0| 20 20 20 20 20 20 09 09 | 09 09 53 69 7a 65 20 20 | ..|..Size |
|000018c0| 69 6e 70 75 74 44 61 74 | 61 53 69 7a 65 2c 0d 09 |inputDat|aSize,..|
|000018d0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000018e0| 09 09 09 20 20 20 20 20 | 20 20 20 20 20 09 09 09 |... | ...|
|000018f0| 09 50 74 72 20 20 20 2a | 70 70 4f 75 74 70 75 74 |.Ptr *|ppOutput|
|00001900| 44 61 74 61 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |Data,...|........|
|00001910| 09 09 09 09 09 09 09 09 | 09 09 20 20 20 20 20 20 |........|.. |
|00001920| 20 20 20 20 09 09 09 09 | 53 69 7a 65 20 20 2a 70 | ....|Size *p|
|00001930| 4f 75 74 70 75 74 44 61 | 74 61 53 69 7a 65 2c 0d |OutputDa|taSize,.|
|00001940| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001950| 09 09 09 09 20 20 20 20 | 20 20 20 20 20 20 09 09 |.... | ..|
|00001960| 09 09 41 47 41 70 70 49 | 6e 66 6f 48 64 6c 20 68 |..AGAppI|nfoHdl h|
|00001970| 41 70 70 49 6e 66 6f 20 | 29 0d 0d 0d 70 49 6e 70 |AppInfo |)...pInp|
|00001980| 75 74 44 61 74 61 20 61 | 6e 64 20 69 6e 70 75 74 |utData a|nd input|
|00001990| 44 61 74 61 53 69 7a 65 | 20 61 72 65 20 75 73 65 |DataSize| are use|
|000019a0| 64 20 74 6f 20 70 61 73 | 73 20 74 68 65 20 61 64 |d to pas|s the ad|
|000019b0| 64 69 74 69 6f 6e 61 6c | 20 70 61 72 61 6d 65 74 |ditional| paramet|
|000019c0| 65 72 73 20 66 72 6f 6d | 20 74 68 65 20 67 75 69 |ers from| the gui|
|000019d0| 64 65 20 66 69 6c 65 2e | 20 70 70 4f 75 74 70 75 |de file.| ppOutpu|
|000019e0| 74 44 61 74 61 20 61 6e | 64 20 70 4f 75 74 70 75 |tData an|d pOutpu|
|000019f0| 74 44 61 74 61 53 69 7a | 65 20 61 72 65 20 75 73 |tDataSiz|e are us|
|00001a00| 65 64 20 74 6f 20 72 65 | 74 75 72 6e 20 74 68 65 |ed to re|turn the|
|00001a10| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 20 68 41 | informa|tion. hA|
|00001a20| 70 70 49 6e 66 6f 20 63 | 6f 6e 74 61 69 6e 73 20 |ppInfo c|ontains |
|00001a30| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00001a40| 74 20 74 68 65 20 63 6f | 64 65 52 65 73 53 70 65 |t the co|deResSpe|
|00001a50| 63 20 61 6e 64 20 74 68 | 65 20 72 65 66 43 6f 6e |c and th|e refCon|
|00001a60| 2e 20 0d 0d 54 68 65 20 | 61 64 64 69 74 69 6f 6e |. ..The |addition|
|00001a70| 61 6c 20 70 61 72 61 6d | 65 74 65 72 73 20 61 72 |al param|eters ar|
|00001a80| 65 20 70 61 73 73 65 64 | 20 69 6e 20 70 49 6e 70 |e passed| in pInp|
|00001a90| 75 74 44 61 74 61 20 61 | 6e 64 20 69 6e 70 75 74 |utData a|nd input|
|00001aa0| 44 61 74 61 53 69 7a 65 | 20 61 6e 64 20 61 20 73 |DataSize| and a s|
|00001ab0| 74 72 75 63 74 75 72 65 | 20 73 68 6f 75 6c 64 20 |tructure| should |
|00001ac0| 62 65 20 63 72 65 61 74 | 65 64 20 74 68 61 74 20 |be creat|ed that |
|00001ad0| 6d 61 74 63 68 65 73 20 | 74 68 65 6d 2e 20 54 68 |matches |them. Th|
|00001ae0| 65 72 65 66 6f 72 65 2c | 20 69 66 20 74 68 65 20 |erefore,| if the |
|00001af0| 61 64 64 69 74 69 6f 6e | 61 6c 20 70 61 72 61 6d |addition|al param|
|00001b00| 65 74 65 72 73 20 63 6f | 6e 74 61 69 6e 65 64 20 |eters co|ntained |
|00001b10| 74 77 6f 20 6c 6f 6e 67 | 73 2c 20 74 68 65 6e 20 |two long|s, then |
|00001b20| 74 68 65 20 73 74 72 75 | 63 74 75 72 65 20 73 68 |the stru|cture sh|
|00001b30| 6f 75 6c 64 20 63 6f 6e | 74 61 69 6e 20 6c 6f 6e |ould con|tain lon|
|00001b40| 67 73 2e 20 55 73 69 6e | 67 20 61 6e 20 65 78 61 |gs. Usin|g an exa|
|00001b50| 6d 70 6c 65 20 66 72 6f | 6d 20 61 62 6f 76 65 2c |mple fro|m above,|
|00001b60| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 77 | the str|ucture w|
|00001b70| 6f 75 6c 64 20 6e 65 65 | 64 20 74 6f 20 62 65 3a |ould nee|d to be:|
|00001b80| 20 0d 0d 20 20 73 74 72 | 75 63 74 20 50 61 73 73 | .. str|uct Pass|
|00001b90| 65 64 41 47 50 61 72 61 | 6d 54 79 70 65 0d 20 20 |edAGPara|mType. |
|00001ba0| 7b 0d 20 20 20 20 6c 6f | 6e 67 20 66 69 72 73 74 |{. lo|ng first|
|00001bb0| 50 61 72 61 6d 65 74 65 | 72 3b 0d 20 20 20 20 6c |Paramete|r;. l|
|00001bc0| 6f 6e 67 20 73 65 63 6f | 6e 64 50 61 72 61 6d 65 |ong seco|ndParame|
|00001bd0| 74 65 72 3b 0d 20 20 7d | 3b 0d 0d 20 20 74 79 70 |ter;. }|;.. typ|
|00001be0| 65 64 65 66 20 73 74 72 | 75 63 74 20 50 61 73 73 |edef str|uct Pass|
|00001bf0| 65 64 41 47 50 61 72 61 | 6d 54 79 70 65 20 50 61 |edAGPara|mType Pa|
|00001c00| 73 73 65 64 41 47 50 61 | 72 61 6d 54 79 70 65 2c |ssedAGPa|ramType,|
|00001c10| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001c20| 20 20 2a 50 61 73 73 65 | 64 41 47 50 61 72 61 6d | *Passe|dAGParam|
|00001c30| 50 74 72 2c 20 2a 2a 50 | 61 73 73 65 64 41 47 50 |Ptr, **P|assedAGP|
|00001c40| 61 72 61 6d 48 64 6c 3b | 0d 0d 54 68 65 20 63 6f |aramHdl;|..The co|
|00001c50| 6e 74 65 78 74 20 63 68 | 65 63 6b 20 6e 65 65 64 |ntext ch|eck need|
|00001c60| 73 20 74 6f 20 65 76 61 | 6c 75 61 74 65 20 74 68 |s to eva|luate th|
|00001c70| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 70 61 73 |e parame|ters pas|
|00001c80| 73 65 64 20 74 6f 20 69 | 74 20 61 6e 64 20 74 68 |sed to i|t and th|
|00001c90| 65 6e 20 64 65 63 69 64 | 65 20 77 68 65 74 68 65 |en decid|e whethe|
|00001ca0| 72 20 69 74 20 6e 65 65 | 64 73 20 74 6f 20 72 65 |r it nee|ds to re|
|00001cb0| 74 75 72 6e 20 74 72 75 | 65 20 6f 72 20 66 61 6c |turn tru|e or fal|
|00001cc0| 73 65 2e 20 54 68 69 73 | 20 69 73 20 70 61 73 73 |se. This| is pass|
|00001cd0| 65 64 20 62 61 63 6b 20 | 69 6e 20 70 70 4f 75 74 |ed back |in ppOut|
|00001ce0| 70 75 74 44 61 74 61 20 | 61 6e 64 20 70 4f 75 74 |putData |and pOut|
|00001cf0| 70 75 74 44 61 74 61 53 | 69 7a 65 2c 20 68 6f 77 |putDataS|ize, how|
|00001d00| 65 76 65 72 20 61 73 20 | 74 68 69 73 20 69 73 20 |ever as |this is |
|00001d10| 70 61 72 74 20 6f 66 20 | 61 20 66 61 72 20 77 69 |part of |a far wi|
|00001d20| 64 65 72 20 6d 65 63 68 | 61 6e 69 73 6d 20 79 6f |der mech|anism yo|
|00001d30| 75 20 63 61 6e 27 74 20 | 73 69 6d 70 6c 79 20 70 |u can't |simply p|
|00001d40| 61 73 73 20 62 61 63 6b | 20 74 68 65 20 42 6f 6f |ass back| the Boo|
|00001d50| 6c 65 61 6e 20 62 75 74 | 20 79 6f 75 20 6d 75 73 |lean but| you mus|
|00001d60| 74 20 63 72 65 61 74 65 | 20 61 20 70 6f 69 6e 74 |t create| a point|
|00001d70| 65 72 20 61 6e 64 20 6d | 6f 76 65 20 74 68 65 20 |er and m|ove the |
|00001d80| 42 6f 6f 6c 65 61 6e 27 | 73 20 76 61 6c 75 65 20 |Boolean'|s value |
|00001d90| 69 6e 74 6f 20 69 74 2e | 20 54 68 65 72 65 20 69 |into it.| There i|
|00001da0| 73 20 61 20 72 6f 75 74 | 69 6e 65 20 69 6e 20 74 |s a rout|ine in t|
|00001db0| 68 65 20 73 61 6d 70 6c | 65 20 74 68 61 74 20 64 |he sampl|e that d|
|00001dc0| 6f 65 73 20 61 6c 6c 20 | 74 68 65 20 77 6f 72 6b |oes all |the work|
|00001dd0| 20 66 6f 72 20 79 6f 75 | 2e 20 4e 6f 74 65 20 74 | for you|. Note t|
|00001de0| 68 61 74 20 41 70 70 6c | 65 20 47 75 69 64 65 20 |hat Appl|e Guide |
|00001df0| 69 73 20 72 65 73 70 6f | 6e 73 69 62 6c 65 20 66 |is respo|nsible f|
|00001e00| 6f 72 20 64 65 2d 61 6c | 6c 6f 63 61 74 69 6e 67 |or de-al|locating|
|00001e10| 20 74 68 69 73 20 70 6f | 69 6e 74 65 72 20 6e 6f | this po|inter no|
|00001e20| 74 20 74 68 65 20 68 65 | 6c 70 65 72 20 61 70 70 |t the he|lper app|
|00001e30| 2e 0d 0d 20 20 4f 53 45 | 72 72 20 4d 79 53 65 74 |... OSE|rr MySet|
|00001e40| 43 6f 6e 74 65 78 74 52 | 65 73 75 6c 74 28 20 42 |ContextR|esult( B|
|00001e50| 6f 6f 6c 65 61 6e 20 72 | 65 73 75 6c 74 2c 0d 20 |oolean r|esult,. |
|00001e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 50 74 72 20 20 | | Ptr |
|00001e80| 20 20 20 2a 6f 75 74 4d | 65 73 73 61 67 65 2c 0d | *outM|essage,.|
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 69 7a 65 | | Size|
|00001eb0| 20 20 20 20 2a 6f 75 74 | 53 69 7a 65 20 29 0d 20 | *out|Size ). |
|00001ec0| 20 7b 0d 20 20 20 20 50 | 74 72 20 20 20 70 4f 75 | {. P|tr pOu|
|00001ed0| 74 3b 0d 20 20 20 20 53 | 69 7a 65 20 20 74 68 65 |t;. S|ize the|
|00001ee0| 53 69 7a 65 20 3d 20 73 | 69 7a 65 6f 66 20 28 20 |Size = s|izeof ( |
|00001ef0| 42 6f 6f 6c 65 61 6e 20 | 29 3b 0d 20 20 20 20 4f |Boolean |);. O|
|00001f00| 53 45 72 72 20 74 68 65 | 45 72 72 20 3d 20 6e 6f |SErr the|Err = no|
|00001f10| 45 72 72 3b 0d 09 0d 20 | 20 20 20 70 4f 75 74 20 |Err;... | pOut |
|00001f20| 3d 20 4e 65 77 50 74 72 | 20 28 74 68 65 53 69 7a |= NewPtr| (theSiz|
|00001f30| 65 29 3b 0d 20 20 20 20 | 69 66 20 28 20 70 4f 75 |e);. |if ( pOu|
|00001f40| 74 20 29 0d 20 20 20 20 | 7b 0d 20 20 20 20 20 20 |t ). |{. |
|00001f50| 42 6c 6f 63 6b 4d 6f 76 | 65 28 20 28 76 6f 69 64 |BlockMov|e( (void|
|00001f60| 20 2a 29 26 72 65 73 75 | 6c 74 2c 20 70 4f 75 74 | *)&resu|lt, pOut|
|00001f70| 2c 20 74 68 65 53 69 7a | 65 20 29 3b 0d 20 20 20 |, theSiz|e );. |
|00001f80| 20 20 20 2a 6f 75 74 53 | 69 7a 65 20 3d 20 74 68 | *outS|ize = th|
|00001f90| 65 53 69 7a 65 3b 0d 20 | 20 20 20 20 20 2a 6f 75 |eSize;. | *ou|
|00001fa0| 74 4d 65 73 73 61 67 65 | 20 3d 20 70 4f 75 74 3b |tMessage| = pOut;|
|00001fb0| 0d 20 20 20 20 7d 0d 20 | 20 20 20 65 6c 73 65 0d |. }. | else.|
|00001fc0| 20 20 20 20 20 20 74 68 | 65 45 72 72 20 3d 20 4d | th|eErr = M|
|00001fd0| 65 6d 45 72 72 6f 72 28 | 29 3b 0d 20 20 20 20 72 |emError(|);. r|
|00001fe0| 65 74 75 72 6e 20 74 68 | 65 45 72 72 3b 09 0d 20 |eturn th|eErr;.. |
|00001ff0| 20 7d 0d 0d 49 6e 20 74 | 68 65 20 63 6f 6e 74 65 | }..In t|he conte|
|00002000| 78 74 20 63 68 65 63 6b | 3a 0d 0d 20 20 20 20 2e |xt check|:.. .|
|00002010| 2e 2e 0d 20 20 20 20 2e | 2e 2e 0d 20 20 2f 2f 20 |... .|... // |
|00002020| 53 65 74 20 75 70 20 74 | 68 65 20 72 65 74 75 72 |Set up t|he retur|
|00002030| 6e 20 76 61 6c 75 65 73 | 20 70 70 4f 75 74 70 75 |n values| ppOutpu|
|00002040| 74 44 61 74 61 20 61 6e | 64 20 70 4f 75 74 70 75 |tData an|d pOutpu|
|00002050| 74 44 61 74 61 53 69 7a | 65 0d 0d 20 20 20 20 74 |tDataSiz|e.. t|
|00002060| 68 65 45 72 72 20 3d 20 | 4d 79 53 65 74 43 6f 6e |heErr = |MySetCon|
|00002070| 74 65 78 74 52 65 73 75 | 6c 74 20 28 20 63 68 65 |textResu|lt ( che|
|00002080| 63 6b 52 65 73 75 6c 74 | 2c 20 70 70 4f 75 74 70 |ckResult|, ppOutp|
|00002090| 75 74 44 61 74 61 2c 20 | 70 4f 75 74 70 75 74 44 |utData, |pOutputD|
|000020a0| 61 74 61 53 69 7a 65 20 | 29 3b 0d 09 0d 20 20 20 |ataSize |);... |
|000020b0| 20 72 65 74 75 72 6e 20 | 74 68 65 45 72 72 3b 0d | return |theErr;.|
|000020c0| 20 20 7d 0d 0d 0d 48 6f | 77 20 74 6f 20 77 72 69 | }...Ho|w to wri|
|000020d0| 74 65 20 41 70 70 6c 65 | 20 47 75 69 64 65 20 63 |te Apple| Guide c|
|000020e0| 6f 61 63 68 20 68 61 6e | 64 6c 65 72 73 0d 0d 43 |oach han|dlers..C|
|000020f0| 6f 61 63 68 20 6d 61 72 | 6b 73 20 61 72 65 20 64 |oach mar|ks are d|
|00002100| 65 66 69 6e 65 64 20 69 | 6e 20 41 70 70 6c 65 20 |efined i|n Apple |
|00002110| 53 63 72 69 70 74 20 69 | 6e 20 74 68 65 20 66 6f |Script i|n the fo|
|00002120| 6c 6c 6f 77 69 6e 67 20 | 66 6f 72 6d 61 74 2e 20 |llowing |format. |
|00002130| 0d 0d 20 20 3c 44 65 66 | 69 6e 65 20 4f 62 6a 65 |.. <Def|ine Obje|
|00002140| 63 74 20 43 6f 61 63 68 | 3e 20 43 6f 61 63 68 4d |ct Coach|> CoachM|
|00002150| 61 72 6b 4e 61 6d 65 2c | 20 74 61 72 67 65 74 41 |arkName,| targetA|
|00002160| 70 70 20 5b 2c 20 63 6f | 61 63 68 53 74 79 6c 65 |pp [, co|achStyle|
|00002170| 5d 20 5b 2c 20 6f 62 6a | 65 63 74 4e 61 6d 65 20 |] [, obj|ectName |
|00002180| 5d 0d 0d 4e 6f 74 65 20 | 74 68 61 74 20 79 6f 75 |]..Note |that you|
|00002190| 20 63 61 6e 20 75 73 65 | 20 3c 44 4f 43 3e 20 61 | can use| <DOC> a|
|000021a0| 73 20 61 6e 20 61 62 62 | 72 65 76 69 61 74 69 6f |s an abb|reviatio|
|000021b0| 6e 2e 20 54 68 65 20 6f | 62 6a 65 63 74 4e 61 6d |n. The o|bjectNam|
|000021c0| 65 20 77 69 6c 6c 20 62 | 65 20 70 61 73 73 65 64 |e will b|e passed|
|000021d0| 20 74 6f 20 74 68 65 20 | 74 61 72 67 65 74 41 70 | to the |targetAp|
|000021e0| 70 27 73 20 63 6f 61 63 | 68 20 6d 61 72 6b 20 68 |p's coac|h mark h|
|000021f0| 61 6e 64 6c 65 72 2e 20 | 54 68 69 73 20 69 73 20 |andler. |This is |
|00002200| 69 6e 73 74 61 6c 6c 65 | 64 20 62 79 3a 0d 0d 20 |installe|d by:.. |
|00002210| 20 74 68 65 45 72 72 20 | 3d 20 41 47 49 6e 73 74 | theErr |= AGInst|
|00002220| 61 6c 6c 43 6f 61 63 68 | 48 61 6e 64 6c 65 72 28 |allCoach|Handler(|
|00002230| 20 4e 65 77 43 6f 61 63 | 68 52 65 70 6c 79 50 72 | NewCoac|hReplyPr|
|00002240| 6f 63 28 4d 79 4f 62 6a | 65 63 74 43 6f 61 63 68 |oc(MyObj|ectCoach|
|00002250| 43 61 6c 6c 42 61 63 6b | 29 2c 0d 20 20 20 20 20 |CallBack|),. |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 30 2c 20 | | 0, |
|00002280| 26 63 6f 61 63 68 52 65 | 66 4e 75 6d 20 29 3b 0d |&coachRe|fNum );.|
|00002290| 0d 4d 79 4f 62 6a 65 63 | 74 43 6f 61 63 68 43 61 |.MyObjec|tCoachCa|
|000022a0| 6c 6c 42 61 63 6b 20 69 | 73 20 74 68 65 20 66 75 |llBack i|s the fu|
|000022b0| 6e 63 74 69 6f 6e 20 6e | 61 6d 65 20 6f 66 20 74 |nction n|ame of t|
|000022c0| 68 65 20 68 61 6e 64 6c | 65 72 2c 20 74 68 65 20 |he handl|er, the |
|000022d0| 30 20 69 73 20 61 20 72 | 65 66 63 6f 6e 20 77 68 |0 is a r|efcon wh|
|000022e0| 69 63 68 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |ich in t|his case|
|000022f0| 20 69 73 6e 27 74 20 75 | 73 65 64 20 61 6e 64 20 | isn't u|sed and |
|00002300| 63 6f 61 63 68 52 65 66 | 4e 75 6d 20 69 73 20 61 |coachRef|Num is a|
|00002310| 20 67 6c 6f 62 61 6c 20 | 74 68 61 74 20 77 69 6c | global |that wil|
|00002320| 6c 20 62 65 20 6e 65 65 | 64 65 64 20 77 68 65 6e |l be nee|ded when|
|00002330| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00002340| 20 71 75 69 74 73 2e 20 | 54 6f 20 72 65 6d 6f 76 | quits. |To remov|
|00002350| 65 20 74 68 65 20 68 61 | 6e 64 6c 65 72 20 75 73 |e the ha|ndler us|
|00002360| 65 0d 0d 20 20 74 68 65 | 45 72 72 20 3d 20 41 47 |e.. the|Err = AG|
|00002370| 52 65 6d 6f 76 65 43 6f | 61 63 68 48 61 6e 64 6c |RemoveCo|achHandl|
|00002380| 65 72 28 20 26 63 6f 61 | 63 68 52 65 66 4e 75 6d |er( &coa|chRefNum|
|00002390| 20 29 3b 0d 0d 54 68 65 | 20 63 6f 61 63 68 20 6d | );..The| coach m|
|000023a0| 61 72 6b 20 68 61 6e 64 | 6c 65 72 20 6d 75 73 74 |ark hand|ler must|
|000023b0| 20 62 65 20 69 6e 20 74 | 68 65 20 66 6f 6c 6c 6f | be in t|he follo|
|000023c0| 77 69 6e 67 20 66 6f 72 | 6d 61 74 3a 0d 0d 20 20 |wing for|mat:.. |
|000023d0| 70 61 73 63 61 6c 20 4f | 53 45 72 72 20 4d 79 4f |pascal O|SErr MyO|
|000023e0| 62 6a 65 63 74 43 6f 61 | 63 68 43 61 6c 6c 42 61 |bjectCoa|chCallBa|
|000023f0| 63 6b 20 28 20 52 65 63 | 74 20 2a 70 52 65 63 74 |ck ( Rec|t *pRect|
|00002400| 2c 20 50 74 72 20 6e 61 | 6d 65 2c 20 6c 6f 6e 67 |, Ptr na|me, long|
|00002410| 20 72 65 66 43 6f 6e 20 | 29 0d 20 20 7b 0d 20 20 | refCon |). {. |
|00002420| 20 20 4f 53 45 72 72 20 | 74 68 65 45 72 72 20 3d | OSErr |theErr =|
|00002430| 20 6e 6f 45 72 72 3b 09 | 0d 0d 20 20 20 20 53 65 | noErr;.|.. Se|
|00002440| 74 52 65 63 74 20 28 20 | 70 52 65 63 74 2c 20 31 |tRect ( |pRect, 1|
|00002450| 30 30 2c 31 30 30 2c 20 | 32 30 30 2c 32 30 30 29 |00,100, |200,200)|
|00002460| 3b 09 0d 20 20 20 20 72 | 65 74 75 72 6e 20 74 68 |;.. r|eturn th|
|00002470| 65 45 72 72 3b 0d 20 20 | 7d 0d 0d 54 68 65 20 6f |eErr;. |}..The o|
|00002480| 62 6a 65 63 74 20 6e 61 | 6d 65 20 66 72 6f 6d 20 |bject na|me from |
|00002490| 74 68 65 20 67 75 69 64 | 65 20 69 73 20 70 61 73 |the guid|e is pas|
|000024a0| 73 65 64 20 74 6f 20 74 | 68 65 20 68 61 6e 64 6c |sed to t|he handl|
|000024b0| 65 72 20 69 6e 20 74 68 | 65 20 6e 61 6d 65 20 70 |er in th|e name p|
|000024c0| 61 72 61 6d 65 74 65 72 | 2e 20 49 74 20 61 72 72 |arameter|. It arr|
|000024d0| 69 76 65 73 20 61 73 20 | 61 20 6e 75 6c 6c 20 74 |ives as |a null t|
|000024e0| 65 72 6d 69 6e 61 74 65 | 64 20 73 74 72 69 6e 67 |erminate|d string|
|000024f0| 20 61 6e 64 20 63 61 6e | 20 62 65 20 69 6e 74 65 | and can| be inte|
|00002500| 72 72 6f 67 61 74 65 64 | 20 74 6f 20 66 69 6e 64 |rrogated| to find|
|00002510| 20 6f 75 74 20 77 68 69 | 63 68 20 6f 62 6a 65 63 | out whi|ch objec|
|00002520| 74 20 79 6f 75 20 77 69 | 73 68 20 74 6f 20 61 63 |t you wi|sh to ac|
|00002530| 63 65 73 73 2e 20 59 6f | 75 20 6d 75 73 74 20 74 |cess. Yo|u must t|
|00002540| 68 65 6e 20 72 65 74 75 | 72 6e 20 69 74 73 20 72 |hen retu|rn its r|
|00002550| 65 63 74 20 69 6e 20 67 | 6c 6f 62 61 6c 20 63 6f |ect in g|lobal co|
|00002560| 6f 72 64 69 6e 61 74 65 | 73 20 69 6e 20 70 52 65 |ordinate|s in pRe|
|00002570| 63 74 2e 20 41 73 20 74 | 68 69 73 20 69 73 20 61 |ct. As t|his is a|
|00002580| 20 64 65 6d 6f 6e 73 74 | 72 61 74 69 6f 6e 2c 20 | demonst|ration, |
|00002590| 69 74 20 6f 6e 6c 79 20 | 72 65 74 75 72 6e 73 20 |it only |returns |
|000025a0| 61 20 31 30 30 2a 31 30 | 30 20 72 65 63 74 2e 0d |a 100*10|0 rect..|
|000025b0| 0d 57 68 61 74 27 73 20 | 62 65 65 6e 20 64 6f 6e |.What's |been don|
|000025c0| 65 20 74 6f 20 53 6d 61 | 6c 6c 44 61 65 6d 6f 6e |e to Sma|llDaemon|
|000025d0| 0d 0d 56 65 72 79 20 66 | 65 77 20 63 68 61 6e 67 |..Very f|ew chang|
|000025e0| 65 73 20 68 61 76 65 20 | 62 65 65 6e 20 6d 61 64 |es have |been mad|
|000025f0| 65 20 74 6f 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |e to the| origina|
|00002600| 6c 20 73 61 6d 70 6c 65 | 2c 20 65 78 63 65 70 74 |l sample|, except|
|00002610| 20 74 6f 20 6d 61 6b 65 | 20 69 74 20 63 6f 6d 70 | to make| it comp|
|00002620| 69 6c 65 20 75 6e 64 65 | 72 20 74 68 65 20 6c 61 |ile unde|r the la|
|00002630| 74 65 73 74 20 63 6f 6d | 70 69 6c 65 72 73 2e 20 |test com|pilers. |
|00002640| 54 68 65 20 62 69 67 67 | 65 73 74 20 63 68 61 6e |The bigg|est chan|
|00002650| 67 65 20 69 73 20 74 6f | 20 61 64 64 20 74 68 65 |ge is to| add the|
|00002660| 20 63 61 6c 6c 73 20 74 | 68 61 74 20 69 6e 73 74 | calls t|hat inst|
|00002670| 61 6c 6c 20 61 6e 64 20 | 72 65 6d 6f 76 65 20 41 |all and |remove A|
|00002680| 47 56 61 6c 75 65 73 20 | 74 6f 20 6d 61 69 6e 28 |GValues |to main(|
|00002690| 29 2e 20 54 68 65 20 62 | 75 6c 6b 20 6f 66 20 74 |). The b|ulk of t|
|000026a0| 68 65 20 63 68 61 6e 67 | 65 73 20 61 72 65 20 69 |he chang|es are i|
|000026b0| 6e 20 74 68 65 20 66 69 | 6c 65 73 20 41 47 56 61 |n the fi|les AGVa|
|000026c0| 6c 75 65 73 2e 63 20 61 | 6e 64 20 41 47 56 61 6c |lues.c a|nd AGVal|
|000026d0| 75 65 73 2e 68 2e 0d 0d | 47 6c 6f 62 61 6c 73 0d |ues.h...|Globals.|
|000026e0| 0d 53 74 6f 72 61 67 65 | 20 68 61 73 20 62 65 65 |.Storage| has bee|
|000026f0| 6e 20 70 72 6f 76 69 64 | 65 20 66 6f 72 20 31 30 |n provid|e for 10|
|00002700| 30 20 76 61 72 69 61 62 | 6c 65 73 2e 20 49 6e 20 |0 variab|les. In |
|00002710| 27 43 27 20 74 68 69 73 | 20 70 72 6f 76 69 64 65 |'C' this| provide|
|00002720| 73 20 61 6e 20 61 72 72 | 61 79 20 66 72 6f 6d 20 |s an arr|ay from |
|00002730| 30 2d 39 39 2c 20 68 6f | 77 65 76 65 72 20 69 6e |0-99, ho|wever in|
|00002740| 20 74 68 65 20 67 75 69 | 64 65 20 77 65 20 61 72 | the gui|de we ar|
|00002750| 65 20 67 6f 69 6e 67 20 | 74 6f 20 75 73 65 20 76 |e going |to use v|
|00002760| 61 6c 75 65 73 20 6f 66 | 20 31 2d 33 2e 20 46 6f |alues of| 1-3. Fo|
|00002770| 72 20 6e 65 61 74 6e 65 | 73 73 20 73 61 6b 65 2c |r neatne|ss sake,|
|00002780| 20 74 68 65 73 65 20 77 | 69 6c 6c 20 62 65 20 6d | these w|ill be m|
|00002790| 61 70 70 65 64 20 66 72 | 6f 6d 20 31 2d 33 20 74 |apped fr|om 1-3 t|
|000027a0| 6f 20 30 2d 32 2e 0d 0d | 20 20 20 23 64 65 66 69 |o 0-2...| #defi|
|000027b0| 6e 65 20 6b 4d 61 78 41 | 47 45 6e 74 72 69 65 73 |ne kMaxA|GEntries|
|000027c0| 20 31 30 30 20 20 0d 20 | 20 6c 6f 6e 67 20 67 41 | 100 . | long gA|
|000027d0| 47 56 61 6c 75 65 73 5b | 6b 4d 61 78 41 47 45 6e |GValues[|kMaxAGEn|
|000027e0| 74 72 69 65 73 5d 3b 0d | 0d 41 6c 73 6f 20 72 65 |tries];.|.Also re|
|000027f0| 66 65 72 65 6e 63 65 73 | 20 6d 75 73 74 20 62 65 |ferences| must be|
|00002800| 20 73 74 6f 72 65 64 20 | 66 6f 72 20 74 68 65 20 | stored |for the |
|00002810| 63 6f 61 63 68 20 6d 61 | 72 6b 20 61 6e 64 20 63 |coach ma|rk and c|
|00002820| 6f 6e 74 65 78 74 20 63 | 68 65 63 6b 20 68 61 6e |ontext c|heck han|
|00002830| 64 6c 65 72 73 3a 0d 0d | 20 20 41 47 43 6f 61 63 |dlers:..| AGCoac|
|00002840| 68 52 65 66 4e 75 6d 20 | 20 20 63 6f 61 63 68 52 |hRefNum | coachR|
|00002850| 65 66 4e 75 6d 3b 0d 20 | 20 41 47 43 6f 6e 74 65 |efNum;. | AGConte|
|00002860| 78 74 52 65 66 4e 75 6d | 20 63 6f 6e 74 65 78 74 |xtRefNum| context|
|00002870| 52 65 66 4e 75 6d 3b 0d | 0d 0d 48 6f 77 20 74 6f |RefNum;.|..How to|
|00002880| 20 69 6e 73 74 61 6c 6c | 20 61 6e 64 20 72 65 6d | install| and rem|
|00002890| 6f 76 65 20 74 68 65 20 | 68 61 6e 64 6c 65 72 73 |ove the |handlers|
|000028a0| 0d 0d 54 68 65 20 68 61 | 6e 64 6c 65 72 73 20 61 |..The ha|ndlers a|
|000028b0| 72 65 20 69 6e 73 74 61 | 6c 6c 65 64 20 62 79 20 |re insta|lled by |
|000028c0| 49 6e 69 74 41 47 53 74 | 75 66 66 2e 20 46 69 72 |InitAGSt|uff. Fir|
|000028d0| 73 74 20 69 74 20 63 6c | 65 61 72 73 20 61 6c 6c |st it cl|ears all|
|000028e0| 20 74 68 65 20 73 74 6f | 72 65 64 20 76 61 72 69 | the sto|red vari|
|000028f0| 61 62 6c 65 73 2e 20 54 | 68 65 6e 20 69 74 20 69 |ables. T|hen it i|
|00002900| 6e 73 74 61 6c 6c 73 20 | 61 20 63 6f 61 63 68 20 |nstalls |a coach |
|00002910| 6d 61 72 6b 20 68 61 6e | 64 6c 65 72 2c 20 61 20 |mark han|dler, a |
|00002920| 63 6f 6e 74 65 78 74 20 | 63 68 65 63 6b 20 68 61 |context |check ha|
|00002930| 6e 64 6c 65 72 20 61 6e | 64 20 74 68 65 6e 20 74 |ndler an|d then t|
|00002940| 68 65 20 41 70 70 6c 65 | 20 45 76 65 6e 74 73 2e |he Apple| Events.|
|00002950| 0d 0d 20 20 4f 53 45 72 | 72 20 49 6e 69 74 41 47 |.. OSEr|r InitAG|
|00002960| 53 74 75 66 66 28 29 0d | 20 20 7b 0d 20 20 20 20 |Stuff().| {. |
|00002970| 4f 53 45 72 72 20 74 68 | 65 45 72 72 20 3d 20 6e |OSErr th|eErr = n|
|00002980| 6f 45 72 72 3b 0d 20 20 | 20 20 73 68 6f 72 74 20 |oErr;. | short |
|00002990| 63 6f 75 6e 74 3b 0d 09 | 0d 20 20 2f 2f 20 43 6c |count;..|. // Cl|
|000029a0| 65 61 72 20 61 6c 6c 20 | 74 68 65 20 76 61 6c 75 |ear all |the valu|
|000029b0| 65 73 20 73 74 6f 72 65 | 64 20 62 79 20 74 68 65 |es store|d by the|
|000029c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 20 20 20 | applica|tion. |
|000029d0| 20 43 6c 65 61 72 41 6c | 6c 41 47 56 61 6c 75 65 | ClearAl|lAGValue|
|000029e0| 73 28 29 3b 0d 09 09 0d | 20 20 2f 2f 20 49 6e 73 |s();....| // Ins|
|000029f0| 74 61 6c 6c 20 6f 62 6a | 65 63 74 20 63 6f 61 63 |tall obj|ect coac|
|00002a00| 68 20 68 61 6e 64 6c 65 | 72 0d 20 20 20 20 74 68 |h handle|r. th|
|00002a10| 65 45 72 72 20 3d 20 41 | 47 49 6e 73 74 61 6c 6c |eErr = A|GInstall|
|00002a20| 43 6f 61 63 68 48 61 6e | 64 6c 65 72 28 20 4e 65 |CoachHan|dler( Ne|
|00002a30| 77 43 6f 61 63 68 52 65 | 70 6c 79 50 72 6f 63 28 |wCoachRe|plyProc(|
|00002a40| 4d 79 4f 62 6a 65 63 74 | 43 6f 61 63 68 43 61 6c |MyObject|CoachCal|
|00002a50| 6c 42 61 63 6b 29 2c 0d | 20 20 20 20 20 20 20 20 |lBack),.| |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 30 2c 20 26 | | 0, &|
|00002a80| 63 6f 61 63 68 52 65 66 | 4e 75 6d 20 29 3b 0d 20 |coachRef|Num );. |
|00002a90| 20 20 20 69 66 20 28 74 | 68 65 45 72 72 29 0d 20 | if (t|heErr). |
|00002aa0| 20 20 20 20 20 44 65 62 | 75 67 53 74 72 28 22 5c | Deb|ugStr("\|
|00002ab0| 70 47 6f 74 20 61 6e 20 | 45 72 72 20 2d 20 41 47 |pGot an |Err - AG|
|00002ac0| 49 6e 73 74 61 6c 6c 43 | 6f 61 63 68 48 61 6e 64 |InstallC|oachHand|
|00002ad0| 6c 65 72 20 22 29 3b 0d | 09 09 09 0d 20 20 2f 2f |ler ");.|.... //|
|00002ae0| 20 49 6e 73 74 61 6c 6c | 20 63 6f 6e 74 65 78 74 | Install| context|
|00002af0| 20 63 68 65 63 6b 20 68 | 61 6e 64 6c 65 72 2e 20 | check h|andler. |
|00002b00| 4d 79 43 6f 6e 74 65 78 | 74 43 61 6c 6c 42 61 63 |MyContex|tCallBac|
|00002b10| 6b 20 77 69 6c 6c 20 67 | 65 74 20 63 61 6c 6c 65 |k will g|et calle|
|00002b20| 64 20 77 68 65 6e 20 61 | 20 0d 20 20 2f 2f 20 63 |d when a| . // c|
|00002b30| 6f 6e 74 65 78 74 20 63 | 68 65 63 6b 20 6f 66 20 |ontext c|heck of |
|00002b40| 27 56 61 6c 73 27 20 69 | 73 20 71 75 65 72 69 65 |'Vals' i|s querie|
|00002b50| 64 20 62 79 20 74 68 65 | 20 47 75 69 64 65 0d 0d |d by the| Guide..|
|00002b60| 20 20 20 20 74 68 65 45 | 72 72 20 3d 20 41 47 49 | theE|rr = AGI|
|00002b70| 6e 73 74 61 6c 6c 43 6f | 6e 74 65 78 74 48 61 6e |nstallCo|ntextHan|
|00002b80| 64 6c 65 72 28 20 4e 65 | 77 43 6f 6e 74 65 78 74 |dler( Ne|wContext|
|00002b90| 52 65 70 6c 79 50 72 6f | 63 28 4d 79 43 6f 6e 74 |ReplyPro|c(MyCont|
|00002ba0| 65 78 74 43 61 6c 6c 42 | 61 63 6b 29 2c 0d 20 20 |extCallB|ack),. |
|00002bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002bd0| 20 20 20 20 27 56 61 6c | 73 27 2c 20 30 2c 20 26 | 'Val|s', 0, &|
|00002be0| 63 6f 6e 74 65 78 74 52 | 65 66 4e 75 6d 20 29 3b |contextR|efNum );|
|00002bf0| 0d 20 20 20 20 69 66 20 | 28 74 68 65 45 72 72 29 |. if |(theErr)|
|00002c00| 0d 20 20 20 20 20 20 44 | 65 62 75 67 53 74 72 28 |. D|ebugStr(|
|00002c10| 22 5c 70 47 6f 74 20 61 | 6e 20 45 72 72 20 2d 20 |"\pGot a|n Err - |
|00002c20| 41 47 49 6e 73 74 61 6c | 6c 43 6f 6e 74 65 78 74 |AGInstal|lContext|
|00002c30| 48 61 6e 64 6c 65 72 20 | 22 29 3b 0d 09 0d 20 20 |Handler |");... |
|00002c40| 2f 2f 20 73 65 74 20 75 | 70 20 74 68 65 20 64 69 |// set u|p the di|
|00002c50| 73 70 61 74 63 68 20 74 | 61 62 6c 65 20 66 6f 72 |spatch t|able for|
|00002c60| 20 74 68 65 20 41 70 70 | 6c 65 45 76 65 6e 74 73 | the App|leEvents|
|00002c70| 0d 20 20 20 20 74 68 65 | 45 72 72 20 3d 20 41 45 |. the|Err = AE|
|00002c80| 49 6e 73 74 61 6c 6c 45 | 76 65 6e 74 48 61 6e 64 |InstallE|ventHand|
|00002c90| 6c 65 72 28 20 27 56 61 | 6c 73 27 2c 20 27 43 6c |ler( 'Va|ls', 'Cl|
|00002ca0| 65 72 27 2c 20 4e 65 77 | 41 45 45 76 65 6e 74 48 |er', New|AEEventH|
|00002cb0| 61 6e 64 6c 65 72 50 72 | 6f 63 28 43 6c 65 61 72 |andlerPr|oc(Clear|
|00002cc0| 41 47 56 61 6c 75 65 73 | 29 2c 0d 20 20 20 20 20 |AGValues|),. |
|00002cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 30 | | 0|
|00002cf0| 2c 20 66 61 6c 73 65 29 | 20 3b 0d 0d 20 20 20 20 |, false)| ;.. |
|00002d00| 74 68 65 45 72 72 20 3d | 20 41 45 49 6e 73 74 61 |theErr =| AEInsta|
|00002d10| 6c 6c 45 76 65 6e 74 48 | 61 6e 64 6c 65 72 28 20 |llEventH|andler( |
|00002d20| 27 56 61 6c 73 27 2c 20 | 27 43 6c 72 31 27 2c 20 |'Vals', |'Clr1', |
|00002d30| 4e 65 77 41 45 45 76 65 | 6e 74 48 61 6e 64 6c 65 |NewAEEve|ntHandle|
|00002d40| 72 50 72 6f 63 28 43 6c | 65 61 72 41 47 56 61 6c |rProc(Cl|earAGVal|
|00002d50| 75 65 73 31 29 2c 0d 20 | 20 20 20 20 20 20 20 20 |ues1),. | |
|00002d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d70| 20 20 20 20 20 20 20 20 | 20 20 20 30 2c 20 66 61 | | 0, fa|
|00002d80| 6c 73 65 29 20 3b 0d 20 | 20 20 20 74 68 65 45 72 |lse) ;. | theEr|
|00002d90| 72 20 3d 20 41 45 49 6e | 73 74 61 6c 6c 45 76 65 |r = AEIn|stallEve|
|00002da0| 6e 74 48 61 6e 64 6c 65 | 72 28 20 27 56 61 6c 73 |ntHandle|r( 'Vals|
|00002db0| 27 2c 20 27 43 6c 72 32 | 27 2c 20 4e 65 77 41 45 |', 'Clr2|', NewAE|
|00002dc0| 45 76 65 6e 74 48 61 6e | 64 6c 65 72 50 72 6f 63 |EventHan|dlerProc|
|00002dd0| 28 43 6c 65 61 72 41 47 | 56 61 6c 75 65 73 32 29 |(ClearAG|Values2)|
|00002de0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e00| 20 20 20 20 20 20 30 2c | 20 66 61 6c 73 65 29 20 | 0,| false) |
|00002e10| 3b 0d 20 20 20 20 74 68 | 65 45 72 72 20 3d 20 41 |;. th|eErr = A|
|00002e20| 45 49 6e 73 74 61 6c 6c | 45 76 65 6e 74 48 61 6e |EInstall|EventHan|
|00002e30| 64 6c 65 72 28 20 27 56 | 61 6c 73 27 2c 20 27 43 |dler( 'V|als', 'C|
|00002e40| 6c 72 33 27 2c 20 4e 65 | 77 41 45 45 76 65 6e 74 |lr3', Ne|wAEEvent|
|00002e50| 48 61 6e 64 6c 65 72 50 | 72 6f 63 28 43 6c 65 61 |HandlerP|roc(Clea|
|00002e60| 72 41 47 56 61 6c 75 65 | 73 33 29 2c 0d 20 20 20 |rAGValue|s3),. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e90| 20 30 2c 20 66 61 6c 73 | 65 29 20 3b 0d 0d 20 20 | 0, fals|e) ;.. |
|00002ea0| 20 20 74 68 65 45 72 72 | 20 3d 20 41 45 49 6e 73 | theErr| = AEIns|
|00002eb0| 74 61 6c 6c 45 76 65 6e | 74 48 61 6e 64 6c 65 72 |tallEven|tHandler|
|00002ec0| 28 20 27 56 61 6c 73 27 | 2c 20 27 53 65 74 31 27 |( 'Vals'|, 'Set1'|
|00002ed0| 2c 20 4e 65 77 41 45 45 | 76 65 6e 74 48 61 6e 64 |, NewAEE|ventHand|
|00002ee0| 6c 65 72 50 72 6f 63 28 | 53 65 74 41 47 56 61 6c |lerProc(|SetAGVal|
|00002ef0| 75 65 73 31 29 2c 0d 20 | 20 20 20 20 20 20 20 20 |ues1),. | |
|00002f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f10| 20 20 20 20 20 20 20 20 | 20 20 20 30 2c 20 66 61 | | 0, fa|
|00002f20| 6c 73 65 29 20 3b 0d 20 | 20 20 20 74 68 65 45 72 |lse) ;. | theEr|
|00002f30| 72 20 3d 20 41 45 49 6e | 73 74 61 6c 6c 45 76 65 |r = AEIn|stallEve|
|00002f40| 6e 74 48 61 6e 64 6c 65 | 72 28 20 27 56 61 6c 73 |ntHandle|r( 'Vals|
|00002f50| 27 2c 20 27 53 65 74 32 | 27 2c 20 4e 65 77 41 45 |', 'Set2|', NewAE|
|00002f60| 45 76 65 6e 74 48 61 6e | 64 6c 65 72 50 72 6f 63 |EventHan|dlerProc|
|00002f70| 28 53 65 74 41 47 56 61 | 6c 75 65 73 32 29 2c 0d |(SetAGVa|lues2),.|
|00002f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fa0| 20 20 20 20 30 2c 20 66 | 61 6c 73 65 29 20 3b 0d | 0, f|alse) ;.|
|00002fb0| 20 20 20 20 74 68 65 45 | 72 72 20 3d 20 41 45 49 | theE|rr = AEI|
|00002fc0| 6e 73 74 61 6c 6c 45 76 | 65 6e 74 48 61 6e 64 6c |nstallEv|entHandl|
|00002fd0| 65 72 28 20 27 56 61 6c | 73 27 2c 20 27 53 65 74 |er( 'Val|s', 'Set|
|00002fe0| 33 27 2c 20 4e 65 77 41 | 45 45 76 65 6e 74 48 61 |3', NewA|EEventHa|
|00002ff0| 6e 64 6c 65 72 50 72 6f | 63 28 53 65 74 41 47 56 |ndlerPro|c(SetAGV|
|00003000| 61 6c 75 65 73 33 29 2c | 0d 20 20 20 20 20 20 20 |alues3),|. |
|00003010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 30 2c 20 | | 0, |
|00003030| 66 61 6c 73 65 29 20 3b | 0d 09 0d 20 20 20 20 72 |false) ;|... r|
|00003040| 65 74 75 72 6e 20 74 68 | 65 45 72 72 3b 0d 20 20 |eturn th|eErr;. |
|00003050| 7d 0d 0d 42 65 66 6f 72 | 65 20 74 68 65 20 61 70 |}..Befor|e the ap|
|00003060| 70 6c 69 63 61 74 69 6f | 6e 20 71 75 69 74 73 2c |plicatio|n quits,|
|00003070| 20 69 74 20 73 68 6f 75 | 6c 64 20 72 65 6d 6f 76 | it shou|ld remov|
|00003080| 65 20 61 6e 79 20 41 70 | 70 6c 65 20 47 75 69 64 |e any Ap|ple Guid|
|00003090| 65 20 68 61 6e 64 6c 65 | 72 73 20 74 68 61 74 20 |e handle|rs that |
|000030a0| 68 61 76 65 20 62 65 65 | 6e 20 69 6e 73 74 61 6c |have bee|n instal|
|000030b0| 6c 65 64 20 2e 0d 0d 20 | 20 76 6f 69 64 20 52 65 |led ... | void Re|
|000030c0| 6d 6f 76 65 41 47 53 74 | 75 66 66 28 29 0d 20 20 |moveAGSt|uff(). |
|000030d0| 7b 0d 20 20 20 20 4f 53 | 45 72 72 20 74 68 65 45 |{. OS|Err theE|
|000030e0| 72 72 3b 0d 0d 20 20 20 | 20 74 68 65 45 72 72 20 |rr;.. | theErr |
|000030f0| 3d 20 41 47 52 65 6d 6f | 76 65 43 6f 6e 74 65 78 |= AGRemo|veContex|
|00003100| 74 48 61 6e 64 6c 65 72 | 28 20 26 63 6f 6e 74 65 |tHandler|( &conte|
|00003110| 78 74 52 65 66 4e 75 6d | 20 29 3b 0d 20 20 20 20 |xtRefNum| );. |
|00003120| 74 68 65 45 72 72 20 3d | 20 41 47 52 65 6d 6f 76 |theErr =| AGRemov|
|00003130| 65 43 6f 61 63 68 48 61 | 6e 64 6c 65 72 28 20 26 |eCoachHa|ndler( &|
|00003140| 63 6f 61 63 68 52 65 66 | 4e 75 6d 20 29 3b 0d 20 |coachRef|Num );. |
|00003150| 20 7d 0d 0d 53 65 74 74 | 69 6e 67 20 61 6e 64 20 | }..Sett|ing and |
|00003160| 63 6c 65 61 72 69 6e 67 | 20 76 61 72 69 61 62 6c |clearing| variabl|
|00003170| 65 73 0d 0d 53 65 74 74 | 69 6e 67 20 61 6e 64 20 |es..Sett|ing and |
|00003180| 63 6c 65 61 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |clearing| of the |
|00003190| 76 61 72 69 61 62 6c 65 | 73 20 69 73 20 64 6f 6e |variable|s is don|
|000031a0| 65 20 62 79 20 41 70 70 | 6c 65 20 45 76 65 6e 74 |e by App|le Event|
|000031b0| 73 2e 20 45 61 63 68 20 | 65 76 65 6e 74 20 68 61 |s. Each |event ha|
|000031c0| 73 20 61 20 73 70 65 63 | 69 66 69 63 20 49 44 20 |s a spec|ific ID |
|000031d0| 61 6e 64 20 6e 6f 20 70 | 61 73 73 65 64 20 70 61 |and no p|assed pa|
|000031e0| 72 61 6d 65 74 65 72 73 | 2e 20 59 6f 75 20 77 69 |rameters|. You wi|
|000031f0| 6c 6c 20 70 72 6f 62 61 | 62 6c 79 20 6e 65 65 64 |ll proba|bly need|
|00003200| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 73 65 20 6f | to make| these o|
|00003210| 62 76 69 6f 75 73 20 62 | 79 20 74 68 65 69 72 20 |bvious b|y their |
|00003220| 49 44 2e 20 46 6f 72 20 | 69 6e 73 74 61 6e 63 65 |ID. For |instance|
|00003230| 20 74 6f 20 73 65 74 20 | 61 6e 64 20 63 6c 65 61 | to set |and clea|
|00003240| 72 20 76 61 6c 75 65 20 | 31 2c 20 75 73 65 20 74 |r value |1, use t|
|00003250| 68 65 20 65 76 65 6e 74 | 20 49 44 27 73 20 27 53 |he event| ID's 'S|
|00003260| 65 74 31 27 20 61 6e 64 | 20 27 43 6c 72 31 27 20 |et1' and| 'Clr1' |
|00003270| 2e 20 54 68 65 20 41 70 | 70 6c 65 20 45 76 65 6e |. The Ap|ple Even|
|00003280| 74 20 68 61 6e 64 6c 65 | 72 73 20 77 6f 75 6c 64 |t handle|rs would|
|00003290| 20 6c 6f 6f 6b 20 6c 69 | 6b 65 20 74 68 65 20 66 | look li|ke the f|
|000032a0| 6f 6c 6c 6f 77 69 6e 67 | 3a 0d 0d 20 20 70 61 73 |ollowing|:.. pas|
|000032b0| 63 61 6c 20 4f 53 45 72 | 72 20 53 65 74 41 47 56 |cal OSEr|r SetAGV|
|000032c0| 61 6c 75 65 73 31 20 28 | 20 63 6f 6e 73 74 20 41 |alues1 (| const A|
|000032d0| 70 70 6c 65 45 76 65 6e | 74 20 2a 6d 65 73 73 61 |ppleEven|t *messa|
|000032e0| 67 65 2c 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ge,. | |
|000032f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003300| 20 20 63 6f 6e 73 74 20 | 41 70 70 6c 65 45 76 65 | const |AppleEve|
|00003310| 6e 74 20 2a 72 65 70 6c | 79 2c 0d 20 20 20 20 20 |nt *repl|y,. |
|00003320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|00003340| 6f 6e 67 20 20 20 20 20 | 20 20 20 72 65 66 63 6f |ong | refco|
|00003350| 6e 20 29 09 09 09 0d 20 | 20 7b 0d 20 20 20 20 67 |n ).... | {. g|
|00003360| 41 47 56 61 6c 75 65 73 | 5b 30 5d 20 3d 20 31 3b |AGValues|[0] = 1;|
|00003370| 0d 20 20 20 20 72 65 74 | 75 72 6e 28 20 6e 6f 45 |. ret|urn( noE|
|00003380| 72 72 20 29 3b 0d 20 20 | 7d 0d 0d 20 20 70 61 73 |rr );. |}.. pas|
|00003390| 63 61 6c 20 4f 53 45 72 | 72 20 43 6c 65 61 72 41 |cal OSEr|r ClearA|
|000033a0| 47 56 61 6c 75 65 73 31 | 20 28 20 63 6f 6e 73 74 |GValues1| ( const|
|000033b0| 20 41 70 70 6c 65 45 76 | 65 6e 74 20 2a 6d 65 73 | AppleEv|ent *mes|
|000033c0| 73 61 67 65 2c 0d 20 20 | 20 20 20 20 20 20 20 20 |sage,. | |
|000033d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033e0| 20 20 20 20 20 20 63 6f | 6e 73 74 20 41 70 70 6c | co|nst Appl|
|000033f0| 65 45 76 65 6e 74 20 2a | 72 65 70 6c 79 2c 0d 20 |eEvent *|reply,. |
|00003400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003420| 20 20 20 20 20 6c 6f 6e | 67 20 20 20 20 20 20 20 | lon|g |
|00003430| 20 72 65 66 63 6f 6e 20 | 29 09 09 09 0d 20 20 7b | refcon |).... {|
|00003440| 0d 20 20 20 20 67 41 47 | 56 61 6c 75 65 73 5b 30 |. gAG|Values[0|
|00003450| 5d 20 3d 20 30 3b 0d 20 | 20 20 20 72 65 74 75 72 |] = 0;. | retur|
|00003460| 6e 28 20 6e 6f 45 72 72 | 20 29 3b 0d 20 20 7d 0d |n( noErr| );. }.|
|00003470| 0d 54 68 65 20 65 76 65 | 6e 74 20 66 6f 72 20 63 |.The eve|nt for c|
|00003480| 6c 65 61 72 69 6e 67 20 | 61 6c 6c 20 74 68 65 20 |learing |all the |
|00003490| 76 61 72 69 61 62 6c 65 | 73 20 69 73 20 27 43 6c |variable|s is 'Cl|
|000034a0| 65 72 27 2e 0d 0d 20 20 | 70 61 73 63 61 6c 20 4f |er'... |pascal O|
|000034b0| 53 45 72 72 20 43 6c 65 | 61 72 41 47 56 61 6c 75 |SErr Cle|arAGValu|
|000034c0| 65 73 20 28 20 63 6f 6e | 73 74 20 41 70 70 6c 65 |es ( con|st Apple|
|000034d0| 45 76 65 6e 74 20 2a 6d | 65 73 73 61 67 65 2c 0d |Event *m|essage,.|
|000034e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00003500| 6f 6e 73 74 20 41 70 70 | 6c 65 45 76 65 6e 74 20 |onst App|leEvent |
|00003510| 2a 72 65 70 6c 79 2c 0d | 20 20 20 20 20 20 20 20 |*reply,.| |
|00003520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6c 6f 6e | | lon|
|00003540| 67 20 20 20 20 20 20 20 | 20 72 65 66 63 6f 6e 20 |g | refcon |
|00003550| 29 09 09 09 0d 20 20 7b | 0d 20 20 20 20 43 6c 65 |).... {|. Cle|
|00003560| 61 72 41 6c 6c 41 47 56 | 61 6c 75 65 73 28 29 3b |arAllAGV|alues();|
|00003570| 0d 20 20 20 20 72 65 74 | 75 72 6e 28 20 6e 6f 45 |. ret|urn( noE|
|00003580| 72 72 20 29 3b 0d 20 20 | 7d 0d 0d 0d 49 6e 74 65 |rr );. |}...Inte|
|00003590| 72 72 6f 67 61 74 69 6e | 67 20 76 61 72 69 61 62 |rrogatin|g variab|
|000035a0| 6c 65 73 0d 0d 43 68 65 | 63 6b 69 6e 67 20 74 68 |les..Che|cking th|
|000035b0| 65 20 73 74 61 74 65 20 | 6f 66 20 74 68 65 20 76 |e state |of the v|
|000035c0| 61 72 69 61 62 6c 65 73 | 20 69 73 20 68 61 6e 64 |ariables| is hand|
|000035d0| 6c 65 64 20 62 79 20 41 | 70 70 6c 65 20 47 75 69 |led by A|pple Gui|
|000035e0| 64 65 20 63 6f 6e 74 65 | 78 74 20 63 68 65 63 6b |de conte|xt check|
|000035f0| 73 2e 20 54 77 6f 20 70 | 61 72 61 6d 65 74 65 72 |s. Two p|arameter|
|00003600| 73 20 2d 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |s - in t|his case|
|00003610| 20 6c 6f 6e 67 73 20 2d | 20 61 72 65 20 70 61 73 | longs -| are pas|
|00003620| 73 65 64 20 62 79 20 74 | 68 65 20 67 75 69 64 65 |sed by t|he guide|
|00003630| 20 66 69 6c 65 20 74 6f | 20 74 68 65 20 61 70 70 | file to| the app|
|00003640| 6c 69 63 61 74 69 6f 6e | 2e 20 0d 0d 20 20 73 74 |lication|. .. st|
|00003650| 72 75 63 74 20 50 61 73 | 73 65 64 41 47 50 61 72 |ruct Pas|sedAGPar|
|00003660| 61 6d 54 79 70 65 0d 20 | 20 7b 0d 20 20 20 20 6c |amType. | {. l|
|00003670| 6f 6e 67 20 63 6f 6d 6d | 61 6e 64 3b 0d 20 20 20 |ong comm|and;. |
|00003680| 20 6c 6f 6e 67 20 69 6e | 64 65 78 3b 0d 20 20 7d | long in|dex;. }|
|00003690| 3b 0d 0d 20 20 74 79 70 | 65 64 65 66 20 73 74 72 |;.. typ|edef str|
|000036a0| 75 63 74 20 50 61 73 73 | 65 64 41 47 50 61 72 61 |uct Pass|edAGPara|
|000036b0| 6d 54 79 70 65 20 50 61 | 73 73 65 64 41 47 50 61 |mType Pa|ssedAGPa|
|000036c0| 72 61 6d 54 79 70 65 2c | 0d 20 20 20 20 20 20 20 |ramType,|. |
|000036d0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 50 61 73 73 | | *Pass|
|000036e0| 65 64 41 47 50 61 72 61 | 6d 50 74 72 2c 20 2a 2a |edAGPara|mPtr, **|
|000036f0| 50 61 73 73 65 64 41 47 | 50 61 72 61 6d 48 64 6c |PassedAG|ParamHdl|
|00003700| 3b 0d 0d 49 66 20 74 68 | 65 20 66 69 72 73 74 20 |;..If th|e first |
|00003710| 70 61 72 61 6d 65 74 65 | 72 2c 20 63 6f 6d 6d 61 |paramete|r, comma|
|00003720| 6e 64 2c 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 30 |nd, cont|ains a 0|
|00003730| 2c 20 74 68 65 6e 20 61 | 20 63 68 65 63 6b 20 69 |, then a| check i|
|00003740| 73 20 6d 61 64 65 20 74 | 6f 20 73 65 65 20 69 66 |s made t|o see if|
|00003750| 20 74 68 65 20 76 61 6c | 75 65 20 69 73 20 30 2e | the val|ue is 0.|
|00003760| 20 49 66 20 69 74 20 63 | 6f 6e 74 61 69 6e 73 20 | If it c|ontains |
|00003770| 61 20 31 2c 20 74 68 65 | 6e 20 74 68 65 20 63 68 |a 1, the|n the ch|
|00003780| 65 63 6b 20 73 65 65 73 | 20 69 74 20 74 68 65 20 |eck sees| it the |
|00003790| 76 61 6c 75 65 20 69 73 | 20 6e 6f 6e 2d 30 2e 20 |value is| non-0. |
|000037a0| 49 6e 64 65 78 20 69 73 | 20 75 73 65 64 20 74 6f |Index is| used to|
|000037b0| 20 64 65 66 69 6e 65 20 | 77 68 69 63 68 20 76 61 | define |which va|
|000037c0| 72 69 61 62 6c 65 20 74 | 6f 20 63 68 65 63 6b 2e |riable t|o check.|
|000037d0| 20 54 68 65 20 66 75 6c | 6c 20 63 6f 6e 74 65 78 | The ful|l contex|
|000037e0| 74 20 63 68 65 63 6b 20 | 6c 6f 6f 6b 73 20 6c 69 |t check |looks li|
|000037f0| 6b 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ke the f|ollowing|
|00003800| 3a 0d 0d 20 20 70 61 73 | 63 61 6c 20 4f 53 45 72 |:.. pas|cal OSEr|
|00003810| 72 20 4d 79 43 6f 6e 74 | 65 78 74 43 61 6c 6c 42 |r MyCont|extCallB|
|00003820| 61 63 6b 28 20 50 74 72 | 20 20 20 70 49 6e 70 75 |ack( Ptr| pInpu|
|00003830| 74 44 61 74 61 2c 0d 20 | 20 20 20 20 20 20 20 20 |tData,. | |
|00003840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003850| 20 20 20 20 20 20 20 20 | 20 53 69 7a 65 20 20 69 | | Size i|
|00003860| 6e 70 75 74 44 61 74 61 | 53 69 7a 65 2c 0d 20 20 |nputData|Size,. |
|00003870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003890| 50 74 72 20 20 20 2a 70 | 70 4f 75 74 70 75 74 44 |Ptr *p|pOutputD|
|000038a0| 61 74 61 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ata,. | |
|000038b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000038c0| 20 20 20 20 20 20 20 53 | 69 7a 65 20 20 2a 70 4f | S|ize *pO|
|000038d0| 75 74 70 75 74 44 61 74 | 61 53 69 7a 65 2c 0d 20 |utputDat|aSize,. |
|000038e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000038f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003900| 20 41 47 41 70 70 49 6e | 66 6f 48 64 6c 20 68 41 | AGAppIn|foHdl hA|
|00003910| 70 70 49 6e 66 6f 20 29 | 0d 20 20 7b 0d 20 20 20 |ppInfo )|. {. |
|00003920| 20 4f 53 45 72 72 20 20 | 20 74 68 65 45 72 72 20 | OSErr | theErr |
|00003930| 3d 20 6e 6f 45 72 72 3b | 0d 20 20 20 20 42 6f 6f |= noErr;|. Boo|
|00003940| 6c 65 61 6e 20 63 68 65 | 63 6b 52 65 73 75 6c 74 |lean che|ckResult|
|00003950| 20 3d 20 66 61 6c 73 65 | 3b 0d 0d 20 20 2f 2f 20 | = false|;.. // |
|00003960| 43 68 65 63 6b 20 74 68 | 65 20 69 6e 64 65 78 20 |Check th|e index |
|00003970| 69 73 20 77 69 74 68 69 | 6e 20 72 61 6e 67 65 0d |is withi|n range.|
|00003980| 20 20 20 20 69 66 20 28 | 28 28 50 61 73 73 65 64 | if (|((Passed|
|00003990| 41 47 50 61 72 61 6d 50 | 74 72 29 70 49 6e 70 75 |AGParamP|tr)pInpu|
|000039a0| 74 44 61 74 61 29 2d 3e | 69 6e 64 65 78 20 3c 3d |tData)->|index <=|
|000039b0| 20 6b 4d 61 78 41 47 45 | 6e 74 72 69 65 73 29 0d | kMaxAGE|ntries).|
|000039c0| 20 20 20 20 7b 0d 0d 20 | 20 2f 2f 20 57 6f 72 6b | {.. | // Work|
|000039d0| 20 6f 75 74 20 77 68 65 | 74 68 65 72 20 77 65 20 | out whe|ther we |
|000039e0| 6e 65 65 64 20 74 6f 20 | 72 65 74 75 72 6e 20 74 |need to |return t|
|000039f0| 72 75 65 20 6f 72 20 66 | 61 6c 73 65 0d 20 20 20 |rue or f|alse. |
|00003a00| 20 20 20 69 66 20 28 28 | 28 50 61 73 73 65 64 41 | if ((|(PassedA|
|00003a10| 47 50 61 72 61 6d 50 74 | 72 29 70 49 6e 70 75 74 |GParamPt|r)pInput|
|00003a20| 44 61 74 61 29 2d 3e 63 | 6f 6d 6d 61 6e 64 20 3d |Data)->c|ommand =|
|00003a30| 3d 20 31 29 0d 20 20 20 | 20 20 20 20 20 63 68 65 |= 1). | che|
|00003a40| 63 6b 52 65 73 75 6c 74 | 20 3d 20 67 41 47 56 61 |ckResult| = gAGVa|
|00003a50| 6c 75 65 73 5b 20 28 28 | 50 61 73 73 65 64 41 47 |lues[ ((|PassedAG|
|00003a60| 50 61 72 61 6d 50 74 72 | 29 70 49 6e 70 75 74 44 |ParamPtr|)pInputD|
|00003a70| 61 74 61 29 2d 3e 69 6e | 64 65 78 20 2d 20 31 20 |ata)->in|dex - 1 |
|00003a80| 5d 20 21 3d 20 30 3b 0d | 20 20 20 20 20 20 65 6c |] != 0;.| el|
|00003a90| 73 65 0d 20 20 20 20 20 | 20 20 20 63 68 65 63 6b |se. | check|
|00003aa0| 52 65 73 75 6c 74 20 3d | 20 67 41 47 56 61 6c 75 |Result =| gAGValu|
|00003ab0| 65 73 5b 20 28 28 50 61 | 73 73 65 64 41 47 50 61 |es[ ((Pa|ssedAGPa|
|00003ac0| 72 61 6d 50 74 72 29 70 | 49 6e 70 75 74 44 61 74 |ramPtr)p|InputDat|
|00003ad0| 61 29 2d 3e 69 6e 64 65 | 78 20 2d 20 31 20 5d 20 |a)->inde|x - 1 ] |
|00003ae0| 3d 3d 20 30 3b 0d 20 20 | 20 20 7d 0d 09 0d 20 20 |== 0;. | }... |
|00003af0| 2f 2f 20 53 65 74 20 75 | 70 20 74 68 65 20 72 65 |// Set u|p the re|
|00003b00| 74 75 72 6e 20 76 61 6c | 75 65 73 20 70 70 4f 75 |turn val|ues ppOu|
|00003b10| 74 70 75 74 44 61 74 61 | 20 61 6e 64 20 70 4f 75 |tputData| and pOu|
|00003b20| 74 70 75 74 44 61 74 61 | 53 69 7a 65 0d 0d 20 20 |tputData|Size.. |
|00003b30| 20 20 74 68 65 45 72 72 | 20 3d 20 4d 79 53 65 74 | theErr| = MySet|
|00003b40| 43 6f 6e 74 65 78 74 52 | 65 73 75 6c 74 20 28 20 |ContextR|esult ( |
|00003b50| 63 68 65 63 6b 52 65 73 | 75 6c 74 2c 20 70 70 4f |checkRes|ult, ppO|
|00003b60| 75 74 70 75 74 44 61 74 | 61 2c 20 70 4f 75 74 70 |utputDat|a, pOutp|
|00003b70| 75 74 44 61 74 61 53 69 | 7a 65 20 29 3b 0d 09 0d |utDataSi|ze );...|
|00003b80| 20 20 20 20 72 65 74 75 | 72 6e 20 74 68 65 45 72 | retu|rn theEr|
|00003b90| 72 3b 0d 20 20 7d 0d 0d | 48 6f 77 20 74 68 65 20 |r;. }..|How the |
|00003ba0| 67 75 69 64 65 20 6d 61 | 6b 65 73 20 75 73 65 20 |guide ma|kes use |
|00003bb0| 6f 66 20 74 68 65 73 65 | 20 61 64 64 65 64 20 66 |of these| added f|
|00003bc0| 65 61 74 75 72 65 73 0d | 0d 44 65 66 69 6e 69 6e |eatures.|.Definin|
|00003bd0| 67 20 74 68 65 20 45 76 | 65 6e 74 73 20 69 6e 20 |g the Ev|ents in |
|00003be0| 74 68 65 20 67 75 69 64 | 65 20 61 6e 64 20 75 73 |the guid|e and us|
|00003bf0| 69 6e 67 20 74 68 65 6d | 0d 0d 54 6f 20 6d 61 6b |ing them|..To mak|
|00003c00| 65 20 75 73 65 20 6f 66 | 20 74 68 65 20 65 76 65 |e use of| the eve|
|00003c10| 6e 74 73 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |nts defi|ned in t|
|00003c20| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |he appli|cation, |
|00003c30| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 64 65 66 69 |you need| to defi|
|00003c40| 6e 65 20 74 68 65 20 65 | 76 65 6e 74 73 20 69 6e |ne the e|vents in|
|00003c50| 20 74 68 65 20 67 75 69 | 64 65 3a 0d 0d 20 20 3c | the gui|de:.. <|
|00003c60| 44 65 66 69 6e 65 20 45 | 76 65 6e 74 3e 20 22 43 |Define E|vent> "C|
|00003c70| 6c 65 61 72 56 61 6c 75 | 65 73 22 2c 20 27 41 67 |learValu|es", 'Ag|
|00003c80| 48 70 27 2c 20 27 56 61 | 6c 73 27 2c 20 27 43 6c |Hp', 'Va|ls', 'Cl|
|00003c90| 65 72 27 0d 20 20 3c 44 | 65 66 69 6e 65 20 45 76 |er'. <D|efine Ev|
|00003ca0| 65 6e 74 3e 20 22 53 65 | 74 46 6c 61 67 31 22 2c |ent> "Se|tFlag1",|
|00003cb0| 20 20 20 20 27 41 67 48 | 70 27 2c 20 27 56 61 6c | 'AgH|p', 'Val|
|00003cc0| 73 27 2c 20 27 53 65 74 | 31 27 0d 20 20 3c 44 65 |s', 'Set|1'. <De|
|00003cd0| 66 69 6e 65 20 45 76 65 | 6e 74 3e 20 22 43 6c 65 |fine Eve|nt> "Cle|
|00003ce0| 61 72 46 6c 61 67 31 22 | 2c 20 20 27 41 67 48 70 |arFlag1"|, 'AgHp|
|00003cf0| 27 2c 20 27 56 61 6c 73 | 27 2c 20 27 43 6c 72 31 |', 'Vals|', 'Clr1|
|00003d00| 27 0d 20 20 3c 44 65 66 | 69 6e 65 20 45 76 65 6e |'. <Def|ine Even|
|00003d10| 74 3e 20 22 53 65 74 46 | 6c 61 67 32 22 2c 20 20 |t> "SetF|lag2", |
|00003d20| 20 20 27 41 67 48 70 27 | 2c 20 27 56 61 6c 73 27 | 'AgHp'|, 'Vals'|
|00003d30| 2c 20 27 53 65 74 32 27 | 0d 20 20 3c 44 65 66 69 |, 'Set2'|. <Defi|
|00003d40| 6e 65 20 45 76 65 6e 74 | 3e 20 22 43 6c 65 61 72 |ne Event|> "Clear|
|00003d50| 46 6c 61 67 32 22 2c 20 | 20 27 41 67 48 70 27 2c |Flag2", | 'AgHp',|
|00003d60| 20 27 56 61 6c 73 27 2c | 20 27 43 6c 72 32 27 0d | 'Vals',| 'Clr2'.|
|00003d70| 20 20 3c 44 65 66 69 6e | 65 20 45 76 65 6e 74 3e | <Defin|e Event>|
|00003d80| 20 22 53 65 74 46 6c 61 | 67 33 22 2c 20 20 20 20 | "SetFla|g3", |
|00003d90| 27 41 67 48 70 27 2c 20 | 27 56 61 6c 73 27 2c 20 |'AgHp', |'Vals', |
|00003da0| 27 53 65 74 33 27 0d 20 | 20 3c 44 65 66 69 6e 65 |'Set3'. | <Define|
|00003db0| 20 45 76 65 6e 74 3e 20 | 22 43 6c 65 61 72 46 6c | Event> |"ClearFl|
|00003dc0| 61 67 33 22 2c 20 20 27 | 41 67 48 70 27 2c 20 27 |ag3", '|AgHp', '|
|00003dd0| 56 61 6c 73 27 2c 20 27 | 43 6c 72 33 27 0d 20 20 |Vals', '|Clr3'. |
|00003de0| 3c 44 65 66 69 6e 65 20 | 45 76 65 6e 74 3e 20 22 |<Define |Event> "|
|00003df0| 53 65 74 46 6c 61 67 34 | 22 2c 20 20 20 20 27 41 |SetFlag4|", 'A|
|00003e00| 67 48 70 27 2c 20 27 56 | 61 6c 73 27 2c 20 27 53 |gHp', 'V|als', 'S|
|00003e10| 65 74 34 27 0d 20 20 3c | 44 65 66 69 6e 65 20 45 |et4'. <|Define E|
|00003e20| 76 65 6e 74 3e 20 22 43 | 6c 65 61 72 46 6c 61 67 |vent> "C|learFlag|
|00003e30| 34 22 2c 20 20 27 41 67 | 48 70 27 2c 20 27 56 61 |4", 'Ag|Hp', 'Va|
|00003e40| 6c 73 27 2c 20 27 43 6c | 72 34 27 0d 0d 22 43 6c |ls', 'Cl|r4'.."Cl|
|00003e50| 65 61 72 56 61 6c 75 65 | 73 22 20 73 65 6e 64 73 |earValue|s" sends|
|00003e60| 20 74 68 65 20 41 70 70 | 6c 65 20 45 76 65 6e 74 | the App|le Event|
|00003e70| 20 27 43 6c 65 72 27 20 | 6f 66 20 65 76 65 6e 74 | 'Cler' |of event|
|00003e80| 20 63 6c 61 73 73 20 27 | 56 61 6c 73 27 20 74 6f | class '|Vals' to|
|00003e90| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00003ea0| 20 77 69 74 68 20 74 68 | 65 20 63 72 65 61 74 6f | with th|e creato|
|00003eb0| 72 20 74 79 70 65 20 27 | 41 67 48 70 27 2e 20 54 |r type '|AgHp'. T|
|00003ec0| 68 69 73 20 69 73 20 64 | 65 66 69 6e 65 64 20 69 |his is d|efined i|
|00003ed0| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio|
|00003ee0| 6e 20 74 6f 20 63 6c 65 | 61 72 20 61 6c 6c 20 76 |n to cle|ar all v|
|00003ef0| 61 72 69 61 62 6c 65 73 | 20 74 6f 20 30 2e 0d 0d |ariables| to 0...|
|00003f00| 22 53 65 74 46 6c 61 67 | 31 22 20 73 65 6e 64 73 |"SetFlag|1" sends|
|00003f10| 20 74 68 65 20 41 70 70 | 6c 65 20 45 76 65 6e 74 | the App|le Event|
|00003f20| 20 27 53 65 74 31 27 20 | 6f 66 20 65 76 65 6e 74 | 'Set1' |of event|
|00003f30| 20 63 6c 61 73 73 20 27 | 56 61 6c 73 27 20 74 6f | class '|Vals' to|
|00003f40| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00003f50| 20 77 69 74 68 20 74 68 | 65 20 63 72 65 61 74 6f | with th|e creato|
|00003f60| 72 20 74 79 70 65 20 27 | 41 67 48 70 27 2e 20 54 |r type '|AgHp'. T|
|00003f70| 68 69 73 20 69 73 20 64 | 65 66 69 6e 65 64 20 69 |his is d|efined i|
|00003f80| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio|
|00003f90| 6e 20 74 6f 20 73 65 74 | 20 74 68 65 20 66 69 72 |n to set| the fir|
|00003fa0| 73 74 20 76 61 72 69 61 | 62 6c 65 73 20 74 6f 20 |st varia|bles to |
|00003fb0| 31 2e 0d 0d 22 43 6c 65 | 61 72 46 6c 61 67 31 22 |1..."Cle|arFlag1"|
|00003fc0| 20 73 65 6e 64 73 20 74 | 68 65 20 41 70 70 6c 65 | sends t|he Apple|
|00003fd0| 20 45 76 65 6e 74 20 27 | 43 6c 72 31 27 20 6f 66 | Event '|Clr1' of|
|00003fe0| 20 65 76 65 6e 74 20 63 | 6c 61 73 73 20 27 56 61 | event c|lass 'Va|
|00003ff0| 6c 73 27 20 74 6f 20 74 | 68 65 20 61 70 70 6c 69 |ls' to t|he appli|
|00004000| 63 61 74 69 6f 6e 20 77 | 69 74 68 20 74 68 65 20 |cation w|ith the |
|00004010| 63 72 65 61 74 6f 72 20 | 74 79 70 65 20 27 41 67 |creator |type 'Ag|
|00004020| 48 70 27 2e 20 54 68 69 | 73 20 69 73 20 64 65 66 |Hp'. Thi|s is def|
|00004030| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 61 70 70 6c |ined in |the appl|
|00004040| 69 63 61 74 69 6f 6e 20 | 74 6f 20 73 65 74 20 74 |ication |to set t|
|00004050| 68 65 20 66 69 72 73 74 | 20 76 61 72 69 61 62 6c |he first| variabl|
|00004060| 65 73 20 74 6f 20 30 2e | 0d 65 74 63 2e 0d 0d 54 |es to 0.|.etc...T|
|00004070| 6f 20 75 73 65 20 74 68 | 65 6d 2c 20 75 73 65 20 |o use th|em, use |
|00004080| 61 6e 20 3c 4f 6e 20 50 | 61 6e 65 6c 20 48 69 64 |an <On P|anel Hid|
|00004090| 65 3e 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 3a |e>, for |example:|
|000040a0| 0d 0d 20 20 3c 4f 6e 20 | 50 61 6e 65 6c 20 48 69 |.. <On |Panel Hi|
|000040b0| 64 65 3e 20 53 65 74 46 | 6c 61 67 31 28 29 0d 0d |de> SetF|lag1()..|
|000040c0| 44 65 66 69 6e 69 6e 67 | 20 74 68 65 20 63 6f 6e |Defining| the con|
|000040d0| 74 65 78 74 20 63 68 65 | 63 6b 73 20 69 6e 20 74 |text che|cks in t|
|000040e0| 68 65 20 67 75 69 64 65 | 0d 0d 43 6f 6e 74 65 78 |he guide|..Contex|
|000040f0| 74 20 63 68 65 63 6b 73 | 20 61 72 65 20 64 65 66 |t checks| are def|
|00004100| 69 6e 65 64 20 74 6f 20 | 66 69 6e 64 20 6f 75 74 |ined to |find out|
|00004110| 20 77 68 65 74 68 65 72 | 20 61 6e 79 20 76 61 72 | whether| any var|
|00004120| 69 61 62 6c 65 20 69 73 | 20 73 65 74 20 6f 72 20 |iable is| set or |
|00004130| 63 6c 65 61 72 65 64 2c | 20 6f 72 20 73 70 65 63 |cleared,| or spec|
|00004140| 69 66 69 63 20 76 61 72 | 69 61 62 6c 65 73 20 61 |ific var|iables a|
|00004150| 72 65 20 73 65 74 2e 0d | 0d 20 20 3c 44 43 43 3e |re set..|. <DCC>|
|00004160| 20 22 49 73 46 6c 61 67 | 53 65 74 22 2c 20 20 20 | "IsFlag|Set", |
|00004170| 20 27 56 61 6c 73 27 2c | 20 27 41 67 48 70 27 2c | 'Vals',| 'AgHp',|
|00004180| 20 4c 4f 4e 47 3a 31 2c | 20 4c 4f 4e 47 0d 20 20 | LONG:1,| LONG. |
|00004190| 3c 44 43 43 3e 20 22 49 | 73 46 6c 61 67 43 6c 65 |<DCC> "I|sFlagCle|
|000041a0| 61 72 22 2c 20 20 27 56 | 61 6c 73 27 2c 20 27 41 |ar", 'V|als', 'A|
|000041b0| 67 48 70 27 2c 20 4c 4f | 4e 47 3a 30 2c 20 4c 4f |gHp', LO|NG:0, LO|
|000041c0| 4e 47 0d 0d 20 20 3c 44 | 43 43 3e 20 22 46 6c 61 |NG.. <D|CC> "Fla|
|000041d0| 67 31 53 65 74 22 2c 20 | 20 20 20 20 27 56 61 6c |g1Set", | 'Val|
|000041e0| 73 27 2c 20 27 41 67 48 | 70 27 2c 20 4c 4f 4e 47 |s', 'AgH|p', LONG|
|000041f0| 3a 31 2c 20 4c 4f 4e 47 | 3a 31 0d 20 20 3c 44 43 |:1, LONG|:1. <DC|
|00004200| 43 3e 20 22 46 6c 61 67 | 32 53 65 74 22 2c 20 20 |C> "Flag|2Set", |
|00004210| 20 20 20 27 56 61 6c 73 | 27 2c 20 27 41 67 48 70 | 'Vals|', 'AgHp|
|00004220| 27 2c 20 4c 4f 4e 47 3a | 31 2c 20 4c 4f 4e 47 3a |', LONG:|1, LONG:|
|00004230| 32 0d 20 20 3c 44 43 43 | 3e 20 22 46 6c 61 67 33 |2. <DCC|> "Flag3|
|00004240| 53 65 74 22 2c 20 20 20 | 20 20 27 56 61 6c 73 27 |Set", | 'Vals'|
|00004250| 2c 20 27 41 67 48 70 27 | 2c 20 4c 4f 4e 47 3a 31 |, 'AgHp'|, LONG:1|
|00004260| 2c 20 4c 4f 4e 47 3a 33 | 0d 0d 49 66 20 79 6f 75 |, LONG:3|..If you|
|00004270| 20 77 61 6e 74 20 74 6f | 20 63 68 65 63 6b 20 77 | want to| check w|
|00004280| 68 65 74 68 65 72 20 74 | 68 65 20 66 69 72 73 74 |hether t|he first|
|00004290| 20 76 61 72 69 61 62 6c | 65 20 68 61 73 20 62 65 | variabl|e has be|
|000042a0| 65 6e 20 73 65 74 2c 20 | 79 6f 75 20 63 61 6e 20 |en set, |you can |
|000042b0| 75 73 65 20 6f 6e 65 20 | 6f 66 20 74 77 6f 20 63 |use one |of two c|
|000042c0| 68 65 63 6b 73 3a 0d 0d | 09 3c 49 66 3e 20 28 20 |hecks:..|.<If> ( |
|000042d0| 69 73 46 6c 61 67 53 65 | 74 28 20 31 20 29 20 29 |isFlagSe|t( 1 ) )|
|000042e0| 0d 0d 09 3c 49 66 3e 20 | 28 20 46 6c 61 67 31 53 |...<If> |( Flag1S|
|000042f0| 65 74 28 29 20 29 0d 0d | 4e 6f 74 65 20 74 68 61 |et() )..|Note tha|
|00004300| 74 20 62 65 63 61 75 73 | 65 20 74 68 65 20 70 61 |t becaus|e the pa|
|00004310| 72 61 6d 65 74 65 72 73 | 20 68 61 76 65 20 64 65 |rameters| have de|
|00004320| 66 61 75 6c 74 20 76 61 | 6c 75 65 73 20 69 6e 20 |fault va|lues in |
|00004330| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2c |the defi|nitions,|
|00004340| 20 74 68 6f 73 65 20 70 | 61 72 61 6d 65 74 65 72 | those p|arameter|
|00004350| 73 20 61 72 65 20 6e 6f | 74 20 69 6e 63 6c 75 64 |s are no|t includ|
|00004360| 65 64 20 77 68 65 6e 20 | 74 68 65 79 20 61 72 65 |ed when |they are|
|00004370| 20 75 73 65 64 2e 0d 0d | 4d 61 6b 69 6e 67 20 73 | used...|Making s|
|00004380| 75 72 65 20 74 68 65 20 | 68 65 6c 70 65 72 20 61 |ure the |helper a|
|00004390| 70 70 20 69 73 20 6c 61 | 75 6e 63 68 65 64 0d 0d |pp is la|unched..|
|000043a0| 54 6f 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 65 |To make |sure the|
|000043b0| 20 68 65 6c 70 65 72 20 | 61 70 70 20 69 73 20 6c | helper |app is l|
|000043c0| 61 75 6e 63 68 65 64 20 | 79 6f 75 20 6e 65 65 64 |aunched |you need|
|000043d0| 20 74 6f 20 74 72 69 67 | 67 65 72 20 69 74 20 66 | to trig|ger it f|
|000043e0| 72 6f 6d 20 61 6e 20 41 | 70 70 6c 65 20 53 63 72 |rom an A|pple Scr|
|000043f0| 69 70 74 2e 20 59 6f 75 | 20 6d 61 79 20 61 6c 73 |ipt. You| may als|
|00004400| 6f 20 77 61 6e 74 20 74 | 6f 20 75 73 65 20 61 20 |o want t|o use a |
|00004410| 73 63 72 69 70 74 20 74 | 6f 20 6d 61 6b 65 20 69 |script t|o make i|
|00004420| 74 20 71 75 69 74 2e 20 | 54 68 65 20 73 63 72 69 |t quit. |The scri|
|00004430| 70 74 20 6e 65 65 64 73 | 20 74 6f 20 62 65 20 63 |pt needs| to be c|
|00004440| 6f 6d 70 69 6c 65 64 2e | 20 4e 6f 74 65 20 74 68 |ompiled.| Note th|
|00004450| 61 74 20 69 66 20 79 6f | 75 20 63 68 61 6e 67 65 |at if yo|u change|
|00004460| 20 74 68 65 20 68 65 6c | 70 65 72 2c 20 6f 72 20 | the hel|per, or |
|00004470| 6d 61 69 6e 20 61 70 70 | 27 73 20 63 72 65 61 74 |main app|'s creat|
|00004480| 6f 72 2c 20 79 6f 75 20 | 77 69 6c 6c 20 6e 65 65 |or, you |will nee|
|00004490| 64 20 74 6f 20 72 65 63 | 6f 6d 70 69 6c 65 20 74 |d to rec|ompile t|
|000044a0| 68 65 20 73 63 72 69 70 | 74 20 61 6e 64 20 74 68 |he scrip|t and th|
|000044b0| 65 6e 20 72 65 63 6f 6d | 70 69 6c 65 20 74 68 65 |en recom|pile the|
|000044c0| 20 67 75 69 64 65 2e 20 | 54 68 65 20 73 63 72 69 | guide. |The scri|
|000044d0| 70 74 20 74 68 61 74 20 | 73 74 61 72 74 73 20 74 |pt that |starts t|
|000044e0| 68 65 20 68 65 6c 70 65 | 72 20 61 70 70 20 69 73 |he helpe|r app is|
|000044f0| 20 63 61 6c 6c 65 64 20 | 22 53 74 61 72 74 48 65 | called |"StartHe|
|00004500| 6c 70 65 72 41 70 70 22 | 2e 20 49 74 20 63 6f 6e |lperApp"|. It con|
|00004510| 74 61 69 6e 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |tains th|e follow|
|00004520| 69 6e 67 20 41 70 70 6c | 65 20 53 63 72 69 70 74 |ing Appl|e Script|
|00004530| 20 63 6f 6d 6d 61 6e 64 | 73 20 3a 0d 0d 20 20 74 | command|s :.. t|
|00004540| 65 6c 6c 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ell appl|ication |
|00004550| 22 41 47 48 65 6c 70 65 | 72 41 70 70 22 0d 20 20 |"AGHelpe|rApp". |
|00004560| 20 20 6c 61 75 6e 63 68 | 0d 20 20 65 6e 64 20 74 | launch|. end t|
|00004570| 65 6c 6c 0d 0d 54 68 65 | 20 73 63 72 69 70 74 20 |ell..The| script |
|00004580| 74 68 61 74 20 71 75 69 | 74 73 20 74 68 65 20 61 |that qui|ts the a|
|00004590| 70 70 2c 20 69 73 20 22 | 51 75 69 74 48 65 6c 70 |pp, is "|QuitHelp|
|000045a0| 65 72 41 70 70 22 2e 20 | 49 74 20 63 6f 6e 74 61 |erApp". |It conta|
|000045b0| 69 6e 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ins the |followin|
|000045c0| 67 20 41 70 70 6c 65 20 | 53 63 72 69 70 74 20 63 |g Apple |Script c|
|000045d0| 6f 6d 6d 61 6e 64 73 20 | 3a 0d 0d 20 20 74 65 6c |ommands |:.. tel|
|000045e0| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 22 41 |l applic|ation "A|
|000045f0| 47 48 65 6c 70 65 72 41 | 70 70 22 0d 20 20 20 20 |GHelperA|pp". |
|00004600| 71 75 69 74 0d 20 20 65 | 6e 64 20 74 65 6c 6c 0d |quit. e|nd tell.|
|00004610| 0d 4f 6e 63 65 20 63 6f | 6d 70 69 6c 65 64 20 74 |.Once co|mpiled t|
|00004620| 68 65 20 73 63 72 69 70 | 74 73 20 6e 65 65 64 20 |he scrip|ts need |
|00004630| 74 6f 20 62 65 20 74 72 | 69 67 67 65 72 65 64 20 |to be tr|iggered |
|00004640| 62 65 66 6f 72 65 20 74 | 68 65 20 65 76 65 6e 74 |before t|he event|
|00004650| 73 20 61 6e 64 20 63 6f | 6e 74 65 78 74 20 63 68 |s and co|ntext ch|
|00004660| 65 63 6b 73 20 63 61 6e | 20 62 65 20 75 73 65 64 |ecks can| be used|
|00004670| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 20 74 68 |. For ex|ample th|
|00004680| 65 20 66 69 72 73 74 20 | 70 61 6e 65 6c 20 69 6e |e first |panel in|
|00004690| 20 22 54 75 74 6f 72 69 | 61 6c 20 53 6b 69 70 20 | "Tutori|al Skip |
|000046a0| 6c 65 73 73 6f 6e 73 22 | 20 73 65 71 75 65 6e 63 |lessons"| sequenc|
|000046b0| 65 20 63 61 6c 6c 65 64 | 20 22 54 75 74 6f 72 69 |e called| "Tutori|
|000046c0| 61 6c 20 49 6e 74 72 6f | 22 20 3a 0d 0d 20 20 3c |al Intro|" :.. <|
|000046d0| 44 65 66 69 6e 65 20 50 | 61 6e 65 6c 3e 20 22 54 |Define P|anel> "T|
|000046e0| 75 74 6f 72 69 61 6c 20 | 49 6e 74 72 6f 22 0d 20 |utorial |Intro". |
|000046f0| 20 3c 4f 6e 20 50 61 6e | 65 6c 20 43 72 65 61 74 | <On Pan|el Creat|
|00004700| 65 3e 20 44 6f 41 70 70 | 6c 65 53 63 72 69 70 74 |e> DoApp|leScript|
|00004710| 28 20 22 53 74 61 72 74 | 48 65 6c 70 65 72 41 70 |( "Start|HelperAp|
|00004720| 70 22 20 29 0d 20 20 54 | 68 69 73 20 69 73 20 74 |p" ). T|his is t|
|00004730| 68 65 20 66 69 72 73 74 | 20 70 61 6e 65 6c 20 69 |he first| panel i|
|00004740| 6e 20 74 68 65 20 74 75 | 74 6f 72 69 61 6c 2e 0d |n the tu|torial..|
|00004750| 20 20 49 74 20 6c 61 75 | 6e 63 68 65 73 20 74 68 | It lau|nches th|
|00004760| 65 20 68 65 6c 70 65 72 | 20 41 70 70 2e 0d 20 20 |e helper| App.. |
|00004770| 3c 45 6e 64 20 50 61 6e | 65 6c 3e 0d 0d 53 6b 69 |<End Pan|el>..Ski|
|00004780| 70 70 69 6e 67 20 43 6f | 6d 70 6c 65 74 65 64 20 |pping Co|mpleted |
|00004790| 53 65 71 75 65 6e 63 65 | 73 0d 0d 54 68 65 20 22 |Sequence|s..The "|
|000047a0| 54 75 74 6f 72 69 61 6c | 20 53 6b 69 70 20 6c 65 |Tutorial| Skip le|
|000047b0| 73 73 6f 6e 73 22 20 73 | 65 71 75 65 6e 63 65 20 |ssons" s|equence |
|000047c0| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 61 20 73 |demonstr|ates a s|
|000047d0| 65 71 75 65 6e 63 65 20 | 74 68 61 74 20 77 69 6c |equence |that wil|
|000047e0| 6c 20 74 61 6b 65 20 79 | 6f 75 20 74 68 72 6f 75 |l take y|ou throu|
|000047f0| 67 68 20 61 20 74 75 74 | 6f 72 69 61 6c 20 61 6e |gh a tut|orial an|
|00004800| 64 20 73 6b 69 70 20 73 | 65 71 75 65 6e 63 65 73 |d skip s|equences|
|00004810| 20 74 68 61 74 20 68 61 | 76 65 20 61 6c 72 65 61 | that ha|ve alrea|
|00004820| 64 79 20 62 65 65 6e 20 | 64 6f 6e 65 2e 0d 0d 20 |dy been |done... |
|00004830| 20 3c 44 65 66 69 6e 65 | 20 53 65 71 75 65 6e 63 | <Define| Sequenc|
|00004840| 65 3e 20 22 54 75 74 6f | 72 69 61 6c 20 53 6b 69 |e> "Tuto|rial Ski|
|00004850| 70 20 6c 65 73 73 6f 6e | 73 22 2c 20 22 54 75 74 |p lesson|s", "Tut|
|00004860| 6f 72 69 61 6c 22 0d 20 | 20 20 20 3c 50 61 6e 65 |orial". | <Pane|
|00004870| 6c 3e 20 22 54 75 74 6f | 72 69 61 6c 20 49 6e 74 |l> "Tuto|rial Int|
|00004880| 72 6f 22 0d 0d 20 20 20 | 20 3c 49 66 3e 20 4e 4f |ro".. | <If> NO|
|00004890| 54 20 46 6c 61 67 31 53 | 65 74 28 29 0d 20 20 20 |T Flag1S|et(). |
|000048a0| 20 20 20 3c 4a 75 6d 70 | 20 53 65 71 75 65 6e 63 | <Jump| Sequenc|
|000048b0| 65 3e 20 22 4c 65 73 73 | 6f 6e 20 31 22 0d 20 20 |e> "Less|on 1". |
|000048c0| 20 20 3c 45 6e 64 20 49 | 66 3e 0d 20 20 0d 20 20 | <End I|f>. . |
|000048d0| 20 20 3c 49 66 3e 20 4e | 4f 54 20 46 6c 61 67 32 | <If> N|OT Flag2|
|000048e0| 53 65 74 28 29 0d 20 20 | 20 20 20 20 3c 4a 75 6d |Set(). | <Jum|
|000048f0| 70 20 53 65 71 75 65 6e | 63 65 3e 20 22 4c 65 73 |p Sequen|ce> "Les|
|00004900| 73 6f 6e 20 32 22 0d 20 | 20 20 20 3c 45 6e 64 20 |son 2". | <End |
|00004910| 49 66 3e 0d 0d 20 20 20 | 20 3c 49 66 3e 20 4e 4f |If>.. | <If> NO|
|00004920| 54 20 46 6c 61 67 33 53 | 65 74 28 29 0d 20 20 20 |T Flag3S|et(). |
|00004930| 20 20 20 3c 4a 75 6d 70 | 20 53 65 71 75 65 6e 63 | <Jump| Sequenc|
|00004940| 65 3e 20 22 4c 65 73 73 | 6f 6e 20 33 22 0d 20 20 |e> "Less|on 3". |
|00004950| 20 20 3c 45 6e 64 20 49 | 66 3e 0d 0d 20 20 20 20 | <End I|f>.. |
|00004960| 3c 50 61 6e 65 6c 3e 20 | 22 54 75 74 6f 72 69 61 |<Panel> |"Tutoria|
|00004970| 6c 20 4f 75 74 72 6f 22 | 0d 20 20 3c 45 6e 64 20 |l Outro"|. <End |
|00004980| 53 65 71 75 65 6e 63 65 | 3e 0d 0d 0d 4d 61 72 6b |Sequence|>...Mark|
|00004990| 69 6e 67 20 61 20 73 65 | 71 75 65 6e 63 65 20 61 |ing a se|quence a|
|000049a0| 73 20 63 6f 6d 70 6c 65 | 74 65 64 0d 0d 54 6f 20 |s comple|ted..To |
|000049b0| 6d 61 72 6b 20 61 20 73 | 65 71 75 65 6e 63 65 20 |mark a s|equence |
|000049c0| 63 6f 6d 70 6c 65 74 65 | 64 2c 20 20 75 73 65 20 |complete|d, use |
|000049d0| 61 6e 20 3c 4f 6e 20 50 | 61 6e 65 6c 20 48 69 64 |an <On P|anel Hid|
|000049e0| 65 3e 20 63 6f 6d 6d 61 | 6e 64 20 77 69 74 68 20 |e> comma|nd with |
|000049f0| 61 20 73 75 69 74 61 62 | 6c 65 20 65 76 65 6e 74 |a suitab|le event|
|00004a00| 20 74 6f 20 73 65 74 20 | 74 68 65 20 76 61 72 69 | to set |the vari|
|00004a10| 61 62 6c 65 20 2e 20 46 | 6f 72 20 65 78 61 6d 70 |able . F|or examp|
|00004a20| 6c 65 20 74 6f 20 6d 61 | 72 6b 20 74 68 65 20 73 |le to ma|rk the s|
|00004a30| 65 71 75 65 6e 63 65 20 | 22 4c 65 73 73 6f 6e 20 |equence |"Lesson |
|00004a40| 31 22 20 61 73 20 63 6f | 6d 70 6c 65 74 65 64 2c |1" as co|mpleted,|
|00004a50| 20 74 68 65 20 6c 61 73 | 74 20 70 61 6e 65 6c 20 | the las|t panel |
|00004a60| 63 6f 6e 74 61 69 6e 73 | 3a 0d 0d 20 20 3c 44 65 |contains|:.. <De|
|00004a70| 66 69 6e 65 20 50 61 6e | 65 6c 3e 20 22 4c 65 73 |fine Pan|el> "Les|
|00004a80| 73 6f 6e 20 31 20 50 61 | 6e 65 6c 20 4f 75 74 72 |son 1 Pa|nel Outr|
|00004a90| 6f 22 0d 20 20 3c 4f 6e | 20 50 61 6e 65 6c 20 48 |o". <On| Panel H|
|00004aa0| 69 64 65 3e 20 53 65 74 | 46 6c 61 67 31 28 29 0d |ide> Set|Flag1().|
|00004ab0| 20 20 4c 61 73 74 20 70 | 61 6e 65 6c 20 69 6e 20 | Last p|anel in |
|00004ac0| 4c 65 73 73 6f 6e 20 31 | 2e 0d 0d 20 20 54 68 69 |Lesson 1|... Thi|
|00004ad0| 73 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 20 61 6e |s may co|ntain an|
|00004ae0| 20 61 63 6b 6e 6f 77 6c | 65 64 67 6d 65 6e 74 20 | acknowl|edgment |
|00004af0| 74 68 61 74 20 74 68 65 | 20 6c 65 73 73 6f 6e 20 |that the| lesson |
|00004b00| 68 61 73 20 62 65 65 6e | 20 63 6f 6d 70 6c 65 74 |has been| complet|
|00004b10| 65 64 2e 0d 0d 20 20 49 | 74 20 73 65 74 73 20 66 |ed... I|t sets f|
|00004b20| 6c 61 67 20 31 20 77 69 | 74 68 20 3a 0d 20 20 20 |lag 1 wi|th :. |
|00004b30| 20 22 3c 4f 6e 20 50 61 | 6e 65 6c 20 48 69 64 65 | "<On Pa|nel Hide|
|00004b40| 3e 20 53 65 74 46 6c 61 | 67 31 28 29 22 0d 20 20 |> SetFla|g1()". |
|00004b50| 3c 45 6e 64 20 50 61 6e | 65 6c 3e 0d 0d 0d 46 75 |<End Pan|el>...Fu|
|00004b60| 72 74 68 65 72 20 74 68 | 69 6e 67 73 20 59 4f 55 |rther th|ings YOU|
|00004b70| 20 63 6f 75 6c 64 20 64 | 6f 0d 0d 49 66 20 79 6f | could d|o..If yo|
|00004b80| 75 20 66 65 65 6c 20 6c | 69 6b 65 20 70 6c 61 79 |u feel l|ike play|
|00004b90| 69 6e 67 20 77 69 74 68 | 20 74 68 69 73 20 61 70 |ing with| this ap|
|00004ba0| 70 2c 20 74 68 65 72 65 | 27 73 20 61 20 66 65 77 |p, there|'s a few|
|00004bb0| 20 77 61 79 73 20 79 6f | 75 20 63 6f 75 6c 64 20 | ways yo|u could |
|00004bc0| 69 6d 70 72 6f 76 65 20 | 69 74 2e 0d 2d 20 4d 61 |improve |it..- Ma|
|00004bd0| 6b 65 20 74 68 65 20 73 | 61 6d 70 6c 65 20 73 61 |ke the s|ample sa|
|00004be0| 76 65 20 61 6c 6c 20 74 | 68 65 20 76 61 72 69 61 |ve all t|he varia|
|00004bf0| 62 6c 65 73 20 74 6f 20 | 61 20 70 72 65 66 65 72 |bles to |a prefer|
|00004c00| 65 6e 63 65 73 20 66 69 | 6c 65 20 77 68 65 6e 20 |ences fi|le when |
|00004c10| 69 74 20 71 75 69 74 73 | 20 61 6e 64 20 72 65 2d |it quits| and re-|
|00004c20| 6c 6f 61 64 73 20 74 68 | 65 6d 20 77 68 65 6e 20 |loads th|em when |
|00004c30| 69 74 20 73 74 61 72 74 | 73 0d 2d 20 49 6d 70 6c |it start|s.- Impl|
|00004c40| 65 6d 65 6e 74 20 6d 6f | 72 65 20 76 61 72 69 61 |ement mo|re varia|
|00004c50| 62 6c 65 73 20 61 6e 64 | 20 64 69 66 66 65 72 65 |bles and| differe|
|00004c60| 6e 74 20 77 61 79 73 20 | 6f 66 20 63 68 65 63 6b |nt ways |of check|
|00004c70| 69 6e 67 20 74 68 65 6d | 2e 0d 2d 20 41 64 64 20 |ing them|..- Add |
|00004c80| 41 47 56 61 6c 75 65 73 | 2e 63 20 74 6f 20 79 6f |AGValues|.c to yo|
|00004c90| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 61 |ur appli|cation a|
|00004ca0| 6e 64 20 77 72 69 74 65 | 20 61 20 74 75 74 6f 72 |nd write| a tutor|
|00004cb0| 69 61 6c 20 47 75 69 64 | 65 21 0d 0d 0d 46 75 72 |ial Guid|e!...Fur|
|00004cc0| 74 68 65 72 20 52 65 66 | 0d 0d 20 2d 20 41 70 70 |ther Ref|.. - App|
|00004cd0| 6c 65 20 47 75 69 64 65 | 20 43 6f 6d 70 6c 65 74 |le Guide| Complet|
|00004ce0| 65 20 69 73 20 61 6e 20 | 61 6c 6d 6f 73 74 20 65 |e is an |almost e|
|00004cf0| 73 73 65 6e 74 69 61 6c | 20 76 6f 6c 75 6d 65 20 |ssential| volume |
|00004d00| 69 66 20 79 6f 75 20 61 | 72 65 20 77 72 69 74 69 |if you a|re writi|
|00004d10| 6e 67 20 41 70 70 6c 65 | 20 47 75 69 64 65 20 68 |ng Apple| Guide h|
|00004d20| 65 6c 70 20 73 79 73 74 | 65 6d 73 2e 20 49 74 20 |elp syst|ems. It |
|00004d30| 69 73 20 70 75 62 6c 69 | 73 68 65 64 20 62 79 20 |is publi|shed by |
|00004d40| 41 64 64 69 73 6f 6e 2d | 57 65 73 6c 65 79 2e 0d |Addison-|Wesley..|
|00004d50| 20 2d 20 41 70 70 6c 65 | 20 47 75 69 64 65 20 56 | - Apple| Guide V|
|00004d60| 61 72 69 61 62 6c 65 73 | 20 54 65 63 68 6e 6f 74 |ariables| Technot|
|00004d70| 65 2e 0d 0d 0d 41 63 6b | 6e 6f 77 6c 65 64 67 6d |e....Ack|nowledgm|
|00004d80| 65 6e 74 73 0d 0d 53 70 | 65 63 69 61 6c 20 74 68 |ents..Sp|ecial th|
|00004d90| 61 6e 6b 73 20 74 6f 20 | 3a 0d 09 4a 61 73 6f 6e |anks to |:..Jason|
|00004da0| 20 48 6f 64 67 65 73 2d | 48 61 72 72 69 73 20 2d | Hodges-|Harris -|
|00004db0| 20 66 6f 72 20 66 69 78 | 69 6e 67 20 74 68 65 20 | for fix|ing the |
|00004dc0| 4d 50 57 20 62 75 69 6c | 64 0d 09 47 72 65 67 20 |MPW buil|d..Greg |
|00004dd0| 52 6f 62 62 69 6e 73 20 | 26 20 43 2e 4b 2e 20 48 |Robbins |& C.K. H|
|00004de0| 61 75 6e 20 2d 20 66 6f | 72 20 74 68 65 20 6f 72 |aun - fo|r the or|
|00004df0| 69 67 69 6e 61 6c 20 53 | 6d 61 6c 6c 44 61 65 6d |iginal S|mallDaem|
|00004e00| 6f 6e 20 73 61 6d 70 6c | 65 0d 0d 0d 0d 2a 2a 2a |on sampl|e....***|
|00004e10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e50| 2a 2a 0d 2a 2a 20 20 20 | 20 20 20 20 20 20 20 20 |**.** | |
|00004e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e90| 20 20 20 20 20 20 2a 2a | 0d 2a 2a 20 59 6f 75 20 | **|.** You |
|00004ea0| 6d 61 79 20 69 6e 63 6f | 72 70 6f 72 61 74 65 20 |may inco|rporate |
|00004eb0| 74 68 69 73 20 73 61 6d | 70 6c 65 20 63 6f 64 65 |this sam|ple code|
|00004ec0| 20 69 6e 74 6f 20 79 6f | 75 72 20 61 70 70 6c 69 | into yo|ur appli|
|00004ed0| 63 61 74 69 6f 6e 73 20 | 20 20 20 20 2a 2a 0d 2a |cations | **.*|
|00004ee0| 2a 20 77 69 74 68 6f 75 | 74 20 72 65 73 74 72 69 |* withou|t restri|
|00004ef0| 63 74 69 6f 6e 2c 20 74 | 68 6f 75 67 68 20 74 68 |ction, t|hough th|
|00004f00| 65 20 73 61 6d 70 6c 65 | 20 63 6f 64 65 20 68 61 |e sample| code ha|
|00004f10| 73 20 62 65 65 6e 20 70 | 72 6f 76 69 64 65 64 20 |s been p|rovided |
|00004f20| 20 20 2a 2a 0d 2a 2a 20 | 22 41 53 20 49 53 22 20 | **.** |"AS IS" |
|00004f30| 61 6e 64 20 74 68 65 20 | 72 65 73 70 6f 6e 73 69 |and the |responsi|
|00004f40| 62 69 6c 69 74 79 20 66 | 6f 72 20 69 74 73 20 6f |bility f|or its o|
|00004f50| 70 65 72 61 74 69 6f 6e | 20 69 73 20 31 30 30 25 |peration| is 100%|
|00004f60| 20 79 6f 75 72 73 2e 20 | 2a 2a 0d 2a 2a 20 48 6f | yours. |**.** Ho|
|00004f70| 77 65 76 65 72 2c 20 77 | 68 61 74 20 79 6f 75 20 |wever, w|hat you |
|00004f80| 61 72 65 20 6e 6f 74 20 | 70 65 72 6d 69 74 74 65 |are not |permitte|
|00004f90| 64 20 74 6f 20 64 6f 20 | 69 73 20 74 6f 20 72 65 |d to do |is to re|
|00004fa0| 64 69 73 74 72 69 62 75 | 74 65 20 20 20 20 2a 2a |distribu|te **|
|00004fb0| 0d 2a 2a 20 74 68 65 20 | 73 6f 75 72 63 65 20 61 |.** the |source a|
|00004fc0| 73 20 22 44 53 43 20 53 | 61 6d 70 6c 65 20 43 6f |s "DSC S|ample Co|
|00004fd0| 64 65 22 20 61 66 74 65 | 72 20 68 61 76 69 6e 67 |de" afte|r having|
|00004fe0| 20 6d 61 64 65 20 63 68 | 61 6e 67 65 73 2e 20 49 | made ch|anges. I|
|00004ff0| 66 20 20 20 2a 2a 0d 2a | 2a 20 79 6f 75 27 72 65 |f **.*|* you're|
|00005000| 20 67 6f 69 6e 67 20 74 | 6f 20 72 65 2d 64 69 73 | going t|o re-dis|
|00005010| 74 72 69 62 75 74 65 20 | 74 68 65 20 73 6f 75 72 |tribute |the sour|
|00005020| 63 65 2c 20 77 65 20 72 | 65 71 75 69 72 65 20 74 |ce, we r|equire t|
|00005030| 68 61 74 20 79 6f 75 20 | 20 20 2a 2a 0d 2a 2a 20 |hat you | **.** |
|00005040| 6d 61 6b 65 20 69 74 20 | 63 6c 65 61 72 20 69 6e |make it |clear in|
|00005050| 20 74 68 65 20 73 6f 75 | 72 63 65 20 74 68 61 74 | the sou|rce that|
|00005060| 20 74 68 65 20 63 6f 64 | 65 20 77 61 73 20 64 65 | the cod|e was de|
|00005070| 73 63 65 6e 64 65 64 20 | 66 72 6f 6d 20 20 20 20 |scended |from |
|00005080| 2a 2a 0d 2a 2a 20 41 70 | 70 6c 65 20 53 61 6d 70 |**.** Ap|ple Samp|
|00005090| 6c 65 20 43 6f 64 65 2c | 20 62 75 74 20 74 68 61 |le Code,| but tha|
|000050a0| 74 20 79 6f 75 27 76 65 | 20 6d 61 64 65 20 63 68 |t you've| made ch|
|000050b0| 61 6e 67 65 73 2e 20 20 | 20 20 20 20 20 20 20 20 |anges. | |
|000050c0| 20 20 20 20 20 20 2a 2a | 0d 2a 2a 20 20 20 20 20 | **|.** |
|000050d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000050e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000050f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005100| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2a 0d 2a | | **.*|
|00005110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005120| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005150| 2a 2a 2a 2a 0d 0d 0d 44 | 6f 6e 20 53 77 61 74 6d |****...D|on Swatm|
|00005160| 61 6e 20 2d 20 41 75 67 | 2e 20 39 36 0d a9 20 31 |an - Aug|. 96.. 1|
|00005170| 39 39 36 20 62 79 20 41 | 70 70 6c 65 20 43 6f 6d |996 by A|pple Com|
|00005180| 70 75 74 65 72 2c 20 49 | 6e 63 2e 2c 20 61 6c 6c |puter, I|nc., all|
|00005190| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000051a0| 2e 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 00 00 01 00 00 00 13 da | 00 00 12 da 00 00 00 32 |........|.......2|
|00005210| a8 4e 2f 2c 1a 78 3f 06 | 48 6e fe fd 4e ba ee 7c |.N/,.x?.|Hn..N..||
|00005220| 02 2e 00 7f fe fd 4a 2e | fe fd 54 8f 67 0a 70 00 |......J.|..T.g.p.|
|00005230| 16 41 47 20 56 61 72 69 | 61 62 6c 65 73 20 2d 20 |.AG Vari|ables - |
|00005240| 52 65 61 64 20 6d 65 65 | 02 00 00 00 50 61 72 74 |Read mee|....Part|
|00005250| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00005260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005270| 00 00 ae 43 4d 9f 00 00 | 00 00 00 00 14 0c 67 4a |...CM...|......gJ|
|00005280| 0c 6e 00 1c fe fe 67 42 | 0c 6e 00 1b fe fe 66 06 |.n....gB|.n....f.|
|00005290| 06 45 00 0a 60 34 0c 6e | 00 1e fe fe 66 20 06 45 |.E..`4.n|....f .E|
|000052a0| 00 12 0c 6c 00 12 1a 88 | 6f 04 70 00 60 08 70 10 |...l....|o.p.`.p.|
|000052b0| 90 6c 1a 88 54 40 20 6e | 00 0a d1 50 60 0c da 6c |.l..T@ n|...P`..l|
|000052c0| 1a 8c 4a 07 67 04 06 45 | 00 0b 20 6c 1a 78 20 50 |..J.g..E|.. l.x P|
|000052d0| 0c 50 00 8d 66 14 0c 46 | 00 0d 6d 0e 0c 46 00 0f |.P..f..F|..m..F..|
|000052e0| 6e 08 da 6c 1a 8c 06 45 | 00 0b 20 6e 00 0e ba 50 |n..l...E|.. n...P|
|000052f0| 6f 06 20 6e 00 0e 30 85 | 4a 2e fe fd 67 04 42 67 |o. n..0.|J...g.Bg|
|00005300| 00 00 12 d6 00 f1 00 00 | 00 00 00 1d 00 16 00 03 |........|........|
|00005310| 05 00 00 18 00 00 00 00 | 00 00 00 00 00 1f 00 10 |........|........|
|00005320| 00 0c 00 03 05 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 21 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |.!......|........|
|00005340| 00 00 00 00 00 57 00 0c | 00 0a 00 03 00 00 00 09 |.....W..|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 98 00 13 00 0e 00 03 |........|........|
|00005360| 05 00 00 0e 00 00 00 00 | 00 00 00 00 00 ad 00 0c |........|........|
|00005370| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 01 e3 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|00005390| 00 00 00 00 02 0a 00 0c | 00 0a 00 03 00 00 00 09 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 04 0f 00 0c 00 0a 00 03 |........|........|
|000053b0| 02 00 00 09 00 00 00 00 | 00 00 00 00 04 11 00 0c |........|........|
|000053c0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 04 12 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 04 41 00 0c | 00 0a 00 03 00 00 00 09 |.....A..|........|
|000053f0| 00 00 00 00 00 00 00 00 | 07 66 00 13 00 0e 00 03 |........|.f......|
|00005400| 05 00 00 0e 00 00 00 00 | 00 00 00 00 07 7d 00 10 |........|.....}..|
|00005410| 00 0c 00 03 05 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00005420| 07 7e 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |.~......|........|
|00005430| 00 00 00 00 07 8c 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 07 9b 00 0c 00 0a 00 03 |........|........|
|00005450| 00 00 00 09 00 00 00 00 | 00 00 00 00 08 79 00 0c |........|.....y..|
|00005460| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005470| 08 94 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005480| 00 00 00 00 08 fc 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005490| 00 00 00 00 00 00 00 00 | 09 19 00 0c 00 0a 00 03 |........|........|
|000054a0| 00 00 00 09 00 00 00 00 | 00 00 00 00 09 67 00 0c |........|.....g..|
|000054b0| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 09 93 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 09 dd 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 0a 07 00 0c 00 0a 00 03 |........|........|
|000054f0| 00 00 00 09 00 00 00 00 | 00 00 00 00 0a 34 00 0c |........|.....4..|
|00005500| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 0a 54 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |.T......|........|
|00005520| 00 00 00 00 0a 8f 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 0a 91 00 0c 00 0a 00 03 |........|........|
|00005540| 05 00 00 09 00 00 00 00 | 00 00 00 00 0a 98 00 0c |........|........|
|00005550| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 0a ab 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005570| 00 00 00 00 0a e9 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 0b 09 00 0c 00 0a 00 03 |........|........|
|00005590| 00 00 00 09 00 00 00 00 | 00 00 00 00 0b 46 00 0c |........|.....F..|
|000055a0| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 0b 54 00 0b 00 09 00 04 | 04 00 00 09 00 00 00 00 |.T......|........|
|000055c0| 00 00 00 00 0b 55 00 0c | 00 0a 00 03 00 00 00 09 |.....U..|........|
|000055d0| 00 00 00 00 00 00 00 00 | 0b 56 00 13 00 0e 00 03 |........|.V......|
|000055e0| 05 00 00 0e 00 00 00 00 | 00 00 00 00 0b 5e 00 10 |........|.....^..|
|000055f0| 00 0c 00 03 01 00 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 0b 5f 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |._......|........|
|00005610| 00 00 00 00 0b d7 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005620| 00 00 00 00 00 00 00 00 | 0b e6 00 0c 00 0a 00 03 |........|........|
|00005630| 00 00 00 09 00 00 00 00 | 00 00 00 00 0c 09 00 0c |........|........|
|00005640| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 0c 20 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |. ......|........|
|00005660| 00 00 00 00 0c 26 00 0c | 00 0a 00 03 01 00 00 09 |.....&..|........|
|00005670| 00 00 00 00 00 00 00 00 | 0c 76 00 0c 00 0a 00 03 |........|.v......|
|00005680| 00 00 00 09 00 00 00 00 | 00 00 00 00 0c 80 00 0c |........|........|
|00005690| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000056a0| 0c 8d 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 0c da 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 0c f0 00 0c 00 0a 00 03 |........|........|
|000056d0| 00 00 00 09 00 00 00 00 | 00 00 00 00 0d 72 00 13 |........|.....r..|
|000056e0| 00 0e 00 03 05 00 00 0e | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 0d 77 00 10 00 0c 00 03 | 01 00 00 0c 00 00 00 00 |.w......|........|
|00005700| 00 00 00 00 0d 78 00 0c | 00 0a 00 03 00 00 00 09 |.....x..|........|
|00005710| 00 00 00 00 00 00 00 00 | 0d 79 00 0c 00 0a 00 03 |........|.y......|
|00005720| 05 00 00 09 00 00 00 00 | 00 00 00 00 0d 8d 00 0c |........|........|
|00005730| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 0d 8e 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|00005750| 00 00 00 00 0d 99 00 0c | 00 0a 00 03 00 00 00 09 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 0e 2a 00 0c 00 0a 00 03 |........|.*......|
|00005770| 01 00 00 09 00 00 00 00 | 00 00 00 00 0e 41 00 0c |........|.....A..|
|00005780| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 0e f2 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 0e fd 00 0c | 00 0a 00 03 00 00 00 09 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 0f 55 00 0c 00 0a 00 03 |........|.U......|
|000057c0| 05 00 00 09 00 00 00 00 | 00 00 00 00 0f 62 00 0c |........|.....b..|
|000057d0| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 0f 6b 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |.k......|........|
|000057f0| 00 00 00 00 0f b2 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005800| 00 00 00 00 00 00 00 00 | 0f c4 00 0c 00 0a 00 03 |........|........|
|00005810| 00 00 00 09 00 00 00 00 | 00 00 00 00 10 06 00 0c |........|........|
|00005820| 00 0a 00 03 05 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 10 1a 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005840| 00 00 00 00 10 1b 00 0c | 00 0a 00 03 01 00 00 09 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 10 3f 00 0c 00 0a 00 03 |........|.?......|
|00005860| 00 00 00 09 00 00 00 00 | 00 00 00 00 10 83 00 0c |........|........|
|00005870| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005880| 10 a5 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005890| 00 00 00 00 10 e7 00 13 | 00 0e 00 03 05 00 00 0e |........|........|
|000058a0| 00 00 00 00 00 00 00 00 | 11 06 00 10 00 0c 00 03 |........|........|
|000058b0| 00 00 00 0c 00 00 00 00 | 00 00 00 00 11 07 00 0c |........|........|
|000058c0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 11 08 00 0c 00 0a 00 03 | 05 00 00 09 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 11 2b 00 0c | 00 0a 00 03 00 00 00 09 |.....+..|........|
|000058f0| 00 00 00 00 00 00 00 00 | 11 73 00 0b 00 09 00 04 |........|.s......|
|00005900| 00 00 00 09 00 00 00 00 | 00 00 00 00 11 75 00 0b |........|.....u..|
|00005910| 00 09 00 04 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 11 8b 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00005930| 00 00 00 00 11 8c 00 0b | 00 09 00 04 02 00 00 09 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 11 aa 00 0b 00 09 00 04 |........|........|
|00005950| 00 00 00 09 00 00 00 00 | 00 00 00 00 11 ab 00 0b |........|........|
|00005960| 00 09 00 04 02 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 11 b7 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00005980| 00 00 00 00 11 b9 00 0b | 00 09 00 04 02 00 00 09 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 11 d7 00 0b 00 09 00 04 |........|........|
|000059a0| 00 00 00 09 00 00 00 00 | 00 00 00 00 11 d8 00 0b |........|........|
|000059b0| 00 09 00 04 02 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 11 ea 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 11 ed 00 0b | 00 09 00 04 02 00 00 09 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 11 ff 00 0b 00 09 00 04 |........|........|
|000059f0| 00 00 00 09 00 00 00 00 | 00 00 00 00 12 02 00 0c |........|........|
|00005a00| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005a10| 12 30 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |.0......|........|
|00005a20| 00 00 00 00 12 32 00 0c | 00 0a 00 03 00 00 00 09 |.....2..|........|
|00005a30| 00 00 00 00 00 00 00 00 | 14 01 00 0b 00 09 00 04 |........|........|
|00005a40| 00 00 00 09 00 00 00 00 | 00 00 00 00 14 03 00 0b |........|........|
|00005a50| 00 09 00 04 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 14 08 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00005a70| 00 00 00 00 14 37 00 0b | 00 09 00 04 01 00 00 09 |.....7..|........|
|00005a80| 00 00 00 00 00 00 00 00 | 14 3b 00 0b 00 09 00 04 |........|.;......|
|00005a90| 00 00 00 09 00 00 00 00 | 00 00 00 00 14 56 00 0b |........|.....V..|
|00005aa0| 00 09 00 04 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 14 5b 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |.[......|........|
|00005ac0| 00 00 00 00 14 91 00 0b | 00 09 00 04 01 00 00 09 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 14 95 00 0b 00 09 00 04 |........|........|
|00005ae0| 00 00 00 09 00 00 00 00 | 00 00 00 00 14 b1 00 0b |........|........|
|00005af0| 00 09 00 04 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 14 b6 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 14 ec 00 0b | 00 09 00 04 01 00 00 09 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 14 f0 00 0b 00 09 00 04 |........|........|
|00005b30| 00 00 00 09 00 00 00 00 | 00 00 00 00 15 0c 00 0b |........|........|
|00005b40| 00 09 00 04 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 15 11 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 15 4b 00 0b | 00 09 00 04 01 00 00 09 |.....K..|........|
|00005b70| 00 00 00 00 00 00 00 00 | 15 4f 00 0b 00 09 00 04 |........|.O......|
|00005b80| 00 00 00 09 00 00 00 00 | 00 00 00 00 15 67 00 0c |........|.....g..|
|00005b90| 00 0a 00 03 02 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 15 68 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |.h......|........|
|00005bb0| 00 00 00 00 15 b5 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 16 44 00 0c 00 0a 00 03 |........|.D......|
|00005bd0| 00 00 00 09 00 00 00 00 | 00 00 00 00 17 72 00 0b |........|.....r..|
|00005be0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 17 a8 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005c00| 00 00 00 00 17 e4 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00005c10| 00 00 00 00 00 00 00 00 | 18 fc 00 0c 00 0a 00 03 |........|........|
|00005c20| 00 00 00 09 00 00 00 00 | 00 00 00 00 1b 03 00 0b |........|........|
|00005c30| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 1b c9 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 1d b3 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00005c60| 00 00 00 00 00 00 00 00 | 1f 72 00 0c 00 0a 00 03 |........|.r......|
|00005c70| 00 00 00 09 00 00 00 00 | 00 00 00 00 1f 8a 00 0b |........|........|
|00005c80| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005c90| 20 42 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 | B......|........|
|00005ca0| 00 00 00 00 20 46 00 0c | 00 0a 00 03 05 00 00 09 |.... F..|........|
|00005cb0| 00 00 00 00 00 00 00 00 | 20 6d 00 0c 00 0a 00 03 |........| m......|
|00005cc0| 00 00 00 09 00 00 00 00 | 00 00 00 00 20 b2 00 0b |........|.... ...|
|00005cd0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005ce0| 20 b4 00 0b 00 09 00 04 | 01 00 00 09 00 00 00 00 | .......|........|
|00005cf0| 00 00 00 00 20 c9 00 0b | 00 09 00 04 00 00 00 09 |.... ...|........|
|00005d00| 00 00 00 00 00 00 00 00 | 20 ca 00 0b 00 09 00 04 |........| .......|
|00005d10| 02 00 00 09 00 00 00 00 | 00 00 00 00 20 e3 00 0b |........|.... ...|
|00005d20| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005d30| 20 e4 00 0b 00 09 00 04 | 02 00 00 09 00 00 00 00 | .......|........|
|00005d40| 00 00 00 00 20 f0 00 0b | 00 09 00 04 00 00 00 09 |.... ...|........|
|00005d50| 00 00 00 00 00 00 00 00 | 20 f3 00 0b 00 09 00 04 |........| .......|
|00005d60| 02 00 00 09 00 00 00 00 | 00 00 00 00 21 00 00 0b |........|....!...|
|00005d70| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005d80| 21 03 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |!.......|........|
|00005d90| 00 00 00 00 21 31 00 0b | 00 09 00 04 00 00 00 09 |....!1..|........|
|00005da0| 00 00 00 00 00 00 00 00 | 21 33 00 0c 00 0a 00 03 |........|!3......|
|00005db0| 00 00 00 09 00 00 00 00 | 00 00 00 00 21 8f 00 0b |........|....!...|
|00005dc0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005dd0| 22 11 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |".......|........|
|00005de0| 00 00 00 00 22 e3 00 0b | 00 09 00 04 00 00 00 09 |...."...|........|
|00005df0| 00 00 00 00 00 00 00 00 | 23 15 00 0c 00 0a 00 03 |........|#.......|
|00005e00| 00 00 00 09 00 00 00 00 | 00 00 00 00 23 4e 00 0b |........|....#N..|
|00005e10| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 23 fb 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |#.......|........|
|00005e30| 00 00 00 00 25 30 00 0c | 00 0a 00 03 01 00 00 09 |....%0..|........|
|00005e40| 00 00 00 00 00 00 00 00 | 25 31 00 0c 00 0a 00 03 |........|%1......|
|00005e50| 05 00 00 09 00 00 00 00 | 00 00 00 00 25 50 00 0c |........|....%P..|
|00005e60| 00 0a 00 03 04 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005e70| 25 51 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |%Q......|........|
|00005e80| 00 00 00 00 26 58 00 0c | 00 0a 00 03 01 00 00 09 |....&X..|........|
|00005e90| 00 00 00 00 00 00 00 00 | 26 5f 00 0c 00 0a 00 03 |........|&_......|
|00005ea0| 00 00 00 09 00 00 00 00 | 00 00 00 00 27 2b 00 0b |........|....'+..|
|00005eb0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 27 69 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |'i......|........|
|00005ed0| 00 00 00 00 27 b7 00 0b | 00 09 00 04 00 00 00 09 |....'...|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 27 f7 00 0c 00 0a 00 03 |........|'.......|
|00005ef0| 00 00 00 09 00 00 00 00 | 00 00 00 00 27 fa 00 0c |........|....'...|
|00005f00| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 28 20 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |( ......|........|
|00005f20| 00 00 00 00 28 d2 00 0b | 00 09 00 04 00 00 00 09 |....(...|........|
|00005f30| 00 00 00 00 00 00 00 00 | 2f d2 00 0c 00 0a 00 03 |........|/.......|
|00005f40| 00 00 00 09 00 00 00 00 | 00 00 00 00 30 37 00 0b |........|....07..|
|00005f50| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 30 d4 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |0.......|........|
|00005f70| 00 00 00 00 30 f4 00 0c | 00 0a 00 03 00 00 00 09 |....0...|........|
|00005f80| 00 00 00 00 00 00 00 00 | 32 2b 00 0b 00 09 00 04 |........|2+......|
|00005f90| 00 00 00 09 00 00 00 00 | 00 00 00 00 33 f0 00 0c |........|....3...|
|00005fa0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 34 26 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |4&......|........|
|00005fc0| 00 00 00 00 35 09 00 0b | 00 09 00 04 00 00 00 09 |....5...|........|
|00005fd0| aa aa 00 00 00 00 00 00 | 35 0a 00 0b 00 09 00 04 |........|5.......|
|00005fe0| 00 00 00 09 00 00 00 00 | 00 00 00 00 35 0c 00 0c |........|....5...|
|00005ff0| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 35 24 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |5$......|........|
|00006010| 00 00 00 00 35 ca 00 0c | 00 0a 00 03 02 00 00 09 |....5...|........|
|00006020| 00 00 00 00 00 00 00 00 | 35 cc 00 0b 00 09 00 04 |........|5.......|
|00006030| 00 00 00 09 00 00 00 00 | 00 00 00 00 36 82 00 0c |........|....6...|
|00006040| 00 0a 00 03 02 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 36 83 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |6.......|........|
|00006060| 00 00 00 00 37 82 00 0b | 00 09 00 04 01 00 00 09 |....7...|........|
|00006070| 00 00 00 00 00 00 00 00 | 37 83 00 0b 00 09 00 04 |........|7.......|
|00006080| 00 00 00 09 00 00 00 00 | 00 00 00 00 3b 18 00 0c |........|....;...|
|00006090| 00 0a 00 03 05 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000060a0| 3b 48 00 0c 00 0a 00 03 | 02 00 00 09 00 00 00 00 |;H......|........|
|000060b0| 00 00 00 00 3b 49 00 0c | 00 0a 00 03 01 00 00 09 |....;I..|........|
|000060c0| 00 00 00 00 00 00 00 00 | 3b 79 00 0c 00 0a 00 03 |........|;y......|
|000060d0| 00 00 00 09 00 00 00 00 | 00 00 00 00 3b dc 00 0c |........|....;...|
|000060e0| 00 0a 00 03 01 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 3b dd 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |;.......|........|
|00006100| 00 00 00 00 3d ce 00 0c | 00 0a 00 03 00 00 00 09 |....=...|........|
|00006110| 00 00 00 00 00 00 00 00 | 3e 80 00 0b 00 09 00 04 |........|>.......|
|00006120| 00 00 00 09 00 00 00 00 | 00 00 00 00 3e 81 00 0c |........|....>...|
|00006130| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 3f 34 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |?4......|........|
|00006150| 00 00 00 00 3f 3f 00 0c | 00 0a 00 03 00 00 00 09 |....??..|........|
|00006160| 00 00 00 00 00 00 00 00 | 3f 58 00 0b 00 09 00 04 |........|?X......|
|00006170| 00 00 00 09 00 00 00 00 | 00 00 00 00 3f 5c 00 0c |........|....?\..|
|00006180| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 40 22 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |@"......|........|
|000061a0| 00 00 00 00 40 40 00 0c | 00 0a 00 03 01 00 00 09 |....@@..|........|
|000061b0| 00 00 00 00 00 00 00 00 | 40 69 00 0c 00 0a 00 03 |........|@i......|
|000061c0| 00 00 00 09 00 00 00 00 | 00 00 00 00 40 d9 00 0b |........|....@...|
|000061d0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 41 ea 00 0c 00 0a 00 03 | 00 00 00 09 00 00 00 00 |A.......|........|
|000061f0| 00 00 00 00 42 47 00 0b | 00 09 00 04 00 00 00 09 |....BG..|........|
|00006200| 00 00 00 00 00 00 00 00 | 42 78 00 0c 00 0a 00 03 |........|Bx......|
|00006210| 00 00 00 09 00 00 00 00 | 00 00 00 00 42 f7 00 0c |........|....B...|
|00006220| 00 0a 00 03 02 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 42 f8 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |B.......|........|
|00006240| 00 00 00 00 43 1f 00 0c | 00 0a 00 03 00 00 00 09 |....C...|........|
|00006250| 00 00 00 00 00 00 00 00 | 44 bd 00 0b 00 09 00 04 |........|D.......|
|00006260| 00 00 00 09 00 00 00 00 | 00 00 00 00 44 f5 00 0c |........|....D...|
|00006270| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006280| 45 5b 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |E[......|........|
|00006290| 00 00 00 00 45 91 00 0c | 00 0a 00 03 00 00 00 09 |....E...|........|
|000062a0| 00 00 00 00 00 00 00 00 | 46 4d 00 0b 00 09 00 04 |........|FM......|
|000062b0| 00 00 00 09 00 00 00 00 | 00 00 00 00 46 fc 00 0c |........|....F...|
|000062c0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 46 fd 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |F.......|........|
|000062e0| 00 00 00 00 47 1a 00 0c | 00 0a 00 03 00 00 00 09 |....G...|........|
|000062f0| 00 00 00 00 00 00 00 00 | 47 af 00 0b 00 09 00 04 |........|G.......|
|00006300| 00 00 00 09 00 00 00 00 | 00 00 00 00 49 09 00 0c |........|....I...|
|00006310| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 49 0b 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |I.......|........|
|00006330| 00 00 00 00 49 2c 00 0c | 00 0a 00 03 00 00 00 09 |....I,..|........|
|00006340| 00 00 00 00 00 00 00 00 | 49 ec 00 0b 00 09 00 04 |........|I.......|
|00006350| 00 00 00 09 00 00 00 00 | 00 00 00 00 4a 13 00 0c |........|....J...|
|00006360| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 4a 14 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |J.......|........|
|00006380| 00 00 00 00 4a 30 00 0c | 00 0a 00 03 00 00 00 09 |....J0..|........|
|00006390| 00 00 00 00 00 00 00 00 | 4a 31 00 0b 00 09 00 04 |........|J1......|
|000063a0| 00 00 00 09 00 00 00 00 | 00 00 00 00 4a 4b 00 0c |........|....JK..|
|000063b0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 4a 4c 00 0b 00 09 00 04 | 00 00 00 09 00 00 00 00 |JL......|........|
|000063d0| 00 00 00 00 4a 95 00 0c | 00 0a 00 03 00 00 00 09 |....J...|........|
|000063e0| 00 00 00 00 00 00 00 00 | 4a 96 00 0b 00 09 00 04 |........|J.......|
|000063f0| 00 00 00 09 00 00 00 00 | 00 00 00 00 4a ad 00 0c |........|....J...|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.