home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / ICPAppSource+ICprogKit / ICAppSourceKit 1.3.sit / ICAppSourceKit1.3 / ICEditPrefAppleEvents.p < prev    next >
MacBinary  |  1995-11-04  |  2.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: ICEditPrefAppleEvents.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file ICE authority data default (weak)
99% file MacBinary II, inited, Sat Nov 4 13:05:06 1995, modified Sat Nov 4 13:05:06 1995, creator 'CWIE', type ASCII, 1467 bytes "ICEditPrefAppleEvents.p" , at 0x63b 410 bytes resource default (weak)
98% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 49 43 45 64 69 74 | 50 72 65 66 41 70 70 6c |..ICEdit|PrefAppl|
|00000010| 65 45 76 65 6e 74 73 2e | 70 00 00 00 00 00 00 00 |eEvents.|p.......|
|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 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 bb 00 | 00 01 9a ac c1 5b d2 ac |........|.....[..|
|00000060| c1 5b d2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.[......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 76 db 00 00 |........|....v...|
|00000080| 75 6e 69 74 20 49 43 45 | 64 69 74 50 72 65 66 41 |unit ICE|ditPrefA|
|00000090| 70 70 6c 65 45 76 65 6e | 74 73 3b 0d 0d 69 6e 74 |ppleEven|ts;..int|
|000000a0| 65 72 66 61 63 65 0d 0d | 09 63 6f 6e 73 74 0d 09 |erface..|.const..|
|000000b0| 09 45 50 53 75 69 74 65 | 20 3d 20 27 49 43 41 70 |.EPSuite| = 'ICAp|
|000000c0| 27 3b 0d 09 09 45 50 45 | 76 65 6e 74 20 3d 20 27 |';...EPE|vent = '|
|000000d0| 49 43 41 70 27 3b 0d 7b | 20 44 69 72 65 63 74 20 |ICAp';.{| Direct |
|000000e0| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 6b 65 79 |paramete|r is key|
|000000f0| 20 7d 0d 09 09 45 50 44 | 65 73 74 69 6e 61 74 69 | }...EPD|estinati|
|00000100| 6f 6e 20 3d 20 27 64 65 | 73 74 27 3b 20 7b 20 70 |on = 'de|st'; { p|
|00000110| 61 73 73 20 74 72 75 65 | 20 69 66 20 79 6f 75 20 |ass true| if you |
|00000120| 77 61 6e 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 |want the| default|
|00000130| 20 70 72 65 66 65 72 65 | 6e 63 65 20 66 69 6c 65 | prefere|nce file|
|00000140| 2e 20 20 64 65 66 61 75 | 6c 74 73 20 74 6f 20 63 |. defau|lts to c|
|00000150| 75 72 72 65 6e 74 20 70 | 72 65 66 20 66 69 6c 65 |urrent p|ref file|
|00000160| 20 28 6f 72 20 64 65 66 | 61 75 6c 74 20 70 72 65 | (or def|ault pre|
|00000170| 66 20 66 69 6c 65 20 69 | 66 20 6e 6f 6e 65 29 20 |f file i|f none) |
|00000180| 20 7d 0d 0d 09 70 72 6f | 63 65 64 75 72 65 20 53 | }...pro|cedure S|
|00000190| 65 74 75 70 45 64 69 74 | 50 72 65 66 41 70 70 6c |etupEdit|PrefAppl|
|000001a0| 65 45 76 65 6e 74 3b 0d | 0d 69 6d 70 6c 65 6d 65 |eEvent;.|.impleme|
|000001b0| 6e 74 61 74 69 6f 6e 0d | 0d 09 75 73 65 73 0d 09 |ntation.|..uses..|
|000001c0| 09 41 70 70 6c 65 45 76 | 65 6e 74 73 2c 7b 7d 0d |.AppleEv|ents,{}.|
|000001d0| 09 09 49 43 47 6c 6f 62 | 61 6c 73 2c 20 49 43 44 |..ICGlob|als, ICD|
|000001e0| 6f 63 75 6d 65 6e 74 3b | 0d 0d 7b 24 50 55 53 48 |ocument;|..{$PUSH|
|000001f0| 7d 0d 7b 24 52 2d 7d 0d | 09 66 75 6e 63 74 69 6f |}.{$R-}.|.functio|
|00000200| 6e 20 48 61 6e 64 6c 65 | 45 64 69 74 50 72 65 66 |n Handle|EditPref|
|00000210| 41 45 20 28 76 61 72 20 | 65 76 65 6e 74 2c 20 72 |AE (var |event, r|
|00000220| 65 70 6c 79 3a 20 41 70 | 70 6c 65 45 76 65 6e 74 |eply: Ap|pleEvent|
|00000230| 3b 20 69 67 6e 6f 72 65 | 64 3a 20 6c 6f 6e 67 49 |; ignore|d: longI|
|00000240| 6e 74 29 3a 20 4f 53 45 | 72 72 3b 0d 09 09 76 61 |nt): OSE|rr;...va|
|00000250| 72 0d 09 09 09 6b 65 79 | 3a 20 53 74 72 32 35 35 |r....key|: Str255|
|00000260| 3b 0d 09 09 09 74 79 70 | 3a 20 44 65 73 63 54 79 |;....typ|: DescTy|
|00000270| 70 65 3b 0d 09 09 09 61 | 63 74 75 61 6c 53 69 7a |pe;....a|ctualSiz|
|00000280| 65 3a 20 53 69 7a 65 3b | 0d 09 09 09 66 73 3a 20 |e: Size;|....fs: |
|00000290| 46 53 53 70 65 63 3b 0d | 09 09 09 75 73 65 66 73 |FSSpec;.|...usefs|
|000002a0| 73 2c 20 75 73 65 63 75 | 72 72 65 6e 74 3a 20 62 |s, usecu|rrent: b|
|000002b0| 6f 6f 6c 65 61 6e 3b 0d | 09 09 09 65 72 72 3a 20 |oolean;.|...err: |
|000002c0| 4f 53 45 72 72 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |OSErr;..|begin...|
|000002d0| 72 65 70 6c 79 20 3a 3d | 20 72 65 70 6c 79 3b 20 |reply :=| reply; |
|000002e0| 7b 20 55 6e 75 73 65 64 | 20 7d 0d 09 09 69 67 6e |{ Unused| }...ign|
|000002f0| 6f 72 65 64 20 3a 3d 20 | 69 67 6e 6f 72 65 64 3b |ored := |ignored;|
|00000300| 20 7b 20 55 6e 75 73 65 | 64 20 7d 0d 09 09 75 73 | { Unuse|d }...us|
|00000310| 65 66 73 73 20 3a 3d 20 | 74 72 75 65 3b 0d 09 09 |efss := |true;...|
|00000320| 75 73 65 63 75 72 72 65 | 6e 74 20 3a 3d 20 66 61 |usecurre|nt := fa|
|00000330| 6c 73 65 3b 0d 09 09 65 | 72 72 20 3a 3d 20 41 45 |lse;...e|rr := AE|
|00000340| 47 65 74 50 61 72 61 6d | 50 74 72 28 65 76 65 6e |GetParam|Ptr(even|
|00000350| 74 2c 20 45 50 44 65 73 | 74 69 6e 61 74 69 6f 6e |t, EPDes|tination|
|00000360| 2c 20 74 79 70 65 46 53 | 53 2c 20 74 79 70 2c 20 |, typeFS|S, typ, |
|00000370| 40 66 73 2c 20 73 69 7a | 65 6f 66 28 66 73 29 2c |@fs, siz|eof(fs),|
|00000380| 20 61 63 74 75 61 6c 53 | 69 7a 65 29 3b 0d 09 09 | actualS|ize);...|
|00000390| 69 66 20 65 72 72 20 3c | 3e 20 6e 6f 45 72 72 20 |if err <|> noErr |
|000003a0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 75 73 |then beg|in....us|
|000003b0| 65 66 73 73 20 3a 3d 20 | 66 61 6c 73 65 3b 0d 09 |efss := |false;..|
|000003c0| 09 09 75 73 65 63 75 72 | 72 65 6e 74 20 3a 3d 20 |..usecur|rent := |
|000003d0| 74 72 75 65 3b 0d 09 09 | 09 69 66 20 41 45 47 65 |true;...|.if AEGe|
|000003e0| 74 50 61 72 61 6d 50 74 | 72 28 65 76 65 6e 74 2c |tParamPt|r(event,|
|000003f0| 20 45 50 44 65 73 74 69 | 6e 61 74 69 6f 6e 2c 20 | EPDesti|nation, |
|00000400| 74 79 70 65 42 6f 6f 6c | 65 61 6e 2c 20 74 79 70 |typeBool|ean, typ|
|00000410| 2c 20 40 66 73 2c 20 73 | 69 7a 65 6f 66 28 66 73 |, @fs, s|izeof(fs|
|00000420| 29 2c 20 61 63 74 75 61 | 6c 53 69 7a 65 29 20 3d |), actua|lSize) =|
|00000430| 20 6e 6f 45 72 72 20 74 | 68 65 6e 20 62 65 67 69 | noErr t|hen begi|
|00000440| 6e 0d 09 09 09 09 75 73 | 65 63 75 72 72 65 6e 74 |n.....us|ecurrent|
|00000450| 20 3a 3d 20 66 61 6c 73 | 65 3b 0d 09 09 09 65 6e | := fals|e;....en|
|00000460| 64 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 65 72 72 20 |d;...end|;...err |
|00000470| 3a 3d 20 41 45 47 65 74 | 50 61 72 61 6d 50 74 72 |:= AEGet|ParamPtr|
|00000480| 28 65 76 65 6e 74 2c 20 | 6b 65 79 44 69 72 65 63 |(event, |keyDirec|
|00000490| 74 4f 62 6a 65 63 74 2c | 20 74 79 70 65 43 68 61 |tObject,| typeCha|
|000004a0| 72 2c 20 74 79 70 2c 20 | 40 6b 65 79 5b 31 5d 2c |r, typ, |@key[1],|
|000004b0| 20 32 35 35 2c 20 61 63 | 74 75 61 6c 53 69 7a 65 | 255, ac|tualSize|
|000004c0| 29 3b 0d 09 09 69 66 20 | 65 72 72 20 3c 3e 20 6e |);...if |err <> n|
|000004d0| 6f 45 72 72 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |oErr the|n begin.|
|000004e0| 09 09 09 61 63 74 75 61 | 6c 53 69 7a 65 20 3a 3d |...actua|lSize :=|
|000004f0| 20 30 3b 0d 09 09 65 6e | 64 3b 0d 09 09 6b 65 79 | 0;...en|d;...key|
|00000500| 5b 30 5d 20 3a 3d 20 63 | 68 72 28 61 63 74 75 61 |[0] := c|hr(actua|
|00000510| 6c 53 69 7a 65 29 3b 0d | 09 09 65 72 72 20 3a 3d |lSize);.|..err :=|
|00000520| 20 45 64 69 74 50 72 65 | 66 65 72 65 6e 63 65 28 | EditPre|ference(|
|00000530| 6b 65 79 2c 20 66 73 2c | 20 75 73 65 66 73 73 2c |key, fs,| usefss,|
|00000540| 20 75 73 65 63 75 72 72 | 65 6e 74 29 3b 0d 09 09 | usecurr|ent);...|
|00000550| 48 61 6e 64 6c 65 45 64 | 69 74 50 72 65 66 41 45 |HandleEd|itPrefAE|
|00000560| 20 3a 3d 20 65 72 72 3b | 0d 09 65 6e 64 3b 0d 7b | := err;|..end;.{|
|00000570| 24 50 4f 50 7d 0d 0d 09 | 70 72 6f 63 65 64 75 72 |$POP}...|procedur|
|00000580| 65 20 53 65 74 75 70 45 | 64 69 74 50 72 65 66 41 |e SetupE|ditPrefA|
|00000590| 70 70 6c 65 45 76 65 6e | 74 3b 0d 09 09 76 61 72 |ppleEven|t;...var|
|000005a0| 0d 09 09 09 6a 75 6e 6b | 3a 20 4f 53 45 72 72 3b |....junk|: OSErr;|
|000005b0| 0d 09 62 65 67 69 6e 0d | 09 09 69 66 20 68 61 73 |..begin.|..if has|
|000005c0| 5f 41 70 70 6c 65 45 76 | 65 6e 74 73 20 74 68 65 |_AppleEv|ents the|
|000005d0| 6e 20 62 65 67 69 6e 0d | 09 09 09 6a 75 6e 6b 20 |n begin.|...junk |
|000005e0| 3a 3d 20 41 45 49 6e 73 | 74 61 6c 6c 45 76 65 6e |:= AEIns|tallEven|
|000005f0| 74 48 61 6e 64 6c 65 72 | 28 45 50 53 75 69 74 65 |tHandler|(EPSuite|
|00000600| 2c 20 45 50 45 76 65 6e | 74 2c 20 40 48 61 6e 64 |, EPEven|t, @Hand|
|00000610| 6c 65 45 64 69 74 50 72 | 65 66 41 45 2c 20 30 2c |leEditPr|efAE, 0,|
|00000620| 20 66 61 6c 73 65 29 3b | 0d 09 09 65 6e 64 3b 0d | false);|...end;.|
|00000630| 09 65 6e 64 3b 0d 0d 65 | 6e 64 2e 00 00 00 00 00 |.end;..e|nd......|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000690| 69 6d b5 00 32 b5 1b 38 | 40 2f 2e 00 08 2f 3c 53 |im..2..8|@/.../<S|
|000006a0| 65 74 75 2f 2d db fe b5 | 03 82 b5 10 44 6e 00 0c |etu/-...|....Dn..|
|000006b0| 17 49 43 45 64 69 74 50 | 72 65 66 41 70 70 6c 65 |.ICEditP|refApple|
|000006c0| 45 76 65 6e 74 73 2e 70 | 02 00 00 00 54 45 58 54 |Events.p|....TEXT|
|000006d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 34 00 40 |..TEXTCW|IE...4.@|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 ab 61 8d 17 00 00 | 05 bb 00 00 01 9a 40 00 |...a....|......@.|
|00000700| 74 70 10 2f 00 2f 2d ff | fc 72 03 78 80 02 13 78 |tp././-.|.r.x...x|
|00000710| ff 37 50 16 04 37 80 02 | 13 70 70 00 37 30 18 05 |.7P..7..|.pp.70..|
|00000720| 37 20 02 e7 a8 37 70 0a | 84 37 00 0e 2f 28 00 84 |7 ...7p.|.7../(..|
|00000730| 2f 28 00 7c 2f 08 70 06 | 2f 00 37 00 04 e6 30 37 |/(.|/.p.|/.7...07|
|00000740| 70 0a 80 37 30 70 50 2f | 08 70 07 37 20 80 e5 e0 |p..70pP/|.p.7 ...|
|00000750| 37 70 0a 88 37 50 52 08 | 37 80 5c 0c 70 2e 2f 00 |7p..7PR.|7.\.p./.|
|00000760| 37 30 70 6c 2f 3c 53 4b | 43 6c 2f 28 00 14 4e ad |70pl/<SK|Cl/(..N.|
|00000770| 01 aa 37 00 0e 31 7c 00 | 01 00 5c 2f 3c 50 4e 62 |..7..1|.|..\/<PNb|
|00000780| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 03 | 00 02 00 57 00 0a 01 f1 |........|...W....|
|000007b0| 02 80 00 57 00 0a 01 f1 | 02 80 ac c1 24 52 00 00 |...W....|....$R..|
|000007c0| 02 74 00 00 02 74 00 00 | 00 2f 01 00 00 00 00 04 |.t...t..|./......|
|000007d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000007e0| 00 00 00 46 00 89 2c d0 | 1e 7c 00 00 00 1c 00 46 |...F..,.|.|.....F|
|000007f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000800| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000810| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+