home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-07-24 | 7.4 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Jul 24 20:27:35 1995, modified Mon Jul 24 20:27:35 1995, creator 'MPS ', type ASCII, 6768 bytes "ExternalCheckIn.c" , at 0x1af0 564 bytes resource
| default (weak)
| |
99%
| 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 45 78 74 65 72 6e | 61 6c 43 68 65 63 6b 49 |..Extern|alCheckI|
|00000010| 6e 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.c.....|........|
|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 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1a 70 00 | 00 02 34 ac 39 ea f7 ac |......p.|..4.9...|
|00000060| 39 ea f7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2d 42 00 00 |........|....-B..|
|00000080| 2f 2a 20 45 78 74 65 72 | 6e 61 6c 43 68 65 63 6b |/* Exter|nalCheck|
|00000090| 49 6e 2e 63 3a 20 45 78 | 74 65 72 6e 61 6c 20 43 |In.c: Ex|ternal C|
|000000a0| 68 65 63 6b 49 6e 20 61 | 70 70 6c 65 74 20 66 6f |heckIn a|pplet fo|
|000000b0| 72 20 50 72 6f 6a 65 63 | 74 44 72 61 67 0d 20 2a |r Projec|tDrag. *|
|000000c0| 0d 20 2a 20 41 20 73 65 | 74 20 6f 66 20 61 70 70 |. * A se|t of app|
|000000d0| 6c 65 74 73 20 66 6f 72 | 20 64 72 61 67 20 61 6e |lets for| drag an|
|000000e0| 64 20 64 72 6f 70 20 73 | 6f 75 72 63 65 20 63 6f |d drop s|ource co|
|000000f0| 6e 74 72 6f 6c 20 62 79 | 20 54 69 6d 20 4d 61 72 |ntrol by| Tim Mar|
|00000100| 6f 6e 65 79 2e 0d 20 2a | 20 53 65 65 20 64 65 76 |oney.. *| See dev|
|00000110| 65 6c 6f 70 2c 20 69 73 | 73 75 65 20 32 33 20 66 |elop, is|sue 23 f|
|00000120| 6f 72 20 64 65 74 61 69 | 6c 73 2e 0d 20 2a 0d 20 |or detai|ls.. *. |
|00000130| 2a 20 42 75 69 6c 74 20 | 6f 6e 20 44 72 6f 70 53 |* Built |on DropS|
|00000140| 68 65 6c 6c 20 62 79 20 | 4c 65 6f 6e 61 72 64 20 |hell by |Leonard |
|00000150| 52 6f 73 65 6e 74 68 6f | 6c 2c 20 53 74 65 70 68 |Rosentho|l, Steph|
|00000160| 61 6e 20 53 6f 6d 6f 67 | 79 69 2c 20 61 6e 64 20 |an Somog|yi, and |
|00000170| 4d 61 72 73 68 61 6c 6c | 20 43 6c 6f 77 2c 0d 20 |Marshall| Clow,. |
|00000180| 2a 20 61 6e 64 20 75 73 | 69 6e 67 20 74 68 65 20 |* and us|ing the |
|00000190| 4d 6f 72 65 46 69 6c 65 | 73 20 75 74 69 6c 69 74 |MoreFile|s utilit|
|000001a0| 69 65 73 20 62 79 20 4a | 69 6d 20 4c 75 74 68 65 |ies by J|im Luthe|
|000001b0| 72 2e 0d 20 2a 0d 20 2a | 20 54 68 69 73 20 73 6f |r.. *. *| This so|
|000001c0| 66 74 77 61 72 65 20 69 | 73 20 66 72 65 65 2c 20 |ftware i|s free, |
|000001d0| 62 75 74 20 64 6f 6e 27 | 74 20 6d 6f 64 69 66 79 |but don'|t modify|
|000001e0| 20 61 6e 64 20 72 65 64 | 69 73 74 72 69 62 75 74 | and red|istribut|
|000001f0| 65 20 69 74 20 77 69 74 | 68 6f 75 74 0d 20 2a 20 |e it wit|hout. * |
|00000200| 63 68 61 6e 67 69 6e 67 | 20 74 68 65 20 73 74 61 |changing| the sta|
|00000210| 74 75 73 20 77 69 6e 64 | 6f 77 20 74 6f 20 69 6e |tus wind|ow to in|
|00000220| 64 69 63 61 74 65 20 79 | 6f 75 72 20 6e 61 6d 65 |dicate y|our name|
|00000230| 20 61 6e 64 20 79 6f 75 | 72 20 63 68 61 6e 67 65 | and you|r change|
|00000240| 73 21 0d 20 2a 2f 0d 0d | 0d 23 69 6e 63 6c 75 64 |s!. */..|.#includ|
|00000250| 65 20 3c 45 72 72 6f 72 | 73 2e 68 3e 0d 23 69 6e |e <Error|s.h>.#in|
|00000260| 63 6c 75 64 65 20 3c 53 | 74 61 6e 64 61 72 64 46 |clude <S|tandardF|
|00000270| 69 6c 65 2e 68 3e 0d 0d | 23 69 6e 63 6c 75 64 65 |ile.h>..|#include|
|00000280| 20 22 44 53 55 73 65 72 | 50 72 6f 63 73 2e 68 22 | "DSUser|Procs.h"|
|00000290| 0d 23 69 6e 63 6c 75 64 | 65 20 22 53 6f 75 72 63 |.#includ|e "Sourc|
|000002a0| 65 53 65 72 76 65 72 2e | 68 22 0d 23 69 6e 63 6c |eServer.|h".#incl|
|000002b0| 75 64 65 20 22 50 44 55 | 74 69 6c 69 74 69 65 73 |ude "PDU|tilities|
|000002c0| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 50 44 |.h".#inc|lude "PD|
|000002d0| 44 69 61 6c 6f 67 73 2e | 68 22 0d 23 69 6e 63 6c |Dialogs.|h".#incl|
|000002e0| 75 64 65 20 22 43 6f 6d | 6d 65 6e 74 73 2e 68 22 |ude "Com|ments.h"|
|000002f0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 46 69 6c 65 43 |.#includ|e "FileC|
|00000300| 61 6e 63 65 6c 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |ancel.h"|.#includ|
|00000310| 65 20 22 54 61 73 6b 73 | 41 6e 64 45 72 72 6f 72 |e "Tasks|AndError|
|00000320| 73 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 46 |s.h".#in|clude "F|
|00000330| 69 6c 65 43 6f 70 79 2e | 68 22 0d 0d 0d 76 6f 69 |ileCopy.|h"...voi|
|00000340| 64 20 45 78 74 65 72 6e | 61 6c 43 68 65 63 6b 49 |d Extern|alCheckI|
|00000350| 6e 46 69 6c 65 28 46 53 | 53 70 65 63 20 2a 66 69 |nFile(FS|Spec *fi|
|00000360| 6c 65 29 3b 0d 0d 0d 2f | 2a 20 54 68 69 73 20 72 |le);.../|* This r|
|00000370| 6f 75 74 69 6e 65 20 69 | 73 20 63 61 6c 6c 65 64 |outine i|s called|
|00000380| 20 66 6f 72 20 65 61 63 | 68 20 66 69 6c 65 20 70 | for eac|h file p|
|00000390| 61 73 73 65 64 20 69 6e | 20 74 68 65 20 4f 44 4f |assed in| the ODO|
|000003a0| 43 20 65 76 65 6e 74 2e | 20 2a 2f 0d 0d 70 61 73 |C event.| */..pas|
|000003b0| 63 61 6c 20 76 6f 69 64 | 20 4f 70 65 6e 44 6f 63 |cal void| OpenDoc|
|000003c0| 20 28 20 46 53 53 70 65 | 63 50 74 72 20 6d 79 46 | ( FSSpe|cPtr myF|
|000003d0| 53 53 50 74 72 2c 20 42 | 6f 6f 6c 65 61 6e 20 6f |SSPtr, B|oolean o|
|000003e0| 70 65 6e 69 6e 67 2c 20 | 48 61 6e 64 6c 65 20 75 |pening, |Handle u|
|000003f0| 73 65 72 44 61 74 61 48 | 61 6e 64 6c 65 20 29 0d |serDataH|andle ).|
|00000400| 7b 0d 23 70 72 61 67 6d | 61 20 75 6e 75 73 65 64 |{.#pragm|a unused|
|00000410| 20 28 20 6f 70 65 6e 69 | 6e 67 20 29 0d 23 70 72 | ( openi|ng ).#pr|
|00000420| 61 67 6d 61 20 75 6e 75 | 73 65 64 20 28 20 75 73 |agma unu|sed ( us|
|00000430| 65 72 44 61 74 61 48 61 | 6e 64 6c 65 20 29 0d 0d |erDataHa|ndle )..|
|00000440| 09 45 78 74 65 72 6e 61 | 6c 43 68 65 63 6b 49 6e |.Externa|lCheckIn|
|00000450| 46 69 6c 65 28 6d 79 46 | 53 53 50 74 72 29 3b 0d |File(myF|SSPtr);.|
|00000460| 7d 0d 0d 0d 0d 2f 2a 20 | 66 69 6c 74 65 72 20 66 |}..../* |filter f|
|00000470| 69 6c 65 73 20 62 61 73 | 65 64 20 6f 6e 20 28 66 |iles bas|ed on (f|
|00000480| 69 6c 65 20 4e 4f 54 20 | 6f 72 69 67 69 6e 61 6c |ile NOT |original|
|00000490| 29 20 41 4e 44 20 28 66 | 69 6c 65 2e 6e 61 6d 65 |) AND (f|ile.name|
|000004a0| 20 49 53 20 6f 72 69 67 | 69 6e 61 6c 2e 6e 61 6d | IS orig|inal.nam|
|000004b0| 65 29 20 2a 2f 0d 0d 70 | 61 73 63 61 6c 20 42 6f |e) */..p|ascal Bo|
|000004c0| 6f 6c 65 61 6e 20 46 69 | 6e 64 54 61 72 67 65 74 |olean Fi|ndTarget|
|000004d0| 46 69 6c 65 46 69 6c 74 | 65 72 28 43 49 6e 66 6f |FileFilt|er(CInfo|
|000004e0| 50 42 50 74 72 20 70 62 | 2c 20 50 74 72 20 6d 79 |PBPtr pb|, Ptr my|
|000004f0| 44 61 74 61 50 74 72 29 | 0d 7b 0d 09 46 53 53 70 |DataPtr)|.{..FSSp|
|00000500| 65 63 50 74 72 20 74 68 | 65 46 69 6c 65 20 3d 20 |ecPtr th|eFile = |
|00000510| 28 46 53 53 70 65 63 50 | 74 72 29 6d 79 44 61 74 |(FSSpecP|tr)myDat|
|00000520| 61 50 74 72 3b 0d 09 42 | 6f 6f 6c 65 61 6e 20 64 |aPtr;..B|oolean d|
|00000530| 69 73 70 6c 61 79 20 3d | 20 66 61 6c 73 65 3b 0d |isplay =| false;.|
|00000540| 09 2f 2a 20 58 58 58 20 | 6d 61 6b 65 20 73 75 72 |./* XXX |make sur|
|00000550| 65 20 69 74 20 68 61 73 | 20 61 20 43 4b 49 44 20 |e it has| a CKID |
|00000560| 2a 2f 0d 09 69 66 20 28 | 70 62 2d 3e 68 46 69 6c |*/..if (|pb->hFil|
|00000570| 65 49 6e 66 6f 2e 69 6f | 56 52 65 66 4e 75 6d 20 |eInfo.io|VRefNum |
|00000580| 21 3d 20 74 68 65 46 69 | 6c 65 2d 3e 76 52 65 66 |!= theFi|le->vRef|
|00000590| 4e 75 6d 0d 09 09 7c 7c | 20 70 62 2d 3e 68 46 69 |Num...||| pb->hFi|
|000005a0| 6c 65 49 6e 66 6f 2e 69 | 6f 46 6c 50 61 72 49 44 |leInfo.i|oFlParID|
|000005b0| 20 21 3d 20 74 68 65 46 | 69 6c 65 2d 3e 70 61 72 | != theF|ile->par|
|000005c0| 49 44 29 0d 09 09 64 69 | 73 70 6c 61 79 20 3d 20 |ID)...di|splay = |
|000005d0| 45 71 75 61 6c 53 74 72 | 69 6e 67 28 74 68 65 46 |EqualStr|ing(theF|
|000005e0| 69 6c 65 2d 3e 6e 61 6d | 65 2c 20 70 62 2d 3e 68 |ile->nam|e, pb->h|
|000005f0| 46 69 6c 65 49 6e 66 6f | 2e 69 6f 4e 61 6d 65 50 |FileInfo|.ioNameP|
|00000600| 74 72 2c 20 66 61 6c 73 | 65 2c 20 66 61 6c 73 65 |tr, fals|e, false|
|00000610| 29 3b 0d 09 72 65 74 75 | 72 6e 20 21 64 69 73 70 |);..retu|rn !disp|
|00000620| 6c 61 79 3b 0d 7d 0d 0d | 0d 76 6f 69 64 20 45 78 |lay;.}..|.void Ex|
|00000630| 74 65 72 6e 61 6c 43 68 | 65 63 6b 49 6e 46 69 6c |ternalCh|eckInFil|
|00000640| 65 28 46 53 53 70 65 63 | 20 2a 66 69 6c 65 29 0d |e(FSSpec| *file).|
|00000650| 7b 0d 09 53 74 72 36 33 | 20 75 73 65 72 4e 61 6d |{..Str63| userNam|
|00000660| 65 3b 0d 09 53 74 72 31 | 35 20 6e 69 63 6b 6e 61 |e;..Str1|5 nickna|
|00000670| 6d 65 3b 0d 09 53 74 72 | 32 35 35 20 63 6f 6d 6d |me;..Str|255 comm|
|00000680| 65 6e 74 3b 0d 09 41 45 | 44 65 73 63 20 63 6f 6d |ent;..AE|Desc com|
|00000690| 6d 61 6e 64 3b 0d 09 53 | 74 72 32 35 35 20 70 72 |mand;..S|tr255 pr|
|000006a0| 6f 6a 65 63 74 4e 61 6d | 65 3b 0d 09 4f 53 45 72 |ojectNam|e;..OSEr|
|000006b0| 72 20 65 72 72 3b 0d 09 | 43 4b 49 44 48 61 6e 64 |r err;..|CKIDHand|
|000006c0| 6c 65 20 74 68 65 43 4b | 49 44 3b 0d 09 46 53 53 |le theCK|ID;..FSS|
|000006d0| 70 65 63 20 74 61 72 67 | 65 74 46 69 6c 65 3b 0d |pec targ|etFile;.|
|000006e0| 09 46 53 53 70 65 63 20 | 74 61 72 67 65 74 46 6f |.FSSpec |targetFo|
|000006f0| 6c 64 65 72 3b 0d 09 09 | 0d 09 54 61 73 6b 53 74 |lder;...|..TaskSt|
|00000700| 61 72 74 28 32 30 30 31 | 2c 20 31 2c 20 66 69 6c |art(2001|, 1, fil|
|00000710| 65 2d 3e 6e 61 6d 65 2c | 20 4e 55 4c 4c 2c 20 4e |e->name,| NULL, N|
|00000720| 55 4c 4c 2c 20 4e 55 4c | 4c 29 3b 20 2f 2a 20 63 |ULL, NUL|L); /* c|
|00000730| 68 65 63 6b 69 6e 67 20 | 69 6e 20 2a 2f 0d 09 0d |hecking |in */...|
|00000740| 09 2f 2a 20 66 69 6e 64 | 20 74 68 65 20 75 73 65 |./* find| the use|
|00000750| 72 20 6e 61 6d 65 20 61 | 6e 64 20 69 6e 69 74 69 |r name a|nd initi|
|00000760| 61 6c 73 20 2a 2f 0d 09 | 65 72 72 20 3d 20 47 65 |als */..|err = Ge|
|00000770| 74 55 73 65 72 53 65 74 | 74 69 6e 67 73 28 75 73 |tUserSet|tings(us|
|00000780| 65 72 4e 61 6d 65 2c 20 | 6e 69 63 6b 6e 61 6d 65 |erName, |nickname|
|00000790| 2c 20 66 61 6c 73 65 29 | 3b 0d 09 69 66 20 28 65 |, false)|;..if (e|
|000007a0| 72 72 20 21 3d 20 6e 6f | 45 72 72 29 0d 09 7b 0d |rr != no|Err)..{.|
|000007b0| 09 09 67 44 6f 6e 65 20 | 3d 20 74 72 75 65 3b 0d |..gDone |= true;.|
|000007c0| 09 09 72 65 74 75 72 6e | 3b 0d 09 7d 0d 09 0d 09 |..return|;..}....|
|000007d0| 2f 2a 20 67 65 74 20 74 | 68 65 20 74 61 72 67 65 |/* get t|he targe|
|000007e0| 74 20 66 69 6c 65 20 77 | 69 74 68 20 53 74 61 6e |t file w|ith Stan|
|000007f0| 64 61 72 64 20 46 69 6c | 65 20 2a 2f 0d 09 7b 0d |dard Fil|e */..{.|
|00000800| 09 09 53 74 61 6e 64 61 | 72 64 46 69 6c 65 52 65 |..Standa|rdFileRe|
|00000810| 70 6c 79 20 72 65 70 6c | 79 3b 0d 09 09 53 74 72 |ply repl|y;...Str|
|00000820| 32 35 35 20 70 72 6f 6d | 70 74 3b 0d 09 09 50 6f |255 prom|pt;...Po|
|00000830| 69 6e 74 20 77 68 65 72 | 65 3b 0d 09 09 4f 53 45 |int wher|e;...OSE|
|00000840| 72 72 20 65 72 72 3b 0d | 09 09 46 49 6e 66 6f 20 |rr err;.|..FInfo |
|00000850| 69 6e 66 6f 3b 0d 09 09 | 0d 09 09 2f 2a 20 6d 75 |info;...|.../* mu|
|00000860| 73 74 20 62 65 20 74 68 | 65 20 73 61 6d 65 20 74 |st be th|e same t|
|00000870| 79 70 65 20 2a 2f 0d 09 | 09 65 72 72 20 3d 20 46 |ype */..|.err = F|
|00000880| 53 70 47 65 74 46 49 6e | 66 6f 28 66 69 6c 65 2c |SpGetFIn|fo(file,|
|00000890| 20 26 69 6e 66 6f 29 3b | 0d 09 09 69 66 20 28 65 | &info);|...if (e|
|000008a0| 72 72 20 21 3d 20 6e 6f | 45 72 72 29 0d 09 09 7b |rr != no|Err)...{|
|000008b0| 0d 09 09 09 52 61 69 73 | 65 45 72 72 6f 72 4e 75 |....Rais|eErrorNu|
|000008c0| 6d 62 65 72 28 65 72 72 | 29 3b 0d 09 09 09 72 65 |mber(err|);....re|
|000008d0| 74 75 72 6e 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 53 |turn;...|}......S|
|000008e0| 65 74 50 74 28 26 77 68 | 65 72 65 2c 20 2d 31 2c |etPt(&wh|ere, -1,|
|000008f0| 20 2d 31 29 3b 0d 09 09 | 52 65 70 6c 61 63 65 49 | -1);...|ReplaceI|
|00000900| 6e 49 6e 64 53 74 72 69 | 6e 67 28 70 72 6f 6d 70 |nIndStri|ng(promp|
|00000910| 74 2c 20 32 30 30 32 2c | 20 31 2c 20 66 69 6c 65 |t, 2002,| 1, file|
|00000920| 2d 3e 6e 61 6d 65 2c 20 | 4e 55 4c 4c 2c 20 4e 55 |->name, |NULL, NU|
|00000930| 4c 4c 2c 20 4e 55 4c 4c | 29 3b 0d 09 09 50 61 72 |LL, NULL|);...Par|
|00000940| 61 6d 54 65 78 74 28 70 | 72 6f 6d 70 74 2c 20 4e |amText(p|rompt, N|
|00000950| 55 4c 4c 2c 20 4e 55 4c | 4c 2c 20 4e 55 4c 4c 29 |ULL, NUL|L, NULL)|
|00000960| 3b 0d 09 09 43 75 73 74 | 6f 6d 47 65 74 46 69 6c |;...Cust|omGetFil|
|00000970| 65 20 28 46 69 6e 64 54 | 61 72 67 65 74 46 69 6c |e (FindT|argetFil|
|00000980| 65 46 69 6c 74 65 72 2c | 20 31 2c 20 26 69 6e 66 |eFilter,| 1, &inf|
|00000990| 6f 2e 66 64 54 79 70 65 | 2c 20 26 72 65 70 6c 79 |o.fdType|, &reply|
|000009a0| 2c 20 6b 53 65 6c 65 63 | 74 57 69 74 68 50 72 6f |, kSelec|tWithPro|
|000009b0| 6d 70 74 44 69 61 6c 6f | 67 2c 20 77 68 65 72 65 |mptDialo|g, where|
|000009c0| 2c 0d 09 09 09 09 09 09 | 4e 55 4c 4c 2c 20 4e 55 |,.......|NULL, NU|
|000009d0| 4c 4c 2c 20 4e 55 4c 4c | 2c 20 4e 55 4c 4c 2c 20 |LL, NULL|, NULL, |
|000009e0| 28 50 74 72 29 66 69 6c | 65 29 3b 0d 09 09 69 66 |(Ptr)fil|e);...if|
|000009f0| 20 28 21 72 65 70 6c 79 | 2e 73 66 47 6f 6f 64 29 | (!reply|.sfGood)|
|00000a00| 0d 09 09 7b 0d 09 09 09 | 52 61 69 73 65 45 72 72 |...{....|RaiseErr|
|00000a10| 6f 72 4e 75 6d 62 65 72 | 28 75 73 65 72 43 61 6e |orNumber|(userCan|
|00000a20| 63 65 6c 65 64 45 72 72 | 29 3b 0d 09 09 09 72 65 |celedErr|);....re|
|00000a30| 74 75 72 6e 3b 0d 09 09 | 7d 0d 09 09 74 61 72 67 |turn;...|}...targ|
|00000a40| 65 74 46 69 6c 65 20 3d | 20 72 65 70 6c 79 2e 73 |etFile =| reply.s|
|00000a50| 66 46 69 6c 65 3b 0d 09 | 7d 0d 0d 09 2f 2a 20 67 |fFile;..|}.../* g|
|00000a60| 65 74 20 74 68 65 20 43 | 4b 49 44 20 2a 2f 0d 09 |et the C|KID */..|
|00000a70| 65 72 72 20 3d 20 45 78 | 74 72 61 63 74 43 4b 49 |err = Ex|tractCKI|
|00000a80| 44 28 26 74 61 72 67 65 | 74 46 69 6c 65 2c 20 26 |D(&targe|tFile, &|
|00000a90| 74 68 65 43 4b 49 44 29 | 3b 0d 09 69 66 20 28 65 |theCKID)|;..if (e|
|00000aa0| 72 72 20 21 3d 20 6e 6f | 45 72 72 29 0d 09 7b 0d |rr != no|Err)..{.|
|00000ab0| 09 09 52 61 69 73 65 45 | 72 72 6f 72 4e 75 6d 62 |..RaiseE|rrorNumb|
|00000ac0| 65 72 28 65 72 72 29 3b | 0d 09 09 72 65 74 75 72 |er(err);|...retur|
|00000ad0| 6e 3b 0d 09 7d 0d 09 0d | 09 2f 2a 20 6d 6f 75 6e |n;..}...|./* moun|
|00000ae0| 74 20 74 68 65 20 70 72 | 6f 6a 65 63 74 20 2a 2f |t the pr|oject */|
|00000af0| 0d 09 65 72 72 20 3d 20 | 4d 6f 75 6e 74 50 72 6f |..err = |MountPro|
|00000b00| 6a 65 63 74 46 72 6f 6d | 43 4b 49 44 28 74 68 65 |jectFrom|CKID(the|
|00000b10| 43 4b 49 44 2c 20 70 72 | 6f 6a 65 63 74 4e 61 6d |CKID, pr|ojectNam|
|00000b20| 65 29 3b 0d 09 69 66 20 | 28 65 72 72 20 21 3d 20 |e);..if |(err != |
|00000b30| 6e 6f 45 72 72 29 0d 09 | 7b 0d 09 09 44 69 73 70 |noErr)..|{...Disp|
|00000b40| 6f 73 65 48 61 6e 64 6c | 65 28 28 48 61 6e 64 6c |oseHandl|e((Handl|
|00000b50| 65 29 74 68 65 43 4b 49 | 44 29 3b 0d 09 09 72 65 |e)theCKI|D);...re|
|00000b60| 74 75 72 6e 3b 0d 09 7d | 0d 0d 09 2f 2a 20 4d 61 |turn;..}|.../* Ma|
|00000b70| 6b 65 20 73 75 72 65 20 | 74 68 65 20 66 69 6c 65 |ke sure |the file|
|00000b80| 20 69 73 20 77 72 69 74 | 65 61 62 6c 65 2e 20 2a | is writ|eable. *|
|00000b90| 2f 0d 09 69 66 20 28 21 | 28 2a 74 68 65 43 4b 49 |/..if (!|(*theCKI|
|00000ba0| 44 29 2d 3e 77 72 69 74 | 65 61 62 6c 65 20 26 26 |D)->writ|eable &&|
|00000bb0| 20 21 28 2a 74 68 65 43 | 4b 49 44 29 2d 3e 6d 6f | !(*theC|KID)->mo|
|00000bc0| 64 69 66 79 52 65 61 64 | 4f 6e 6c 79 29 0d 09 7b |difyRead|Only)..{|
|00000bd0| 0d 09 09 2f 2a 20 63 68 | 65 63 6b 20 6f 75 74 20 |.../* ch|eck out |
|00000be0| 74 68 65 20 66 69 6c 65 | 20 2a 2f 0d 09 09 54 61 |the file| */...Ta|
|00000bf0| 73 6b 53 74 61 72 74 28 | 32 30 30 31 2c 20 32 2c |skStart(|2001, 2,|
|00000c00| 20 66 69 6c 65 2d 3e 6e | 61 6d 65 2c 20 4e 55 4c | file->n|ame, NUL|
|00000c10| 4c 2c 20 4e 55 4c 4c 2c | 20 4e 55 4c 4c 29 3b 20 |L, NULL,| NULL); |
|00000c20| 2f 2a 20 63 68 65 63 6b | 69 6e 67 20 6f 75 74 20 |/* check|ing out |
|00000c30| 2a 2f 0d 09 0d 09 09 2f | 2a 20 63 72 65 61 74 65 |*/...../|* create|
|00000c40| 20 61 20 43 68 65 63 6b | 4f 75 74 20 2d 6d 20 63 | a Check|Out -m c|
|00000c50| 6f 6d 6d 61 6e 64 20 66 | 6f 72 20 53 6f 75 72 63 |ommand f|or Sourc|
|00000c60| 65 53 65 72 76 65 72 0d | 09 09 20 2a 20 43 68 65 |eServer.|.. * Che|
|00000c70| 63 6b 4f 75 74 20 2d 6d | 20 2d 63 73 20 3c 63 6f |ckOut -m| -cs <co|
|00000c80| 6d 6d 65 6e 74 3e 20 2d | 64 20 3c 64 69 72 3e 20 |mment> -|d <dir> |
|00000c90| 2d 70 72 6f 6a 65 63 74 | 20 3c 70 72 6f 6a 65 63 |-project| <projec|
|00000ca0| 74 3e 20 2d 75 20 3c 75 | 73 65 72 3e 20 3c 66 69 |t> -u <u|ser> <fi|
|00000cb0| 6c 65 3e 0d 09 09 20 2a | 2f 0d 09 09 65 72 72 20 |le>... *|/...err |
|00000cc0| 3d 20 43 72 65 61 74 65 | 43 6f 6d 6d 61 6e 64 28 |= Create|Command(|
|00000cd0| 26 63 6f 6d 6d 61 6e 64 | 2c 20 22 43 68 65 63 6b |&command|, "Check|
|00000ce0| 4f 75 74 22 29 3b 0d 09 | 09 69 66 20 28 65 72 72 |Out");..|.if (err|
|00000cf0| 20 3d 3d 20 6e 6f 45 72 | 72 29 0d 09 09 09 65 72 | == noEr|r)....er|
|00000d00| 72 20 3d 20 41 64 64 43 | 53 74 72 69 6e 67 41 72 |r = AddC|StringAr|
|00000d10| 67 28 26 63 6f 6d 6d 61 | 6e 64 2c 20 22 2d 6d 22 |g(&comma|nd, "-m"|
|00000d20| 29 3b 0d 09 09 69 66 20 | 28 65 72 72 20 3d 3d 20 |);...if |(err == |
|00000d30| 6e 6f 45 72 72 29 0d 09 | 09 09 65 72 72 20 3d 20 |noErr)..|..err = |
|00000d40| 41 64 64 43 6f 6d 6d 65 | 6e 74 41 72 67 28 26 63 |AddComme|ntArg(&c|
|00000d50| 6f 6d 6d 61 6e 64 2c 20 | 63 6f 6d 6d 65 6e 74 29 |ommand, |comment)|
|00000d60| 3b 0d 09 09 69 66 20 28 | 65 72 72 20 3d 3d 20 6e |;...if (|err == n|
|00000d70| 6f 45 72 72 29 0d 09 09 | 09 65 72 72 20 3d 20 41 |oErr)...|.err = A|
|00000d80| 64 64 44 69 72 41 72 67 | 28 26 63 6f 6d 6d 61 6e |ddDirArg|(&comman|
|00000d90| 64 2c 20 74 61 72 67 65 | 74 46 69 6c 65 2e 76 52 |d, targe|tFile.vR|
|00000da0| 65 66 4e 75 6d 2c 20 74 | 61 72 67 65 74 46 69 6c |efNum, t|argetFil|
|00000db0| 65 2e 70 61 72 49 44 29 | 3b 0d 09 09 69 66 20 28 |e.parID)|;...if (|
|00000dc0| 65 72 72 20 3d 3d 20 6e | 6f 45 72 72 29 0d 09 09 |err == n|oErr)...|
|00000dd0| 09 65 72 72 20 3d 20 41 | 64 64 50 72 6f 6a 65 63 |.err = A|ddProjec|
|00000de0| 74 41 72 67 28 26 63 6f | 6d 6d 61 6e 64 2c 20 70 |tArg(&co|mmand, p|
|00000df0| 72 6f 6a 65 63 74 4e 61 | 6d 65 29 3b 0d 09 09 69 |rojectNa|me);...i|
|00000e00| 66 20 28 65 72 72 20 3d | 3d 20 6e 6f 45 72 72 29 |f (err =|= noErr)|
|00000e10| 0d 09 09 09 65 72 72 20 | 3d 20 41 64 64 55 73 65 |....err |= AddUse|
|00000e20| 72 41 72 67 28 26 63 6f | 6d 6d 61 6e 64 2c 20 75 |rArg(&co|mmand, u|
|00000e30| 73 65 72 4e 61 6d 65 29 | 3b 0d 09 09 69 66 20 28 |serName)|;...if (|
|00000e40| 65 72 72 20 3d 3d 20 6e | 6f 45 72 72 29 0d 09 09 |err == n|oErr)...|
|00000e50| 09 65 72 72 20 3d 20 41 | 64 64 50 53 74 72 69 6e |.err = A|ddPStrin|
|00000e60| 67 41 72 67 28 26 63 6f | 6d 6d 61 6e 64 2c 20 74 |gArg(&co|mmand, t|
|00000e70| 61 72 67 65 74 46 69 6c | 65 2e 6e 61 6d 65 29 3b |argetFil|e.name);|
|00000e80| 0d 09 09 69 66 20 28 65 | 72 72 20 21 3d 20 6e 6f |...if (e|rr != no|
|00000e90| 45 72 72 29 0d 09 09 7b | 0d 09 09 09 41 45 44 69 |Err)...{|....AEDi|
|00000ea0| 73 70 6f 73 65 44 65 73 | 63 28 26 63 6f 6d 6d 61 |sposeDes|c(&comma|
|00000eb0| 6e 64 29 3b 0d 09 09 09 | 52 61 69 73 65 45 72 72 |nd);....|RaiseErr|
|00000ec0| 6f 72 4e 75 6d 62 65 72 | 28 65 72 72 29 3b 0d 09 |orNumber|(err);..|
|00000ed0| 09 09 72 65 74 75 72 6e | 3b 0d 09 09 7d 0d 09 09 |..return|;...}...|
|00000ee0| 0d 09 09 65 72 72 20 3d | 20 53 65 6e 64 43 6f 6d |...err =| SendCom|
|00000ef0| 6d 61 6e 64 28 26 63 6f | 6d 6d 61 6e 64 29 3b 09 |mand(&co|mmand);.|
|00000f00| 09 2f 2a 20 73 65 6e 64 | 20 74 68 65 20 63 6f 6d |./* send| the com|
|00000f10| 6d 61 6e 64 20 74 6f 20 | 53 6f 75 72 63 65 53 65 |mand to |SourceSe|
|00000f20| 72 76 65 72 20 2a 2f 0d | 09 09 69 66 20 28 65 72 |rver */.|..if (er|
|00000f30| 72 20 21 3d 20 6e 6f 45 | 72 72 29 20 72 65 74 75 |r != noE|rr) retu|
|00000f40| 72 6e 3b 0d 09 09 54 61 | 73 6b 44 6f 6e 65 28 29 |rn;...Ta|skDone()|
|00000f50| 3b 0d 09 09 0d 09 09 2f | 2a 20 72 65 66 65 74 63 |;....../|* refetc|
|00000f60| 68 20 74 68 65 20 43 4b | 49 44 20 2a 2f 0d 09 09 |h the CK|ID */...|
|00000f70| 44 69 73 70 6f 73 65 48 | 61 6e 64 6c 65 28 28 48 |DisposeH|andle((H|
|00000f80| 61 6e 64 6c 65 29 74 68 | 65 43 4b 49 44 29 3b 0d |andle)th|eCKID);.|
|00000f90| 09 09 74 68 65 43 4b 49 | 44 20 3d 20 4e 55 4c 4c |..theCKI|D = NULL|
|00000fa0| 3b 0d 09 09 65 72 72 20 | 3d 20 45 78 74 72 61 63 |;...err |= Extrac|
|00000fb0| 74 43 4b 49 44 28 26 74 | 61 72 67 65 74 46 69 6c |tCKID(&t|argetFil|
|00000fc0| 65 2c 20 26 74 68 65 43 | 4b 49 44 29 3b 0d 09 09 |e, &theC|KID);...|
|00000fd0| 69 66 20 28 65 72 72 20 | 21 3d 20 6e 6f 45 72 72 |if (err |!= noErr|
|00000fe0| 29 0d 09 09 7b 0d 09 09 | 09 52 61 69 73 65 45 72 |)...{...|.RaiseEr|
|00000ff0| 72 6f 72 4e 75 6d 62 65 | 72 28 65 72 72 29 3b 0d |rorNumbe|r(err);.|
|00001000| 09 09 09 72 65 74 75 72 | 6e 3b 0d 09 09 7d 0d 09 |...retur|n;...}..|
|00001010| 7d 0d 09 65 6c 73 65 0d | 09 7b 0d 09 09 2f 2a 20 |}..else.|.{.../* |
|00001020| 58 58 58 20 2d 2d 20 61 | 73 6b 20 61 62 6f 75 74 |XXX -- a|sk about|
|00001030| 20 64 69 73 63 61 72 64 | 69 6e 67 20 63 68 61 6e | discard|ing chan|
|00001040| 67 65 73 20 2a 2f 0d 09 | 7d 0d 09 0d 09 2f 2a 20 |ges */..|}..../* |
|00001050| 63 6f 70 79 20 6f 72 20 | 6d 6f 76 65 20 74 68 65 |copy or |move the|
|00001060| 20 65 78 74 65 72 6e 61 | 6c 20 66 69 6c 65 20 69 | externa|l file i|
|00001070| 6e 20 70 6c 61 63 65 20 | 6f 66 20 74 68 65 20 74 |n place |of the t|
|00001080| 61 72 67 65 74 20 2a 2f | 0d 09 54 61 73 6b 53 74 |arget */|..TaskSt|
|00001090| 61 72 74 28 32 30 30 31 | 2c 20 33 2c 20 66 69 6c |art(2001|, 3, fil|
|000010a0| 65 2d 3e 6e 61 6d 65 2c | 20 4e 55 4c 4c 2c 20 4e |e->name,| NULL, N|
|000010b0| 55 4c 4c 2c 20 4e 55 4c | 4c 29 3b 20 2f 2a 20 63 |ULL, NUL|L); /* c|
|000010c0| 6f 70 79 69 6e 67 20 2a | 2f 0d 09 0d 09 2f 2a 20 |opying *|/..../* |
|000010d0| 58 58 58 20 6d 6f 76 65 | 20 74 68 65 20 66 69 6c |XXX move| the fil|
|000010e0| 65 20 74 6f 20 74 68 65 | 20 74 72 61 73 68 20 69 |e to the| trash i|
|000010f0| 6e 73 74 65 61 64 20 6f | 66 20 64 65 6c 65 74 69 |nstead o|f deleti|
|00001100| 6e 67 20 69 74 2c 20 61 | 6e 64 20 72 65 73 74 6f |ng it, a|nd resto|
|00001110| 72 65 20 69 74 0d 09 20 | 2a 20 74 6f 20 69 74 73 |re it.. |* to its|
|00001120| 20 70 6c 61 63 65 20 6f | 6e 20 65 72 72 6f 72 2e | place o|n error.|
|00001130| 2e 2e 0d 09 20 2a 2f 0d | 09 65 72 72 20 3d 20 46 |.... */.|.err = F|
|00001140| 53 70 44 65 6c 65 74 65 | 28 26 74 61 72 67 65 74 |SpDelete|(&target|
|00001150| 46 69 6c 65 29 3b 0d 09 | 69 66 20 28 65 72 72 20 |File);..|if (err |
|00001160| 21 3d 20 6e 6f 45 72 72 | 29 20 67 6f 74 6f 20 43 |!= noErr|) goto C|
|00001170| 61 6e 63 65 6c 43 68 65 | 63 6b 6f 75 74 3b 0d 09 |ancelChe|ckout;..|
|00001180| 0d 09 74 61 72 67 65 74 | 46 6f 6c 64 65 72 20 3d |..target|Folder =|
|00001190| 20 74 61 72 67 65 74 46 | 69 6c 65 3b 0d 09 74 61 | targetF|ile;..ta|
|000011a0| 72 67 65 74 46 6f 6c 64 | 65 72 2e 6e 61 6d 65 5b |rgetFold|er.name[|
|000011b0| 30 5d 20 3d 20 30 3b 0d | 09 65 72 72 20 3d 20 46 |0] = 0;.|.err = F|
|000011c0| 53 70 46 69 6c 65 43 6f | 70 79 28 66 69 6c 65 2c |SpFileCo|py(file,|
|000011d0| 20 26 74 61 72 67 65 74 | 46 6f 6c 64 65 72 2c 20 | &target|Folder, |
|000011e0| 4e 55 4c 4c 2c 20 4e 55 | 4c 4c 2c 20 30 2c 20 74 |NULL, NU|LL, 0, t|
|000011f0| 72 75 65 29 3b 0d 09 69 | 66 20 28 65 72 72 20 21 |rue);..i|f (err !|
|00001200| 3d 20 6e 6f 45 72 72 29 | 20 67 6f 74 6f 20 43 61 |= noErr)| goto Ca|
|00001210| 6e 63 65 6c 43 68 65 63 | 6b 6f 75 74 3b 0d 09 54 |ncelChec|kout;..T|
|00001220| 61 73 6b 44 6f 6e 65 28 | 29 3b 0d 09 0d 09 2f 2a |askDone(|);..../*|
|00001230| 20 74 72 61 6e 73 66 65 | 72 20 74 68 65 20 43 4b | transfe|r the CK|
|00001240| 49 44 20 69 6e 74 6f 20 | 74 68 65 20 28 6e 65 77 |ID into |the (new|
|00001250| 29 20 74 61 72 67 65 74 | 20 66 69 6c 65 20 2a 2f |) target| file */|
|00001260| 0d 09 7b 0d 09 09 2f 2a | 20 6f 70 65 6e 20 74 68 |..{.../*| open th|
|00001270| 65 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 20 |e resour|ce file |
|00001280| 2a 2f 0d 09 09 43 4b 49 | 44 48 61 6e 64 6c 65 20 |*/...CKI|DHandle |
|00001290| 6f 74 68 65 72 43 4b 49 | 44 3b 0d 09 09 73 68 6f |otherCKI|D;...sho|
|000012a0| 72 74 20 72 65 66 4e 75 | 6d 20 3d 20 46 53 70 4f |rt refNu|m = FSpO|
|000012b0| 70 65 6e 52 65 73 46 69 | 6c 65 28 26 74 61 72 67 |penResFi|le(&targ|
|000012c0| 65 74 46 69 6c 65 2c 20 | 66 73 52 64 57 72 50 65 |etFile, |fsRdWrPe|
|000012d0| 72 6d 29 3b 0d 09 09 69 | 66 20 28 72 65 66 4e 75 |rm);...i|f (refNu|
|000012e0| 6d 20 3c 20 30 29 20 67 | 6f 74 6f 20 43 61 6e 63 |m < 0) g|oto Canc|
|000012f0| 65 6c 43 68 65 63 6b 6f | 75 74 3b 0d 09 09 0d 09 |elChecko|ut;.....|
|00001300| 09 2f 2a 20 67 65 74 20 | 74 68 65 20 43 4b 49 44 |./* get |the CKID|
|00001310| 20 66 72 6f 6d 20 69 74 | 20 61 6e 64 20 64 65 6c | from it| and del|
|00001320| 65 74 65 20 69 74 20 28 | 69 66 20 61 6e 79 29 20 |ete it (|if any) |
|00001330| 2a 2f 0d 09 09 6f 74 68 | 65 72 43 4b 49 44 20 3d |*/...oth|erCKID =|
|00001340| 20 28 43 4b 49 44 48 61 | 6e 64 6c 65 29 20 47 65 | (CKIDHa|ndle) Ge|
|00001350| 74 31 49 6e 64 52 65 73 | 6f 75 72 63 65 28 27 63 |t1IndRes|ource('c|
|00001360| 6b 69 64 27 2c 20 31 29 | 3b 0d 09 09 69 66 20 28 |kid', 1)|;...if (|
|00001370| 6f 74 68 65 72 43 4b 49 | 44 20 21 3d 20 4e 55 4c |otherCKI|D != NUL|
|00001380| 4c 29 0d 09 09 09 52 65 | 6d 6f 76 65 52 65 73 6f |L)....Re|moveReso|
|00001390| 75 72 63 65 28 28 48 61 | 6e 64 6c 65 29 6f 74 68 |urce((Ha|ndle)oth|
|000013a0| 65 72 43 4b 49 44 29 3b | 0d 09 09 0d 09 09 2f 2a |erCKID);|....../*|
|000013b0| 20 61 64 64 20 74 68 65 | 20 43 4b 49 44 20 2a 2f | add the| CKID */|
|000013c0| 0d 09 09 6f 74 68 65 72 | 43 4b 49 44 20 3d 20 74 |...other|CKID = t|
|000013d0| 68 65 43 4b 49 44 3b 0d | 09 09 65 72 72 20 3d 20 |heCKID;.|..err = |
|000013e0| 48 61 6e 64 54 6f 48 61 | 6e 64 28 26 28 48 61 6e |HandToHa|nd(&(Han|
|000013f0| 64 6c 65 29 6f 74 68 65 | 72 43 4b 49 44 29 3b 0d |dle)othe|rCKID);.|
|00001400| 09 09 69 66 20 28 65 72 | 72 20 21 3d 20 6e 6f 45 |..if (er|r != noE|
|00001410| 72 72 29 0d 09 09 7b 0d | 09 09 09 43 6c 6f 73 65 |rr)...{.|...Close|
|00001420| 52 65 73 46 69 6c 65 28 | 72 65 66 4e 75 6d 29 3b |ResFile(|refNum);|
|00001430| 0d 09 09 09 67 6f 74 6f | 20 43 61 6e 63 65 6c 43 |....goto| CancelC|
|00001440| 68 65 63 6b 6f 75 74 3b | 0d 09 09 7d 0d 09 09 41 |heckout;|...}...A|
|00001450| 64 64 52 65 73 6f 75 72 | 63 65 28 28 48 61 6e 64 |ddResour|ce((Hand|
|00001460| 6c 65 29 6f 74 68 65 72 | 43 4b 49 44 2c 20 27 63 |le)other|CKID, 'c|
|00001470| 6b 69 64 27 2c 20 31 32 | 38 2c 20 22 5c 70 22 29 |kid', 12|8, "\p")|
|00001480| 3b 0d 09 09 65 72 72 20 | 3d 20 52 65 73 45 72 72 |;...err |= ResErr|
|00001490| 6f 72 28 29 3b 0d 09 09 | 69 66 20 28 65 72 72 20 |or();...|if (err |
|000014a0| 21 3d 20 6e 6f 45 72 72 | 29 0d 09 09 7b 0d 09 09 |!= noErr|)...{...|
|000014b0| 09 44 69 73 70 6f 73 65 | 48 61 6e 64 6c 65 28 28 |.Dispose|Handle((|
|000014c0| 48 61 6e 64 6c 65 29 6f | 74 68 65 72 43 4b 49 44 |Handle)o|therCKID|
|000014d0| 29 3b 0d 09 09 09 43 6c | 6f 73 65 52 65 73 46 69 |);....Cl|oseResFi|
|000014e0| 6c 65 28 72 65 66 4e 75 | 6d 29 3b 0d 09 09 09 67 |le(refNu|m);....g|
|000014f0| 6f 74 6f 20 43 61 6e 63 | 65 6c 43 68 65 63 6b 6f |oto Canc|elChecko|
|00001500| 75 74 3b 0d 09 09 7d 0d | 09 09 0d 09 09 2f 2a 20 |ut;...}.|...../* |
|00001510| 63 6c 6f 73 65 20 74 68 | 65 20 72 65 73 6f 75 72 |close th|e resour|
|00001520| 63 65 20 66 69 6c 65 20 | 2a 2f 0d 09 09 43 6c 6f |ce file |*/...Clo|
|00001530| 73 65 52 65 73 46 69 6c | 65 28 72 65 66 4e 75 6d |seResFil|e(refNum|
|00001540| 29 3b 0d 09 7d 0d 09 0d | 09 2f 2a 20 61 64 64 20 |);..}...|./* add |
|00001550| 74 68 65 20 63 68 61 6e | 67 65 20 63 6f 6d 6d 65 |the chan|ge comme|
|00001560| 6e 74 20 74 6f 20 74 68 | 65 20 66 69 6c 65 20 68 |nt to th|e file h|
|00001570| 65 61 64 65 72 20 2a 2f | 0d 09 63 6f 6d 6d 65 6e |eader */|..commen|
|00001580| 74 5b 30 5d 20 3d 20 30 | 3b 0d 09 65 72 72 20 3d |t[0] = 0|;..err =|
|00001590| 20 41 64 64 43 68 65 63 | 6b 69 6e 43 6f 6d 6d 65 | AddChec|kinComme|
|000015a0| 6e 74 28 66 69 6c 65 2c | 20 75 73 65 72 4e 61 6d |nt(file,| userNam|
|000015b0| 65 2c 20 6e 69 63 6b 6e | 61 6d 65 2c 20 63 6f 6d |e, nickn|ame, com|
|000015c0| 6d 65 6e 74 29 3b 0d 09 | 69 66 20 28 65 72 72 20 |ment);..|if (err |
|000015d0| 21 3d 20 6e 6f 45 72 72 | 29 20 67 6f 74 6f 20 43 |!= noErr|) goto C|
|000015e0| 61 6e 63 65 6c 43 68 65 | 63 6b 6f 75 74 3b 0d 09 |ancelChe|ckout;..|
|000015f0| 0d 09 2f 2a 20 63 72 65 | 61 74 65 20 61 20 43 68 |../* cre|ate a Ch|
|00001600| 65 63 6b 49 6e 20 63 6f | 6d 6d 61 6e 64 20 66 6f |eckIn co|mmand fo|
|00001610| 72 20 53 6f 75 72 63 65 | 53 65 72 76 65 72 0d 09 |r Source|Server..|
|00001620| 20 2a 20 43 68 65 63 6b | 49 6e 20 2d 63 73 20 3c | * Check|In -cs <|
|00001630| 63 6f 6d 6d 65 6e 74 3e | 20 2d 70 72 6f 6a 65 63 |comment>| -projec|
|00001640| 74 20 3c 70 72 6f 6a 65 | 63 74 3e 20 2d 75 20 3c |t <proje|ct> -u <|
|00001650| 75 73 65 72 3e 20 3c 66 | 69 6c 65 3e 0d 09 20 2a |user> <f|ile>.. *|
|00001660| 2f 0d 09 65 72 72 20 3d | 20 43 72 65 61 74 65 43 |/..err =| CreateC|
|00001670| 6f 6d 6d 61 6e 64 28 26 | 63 6f 6d 6d 61 6e 64 2c |ommand(&|command,|
|00001680| 20 22 43 68 65 63 6b 49 | 6e 22 29 3b 0d 09 69 66 | "CheckI|n");..if|
|00001690| 20 28 65 72 72 20 3d 3d | 20 6e 6f 45 72 72 29 0d | (err ==| noErr).|
|000016a0| 09 09 65 72 72 20 3d 20 | 41 64 64 43 6f 6d 6d 65 |..err = |AddComme|
|000016b0| 6e 74 41 72 67 28 26 63 | 6f 6d 6d 61 6e 64 2c 20 |ntArg(&c|ommand, |
|000016c0| 63 6f 6d 6d 65 6e 74 29 | 3b 0d 09 69 66 20 28 65 |comment)|;..if (e|
|000016d0| 72 72 20 3d 3d 20 6e 6f | 45 72 72 29 0d 09 09 65 |rr == no|Err)...e|
|000016e0| 72 72 20 3d 20 41 64 64 | 50 72 6f 6a 65 63 74 41 |rr = Add|ProjectA|
|000016f0| 72 67 28 26 63 6f 6d 6d | 61 6e 64 2c 20 70 72 6f |rg(&comm|and, pro|
|00001700| 6a 65 63 74 4e 61 6d 65 | 29 3b 0d 09 69 66 20 28 |jectName|);..if (|
|00001710| 65 72 72 20 3d 3d 20 6e | 6f 45 72 72 29 0d 09 09 |err == n|oErr)...|
|00001720| 65 72 72 20 3d 20 41 64 | 64 55 73 65 72 41 72 67 |err = Ad|dUserArg|
|00001730| 28 26 63 6f 6d 6d 61 6e | 64 2c 20 75 73 65 72 4e |(&comman|d, userN|
|00001740| 61 6d 65 29 3b 0d 09 69 | 66 20 28 65 72 72 20 3d |ame);..i|f (err =|
|00001750| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 65 72 72 20 3d |= noErr)|...err =|
|00001760| 20 41 64 64 46 69 6c 65 | 4e 61 6d 65 41 72 67 28 | AddFile|NameArg(|
|00001770| 26 63 6f 6d 6d 61 6e 64 | 2c 20 26 74 61 72 67 65 |&command|, &targe|
|00001780| 74 46 69 6c 65 29 3b 0d | 09 69 66 20 28 65 72 72 |tFile);.|.if (err|
|00001790| 20 21 3d 20 6e 6f 45 72 | 72 29 0d 09 7b 0d 09 09 | != noEr|r)..{...|
|000017a0| 41 45 44 69 73 70 6f 73 | 65 44 65 73 63 28 26 63 |AEDispos|eDesc(&c|
|000017b0| 6f 6d 6d 61 6e 64 29 3b | 0d 09 09 67 6f 74 6f 20 |ommand);|...goto |
|000017c0| 43 61 6e 63 65 6c 43 68 | 65 63 6b 6f 75 74 3b 0d |CancelCh|eckout;.|
|000017d0| 09 7d 0d 09 0d 09 65 72 | 72 20 3d 20 53 65 6e 64 |.}....er|r = Send|
|000017e0| 43 6f 6d 6d 61 6e 64 28 | 26 63 6f 6d 6d 61 6e 64 |Command(|&command|
|000017f0| 29 3b 09 09 2f 2a 20 73 | 65 6e 64 20 74 68 65 20 |);../* s|end the |
|00001800| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 53 6f 75 72 63 |command |to Sourc|
|00001810| 65 53 65 72 76 65 72 20 | 2a 2f 0d 09 69 66 20 28 |eServer |*/..if (|
|00001820| 65 72 72 20 21 3d 20 6e | 6f 45 72 72 29 20 67 6f |err != n|oErr) go|
|00001830| 74 6f 20 43 61 6e 63 65 | 6c 43 68 65 63 6b 6f 75 |to Cance|lCheckou|
|00001840| 74 3b 0d 09 54 61 73 6b | 44 6f 6e 65 28 29 3b 0d |t;..Task|Done();.|
|00001850| 09 72 65 74 75 72 6e 3b | 0d 0d 43 61 6e 63 65 6c |.return;|..Cancel|
|00001860| 43 68 65 63 6b 6f 75 74 | 3a 0d 09 2f 2a 20 70 6f |Checkout|:../* po|
|00001870| 70 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 74 61 |p the cu|rrent ta|
|00001880| 73 6b 20 61 6e 64 20 73 | 74 61 72 74 20 61 20 6e |sk and s|tart a n|
|00001890| 65 77 20 6f 6e 65 20 69 | 66 20 75 73 65 72 20 63 |ew one i|f user c|
|000018a0| 6f 6e 66 69 72 6d 73 20 | 63 61 6e 63 65 6c 20 2a |onfirms |cancel *|
|000018b0| 2f 0d 09 69 66 20 28 21 | 52 65 73 54 65 78 74 59 |/..if (!|ResTextY|
|000018c0| 65 73 4e 6f 28 6b 50 72 | 6f 6a 65 63 74 44 72 61 |esNo(kPr|ojectDra|
|000018d0| 67 53 74 72 69 6e 67 73 | 2c 20 6b 45 78 74 65 72 |gStrings|, kExter|
|000018e0| 6e 61 6c 43 68 65 63 6b | 69 6e 46 61 69 6c 65 64 |nalCheck|inFailed|
|000018f0| 43 61 6e 63 65 6c 2c 0d | 09 09 09 09 09 20 66 69 |Cancel,.|..... fi|
|00001900| 6c 65 2d 3e 6e 61 6d 65 | 2c 20 4e 55 4c 4c 2c 20 |le->name|, NULL, |
|00001910| 4e 55 4c 4c 2c 20 4e 55 | 4c 4c 29 29 0d 09 7b 0d |NULL, NU|LL))..{.|
|00001920| 09 09 44 69 73 70 6f 73 | 65 48 61 6e 64 6c 65 28 |..Dispos|eHandle(|
|00001930| 28 48 61 6e 64 6c 65 29 | 74 68 65 43 4b 49 44 29 |(Handle)|theCKID)|
|00001940| 3b 0d 09 09 52 61 69 73 | 65 45 72 72 6f 72 4e 75 |;...Rais|eErrorNu|
|00001950| 6d 62 65 72 28 75 73 65 | 72 43 61 6e 63 65 6c 65 |mber(use|rCancele|
|00001960| 64 45 72 72 29 3b 0d 09 | 09 72 65 74 75 72 6e 3b |dErr);..|.return;|
|00001970| 0d 09 7d 0d 09 0d 09 54 | 61 73 6b 44 6f 6e 65 28 |..}....T|askDone(|
|00001980| 29 3b 20 2f 2a 20 6e 6f | 74 20 72 65 61 6c 6c 79 |); /* no|t really|
|00001990| 21 20 2a 2f 0d 09 54 61 | 73 6b 53 74 61 72 74 28 |! */..Ta|skStart(|
|000019a0| 32 30 30 31 2c 20 34 2c | 20 74 61 72 67 65 74 46 |2001, 4,| targetF|
|000019b0| 69 6c 65 2e 6e 61 6d 65 | 2c 20 4e 55 4c 4c 2c 20 |ile.name|, NULL, |
|000019c0| 4e 55 4c 4c 2c 20 4e 55 | 4c 4c 29 3b 20 2f 2a 20 |NULL, NU|LL); /* |
|000019d0| 63 61 6e 63 65 6c 69 6e | 67 20 2a 2f 0d 09 65 72 |cancelin|g */..er|
|000019e0| 72 20 3d 20 46 69 6c 65 | 43 61 6e 63 65 6c 28 26 |r = File|Cancel(&|
|000019f0| 74 61 72 67 65 74 46 69 | 6c 65 2c 20 74 68 65 43 |targetFi|le, theC|
|00001a00| 4b 49 44 29 3b 0d 09 44 | 69 73 70 6f 73 65 48 61 |KID);..D|isposeHa|
|00001a10| 6e 64 6c 65 28 28 48 61 | 6e 64 6c 65 29 74 68 65 |ndle((Ha|ndle)the|
|00001a20| 43 4b 49 44 29 3b 0d 09 | 69 66 20 28 65 72 72 20 |CKID);..|if (err |
|00001a30| 21 3d 20 6e 6f 45 72 72 | 29 20 72 65 74 75 72 6e |!= noErr|) return|
|00001a40| 3b 0d 09 54 61 73 6b 44 | 6f 6e 65 28 29 3b 0d 7d |;..TaskD|one();.}|
|00001a50| 0d 0d 0d 76 6f 69 64 20 | 44 6f 46 69 6c 65 4d 65 |...void |DoFileMe|
|00001a60| 6e 75 28 73 68 6f 72 74 | 20 69 74 65 6d 49 44 29 |nu(short| itemID)|
|00001a70| 0d 7b 0d 09 69 66 20 28 | 20 69 74 65 6d 49 44 20 |.{..if (| itemID |
|00001a80| 3d 3d 20 31 20 29 0d 09 | 09 53 65 6c 65 63 74 46 |== 1 )..|.SelectF|
|00001a90| 69 6c 65 28 29 3b 09 09 | 2f 2f 20 63 61 6c 6c 20 |ile();..|// call |
|00001aa0| 66 69 6c 65 20 73 65 6c | 65 63 74 69 6f 6e 20 75 |file sel|ection u|
|00001ab0| 73 65 72 50 72 6f 63 0d | 09 65 6c 73 65 0d 09 09 |serProc.|.else...|
|00001ac0| 53 65 6e 64 51 75 69 74 | 54 6f 53 65 6c 66 28 29 |SendQuit|ToSelf()|
|00001ad0| 3b 09 2f 2f 20 73 65 6e | 64 20 73 65 6c 66 20 61 |;.// sen|d self a|
|00001ae0| 20 27 71 75 69 74 27 20 | 65 76 65 6e 74 0d 7d 0d | 'quit' |event.}.|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 01 00 00 00 01 ea | 00 00 00 ea 00 00 00 4a |........|.......J|
|00001b10| 01 00 00 0a 1e 2e 03 00 | 00 00 00 01 2d 78 e8 63 |........|....-x.c|
|00001b20| 72 5c 01 03 18 12 1c 2e | 00 13 01 2e 2e 4f 55 cc |r\......|.....OU.|
|00001b30| 11 45 78 74 65 72 6e 61 | 6c 43 68 65 63 6b 49 6e |.Externa|lCheckIn|
|00001b40| 2e 63 02 00 00 00 54 45 | 58 54 4d 50 53 20 01 00 |.c....TE|XTMPS ..|
|00001b50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 60 00 10 |..TEXTMP|S ...`..|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 a5 13 ef da 00 00 | 1a 70 00 00 02 34 10 06 |........|.p...4..|
|00001b80| 56 90 60 4c 01 ff 82 cc | 96 12 4f ef 00 0c 11 66 |V.`L....|..O....f|
|00001b90| 10 57 72 50 01 04 e2 8a | 8d 67 01 66 a0 96 73 01 |.WrP....|.g.f..s.|
|00001ba0| 18 c0 ca 13 4e 5e 4e 75 | 4e 56 11 fd f0 5c 01 07 |....N^Nu|NV...\..|
|00001bb0| 18 8c 4d 01 26 6d 11 fe | 0c 51 7e 12 00 92 4e ad |..M.&m..|.Q~...N.|
|00001bc0| 01 2f ea 56 25 12 01 64 | 4e 91 67 de b4 03 b2 80 |./.V%..d|N.g.....|
|00001bd0| 57 c0 02 40 66 78 01 1c | 00 76 9a 14 42 10 48 78 |W..@fx..|.v..B.Hx|
|00001be0| 0b ea 48 6e 9a 25 12 00 | 54 4e 91 76 11 fe 00 11 |..Hn.%..|TN.v....|
|00001bf0| 42 10 12 20 54 0c a8 02 | 43 4c 49 50 11 00 54 12 |B.. T...|CLIP..T.|
|00001c00| 00 00 00 78 00 03 00 00 | 00 48 00 48 00 00 00 00 |...x....|.H.H....|
|00001c10| 02 da 02 28 ff e1 ff e1 | 02 f9 02 45 03 47 05 28 |...(....|...E.G.(|
|00001c20| 03 fc 00 02 00 00 00 48 | 00 48 00 00 00 00 02 da |.......H|.H......|
|00001c30| 02 28 00 01 00 00 00 64 | 00 00 00 01 00 03 03 03 |.(.....d|........|
|00001c40| 00 00 00 01 27 0f 00 01 | 00 01 00 00 00 00 00 00 |....'...|........|
|00001c50| 00 00 00 00 00 00 68 08 | 00 19 01 90 00 00 00 00 |......h.|........|
|00001c60| 20 00 00 00 00 00 00 00 | 00 00 00 01 00 00 00 00 | .......|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 48 |........|.......H|
|00001c80| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 01 84 60 80 |..Monaco|......`.|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 06 00 04 00 16 | 03 82 02 61 05 7e 00 2c |........|...a.~.,|
|00001cb0| 00 05 00 f8 02 7b ac 39 | b2 b7 00 00 19 27 00 00 |.....{.9|.....'..|
|00001cc0| 19 27 00 00 14 53 01 00 | 00 00 00 1e 00 16 03 82 |.'...S..|........|
|00001cd0| 02 61 05 7e 00 2c 00 05 | 00 f8 02 7b 00 00 14 53 |.a.~.,..|...{...S|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00001cf0| 01 ea 00 00 00 ea 00 00 | 00 4a 01 59 b3 88 22 e4 |........|.J.Y..".|
|00001d00| 00 00 00 1c 00 4a 00 00 | 4d 50 53 52 00 02 00 0a |.....J..|MPSR....|
|00001d10| 03 ee ff ff 00 00 00 00 | 00 00 00 00 03 ed ff ff |........|........|
|00001d20| 00 00 00 7c 00 00 00 00 | 03 f0 ff ff 00 00 00 c8 |...|....|........|
|00001d30| 01 64 68 ac 00 00 00 00 | 00 00 00 00 00 00 00 00 |.dh.....|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+