diff -Nru unison-2.40.102/abort.ml unison-2.48.3/abort.ml --- unison-2.40.102/abort.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/abort.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/abort.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -67,4 +67,4 @@ raise (Util.Transient "Aborted") end -let testException e = e = Util.Transient "Aborted" +let testException e = (e = Util.Transient "Aborted") diff -Nru unison-2.40.102/bytearray.ml unison-2.48.3/bytearray.ml --- unison-2.40.102/bytearray.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/bytearray.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/bytearray.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/bytearray.mli unison-2.48.3/bytearray.mli --- unison-2.40.102/bytearray.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/bytearray.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/bytearray.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type t = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t diff -Nru unison-2.40.102/bytearray_stubs.c unison-2.48.3/bytearray_stubs.c --- unison-2.40.102/bytearray_stubs.c 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/bytearray_stubs.c 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ /* Unison file synchronizer: src/bytearray_stubs.c */ -/* Copyright 1999-2009 (see COPYING for details) */ +/* Copyright 1999-2015 (see COPYING for details) */ #include diff -Nru unison-2.40.102/case.ml unison-2.48.3/case.ml --- unison-2.40.102/case.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/case.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/case.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/case.mli unison-2.48.3/case.mli --- unison-2.40.102/case.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/case.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/case.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) val caseInsensitiveMode : [`True|`False|`Default] Prefs.t val unicodeEncoding : bool Prefs.t diff -Nru unison-2.40.102/checksum.ml unison-2.48.3/checksum.ml --- unison-2.40.102/checksum.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/checksum.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/checksum.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/checksum.mli unison-2.48.3/checksum.mli --- unison-2.40.102/checksum.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/checksum.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/checksum.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type t = int type u = int array diff -Nru unison-2.40.102/clroot.ml unison-2.48.3/clroot.ml --- unison-2.40.102/clroot.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/clroot.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/clroot.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/clroot.mli unison-2.48.3/clroot.mli --- unison-2.40.102/clroot.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/clroot.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/clroot.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Command-line roots *) type clroot = diff -Nru unison-2.40.102/common.ml unison-2.48.3/common.ml --- unison-2.40.102/common.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/common.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/common.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -118,17 +118,21 @@ props : Props.t list } (* Parent properties *) type direction = - Conflict + Conflict of string (* The string is the reason of the conflict *) | Merge | Replica1ToReplica2 | Replica2ToReplica1 let direction2string = function - Conflict -> "conflict" + Conflict _ -> "conflict" | Merge -> "merge" | Replica1ToReplica2 -> "replica1 to replica2" | Replica2ToReplica1 -> "replica2 to replica1" +let isConflict = function + Conflict _ -> true + | _ -> false + type difference = { rc1 : replicaContent; rc2 : replicaContent; @@ -176,7 +180,7 @@ begin match dir with Replica1ToReplica2 -> rcLength rc1 rc2 | Replica2ToReplica1 -> rcLength rc2 rc1 - | Conflict -> Uutil.Filesize.zero + | Conflict _ -> Uutil.Filesize.zero | Merge -> Uutil.Filesize.zero (* underestimate :-*) end | _ -> @@ -205,14 +209,14 @@ let problematic ri = match ri.replicas with Problem _ -> true - | Different diff -> diff.direction = Conflict + | Different diff -> isConflict diff.direction let partiallyProblematic ri = match ri.replicas with Problem _ -> true - | Different diff -> - diff.direction = Conflict || diff.errors1 <> [] || diff.errors2 <> [] + | Different diff -> + isConflict diff.direction || diff.errors1 <> [] || diff.errors2 <> [] let isDeletion ri = match ri.replicas with diff -Nru unison-2.40.102/common.mli unison-2.48.3/common.mli --- unison-2.40.102/common.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/common.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/common.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (***************************************************************************) (* COMMON TYPES USED BY ALL MODULES *) @@ -96,13 +96,15 @@ props : Props.t list } (* Parent properties *) type direction = - Conflict + Conflict of string (* The string is the reason of the conflict *) | Merge | Replica1ToReplica2 | Replica2ToReplica1 val direction2string : direction -> string +val isConflict : direction -> bool + type difference = { rc1 : replicaContent; (* - content of first replica *) rc2 : replicaContent; (* - content of second replica *) diff -Nru unison-2.40.102/copy.ml unison-2.48.3/copy.ml --- unison-2.40.102/copy.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/copy.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/copy.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,65 +42,79 @@ (****) -(* Check whether the source file has been modified during synchronization *) -let checkContentsChangeLocal - fspathFrom pathFrom archDesc archDig archStamp archRess paranoid = - let info = Fileinfo.get true fspathFrom pathFrom in - let clearlyModified = - info.Fileinfo.typ <> `FILE - || Props.length info.Fileinfo.desc <> Props.length archDesc - || Osx.ressLength info.Fileinfo.osX.Osx.ressInfo <> - Osx.ressLength archRess - in - let dataClearlyUnchanged = - not clearlyModified - && Props.same_time info.Fileinfo.desc archDesc - && not (Fpcache.excelFile pathFrom) - && match archStamp with - Some (Fileinfo.InodeStamp inode) -> info.Fileinfo.inode = inode - | Some (Fileinfo.CtimeStamp ctime) -> true - | None -> false - in - let ressClearlyUnchanged = - not clearlyModified - && Osx.ressUnchanged archRess info.Fileinfo.osX.Osx.ressInfo - None dataClearlyUnchanged - in - if dataClearlyUnchanged && ressClearlyUnchanged then begin - if paranoid then begin - let newDig = Os.fingerprint fspathFrom pathFrom info in - if archDig <> newDig then begin - Update.markPossiblyUpdated fspathFrom pathFrom; +(* If newFpOpt = Some newfp, check that the current source contents + matches newfp. Otherwise, check whether the source file has been + modified during synchronization. *) +let checkForChangesToSourceLocal + fspathFrom pathFrom archDesc archFp archStamp archRess newFpOpt paranoid = + (* Retrieve attributes of current source file *) + let sourceInfo = Fileinfo.get true fspathFrom pathFrom in + match newFpOpt with + None -> + (* no newfp provided: so we need to compare the archive with the + current source *) + let clearlyChanged = + sourceInfo.Fileinfo.typ <> `FILE + || Props.length sourceInfo.Fileinfo.desc <> Props.length archDesc + || Osx.ressLength sourceInfo.Fileinfo.osX.Osx.ressInfo <> + Osx.ressLength archRess in + let dataClearlyUnchanged = + not clearlyChanged + && Props.same_time sourceInfo.Fileinfo.desc archDesc + && not (Fpcache.excelFile pathFrom) + && match archStamp with + Some (Fileinfo.InodeStamp inode) -> sourceInfo.Fileinfo.inode = inode + | Some (Fileinfo.CtimeStamp ctime) -> true + | None -> false in + let ressClearlyUnchanged = + not clearlyChanged + && Osx.ressUnchanged archRess sourceInfo.Fileinfo.osX.Osx.ressInfo + None dataClearlyUnchanged in + if dataClearlyUnchanged && ressClearlyUnchanged then begin + if paranoid && not (Os.isPseudoFingerprint archFp) then begin + let newFp = Os.fingerprint fspathFrom pathFrom sourceInfo in + if archFp <> newFp then begin + Update.markPossiblyUpdated fspathFrom pathFrom; + raise (Util.Transient (Printf.sprintf + "The source file %s\n\ + has been modified but the fast update detection mechanism\n\ + failed to detect it. Try running once with the fastcheck\n\ + option set to 'no'." + (Fspath.toPrintString (Fspath.concat fspathFrom pathFrom)))) + end + end + end else if + clearlyChanged + || archFp <> Os.fingerprint fspathFrom pathFrom sourceInfo + then raise (Util.Transient (Printf.sprintf - "The source file %s\n\ - has been modified but the fast update detection mechanism\n\ - failed to detect it. Try running once with the fastcheck\n\ - option set to 'no'." + "The source file %s\nhas been modified during synchronization. \ + Transfer aborted." + (Fspath.toPrintString (Fspath.concat fspathFrom pathFrom)))) + | Some newfp -> + (* newfp provided means that the archive contains a pseudo-fingerprint... *) + assert (Os.isPseudoFingerprint archFp); + (* ... so we can't compare the archive with the source; instead we + need to compare the current source to the new fingerprint: *) + if newfp <> Os.fingerprint fspathFrom pathFrom sourceInfo then + raise (Util.Transient (Printf.sprintf + "Current source file %s\n not same as transferred file. \ + Transfer aborted." (Fspath.toPrintString (Fspath.concat fspathFrom pathFrom)))) - end - end - end else if - clearlyModified - || archDig <> Os.fingerprint fspathFrom pathFrom info - then - raise (Util.Transient (Printf.sprintf - "The source file %s\nhas been modified during synchronization. \ - Transfer aborted." - (Fspath.toPrintString (Fspath.concat fspathFrom pathFrom)))) -let checkContentsChangeOnRoot = +let checkForChangesToSourceOnRoot = Remote.registerRootCmd - "checkContentsChange" + "checkForChangesToSource" (fun (fspathFrom, - (pathFrom, archDesc, archDig, archStamp, archRess, paranoid)) -> - checkContentsChangeLocal - fspathFrom pathFrom archDesc archDig archStamp archRess paranoid; + (pathFrom, archDesc, archFp, archStamp, archRess, newFpOpt, paranoid)) -> + checkForChangesToSourceLocal + fspathFrom pathFrom archDesc archFp archStamp archRess newFpOpt paranoid; Lwt.return ()) -let checkContentsChange - root pathFrom archDesc archDig archStamp archRess paranoid = - checkContentsChangeOnRoot - root (pathFrom, archDesc, archDig, archStamp, archRess, paranoid) +let checkForChangesToSource + root pathFrom archDesc archFp archStamp archRess newFpOpt paranoid = + checkForChangesToSourceOnRoot + root (pathFrom, archDesc, archFp, archStamp, archRess, newFpOpt, paranoid) (****) @@ -156,18 +170,27 @@ Lwt.return None type transferStatus = - Success of Fileinfo.t - | Failure of string - -(* Paranoid check: recompute the transferred file's digest to match it - with the archive's *) + TransferSucceeded of Fileinfo.t + | TransferNeedsDoubleCheckAgainstCurrentSource of Fileinfo.t * Os.fullfingerprint + | TransferFailed of string + +(* Paranoid check: recompute the transferred file's fingerprint to match it + with the archive's. If the old + fingerprint was a pseudo-fingerprint, we can't tell just from looking at the + new file and the archive information, so we return + TransferProbablySucceeded in this case, along with the new fingerprint + that we can check in checkForChangesToSource when we've + calculated the current source fingerprint. + *) let paranoidCheck fspathTo pathTo realPathTo desc fp ress = let info = Fileinfo.get false fspathTo pathTo in let fp' = Os.fingerprint fspathTo pathTo info in - if fp' <> fp then begin - Lwt.return (Failure (Os.reasonForFingerprintMismatch fp fp')) + if Os.isPseudoFingerprint fp then begin + Lwt.return (TransferNeedsDoubleCheckAgainstCurrentSource (info,fp')) + end else if fp' <> fp then begin + Lwt.return (TransferFailed (Os.reasonForFingerprintMismatch fp fp')) end else - Lwt.return (Success info) + Lwt.return (TransferSucceeded info) let saveTempFileLocal (fspathTo, (pathTo, realPathTo, reason)) = let savepath = @@ -261,9 +284,12 @@ Uutil.readWriteBounded inFd outFd fileLength (fun l -> use_id (fun id -> +(* (Util.msg "Copied file %s (%d bytes)\n" (Path.toString pathFrom) l); *) Uutil.showProgress id (Uutil.Filesize.ofInt l) "l")); close_in inFd; - close_out outFd) + close_out outFd; +(* ignore (Sys.command ("ls -l " ^ (Fspath.toString (Fspath.concat fspathTo pathTo)))) *) + ) (fun () -> close_out_noerr outFd)) (fun () -> close_in_noerr inFd) @@ -564,7 +590,7 @@ (****) -let transferRessourceForkAndSetFileinfo +let transferResourceForkAndSetFileinfo connFrom fspathFrom pathFrom fspathTo pathTo realPathTo update desc fp ress id = (* Resource fork *) @@ -602,7 +628,7 @@ connFrom fspathFrom pathFrom fspathTo pathTo realPathTo update (match prefixLen with None -> `DATA | Some l -> `DATA_APPEND l) (Props.length desc) id >>= fun () -> - transferRessourceForkAndSetFileinfo + transferResourceForkAndSetFileinfo connFrom fspathFrom pathFrom fspathTo pathTo realPathTo update desc fp ress id @@ -759,7 +785,7 @@ raise (Util.Transient (Printf.sprintf "External copy program did not create target file (or bad length): %s" (Path.toString pathTo))); - transferRessourceForkAndSetFileinfo + transferResourceForkAndSetFileinfo connFrom fspathFrom pathFrom fspathTo pathTo realPathTo update desc fp ress id >>= fun res -> Xferhint.insertEntry fspathTo pathTo fp; @@ -833,7 +859,7 @@ Uutil.showProgress id len "alr"; setFileinfo fspathTo pathTo realPathTo update desc; Xferhint.insertEntry fspathTo pathTo fp; - Lwt.return (`DONE (Success tempInfo, Some msg)) + Lwt.return (`DONE (TransferSucceeded tempInfo, Some msg)) end else registerFileTransfer pathTo fp (fun () -> @@ -843,7 +869,7 @@ Some (info, msg) -> (* Transfer was performed by copying *) Xferhint.insertEntry fspathTo pathTo fp; - Lwt.return (`DONE (Success info, Some msg)) + Lwt.return (`DONE (TransferSucceeded info, Some msg)) | None -> if shouldUseExternalCopyprog update desc then Lwt.return (`EXTERNAL (prepareExternalTransfer fspathTo pathTo)) @@ -863,10 +889,11 @@ let transferFileReg = Lwt_util.make_region 440 let bufferSize sz = - min 64 ((truncate (Uutil.Filesize.toFloat sz) + 1023) / 1024) (* Token queue *) - + - 8 (* Read buffer *) + min 64 ((truncate (Uutil.Filesize.toFloat sz) + 1023) / 1024) + + + (* Read buffer *) + 8 let transferFile rootFrom pathFrom rootTo fspathTo pathTo realPathTo @@ -922,7 +949,7 @@ localFile fspathFrom pathFrom fspathTo pathTo realPathTo update desc (Osx.ressLength ress) (Some id); - paranoidCheck fspathTo pathTo realPathTo desc fp ress + paranoidCheck fspathTo pathTo realPathTo desc fp ress | _ -> transferFile rootFrom pathFrom rootTo fspathTo pathTo realPathTo @@ -930,14 +957,56 @@ end >>= fun status -> Trace.showTimer timer; match status with - Success info -> - checkContentsChange rootFrom pathFrom desc fp stamp ress false + TransferSucceeded info -> + checkForChangesToSource rootFrom pathFrom desc fp stamp ress None false >>= fun () -> Lwt.return info - | Failure reason -> + | TransferNeedsDoubleCheckAgainstCurrentSource (info,newfp) -> + debug (fun() -> Util.msg + "Archive data for %s is a pseudo-fingerprint: double-checking...\n" + (Path.toString realPathTo)); + + checkForChangesToSource rootFrom pathFrom + desc fp stamp ress (Some newfp) false + >>= (fun () -> + Lwt.return info) + | TransferFailed reason -> (* Maybe we failed because the source file was modified. We check this before reporting a failure *) - checkContentsChange rootFrom pathFrom desc fp stamp ress true + checkForChangesToSource rootFrom pathFrom desc fp stamp ress None true >>= fun () -> - (* This function always fails! *) + (* This function never returns (it is supposed to fail) *) saveTempFileOnRoot rootTo (pathTo, realPathTo, reason) + +(****) + +let recursively fspathFrom pathFrom fspathTo pathTo = + let rec copy pFrom pTo = + let info = Fileinfo.get true fspathFrom pFrom in + match info.Fileinfo.typ with + | `SYMLINK -> + debug (fun () -> Util.msg " Copying link %s / %s to %s / %s\n" + (Fspath.toDebugString fspathFrom) (Path.toString pFrom) + (Fspath.toDebugString fspathTo) (Path.toString pTo)); + Os.symlink fspathTo pTo (Os.readLink fspathFrom pFrom) + | `FILE -> + debug (fun () -> Util.msg " Copying file %s / %s to %s / %s\n" + (Fspath.toDebugString fspathFrom) (Path.toString pFrom) + (Fspath.toDebugString fspathTo) (Path.toString pTo)); + localFile fspathFrom pFrom fspathTo pTo pTo + `Copy info.Fileinfo.desc + (Osx.ressLength info.Fileinfo.osX.Osx.ressInfo) None + | `DIRECTORY -> + debug (fun () -> Util.msg " Copying directory %s / %s to %s / %s\n" + (Fspath.toDebugString fspathFrom) (Path.toString pFrom) + (Fspath.toDebugString fspathTo) (Path.toString pTo)); + Os.createDir fspathTo pTo info.Fileinfo.desc; + let ch = Os.childrenOf fspathFrom pFrom in + Safelist.iter + (fun n -> copy (Path.child pFrom n) (Path.child pTo n)) ch + | `ABSENT -> assert false in + debug (fun () -> Util.msg " Copying recursively %s / %s\n" + (Fspath.toDebugString fspathFrom) (Path.toString pathFrom)); + copy pathFrom pathTo; + debug (fun () -> Util.msg " Finished copying %s / %s\n" + (Fspath.toDebugString fspathFrom) (Path.toString pathTo)) diff -Nru unison-2.40.102/copy.mli unison-2.48.3/copy.mli --- unison-2.40.102/copy.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/copy.mli 2012-08-09 14:22:34.000000000 +0000 @@ -1,18 +1,17 @@ -(* Transfer a file from a replica to the other *) +(* Transfer a file from one replica to the other *) val file : Common.root (* root of source *) -> Path.local (* path of source *) -> Common.root (* root of target *) -> Fspath.t (* fspath of target *) - -> Path.local (* path of target *) - -> Path.local (* path of "real" [original] target *) + -> Path.local (* path of target (temp location) *) + -> Path.local (* path of "real" (original) target *) -> [`Update of (Uutil.Filesize.t * Uutil.Filesize.t) | `Copy] -> Props.t (* permissions for new file *) -> Os.fullfingerprint (* fingerprint of file *) - -> Fileinfo.stamp option - (* source file stamp, if available *) - -> Osx.ressStamp (* ressource info of file *) + -> Fileinfo.stamp option (* source file stamp, if available *) + -> Osx.ressStamp (* resource info of file *) -> Uutil.File.t (* file's index in UI (for progress bars) *) -> Fileinfo.t Lwt.t (* information regarding the transferred file *) @@ -25,5 +24,12 @@ -> [`Update of (Uutil.Filesize.t * Uutil.Filesize.t) | `Copy] -> Props.t (* permissions for new file *) -> Uutil.Filesize.t (* fork length *) - -> Uutil.File.t option (* file's index in UI (for progress bars), as appropriate *) + -> Uutil.File.t option (* file's index in UI (for progress bars), if appropriate *) + -> unit + +val recursively : + Fspath.t (* fspath of source *) + -> Path.local (* path of source *) + -> Fspath.t (* fspath of target *) + -> Path.local (* path of target *) -> unit diff -Nru unison-2.40.102/debian/changelog unison-2.48.3/debian/changelog --- unison-2.40.102/debian/changelog 2016-02-07 12:48:45.000000000 +0000 +++ unison-2.48.3/debian/changelog 2016-03-18 15:04:43.000000000 +0000 @@ -1,3 +1,27 @@ +unison (2.48.3-1ubuntu1) xenial; urgency=low + + * Merge from Debian unstable, resolving segfault when transferring files + between servers (LP: #1421184). Remaining changes: + - Change default logfile directory to .unison by prepending .unison to + name of logfile in ubase/trace.ml. + + -- James Page Fri, 18 Mar 2016 14:51:10 +0000 + +unison (2.48.3-1) unstable; urgency=medium + + * New upstream release (Closes: #705318) + - remove obsolete patches (fixed upstream) + - fix debian/generate-manpage.ml + - thanks to Yuri Kanivetsky for preliminary updating work + - make temp file names fit within 143 characters (Closes: #504503) + * Do not use absolute path to icon in desktop file (Closes: #777238) + * Update debian/copyright + * Update bash completion installation directory + * Bump debhelper compat level to 9 + * Bump Standards-Version to 3.9.6 + + -- Stéphane Glondu Tue, 18 Aug 2015 14:57:24 +0200 + unison (2.40.102-2ubuntu2) xenial; urgency=medium * No-change rebuild for ncurses6 transition. @@ -489,3 +513,4 @@ * Initial release. -- Sven LUTHER Tue, 21 Dec 1999 12:15:49 +0100 + diff -Nru unison-2.40.102/debian/compat unison-2.48.3/debian/compat --- unison-2.40.102/debian/compat 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/compat 2016-02-07 17:18:10.000000000 +0000 @@ -1 +1 @@ -7 +9 diff -Nru unison-2.40.102/debian/control unison-2.48.3/debian/control --- unison-2.40.102/debian/control 2013-05-30 11:14:08.000000000 +0000 +++ unison-2.48.3/debian/control 2016-02-07 17:18:10.000000000 +0000 @@ -6,16 +6,16 @@ Uploaders: Stéphane Glondu Build-Depends: cdbs (>= 0.4.23), - debhelper (>= 7), + debhelper (>= 9), ocaml-nox (>= 3.10.0-8), liblablgtk2-ocaml-dev (>= 2.12.0-2), chrpath, librsvg2-bin (>= 2.18.2), imagemagick, dh-ocaml (>= 0.9.1) -Standards-Version: 3.9.4 -Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/unison.git -Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/unison.git +Standards-Version: 3.9.6 +Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/unison.git +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ocaml-maint/packages/unison.git Homepage: http://www.cis.upenn.edu/~bcpierce/unison/ Package: unison diff -Nru unison-2.40.102/debian/copyright unison-2.48.3/debian/copyright --- unison-2.40.102/debian/copyright 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/copyright 2016-02-07 17:18:10.000000000 +0000 @@ -2,10 +2,35 @@ Upstream-Contact: Benjamin Pierce Source: http://www.cis.upenn.edu/~bcpierce/unison/download/stable/ -License: GPL-2+ +Files: * +Copyright: 1999-2015, Benjamin Pierce et al +License: GPL-3+ + +Files: fsmonitor/linux/inotify* +Copyright: 2006-2008, Vincent Hanquez et al +License: LGPL-exc + +Files: ubase/myMap.ml ubase/uarg.mli +Copyright: 1996, INRIA +License: LGPL-exc + +Files: uimac*/ImageAndTextCell.* +Copyright: 2001-2004, Apple Computer, Inc. +License: Apple + +Files: debian/* +Copyright: 2006-2009, Sylvain Le Gall + 2012, Stéphane Glondu +License: GPL-3+ + +Files: debian/unison-gtk.svg* +Copyright: 2007, Eric Lavarde +License: GPL-3+ + +License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of + published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, @@ -14,17 +39,66 @@ GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL-2 file. + License can be found in /usr/share/common-licenses/GPL-3 file. -Files: * -Copyright: 1999-2009, Benjamin Pierce et al -License: GPL-2+ - -Files: debian/* -Copyright: 2006-2009, Sylvain Le Gall - 2012, Stéphane Glondu -License: GPL-2+ +License: LGPL-exc + This file is distributed under the terms of the GNU Library General + Public License, with the special exception on linking described as + follows. + . + As a special exception to the GNU Library General Public License, you + may link, statically or dynamically, a "work that uses the Library" + with a publicly distributed version of the Library to produce an + executable file containing portions of the Library, and distribute + that executable file under terms of your choice, without any of the + additional requirements listed in clause 6 of the GNU Library General + Public License. By "a publicly distributed version of the Library", + we mean either the unmodified Library as distributed by INRIA, or a + modified version of the Library that is distributed under the + conditions defined in clause 3 of the GNU Library General Public + License. This exception does not however invalidate any other reasons + why the executable file might be covered by the GNU Library General + Public License. + . + On Debian systems, the complete text of the GNU Library General + Public License can be found in /usr/share/common-licenses/LGPL-2 file. -Files: debian/unison-gtk.svg -Copyright: 2007, Eric Lavarde -License: GPL-2+ +License: Apple + This Apple software is supplied to you by Apple Computer, + Inc. ("Apple") in consideration of your agreement to the following + terms, and your use, installation, modification or redistribution of + this Apple software constitutes acceptance of these terms. If you do + not agree with these terms, please do not use, install, modify or + redistribute this Apple software. + . + In consideration of your agreement to abide by the following terms, + and subject to these terms, Apple grants you a personal, + non-exclusive license, under Apple's copyrights in this original + Apple software (the "Apple Software"), to use, reproduce, modify and + redistribute the Apple Software, with or without modifications, in + source and/or binary forms; provided that if you redistribute the + Apple Software in its entirety and without modifications, you must + retain this notice and the following text and disclaimers in all such + redistributions of the Apple Software. Neither the name, trademarks, + service marks or logos of Apple Computer, Inc. may be used to endorse + or promote products derived from the Apple Software without specific + prior written permission from Apple. Except as expressly stated in + this notice, no other rights or licenses, express or implied, are + granted by Apple herein, including but not limited to any patent + rights that may be infringed by your derivative works or by other + works in which the Apple Software may be incorporated. + . + The Apple Software is provided by Apple on an "AS IS" basis. APPLE + MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION + THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND + FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS + USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. + . + IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, + INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, + REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, + HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING + NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -Nru unison-2.40.102/debian/generate-manpage.ml unison-2.48.3/debian/generate-manpage.ml --- unison-2.40.102/debian/generate-manpage.ml 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/generate-manpage.ml 2016-02-07 17:18:10.000000000 +0000 @@ -36,21 +36,21 @@ (List.map (fun (s, f) -> Str.regexp s, f) [ - " *\\(-[a-z_-]+\\) xxx +\\(.*\\)", + " *\\(-[a-zA-Z_-]+\\) xxx +\\(.*\\)", (fun s -> option_arg (Str.matched_group 1 s) "xxx" (Str.matched_group 2 s)); - " *\\(-[a-z_-]+\\) n +\\(.*\\)", + " *\\(-[a-zA-Z_-]+\\) n +\\(.*\\)", (fun s -> option_arg (Str.matched_group 1 s) "n" (Str.matched_group 2 s)); - " *\\(-[a-z_-]+\\) +\\(.*\\)", + " *\\(-[a-zA-Z_-]+\\) +\\(.*\\)", (fun s -> option_no_arg (Str.matched_group 1 s) diff -Nru unison-2.40.102/debian/patches/0001-Regenerate-generated-files.patch unison-2.48.3/debian/patches/0001-Regenerate-generated-files.patch --- unison-2.40.102/debian/patches/0001-Regenerate-generated-files.patch 2013-04-17 13:46:13.000000000 +0000 +++ unison-2.48.3/debian/patches/0001-Regenerate-generated-files.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,6139 +0,0 @@ -From: Stephane Glondu -Date: Wed, 17 Apr 2013 14:36:26 +0200 -Subject: Regenerate generated files - ---- - NEWS | 1644 +++++++++++++++++++++- - strings.ml | 4475 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- - 2 files changed, 6115 insertions(+), 4 deletions(-) - -diff --git a/NEWS b/NEWS -index dc4db5b..962debf 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,2 +1,1642 @@ --Documentation topic news not recognized: --Type "unison -doc topics" for a list -+ -+Changes in Version 2.40.102 -+ -+ Changes since 2.40.1: -+ * Added "BelowPath" patterns, that match a path as well as all paths -+ below (convenient to use with nodeletion,update,creationpartial -+ preferences) -+ * Added a "fat" preference that makes Unison use the right options -+ when one of the replica is on a FAT filesystem. -+ * Allow "prefer/force=newer" even when not synchronizing modification -+ times. (The reconciler will not be aware of the modification time -+ of unchanged files, so the synchronization choices of Unison can be -+ different from when "times=true", but the behavior remains sane: -+ changed files with the most recent modification time will be -+ propagated.) -+ * Minor fixes and improvements: -+ + Compare filenames up to decomposition in case sensitive mode -+ when one host is running MacOSX and the unicode preference is -+ set to true. -+ + Rsync: somewhat faster compressor -+ + Make Unicode the default on all architectures (it was only the -+ default when a Mac OS X or Windows machine was involved). -+ -+ Changes since 2.32: -+ * Major enhancement: Unicode support. -+ + Unison should now handle unicode filenames correctly on all -+ platforms. -+ + This functionality is controlled by a new preference unicode. -+ + Unicode mode is now the default when one of the hosts is under -+ Windows or MacOS. This may make upgrades a bit more painful -+ (the archives cannot be reused), but this is a much saner -+ default. -+ * Partial transfer of directories. If an error occurs while -+ transferring a directory, the part transferred so far is copied -+ into place (and the archives are updated accordingly). The -+ "maxerrors" preference controls how many transfer error Unison will -+ accept before stopping the transfer of a directory (by default, -+ only one). This makes it possible to transfer most of a directory -+ even if there are some errors. Currently, only the first error is -+ reported by the GUIs. -+ Also, allow partial transfer of a directory when there was an error -+ deep inside this directory during update detection. At the moment, -+ this is only activated with the text and GTK UIs, which have been -+ modified so that they show that the transfer is going to be partial -+ and so that they can display all errors. -+ * Improvement to the code for resuming directory transfers: -+ + if a file was not correctly transferred (or the source has -+ been modified since, with unchanged size), Unison performs a -+ new transfer rather than failing -+ + spurious files are deleted (this can happen if a file is -+ deleted on the source replica before resuming the transfer; -+ not deleting the file would result in it reappearing on the -+ target replica) -+ * Experimental streaming protocol for transferring file contents (can -+ be disabled by setting the directive "stream" to false): file -+ contents is transfered asynchronously (without waiting for a -+ response from the destination after each chunk sent) rather than -+ using the synchronous RPC mechanism. As a consequence: -+ + Unison now transfers the contents of a single file at a time -+ (Unison used to transfer several contents simultaneously in -+ order to hide the connection latency.) -+ + the transfer of large files uses the full available bandwidth -+ and is not slowed done due to the connection latency anymore -+ + we get performance improvement for small files as well by -+ scheduling many files simultaneously (as scheduling a file for -+ transfer consume little ressource: it does not mean allocating -+ a large buffer anymore) -+ * Changes to the internal implementation of the rsync algorithm: -+ + use longer blocks for large files (the size of a block is the -+ square root of the size of the file for large files); -+ + transmit less checksum information per block (we still have -+ less than one chance in a hundred million of transferring a -+ file incorrectly, and Unison will catch any transfer error -+ when fingerprinting the whole file) -+ + avoid transfer overhead (which was 4 bytes per block) -+ For a 1G file, the first optimization saves a factor 50 on the -+ amount of data transferred from the target to the source (blocks -+ are 32768 bytes rather than just 700 bytes). The two other -+ optimizations save another factor of 2 (from 24 bytes per block -+ down to 10). -+ * Implemented an on-disk file fingerprint cache to speed-up update -+ detection after a crash: this way, Unison does not have do -+ recompute all the file fingerprints from scratch. -+ + When Unison detects that the archive case-sensitivity mode -+ does not match the current settings, it populates the -+ fingerprint cache using the archive contents. This way, -+ changing the case-sensitivity mode should be reasonably fast. -+ * New preferences "noupdate=root", "nodeletion=root", -+ "nocreation=root" that prevent Unison from performing files -+ updates, deletions or creations on the given root. Also ’partial’ -+ versions of ’noupdate’, ’nodeletion’ and ’nocreation’ -+ * Limit the number of simultaneous external copy program ("copymax" -+ preference) -+ * New "links" preference. When set to false, Unison will report an -+ error on symlinks during update detection. (This is the default -+ when one host is running Windows but not Cygwin.) This is better -+ than failing during propagation. -+ * Added a preference "halfduplex" to force half-duplex communication -+ with the server. This may be useful on unreliable links (as a more -+ efficient alternative to "maxthreads = 1"). -+ * Renamed preference "pretendwin" to "ignoreinodenumbers" (an alias -+ is kept for backwards compatibility). -+ * Ignore one-second differences when synchronizing modification time. -+ (Technically, this is an incompatible archive format change, but it -+ is backward compatible. To trigger a problem, a user would have to -+ synchronize modification times on a filesystem with a two-second -+ granularity and then downgrade to a previous version of Unison, -+ which does not work well in such a case. Thus, it does not seem -+ worthwhile to increment the archive format number, which would -+ impact all users.) -+ * Do not keep many files simultaneously opened anymore when the rsync -+ algorithm is in use. -+ * Add “ignorearchives” preference to ignore existing archives (to -+ avoid forcing users to delete them manually, in situations where -+ one archive has gotten deleted or corrupted). -+ * Mac OS -+ + fixed rsync bug which could result in an "index out of bounds" -+ error when transferring resource forks. -+ + Fixed bug which made Unison ignore finder information and -+ resource fork when compiled to 64bit on Mac OSX. -+ + should now be 64 bit clean (the Growl framework is not up to -+ date, though) -+ + Made the bridge between Objective C and Ocaml code GC friendly -+ (it was allocating ML values and putting them in an array -+ which was not registered with the GC) -+ + use darker grey arrows (patch contributed by Eric Y. Kow) -+ * GTK user interface -+ + assistant for creating profiles -+ + profile editor -+ + pop up a summary window when the replicas are not fully -+ synchronized after transport -+ + display estimated remaining time and transfer rate on the -+ progress bar -+ + allow simultaneous selection of several items -+ + Do not reload the preference file before a new update -+ detection if it is unchanged -+ + disabled scrolling to the first unfinished item during -+ transport. It goes way too fast when lot of small files are -+ synchronized, and it makes it impossible to browse the file -+ list during transport. -+ + take into account the "height" preference again -+ + the internal list of selected reconciler item was not always -+ in sync with what was displayed (GTK bug?); workaround -+ implemented -+ + Do not display "Looking for change" messages during -+ propagation (when checking the targe is unchanged) but only -+ during update detection -+ + Apply patch to fix some crashes in the OSX GUI, thanks to Onne -+ Gorter. -+ * Text UI -+ + During update detection, display status by updating a single -+ line rather than generating a new line of output every so -+ often. Should be less confusing. -+ * Windows -+ + Fastcheck is now the default under Windows. People mostly use -+ NTFS nowadays and the Unicode API provides an equivalent to -+ inode numbers for this filesystem. -+ + Only use long UNC path for accessing replicas (as ’..’ is not -+ handled with this format of paths, but can be useful) -+ + Windows text UI: now put the console into UTF-8 output mode. -+ This is the right thing to do when in Unicode mode, and is no -+ worse than what we had previously otherwise (the console use -+ some esoteric encoding by default). This only works when using -+ a Unicode font instead of the default raster font. -+ + Don’t get the home directory from environment variable HOME -+ under Windows (except for Cygwin binaries): we don’t want the -+ behavior of Unison to depends on whether it is run from a -+ Cygwin shell (where HOME is set) or in any other way (where -+ HOME is usually not set). -+ * Miscellaneous fixes and improvements -+ + Made a server waiting on a socket more resilient to unexpected -+ lost connections from the client. -+ + Small patch to property setting code suggested by Ulrich -+ Gernkow. -+ + Several fixes to the change transfer functions (both the -+ internal ones and external transfers using rsync). In -+ particular, limit the number of simultaneous transfer using an -+ rsync (as the rsync algorithm can use a large amount of memory -+ when processing huge files) -+ + Keep track of which file contents are being transferred, and -+ delay the transfer of a file when another file with the same -+ contents is currently being transferred. This way, the second -+ transfer can be skipped and replaced by a local copy. -+ + Experimental update detection optimization: do not read the -+ contents of unchanged directories -+ + When a file transfer fails, turn off fastcheck for this file -+ on the next sync. -+ + Fixed bug with case insensitive mode on a case sensitive -+ filesystem: -+ o if file "a/a" is created on one replica and directory "A" -+ is created on the other, the file failed to be -+ synchronized the first time Unison is run afterwards, as -+ Unison uses the wrong path "a/a" (if Unison is run again, -+ the directories are in the archive, so the right path is -+ used); -+ o if file "a" appears on one replica and file "A" appears -+ on the other with different contents, Unison was unable -+ to synchronize them. -+ + Improved error reporting when the destination is updated -+ during synchronization: Unison now tells which file has been -+ updated, and how. -+ + Limit the length of temporary file names -+ + Case sensitivity information put in the archive (in a backward -+ compatible way) and checked when the archive is loaded -+ + Got rid of the 16mb marshalling limit by marshalling to a -+ bigarray. -+ + Resume copy of partially transferred files. -+ -+ Changes since 2.31: -+ * Small user interface changes -+ + Small change to text UI "scanning..." messages, to print just -+ directories (hopefully making it clearer that individual files -+ are not necessarily being fingerprinted). -+ * Minor fixes and improvements: -+ + Ignore one hour differences when deciding whether a file may -+ have been updated. This avoids slow update detection after -+ daylight saving time changes under Windows. This makes Unison -+ slightly more likely to miss an update, but it should be safe -+ enough. -+ + Fix a small bug that was affecting mainly windows users. We -+ need to commit the archives at the end of the sync even if -+ there are no updates to propagate because some files (in fact, -+ if we’ve just switched to DST on windows, a LOT of files) -+ might have new modtimes in the archive. (Changed the text UI -+ only. It’s less clear where to change the GUI.) -+ + Don’t delete the temp file when a transfer fails due to a -+ fingerprint mismatch (so that we can have a look and see why!) -+ We’ve also added more debugging code togive more informative -+ error messages when we encounter the dreaded and longstanding -+ "assert failed during file transfer" bug -+ + Incorrect paths ("path" directive) now result in an error -+ update item rather than a fatal error. -+ + Create parent directories (with correct permissions) during -+ transport for paths which point to non-existent locations in -+ the destination replica. -+ -+ Changes since 2.27: -+ * If Unison is interrupted during a directory transfer, it will now -+ leave the partially transferred directory intact in a temporary -+ location. (This maintains the invariant that new files/directories -+ are transferred either completely or not at all.) The next time -+ Unison is run, it will continue filling in this temporary -+ directory, skipping transferring files that it finds are already -+ there. -+ * We’ve added experimental support for invoking an external file -+ transfer tool for whole-file copies instead of Unison’s built-in -+ transfer protocol. Three new preferences have been added: -+ + copyprog is a string giving the name (and command-line -+ switches, if needed) of an external program that can be used -+ to copy large files efficiently. By default, rsync is invoked, -+ but other tools such as scp can be used instead by changing -+ the value of this preference. (Although this is not its -+ primary purpose, rsync is actually a pretty fast way of -+ copying files that don’t already exist on the receiving host.) -+ For files that do already exist on (but that have been changed -+ in one replica), Unison will always use its built-in -+ implementation of the rsync algorithm. -+ + Added a "copyprogrest" preference, so that we can give -+ different command lines for invoking the external copy utility -+ depending on whether a partially transferred file already -+ exists or not. (Rsync doesn’t seem to care about this, but -+ other utilities may.) -+ + copythreshold is an integer (-1 by default), indicating above -+ what filesize (in megabytes) Unison should use the external -+ copying utility specified by copyprog. Specifying 0 will cause -+ ALL copies to use the external program; a negative number will -+ prevent any files from using it. (Default is -1.) -+ Thanks to Alan Schmitt for a huge amount of hacking and to an -+ anonymous sponsor for suggesting and underwriting this extension. -+ * Small improvements: -+ + Added a new preference, dontchmod. By default, Unison uses the -+ chmod system call to set the permission bits of files after it -+ has copied them. But in some circumstances (and under some -+ operating systems), the chmod call always fails. Setting this -+ preference completely prevents Unison from ever calling chmod. -+ + Don’t ignore files that look like backup files if the -+ backuplocation preference is set to central -+ + Shortened the names of several preferences. The old names are -+ also still supported, for backwards compatibility, but they do -+ not appear in the documentation. -+ + Lots of little documentation tidying. (In particular, -+ preferences are separated into Basic and Advanced! This should -+ hopefully make Unison a little more approachable for new -+ users. -+ + Unison can sometimes fail to transfer a file, giving the -+ unhelpful message "Destination updated during synchronization" -+ even though the file has not been changed. This can be caused -+ by programs that change either the file’s contents or the -+ file’s extended attributes without changing its modification -+ time. It’s not clear what is the best fix for this – it is not -+ Unison’s fault, but it makes Unison’s behavior puzzling – but -+ at least Unison can be more helpful about suggesting a -+ workaround (running once with fastcheck set to false). The -+ failure message has been changed to give this advice. -+ + Further improvements to the OS X GUI (thanks to Alan Schmitt -+ and Craig Federighi). -+ * Very preliminary support for triggering Unison from an external -+ filesystem-watching utility. The current implementation is very -+ simple, not efficient, and almost completely untested—not ready for -+ real users. But if someone wants to help improve it (e.g., by -+ writing a filesystem watcher for your favorite OS), please make -+ yourself known! -+ On the Unison side, the new behavior is very simple: -+ + use the text UI -+ + start Unison with the command-line flag "-repeat FOO", where -+ FOO is name of a file where Unison should look for -+ notifications of changes -+ + when it starts up, Unison will read the whole contents of this -+ file (on both hosts), which should be a newline-separated list -+ of paths (relative to the root of the synchronization) and -+ synchronize just these paths, as if it had been started with -+ the "-path=xxx" option for each one of them -+ + when it finishes, it will sleep for a few seconds and then -+ examine the watchfile again; if anything has been added, it -+ will read the new paths, synchronize them, and go back to -+ sleep -+ + that’s it! -+ To use this to drive Unison "incrementally," just start it in this -+ mode and start up a tool (on each host) to watch for new changes to -+ the filesystem and append the appropriate paths to the watchfile. -+ Hopefully such tools should not be too hard to write. -+ * Bug fixes: -+ + Fixed a bug that was causing new files to be created with -+ permissions 0x600 instead of using a reasonable default (like -+ 0x644), if the ’perms’ flag was set to 0. (Bug reported by Ben -+ Crowell.) -+ + Follow maxthreads preference when transferring directories. -+ -+ Changes since 2.17: -+ * Major rewrite and cleanup of the whole Mac OS X graphical user -+ interface by Craig Federighi. Thanks, Craig!!! -+ * Small fix to ctime (non-)handling in update detection under windows -+ with fastcheck. -+ * Several small fixes to the GTK2 UI to make it work better under -+ Windows [thanks to Karl M for these]. -+ * The backup functionality has been completely rewritten. The -+ external interface has not changed, but numerous bugs, irregular -+ behaviors, and cross-platform inconsistencies have been corrected. -+ * The Unison project now accepts donations via PayPal. If you’d like -+ to donate, you can find a link to the donation page on the Unison -+ home page (http://www.cis.upenn.edu/ bcpierce/unison/lists.html). -+ * Some important safety improvements: -+ + Added a new mountpoint preference, which can be used to -+ specify a path that must exist in both replicas at the end of -+ update detection (otherwise Unison aborts). This can be used -+ to avoid potentially dangerous situations when Unison is used -+ with removable media such as external hard drives and compact -+ flash cards. -+ + The confirmation of “big deletes” is now controlled by a -+ boolean preference confirmbigdeletes. Default is true, which -+ gives the same behavior as previously. (This functionality is -+ at least partly superceded by the mountpoint preference, but -+ it has been left in place in case it is useful to some -+ people.) -+ + If Unison is asked to “follow” a symbolic link but there is -+ nothing at the other end of the link, it will now flag this -+ path as an error, rather than treating the symlink itself as -+ missing or deleted. This avoids a potentially dangerous -+ situation where a followed symlink points to an external -+ filesystem that might be offline when Unison is run (whereupon -+ Unison would cheerfully delete the corresponding files in the -+ other replica!). -+ * Smaller changes: -+ + Added forcepartial and preferpartial preferences, which behave -+ like force and prefer but can be specified on a per-path -+ basis. [Thanks to Alan Schmitt for this.] -+ + A bare-bones self test feature was added, which runs unison -+ through some of its paces and checks that the results are as -+ expected. The coverage of the tests is still very limited, but -+ the facility has already been very useful in debugging the new -+ backup functionality (especially in exposing some subtle -+ cross-platform issues). -+ + Refined debugging code so that the verbosity of individual -+ modules can be controlled separately. Instead of just putting -+ ’-debug verbose’ on the command line, you can put ’-debug -+ update+’, which causes all the extra messages in the Update -+ module, but not other modules, to be printed. Putting ’-debug -+ verbose’ causes all modules to print with maximum verbosity. -+ + Removed mergebatch preference. (It never seemed very useful, -+ and its semantics were confusing.) -+ + Rewrote some of the merging functionality, for better -+ cooperation with external Harmony instances. -+ + Changed the temp file prefix from .# to .unison. -+ + Compressed the output from the text user interface -+ (particularly when run with the -terse flag) to make it easier -+ to interpret the results when Unison is run several times in -+ succession from a script. -+ + Diff and merge functions now work under Windows. -+ + Changed the order of arguments to the default diff command (so -+ that the + and - annotations in diff’s output are reversed). -+ + Added .mpp files to the “never fastcheck” list (like .xls -+ files). -+ * Many small bugfixes, including: -+ + Fixed a longstanding bug regarding fastcheck and daylight -+ saving time under Windows when Unison is set up to synchronize -+ modification times. (Modification times cannot be updated in -+ the archive in this case, so we have to ignore one hour -+ differences.) -+ + Fixed a bug that would occasionally cause the archives to be -+ left in non-identical states on the two hosts after -+ synchronization. -+ + Fixed a bug that prevented Unison from communicating correctly -+ between 32- and 64-bit architectures. -+ + On windows, file creation times are no longer used as a proxy -+ for inode numbers. (This is unfortunate, as it makes fastcheck -+ a little less safe. But it turns out that file creation times -+ are not reliable under Windows: if a file is removed and a new -+ file is created in its place, the new one will sometimes be -+ given the same creation date as the old one!) -+ + Set read-only file to R/W on OSX before attempting to change -+ other attributes. -+ + Fixed bug resulting in spurious "Aborted" errors during -+ transport (thanks to Jerome Vouillon) -+ + Enable diff if file contents have changed in one replica, but -+ only properties in the other. -+ + Removed misleading documentation for ’repeat’ preference. -+ + Fixed a bug in merging code where Unison could sometimes -+ deadlock with the external merge program, if the latter -+ produced large amounts of output. -+ + Workaround for a bug compiling gtk2 user interface against -+ current versions of gtk2+ libraries. -+ + Added a better error message for "ambiguous paths". -+ + Squashed a longstanding bug that would cause file transfer to -+ fail with the message “Failed: Error in readWrite: Is a -+ directory.” -+ + Replaced symlinks with copies of their targets in the Growl -+ framework in src/uimac. This should make the sources easier to -+ check out from the svn repository on WinXP systems. -+ + Added a workaround (suggested by Karl M.) for the problem -+ discussed on the unison users mailing list where, on the -+ Windows platform, the server would hang when transferring -+ files. I conjecture that the problem has to do with the RPC -+ mechanism, which was used to make a call back from the server -+ to the client (inside the Trace.log function) so that the log -+ message would be appended to the log file on the client. The -+ workaround is to dump these messages (about when xferbycopying -+ shortcuts are applied and whether they succeed) just to the -+ standard output of the Unison process, not to the log file. -+ -+ Changes since 2.13.0: -+ * The features for performing backups and for invoking external merge -+ programs have been completely rewritten by Stephane Lescuyer -+ (thanks, Stephane!). The user-visible functionality should not -+ change, but the internals have been rationalized and there are a -+ number of new features. See the manual (in particular, the -+ description of the backupXXX preferences) for details. -+ * Incorporated patches for ipv6 support, contributed by Samuel -+ Thibault. (Note that, due to a bug in the released OCaml 3.08.3 -+ compiler, this code will not actually work with ipv6 unless -+ compiled with the CVS version of the OCaml compiler, where the bug -+ has been fixed; however, ipv4 should continue to work normally.) -+ * OSX interface: -+ + Incorporated Ben Willmore’s cool new icon for the Mac UI. -+ * Small fixes: -+ + Fixed off by one error in month numbers (in printed dates) -+ reported by Bob Burger -+ -+ Changes since 2.12.0: -+ * New convention for release numbering: Releases will continue to be -+ given numbers of the form X.Y.Z, but, from now on, just the major -+ version number (X.Y) will be considered significant when checking -+ compatibility between client and server versions. The third -+ component of the version number will be used only to identify -+ “patch levels” of releases. -+ This change goes hand in hand with a change to the procedure for -+ making new releases. Candidate releases will initially be given -+ “beta release” status when they are announced for public -+ consumption. Any bugs that are discovered will be fixed in a -+ separate branch of the source repository (without changing the -+ major version number) and new tarballs re-released as needed. When -+ this process converges, the patched beta version will be dubbed -+ stable. -+ * Warning (failure in batch mode) when one path is completely -+ emptied. This prevents Unison from deleting everything on one -+ replica when the other disappear. -+ * Fix diff bug (where no difference is shown the first time the diff -+ command is given). -+ * User interface changes: -+ + Improved workaround for button focus problem (GTK2 UI) -+ + Put leading zeroes in date fields -+ + More robust handling of character encodings in GTK2 UI -+ + Changed format of modification time displays, from modified at -+ hh:mm:ss on dd MMM, yyyy to modified on yyyy-mm-dd hh:mm:ss -+ + Changed time display to include seconds (so that people on FAT -+ filesystems will not be confused when Unison tries to update a -+ file time to an odd number of seconds and the filesystem -+ truncates it to an even number!) -+ + Use the diff "-u" option by default when showing differences -+ between files (the output is more readable) -+ + In text mode, pipe the diff output to a pager if the -+ environment variable PAGER is set -+ + Bug fixes and cleanups in ssh password prompting. Now works -+ with the GTK2 UI under Linux. (Hopefully the Mac OS X one is -+ not broken!) -+ + Include profile name in the GTK2 window name -+ + Added bindings ’,’ (same as ’<’) and ’.’ (same as ’>’) in the -+ GTK2 UI -+ * Mac GUI: -+ + actions like < and > scroll to the next item as necessary. -+ + Restart has a menu item and keyboard shortcut (command-R). -+ + Added a command-line tool for Mac OS X. It can be installed -+ from the Unison menu. -+ + New icon. -+ + Handle the "help" command-line argument properly. -+ + Handle profiles given on the command line properly. -+ + When a profile has been selected, the profile dialog is -+ replaced by a "connecting" message while the connection is -+ being made. This gives better feedback. -+ + Size of left and right columns is now large enough so that -+ "PropsChanged" is not cut off. -+ * Minor changes: -+ + Disable multi-threading when both roots are local -+ + Improved error handling code. In particular, make sure all -+ files are closed in case of a transient failure -+ + Under Windows, use $UNISON for home directory as a last resort -+ (it was wrongly moved before $HOME and $USERPROFILE in Unison -+ 2.12.0) -+ + Reopen the logfile if its name changes (profile change) -+ + Double-check that permissions and modification times have been -+ properly set: there are some combination of OS and filesystem -+ on which setting them can fail in a silent way. -+ + Check for bad Windows filenames for pure Windows -+ synchronization also (not just cross architecture -+ synchronization). This way, filenames containing backslashes, -+ which are not correctly handled by unison, are rejected right -+ away. -+ + Attempt to resolve issues with synchronizing modification -+ times of read-only files under Windows -+ + Ignore chmod failures when deleting files -+ + Ignore trailing dots in filenames in case insensitive mode -+ + Proper quoting of paths, files and extensions ignored using -+ the UI -+ + The strings CURRENT1 and CURRENT2 are now correctly substitued -+ when they occur in the diff preference -+ + Improvements to syncing resource forks between Macs via a -+ non-Mac system. -+ -+ Changes since 2.10.2: -+ * INCOMPATIBLE CHANGE: Archive format has changed. -+ * Source code availability: The Unison sources are now managed using -+ Subversion. One nice side-effect is that anonymous checkout is now -+ possible, like this: -+ svn co https://cvs.cis.upenn.edu:3690/svnroot/unison/ -+ -+ We will also continue to export a “developer tarball” of the -+ current (modulo one day) sources in the web export directory. To -+ receive commit logs for changes to the sources, subscribe to the -+ unison-hackers list -+ (http://www.cis.upenn.edu/ bcpierce/unison/lists.html). -+ * Text user interface: -+ + Substantial reworking of the internal logic of the text UI to -+ make it a bit easier to modify. -+ + The dumbtty flag in the text UI is automatically set to true -+ if the client is running on a Unix system and the EMACS -+ environment variable is set to anything other than the empty -+ string. -+ * Native OS X gui: -+ + Added a synchronize menu item with keyboard shortcut -+ + Added a merge menu item, still needs to be debugged -+ + Fixes to compile for Panther -+ + Miscellaneous improvements and bugfixes -+ * Small changes: -+ + Changed the filename checking code to apply to Windows only, -+ instead of OS X as well. -+ + Finder flags now synchronized -+ + Fallback in copy.ml for filesystem that do not support O_EXCL -+ + Changed buffer size for local file copy (was highly -+ inefficient with synchronous writes) -+ + Ignore chmod failure when deleting a directory -+ + Fixed assertion failure when resolving a conflict content -+ change / permission changes in favor of the content change. -+ + Workaround for transferring large files using rsync. -+ + Use buffered I/O for files (this is the only way to open files -+ in binary mode under Cygwin). -+ + On non-Cygwin Windows systems, the UNISON environment variable -+ is now checked first to determine where to look for Unison’s -+ archive and preference files, followed by HOME and USERPROFILE -+ in that order. On Unix and Cygwin systems, HOME is used. -+ + Generalized diff preference so that it can be given either as -+ just the command name to be used for calculating diffs or else -+ a whole command line, containing the strings CURRENT1 and -+ CURRENT2, which will be replaced by the names of the files to -+ be diff’ed before the command is called. -+ + Recognize password prompts in some newer versions of ssh. -+ -+ Changes since 2.9.20: -+ * INCOMPATIBLE CHANGE: Archive format has changed. -+ * Major functionality changes: -+ + Major tidying and enhancement of ’merge’ functionality. The -+ main user-visible change is that the external merge program -+ may either write the merged output to a single new file, as -+ before, or it may modify one or both of its input files, or it -+ may write two new files. In the latter cases, its -+ modifications will be copied back into place on both the local -+ and the remote host, and (if the two files are now equal) the -+ archive will be updated appropriately. More information can be -+ found in the user manual. Thanks to Malo Denielou and Alan -+ Schmitt for these improvements. -+ Warning: the new merging functionality is not completely -+ compatible with old versions! Check the manual for details. -+ + Files larger than 2Gb are now supported. -+ + Added preliminary (and still somewhat experimental) support -+ for the Apple OS X operating system. -+ o Resource forks should be transferred correctly. (See the -+ manual for details of how this works when synchronizing -+ HFS with non-HFS volumes.) Synchronization of file type -+ and creator information is also supported. -+ o On OSX systems, the name of the directory for storing -+ Unison’s archives, preference files, etc., is now -+ determined as follows: -+ # if ~/.unison exists, use it -+ # otherwise, use ~/Library/Application Support/Unison, -+ creating it if necessary. -+ o A preliminary native-Cocoa user interface is under -+ construction. This still needs some work, and some users -+ experience unpredictable crashes, so it is only for -+ hackers for now. Run make with UISTYLE=mac to build this -+ interface. -+ * Minor functionality changes: -+ + Added an ignorelocks preference, which forces Unison to -+ override left-over archive locks. (Setting this preference is -+ dangerous! Use it only if you are positive you know what you -+ are doing.) -+ + Added a new preference assumeContentsAreImmutable. If a -+ directory matches one of the patterns set in this preference, -+ then update detection is skipped for files in this directory. -+ (The purpose is to speed update detection for cases like Mail -+ folders, which contain lots and lots of immutable files.) Also -+ a preference assumeContentsAreImmutableNot, which overrides -+ the first, similarly to ignorenot. (Later amendment: these -+ preferences are now called immutable and immutablenot.) -+ + The ignorecase flag has been changed from a boolean to a -+ three-valued preference. The default setting, called default, -+ checks the operating systems running on the client and server -+ and ignores filename case if either of them is OSX or Windows. -+ Setting ignorecase to true or false overrides this behavior. -+ If you have been setting ignorecase on the command line using -+ -ignorecase=true or -ignorecase=false, you will need to change -+ to -ignorecase true or -ignorecase false. -+ + a new preference, ’repeat’, for the text user interface -+ (only). If ’repeat’ is set to a number, then, after it -+ finishes synchronizing, Unison will wait for that many seconds -+ and then start over, continuing this way until it is killed -+ from outside. Setting repeat to true will automatically set -+ the batch preference to true. -+ + Excel files are now handled specially, so that the fastcheck -+ optimization is skipped even if the fastcheck flag is set. -+ (Excel does some naughty things with modtimes, making this -+ optimization unreliable and leading to failures during change -+ propagation.) -+ + The ignorecase flag has been changed from a boolean to a -+ three-valued preference. The default setting, called -+ ’default’, checks the operating systems running on the client -+ and server and ignores filename case if either of them is OSX -+ or Windows. Setting ignorecase to ’true’ or ’false’ overrides -+ this behavior. -+ + Added a new preference, ’repeat’, for the text user interface -+ (only, at the moment). If ’repeat’ is set to a number, then, -+ after it finishes synchronizing, Unison will wait for that -+ many seconds and then start over, continuing this way until it -+ is killed from outside. Setting repeat to true will -+ automatically set the batch preference to true. -+ + The ’rshargs’ preference has been split into ’rshargs’ and -+ ’sshargs’ (mainly to make the documentation clearer). In fact, -+ ’rshargs’ is no longer mentioned in the documentation at all, -+ since pretty much everybody uses ssh now anyway. -+ * Documentation -+ + The web pages have been completely redesigned and reorganized. -+ (Thanks to Alan Schmitt for help with this.) -+ * User interface improvements -+ + Added a GTK2 user interface, capable (among other things) of -+ displaying filenames in any locale encoding. Kudos to Stephen -+ Tse for contributing this code! -+ + The text UI now prints a list of failed and skipped transfers -+ at the end of synchronization. -+ + Restarting update detection from the graphical UI will reload -+ the current profile (which in particular will reset the -path -+ preference, in case it has been narrowed by using the “Recheck -+ unsynchronized items” command). -+ + Several small improvements to the text user interface, -+ including a progress display. -+ * Bug fixes (too numerous to count, actually, but here are some): -+ + The maxthreads preference works now. -+ + Fixed bug where warning message about uname returning an -+ unrecognized result was preventing connection to server. (The -+ warning is no longer printed, and all systems where ’uname’ -+ returns anything other than ’Darwin’ are assumed not to be -+ running OS X.) -+ + Fixed a problem on OS X that caused some valid file names -+ (e.g., those including colons) to be considered invalid. -+ + Patched Path.followLink to follow links under cygwin in -+ addition to Unix (suggested by Matt Swift). -+ + Small change to the storeRootsName function, suggested by -+ bliviero at ichips.intel.com, to fix a problem in unison with -+ the ‘rootalias’ option, which allows you to tell unison that -+ two roots contain the same files. Rootalias was being applied -+ after the hosts were sorted, so it wouldn’t work properly in -+ all cases. -+ + Incorporated a fix by Dmitry Bely for setting utimes of -+ read-only files on Win32 systems. -+ * Installation / portability: -+ + Unison now compiles with OCaml version 3.07 and later out of -+ the box. -+ + Makefile.OCaml fixed to compile out of the box under OpenBSD. -+ + a few additional ports (e.g. OpenBSD, Zaurus/IPAQ) are now -+ mentioned in the documentation -+ + Unison can now be installed easily on OSX systems using the -+ Fink package manager -+ -+ Changes since 2.9.1: -+ * Added a preference maxthreads that can be used to limit the number -+ of simultaneous file transfers. -+ * Added a backupdir preference, which controls where backup files are -+ stored. -+ * Basic support added for OSX. In particular, Unison now recognizes -+ when one of the hosts being synchronized is running OSX and -+ switches to a case-insensitive treatment of filenames (i.e., ’foo’ -+ and ’FOO’ are considered to be the same file). (OSX is not yet -+ fully working, however: in particular, files with resource forks -+ will not be synchronized correctly.) -+ * The same hash used to form the archive name is now also added to -+ the names of the temp files created during file transfer. The -+ reason for this is that, during update detection, we are going to -+ silently delete any old temp files that we find along the way, and -+ we want to prevent ourselves from deleting temp files belonging to -+ other instances of Unison that may be running in parallel, e.g. -+ synchronizing with a different host. Thanks to Ruslan Ermilov for -+ this suggestion. -+ * Several small user interface improvements -+ * Documentation -+ + FAQ and bug reporting instructions have been split out as -+ separate HTML pages, accessible directly from the unison web -+ page. -+ + Additions to FAQ, in particular suggestions about performance -+ tuning. -+ * Makefile -+ + Makefile.OCaml now sets UISTYLE=text or UISTYLE=gtk -+ automatically, depending on whether it finds lablgtk installed -+ + Unison should now compile “out of the box” under OSX -+ -+ Changes since 2.8.1: -+ * Changing profile works again under Windows -+ * File movement optimization: Unison now tries to use local copy -+ instead of transfer for moved or copied files. It is controled by a -+ boolean option “xferbycopying”. -+ * Network statistics window (transfer rate, amount of data -+ transferred). [NB: not available in Windows-Cygwin version.] -+ * symlinks work under the cygwin version (which is dynamically -+ linked). -+ * Fixed potential deadlock when synchronizing between Windows and -+ Unix -+ * Small improvements: -+ + If neither the USERPROFILE nor the HOME environment variables -+ are set, then Unison will put its temporary commit log (called -+ DANGER.README) into the directory named by the UNISON -+ environment variable, if any; otherwise it will use C:. -+ + alternative set of values for fastcheck: yes = true; no = -+ false; default = auto. -+ + -silent implies -contactquietly -+ * Source code: -+ + Code reorganization and tidying. (Started breaking up some of -+ the basic utility modules so that the non-unison-specific -+ stuff can be made available for other projects.) -+ + several Makefile and docs changes (for release); -+ + further comments in “update.ml”; -+ + connection information is not stored in global variables -+ anymore. -+ -+ Changes since 2.7.78: -+ * Small bugfix to textual user interface under Unix (to avoid leaving -+ the terminal in a bad state where it would not echo inputs after -+ Unison exited). -+ -+ Changes since 2.7.39: -+ * Improvements to the main web page (stable and beta version docs are -+ now both accessible). -+ * User manual revised. -+ * Added some new preferences: -+ + “sshcmd” and “rshcmd” for specifying paths to ssh and rsh -+ programs. -+ + “contactquietly” for suppressing the “contacting server” -+ message during Unison startup (under the graphical UI). -+ * Bug fixes: -+ + Fixed small bug in UI that neglected to change the displayed -+ column headers if loading a new profile caused the roots to -+ change. -+ + Fixed a bug that would put the text UI into an infinite loop -+ if it encountered a conflict when run in batch mode. -+ + Added some code to try to fix the display of non-Ascii -+ characters in filenames on Windows systems in the GTK UI. -+ (This code is currently untested—if you’re one of the people -+ that had reported problems with display of non-ascii -+ filenames, we’d appreciate knowing if this actually fixes -+ things.) -+ + ‘-prefer/-force newer’ works properly now. (The bug was -+ reported by Sebastian Urbaniak and Sean Fulton.) -+ * User interface and Unison behavior: -+ + Renamed ‘Proceed’ to ‘Go’ in the graphical UI. -+ + Added exit status for the textual user interface. -+ + Paths that are not synchronized because of conflicts or errors -+ during update detection are now noted in the log file. -+ + [END] messages in log now use a briefer format -+ + Changed the text UI startup sequence so that ./unison -ui text -+ will use the default profile instead of failing. -+ + Made some improvements to the error messages. -+ + Added some debugging messages to remote.ml. -+ -+ Changes since 2.7.7: -+ * Incorporated, once again, a multi-threaded transport sub-system. It -+ transfers several files at the same time, thereby making much more -+ effective use of available network bandwidth. Unlike the earlier -+ attempt, this time we do not rely on the native thread library of -+ OCaml. Instead, we implement a light-weight, non-preemptive -+ multi-thread library in OCaml directly. This version appears -+ stable. -+ Some adjustments to unison are made to accommodate the -+ multi-threaded version. These include, in particular, changes to -+ the user interface and logging, for example: -+ + Two log entries for each transferring task, one for the -+ beginning, one for the end. -+ + Suppressed warning messages against removing temp files left -+ by a previous unison run, because warning does not work nicely -+ under multi-threading. The temp file names are made less -+ likely to coincide with the name of a file created by the -+ user. They take the form -+ .#..unison.tmp. [N.b. This was later changed -+ to .unison...unison.tmp.] -+ * Added a new command to the GTK user interface: pressing ’f’ causes -+ Unison to start a new update detection phase, using as paths just -+ those paths that have been detected as changed and not yet marked -+ as successfully completed. Use this command to quickly restart -+ Unison on just the set of paths still needing attention after a -+ previous run. -+ * Made the ignorecase preference user-visible, and changed the -+ initialization code so that it can be manually set to true, even if -+ neither host is running Windows. (This may be useful, e.g., when -+ using Unison running on a Unix system with a FAT volume mounted.) -+ * Small improvements and bug fixes: -+ + Errors in preference files now generate fatal errors rather -+ than warnings at startup time. (I.e., you can’t go on from -+ them.) Also, we fixed a bug that was preventing these warnings -+ from appearing in the text UI, so some users who have been -+ running (unsuspectingly) with garbage in their prefs files may -+ now get error reports. -+ + Error reporting for preference files now provides file name -+ and line number. -+ + More intelligible message in the case of identical change to -+ the same files: “Nothing to do: replicas have been changed -+ only in identical ways since last sync.” -+ + Files with prefix ’.#’ excluded when scanning for preference -+ files. -+ + Rsync instructions are send directly instead of first -+ marshaled. -+ + Won’t try forever to get the fingerprint of a continuously -+ changing file: unison will give up after certain number of -+ retries. -+ + Other bug fixes, including the one reported by Peter Selinger -+ (force=older preference not working). -+ * Compilation: -+ + Upgraded to the new OCaml 3.04 compiler, with the LablGtk -+ 1.2.3 library (patched version used for compiling under -+ Windows). -+ + Added the option to compile unison on the Windows platform -+ with Cygwin GNU C compiler. This option only supports building -+ dynamically linked unison executables. -+ -+ Changes since 2.7.4: -+ * Fixed a silly (but debilitating) bug in the client startup -+ sequence. -+ -+ Changes since 2.7.1: -+ * Added addprefsto preference, which (when set) controls which -+ preference file new preferences (e.g. new ignore patterns) are -+ added to. -+ * Bug fix: read the initial connection header one byte at a time, so -+ that we don’t block if the header is shorter than expected. (This -+ bug did not affect normal operation — it just made it hard to tell -+ when you were trying to use Unison incorrectly with an old version -+ of the server, since it would hang instead of giving an error -+ message.) -+ -+ Changes since 2.6.59: -+ * Changed fastcheck from a boolean to a string preference. Its legal -+ values are yes (for a fast check), no (for a safe check), or -+ default (for a fast check—which also happens to be safe—when -+ running on Unix and a safe check when on Windows). The default is -+ default. -+ * Several preferences have been renamed for consistency. All -+ preference names are now spelled out in lowercase. For backward -+ compatibility, the old names still work, but they are not mentioned -+ in the manual any more. -+ * The temp files created by the ’diff’ and ’merge’ commands are now -+ named by prepending a new prefix to the file name, rather than -+ appending a suffix. This should avoid confusing diff/merge programs -+ that depend on the suffix to guess the type of the file contents. -+ * We now set the keepalive option on the server socket, to make sure -+ that the server times out if the communication link is unexpectedly -+ broken. -+ * Bug fixes: -+ + When updating small files, Unison now closes the destination -+ file. -+ + File permissions are properly updated when the file is behind -+ a followed link. -+ + Several other small fixes. -+ -+ Changes since 2.6.38: -+ * Major Windows performance improvement! -+ We’ve added a preference fastcheck that makes Unison look only at a -+ file’s creation time and last-modified time to check whether it has -+ changed. This should result in a huge speedup when checking for -+ updates in large replicas. -+ When this switch is set, Unison will use file creation times as -+ ’pseudo inode numbers’ when scanning Windows replicas for updates, -+ instead of reading the full contents of every file. This may cause -+ Unison to miss propagating an update if the create time, -+ modification time, and length of the file are all unchanged by the -+ update (this is not easy to achieve, but it can be done). However, -+ Unison will never overwrite such an update with a change from the -+ other replica, since it always does a safe check for updates just -+ before propagating a change. Thus, it is reasonable to use this -+ switch most of the time and occasionally run Unison once with -+ fastcheck set to false, if you are worried that Unison may have -+ overlooked an update. -+ Warning: This change is has not yet been thoroughly field-tested. -+ If you set the fastcheck preference, pay careful attention to what -+ Unison is doing. -+ * New functionality: centralized backups and merging -+ + This version incorporates two pieces of major new -+ functionality, implemented by Sylvain Roy during a summer -+ internship at Penn: a centralized backup facility that keeps a -+ full backup of (selected files in) each replica, and a merging -+ feature that allows Unison to invoke an external file-merging -+ tool to resolve conflicting changes to individual files. -+ + Centralized backups: -+ o Unison now maintains full backups of the -+ last-synchronized versions of (some of) the files in each -+ replica; these function both as backups in the usual -+ sense and as the “common version” when invoking external -+ merge programs. -+ o The backed up files are stored in a directory -+ /.unison/backup on each host. (The name of this directory -+ can be changed by setting the environment variable -+ UNISONBACKUPDIR.) -+ o The predicate backup controls which files are actually -+ backed up: giving the preference ’backup = Path *’ causes -+ backing up of all files. -+ o Files are added to the backup directory whenever unison -+ updates its archive. This means that -+ # When unison reconstructs its archive from scratch -+ (e.g., because of an upgrade, or because the archive -+ files have been manually deleted), all files will be -+ backed up. -+ # Otherwise, each file will be backed up the first -+ time unison propagates an update for it. -+ o The preference backupversions controls how many previous -+ versions of each file are kept. The default is 2 (i.e., -+ the last synchronized version plus one backup). -+ o For backward compatibility, the backups preference is -+ also still supported, but backup is now preferred. -+ o It is OK to manually delete files from the backup -+ directory (or to throw away the directory itself). Before -+ unison uses any of these files for anything important, it -+ checks that its fingerprint matches the one that it -+ expects. -+ + Merging: -+ o Both user interfaces offer a new ’merge’ command, invoked -+ by pressing ’m’ (with a changed file selected). -+ o The actual merging is performed by an external program. -+ The preferences merge and merge2 control how this program -+ is invoked. If a backup exists for this file (see the -+ backup preference), then the merge preference is used for -+ this purpose; otherwise merge2 is used. In both cases, -+ the value of the preference should be a string -+ representing the command that should be passed to a shell -+ to invoke the merge program. Within this string, the -+ special substrings CURRENT1, CURRENT2, NEW, and OLD may -+ appear at any point. Unison will substitute these as -+ follows before invoking the command: -+ # CURRENT1 is replaced by the name of the local copy -+ of the file; -+ # CURRENT2 is replaced by the name of a temporary -+ file, into which the contents of the remote copy of -+ the file have been transferred by Unison prior to -+ performing the merge; -+ # NEW is replaced by the name of a temporary file that -+ Unison expects to be written by the merge program -+ when it finishes, giving the desired new contents of -+ the file; and -+ # OLD is replaced by the name of the backed up copy of -+ the original version of the file (i.e., its state at -+ the end of the last successful run of Unison), if -+ one exists (applies only to merge, not merge2). -+ For example, on Unix systems setting the merge preference -+ to -+ merge = diff3 -m CURRENT1 OLD CURRENT2 > NEW -+ -+ will tell Unison to use the external diff3 program for -+ merging. -+ A large number of external merging programs are -+ available. For example, emacs users may find the -+ following convenient: -+ merge2 = emacs -q --eval '(ediff-merge-files "CURRENT1" "CURRENT2" -+ nil "NEW")' -+ merge = emacs -q --eval '(ediff-merge-files-with-ancestor -+ "CURRENT1" "CURRENT2" "OLD" nil "NEW")' -+ -+ (These commands are displayed here on two lines to avoid -+ running off the edge of the page. In your preference -+ file, each should be written on a single line.) -+ o If the external program exits without leaving any file at -+ the path NEW, Unison considers the merge to have failed. -+ If the merge program writes a file called NEW but exits -+ with a non-zero status code, then Unison considers the -+ merge to have succeeded but to have generated conflicts. -+ In this case, it attempts to invoke an external editor so -+ that the user can resolve the conflicts. The value of the -+ editor preference controls what editor is invoked by -+ Unison. The default is emacs. -+ o Please send us suggestions for other useful values of the -+ merge2 and merge preferences – we’d like to give several -+ examples in the manual. -+ * Smaller changes: -+ + When one preference file includes another, unison no longer -+ adds the suffix ’.prf’ to the included file by default. If a -+ file with precisely the given name exists in the .unison -+ directory, it will be used; otherwise Unison will add .prf, as -+ it did before. (This change means that included preference -+ files can be named blah.include instead of blah.prf, so that -+ unison will not offer them in its ’choose a preference file’ -+ dialog.) -+ + For Linux systems, we now offer both a statically linked and a -+ dynamically linked executable. The static one is larger, but -+ will probably run on more systems, since it doesn’t depend on -+ the same versions of dynamically linked library modules being -+ available. -+ + Fixed the force and prefer preferences, which were getting the -+ propagation direction exactly backwards. -+ + Fixed a bug in the startup code that would cause unison to -+ crash when the default profile (~/.unison/default.prf) does -+ not exist. -+ + Fixed a bug where, on the run when a profile is first created, -+ Unison would confusingly display the roots in reverse order in -+ the user interface. -+ * For developers: -+ + We’ve added a module dependency diagram to the source -+ distribution, in src/DEPENDENCIES.ps, to help new prospective -+ developers with navigating the code. -+ -+ Changes since 2.6.11: -+ * INCOMPATIBLE CHANGE: Archive format has changed. -+ * INCOMPATIBLE CHANGE: The startup sequence has been completely -+ rewritten and greatly simplified. The main user-visible change is -+ that the defaultpath preference has been removed. Its effect can be -+ approximated by using multiple profiles, with include directives to -+ incorporate common settings. All uses of defaultpath in existing -+ profiles should be changed to path. -+ Another change in startup behavior that will affect some users is -+ that it is no longer possible to specify roots both in the profile -+ and on the command line. -+ You can achieve a similar effect, though, by breaking your profile -+ into two: -+ -+ default.prf = -+ root = blah -+ root = foo -+ include common -+ -+ common.prf = -+ -+ -+ Now do -+ unison common root1 root2 -+ -+ when you want to specify roots explicitly. -+ * The -prefer and -force options have been extended to allow users to -+ specify that files with more recent modtimes should be propagated, -+ writing either -prefer newer or -force newer. (For symmetry, Unison -+ will also accept -prefer older or -force older.) The -force -+ older/newer options can only be used when -times is also set. -+ The graphical user interface provides access to these facilities on -+ a one-off basis via the Actions menu. -+ * Names of roots can now be “aliased” to allow replicas to be -+ relocated without changing the name of the archive file where -+ Unison stores information between runs. (This feature is for -+ experts only. See the “Archive Files” section of the manual for -+ more information.) -+ * Graphical user-interface: -+ + A new command is provided in the Synchronization menu for -+ switching to a new profile without restarting Unison from -+ scratch. -+ + The GUI also supports one-key shortcuts for commonly used -+ profiles. If a profile contains a preference of the form ’key -+ = n’, where n is a single digit, then pressing this key will -+ cause Unison to immediately switch to this profile and begin -+ synchronization again from scratch. (Any actions that may have -+ been selected for a set of changes currently being displayed -+ will be discarded.) -+ + Each profile may include a preference ’label = ’ -+ giving a descriptive string that described the options -+ selected in this profile. The string is listed along with the -+ profile name in the profile selection dialog, and displayed in -+ the top-right corner of the main Unison window. -+ * Minor: -+ + Fixed a bug that would sometimes cause the ’diff’ display to -+ order the files backwards relative to the main user interface. -+ (Thanks to Pascal Brisset for this fix.) -+ + On Unix systems, the graphical version of Unison will check -+ the DISPLAY variable and, if it is not set, automatically fall -+ back to the textual user interface. -+ + Synchronization paths (path preferences) are now matched -+ against the ignore preferences. So if a path is both specified -+ in a path preference and ignored, it will be skipped. -+ + Numerous other bugfixes and small improvements. -+ -+ Changes since 2.6.1: -+ * The synchronization of modification times has been disabled for -+ directories. -+ * Preference files may now include lines of the form include , -+ which will cause name.prf to be read at that point. -+ * The synchronization of permission between Windows and Unix now -+ works properly. -+ * A binding CYGWIN=binmode in now added to the environment so that -+ the Cygwin port of OpenSSH works properly in a non-Cygwin context. -+ * The servercmd and addversionno preferences can now be used -+ together: -addversionno appends an appropriate -NNN to the server -+ command, which is found by using the value of the -servercmd -+ preference if there is one, or else just unison. -+ * Both '-pref=val' and '-pref val' are now allowed for boolean -+ values. (The former can be used to set a preference to false.) -+ * Lot of small bugs fixed. -+ -+ Changes since 2.5.31: -+ * The log preference is now set to true by default, since the log -+ file seems useful for most users. -+ * Several miscellaneous bugfixes (most involving symlinks). -+ -+ Changes since 2.5.25: -+ * INCOMPATIBLE CHANGE: Archive format has changed (again). -+ * Several significant bugs introduced in 2.5.25 have been fixed. -+ -+ Changes since 2.5.1: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * New functionality: -+ + Unison now synchronizes file modtimes, user-ids, and -+ group-ids. -+ These new features are controlled by a set of new preferences, -+ all of which are currently false by default. -+ o When the times preference is set to true, file -+ modification times are propaged. (Because the -+ representations of time may not have the same granularity -+ on both replicas, Unison may not always be able to make -+ the modtimes precisely equal, but it will get them as -+ close as the operating systems involved allow.) -+ o When the owner preference is set to true, file ownership -+ information is synchronized. -+ o When the group preference is set to true, group -+ information is synchronized. -+ o When the numericIds preference is set to true, owner and -+ group information is synchronized numerically. By -+ default, owner and group numbers are converted to names -+ on each replica and these names are synchronized. (The -+ special user id 0 and the special group 0 are never -+ mapped via user/group names even if this preference is -+ not set.) -+ + Added an integer-valued preference perms that can be used to -+ control the propagation of permission bits. The value of this -+ preference is a mask indicating which permission bits should -+ be synchronized. It is set by default to 0o1777: all bits but -+ the set-uid and set-gid bits are synchronised (synchronizing -+ theses latter bits can be a security hazard). If you want to -+ synchronize all bits, you can set the value of this preference -+ to −1. -+ + Added a log preference (default false), which makes Unison -+ keep a complete record of the changes it makes to the -+ replicas. By default, this record is written to a file called -+ unison.log in the user’s home directory (the value of the HOME -+ environment variable). If you want it someplace else, set the -+ logfile preference to the full pathname you want Unison to -+ use. -+ + Added an ignorenot preference that maintains a set of patterns -+ for paths that should definitely not be ignored, whether or -+ not they match an ignore pattern. (That is, a path will now be -+ ignored iff it matches an ignore pattern and does not match -+ any ignorenot patterns.) -+ * User-interface improvements: -+ + Roots are now displayed in the user interface in the same -+ order as they were given on the command line or in the -+ preferences file. -+ + When the batch preference is set, the graphical user interface -+ no longer waits for user confirmation when it displays a -+ warning message: it simply pops up an advisory window with a -+ Dismiss button at the bottom and keeps on going. -+ + Added a new preference for controlling how many status -+ messages are printed during update detection: statusdepth -+ controls the maximum depth for paths on the local machine -+ (longer paths are not displayed, nor are non-directory paths). -+ The value should be an integer; default is 1. -+ + Removed the trace and silent preferences. They did not seem -+ very useful, and there were too many preferences for -+ controlling output in various ways. -+ + The text UI now displays just the default command (the one -+ that will be used if the user just types ) instead of -+ all available commands. Typing ? will print the full list of -+ possibilities. -+ + The function that finds the canonical hostname of the local -+ host (which is used, for example, in calculating the name of -+ the archive file used to remember which files have been -+ synchronized) normally uses the gethostname operating system -+ call. However, if the environment variable UNISONLOCALHOSTNAME -+ is set, its value will now be used instead. This makes it -+ easier to use Unison in situations where a machine’s name -+ changes frequently (e.g., because it is a laptop and gets -+ moved around a lot). -+ + File owner and group are now displayed in the “detail window” -+ at the bottom of the screen, when unison is configured to -+ synchronize them. -+ * For hackers: -+ + Updated to Jacques Garrigue’s new version of lablgtk, which -+ means we can throw away our local patched version. -+ If you’re compiling the GTK version of unison from sources, -+ you’ll need to update your copy of lablgtk to the developers -+ release. (Warning: installing lablgtk under Windows is -+ currently a bit challenging.) -+ + The TODO.txt file (in the source distribution) has been -+ cleaned up and reorganized. The list of pending tasks should -+ be much easier to make sense of, for people that may want to -+ contribute their programming energies. There is also a -+ separate file BUGS.txt for open bugs. -+ + The Tk user interface has been removed (it was not being -+ maintained and no longer compiles). -+ + The debug preference now prints quite a bit of additional -+ information that should be useful for identifying sources of -+ problems. -+ + The version number of the remote server is now checked right -+ away during the connection setup handshake, rather than later. -+ (Somebody sent a bug report of a server crash that turned out -+ to come from using inconsistent versions: better to check this -+ earlier and in a way that can’t crash either client or -+ server.) -+ + Unison now runs correctly on 64-bit architectures (e.g. Alpha -+ linux). We will not be distributing binaries for these -+ architectures ourselves (at least for a while) but if someone -+ would like to make them available, we’ll be glad to provide a -+ link to them. -+ * Bug fixes: -+ + Pattern matching (e.g. for ignore) is now case-insensitive -+ when Unison is in case-insensitive mode (i.e., when one of the -+ replicas is on a windows machine). -+ + Some people had trouble with mysterious failures during -+ propagation of updates, where files would be falsely reported -+ as having changed during synchronization. This should be -+ fixed. -+ + Numerous smaller fixes. -+ -+ Changes since 2.4.1: -+ * Added a number of ’sorting modes’ for the user interface. By -+ default, conflicting changes are displayed at the top, and the rest -+ of the entries are sorted in alphabetical order. This behavior can -+ be changed in the following ways: -+ + Setting the sortnewfirst preference to true causes newly -+ created files to be displayed before changed files. -+ + Setting sortbysize causes files to be displayed in increasing -+ order of size. -+ + Giving the preference sortfirst= (where is -+ a path descriptor in the same format as ’ignore’ and ’follow’ -+ patterns, causes paths matching this pattern to be displayed -+ first. -+ + Similarly, giving the preference sortlast= causes -+ paths matching this pattern to be displayed last. -+ The sorting preferences are described in more detail in the user -+ manual. The sortnewfirst and sortbysize flags can also be accessed -+ from the ’Sort’ menu in the grpahical user interface. -+ * Added two new preferences that can be used to change unison’s -+ fundamental behavior to make it more like a mirroring tool instead -+ of a synchronizer. -+ + Giving the preference prefer with argument (by adding -+ -prefer to the command line or prefer=) to your -+ profile) means that, if there is a conflict, the contents of -+ should be propagated to the other replica (with no -+ questions asked). Non-conflicting changes are treated as -+ usual. -+ + Giving the preference force with argument will make -+ unison resolve all differences in favor of the given root, -+ even if it was the other replica that was changed. -+ These options should be used with care! (More information is -+ available in the manual.) -+ * Small changes: -+ + Changed default answer to ’Yes’ in all two-button dialogs in -+ the graphical interface (this seems more intuitive). -+ + The rsync preference has been removed (it was used to activate -+ rsync compression for file transfers, but rsync compression is -+ now enabled by default). -+ + In the text user interface, the arrows indicating which -+ direction changes are being propagated are printed differently -+ when the user has overridded Unison’s default recommendation -+ (====> instead of ---->). This matches the behavior of the -+ graphical interface, which displays such arrows in a different -+ color. -+ + Carriage returns (Control-M’s) are ignored at the ends of -+ lines in profiles, for Windows compatibility. -+ + All preferences are now fully documented in the user manual. -+ -+ Changes since 2.3.12: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * New/improved functionality: -+ + A new preference -sortbysize controls the order in which -+ changes are displayed to the user: when it is set to true, the -+ smallest changed files are displayed first. (The default -+ setting is false.) -+ + A new preference -sortnewfirst causes newly created files to -+ be listed before other updates in the user interface. -+ + We now allow the ssh protocol to specify a port. -+ + Incompatible change: The unison: protocol is deprecated, and -+ we added file: and socket:. You may have to modify your -+ profiles in the .unison directory. If a replica is specified -+ without an explicit protocol, we now assume it refers to a -+ file. (Previously "//saul/foo" meant to use SSH to connect to -+ saul, then access the foo directory. Now it means to access -+ saul via a remote file mechanism such as samba; the old effect -+ is now achieved by writing ssh://saul/foo.) -+ + Changed the startup sequence for the case where roots are -+ given but no profile is given on the command line. The new -+ behavior is to use the default profile (creating it if it does -+ not exist), and temporarily override its roots. The manual -+ claimed that this case would work by reading no profile at -+ all, but AFAIK this was never true. -+ + In all user interfaces, files with conflicts are always listed -+ first -+ + A new preference ’sshversion’ can be used to control which -+ version of ssh should be used to connect to the server. Legal -+ values are 1 and 2. (Default is empty, which will make unison -+ use whatever version of ssh is installed as the default ’ssh’ -+ command.) -+ + The situation when the permissions of a file was updated the -+ same on both side is now handled correctly (we used to report -+ a spurious conflict) -+ * Improvements for the Windows version: -+ + The fact that filenames are treated case-insensitively under -+ Windows should now be handled correctly. The exact behavior is -+ described in the cross-platform section of the manual. -+ + It should be possible to synchronize with Windows shares, -+ e.g., //host/drive/path. -+ + Workarounds to the bug in syncing root directories in Windows. -+ The most difficult thing to fix is an ocaml bug: Unix.opendir -+ fails on c: in some versions of Windows. -+ * Improvements to the GTK user interface (the Tk interface is no -+ longer being maintained): -+ + The UI now displays actions differently (in blue) when they -+ have been explicitly changed by the user from Unison’s default -+ recommendation. -+ + More colorful appearance. -+ + The initial profile selection window works better. -+ + If any transfers failed, a message to this effect is displayed -+ along with ’Synchronization complete’ at the end of the -+ transfer phase (in case they may have scrolled off the top). -+ + Added a global progress meter, displaying the percentage of -+ total bytes that have been transferred so far. -+ * Improvements to the text user interface: -+ + The file details will be displayed automatically when a -+ conflict is been detected. -+ + when a warning is generated (e.g. for a temporary file left -+ over from a previous run of unison) Unison will no longer wait -+ for a response if it is running in -batch mode. -+ + The UI now displays a short list of possible inputs each time -+ it waits for user interaction. -+ + The UI now quits immediately (rather than looping back and -+ starting the interaction again) if the user presses ’q’ when -+ asked whether to propagate changes. -+ + Pressing ’g’ in the text user interface will proceed -+ immediately with propagating updates, without asking any more -+ questions. -+ * Documentation and installation changes: -+ + The manual now includes a FAQ, plus sections on common -+ problems and on tricks contributed by users. -+ + Both the download page and the download directory explicitly -+ say what are the current stable and beta-test version numbers. -+ + The OCaml sources for the up-to-the-minute developers’ version -+ (not guaranteed to be stable, or even to compile, at any given -+ time!) are now available from the download page. -+ + Added a subsection to the manual describing cross-platform -+ issues (case conflicts, illegal filenames) -+ * Many small bug fixes and random improvements. -+ -+ Changes since 2.3.1: -+ * Several bug fixes. The most important is a bug in the rsync module -+ that would occasionally cause change propagation to fail with a -+ ’rename’ error. -+ -+ Changes since 2.2: -+ * The multi-threaded transport system is now disabled by default. (It -+ is not stable enough yet.) -+ * Various bug fixes. -+ * A new experimental feature: -+ The final component of a -path argument may now be the wildcard -+ specifier *. When Unison sees such a path, it expands this path on -+ the client into into the corresponding list of paths by listing the -+ contents of that directory. -+ Note that if you use wildcard paths from the command line, you will -+ probably need to use quotes or a backslash to prevent the * from -+ being interpreted by your shell. -+ If both roots are local, the contents of the first one will be used -+ for expanding wildcard paths. (Nb: this is the first one after the -+ canonization step – i.e., the one that is listed first in the user -+ interface – not the one listed first on the command line or in the -+ preferences file.) -+ -+ Changes since 2.1: -+ * The transport subsystem now includes an implementation by Sylvain -+ Gommier and Norman Ramsey of Tridgell and Mackerras’s rsync -+ protocol. This protocol achieves much faster transfers when only a -+ small part of a large file has been changed by sending just diffs. -+ This feature is mainly helpful for transfers over slow links—on -+ fast local area networks it can actually degrade performance—so we -+ have left it off by default. Start unison with the -rsync option -+ (or put rsync=true in your preferences file) to turn it on. -+ * “Progress bars” are now diplayed during remote file transfers, -+ showing what percentage of each file has been transferred so far. -+ * The version numbering scheme has changed. New releases will now be -+ have numbers like 2.2.30, where the second component is incremented -+ on every significant public release and the third component is the -+ “patch level.” -+ * Miscellaneous improvements to the GTK-based user interface. -+ * The manual is now available in PDF format. -+ * We are experimenting with using a multi-threaded transport -+ subsystem to transfer several files at the same time, making much -+ more effective use of available network bandwidth. This feature is -+ not completely stable yet, so by default it is disabled in the -+ release version of Unison. -+ If you want to play with the multi-threaded version, you’ll need to -+ recompile Unison from sources (as described in the documentation), -+ setting the THREADS flag in Makefile.OCaml to true. Make sure that -+ your OCaml compiler has been installed with the -with-pthreads -+ configuration option. (You can verify this by checking whether the -+ file threads/threads.cma in the OCaml standard library directory -+ contains the string -lpthread near the end.) -+ -+ Changes since 1.292: -+ * Reduced memory footprint (this is especially important during the -+ first run of unison, where it has to gather information about all -+ the files in both repositories). -+ * Fixed a bug that would cause the socket server under NT to fail -+ after the client exits. -+ * Added a SHIFT modifier to the Ignore menu shortcut keys in GTK -+ interface (to avoid hitting them accidentally). -+ -+ Changes since 1.231: -+ * Tunneling over ssh is now supported in the Windows version. See the -+ installation section of the manual for detailed instructions. -+ * The transport subsystem now includes an implementation of the rsync -+ protocol, built by Sylvain Gommier and Norman Ramsey. This protocol -+ achieves much faster transfers when only a small part of a large -+ file has been changed by sending just diffs. The rsync feature is -+ off by default in the current version. Use the -rsync switch to -+ turn it on. (Nb. We still have a lot of tuning to do: you may not -+ notice much speedup yet.) -+ * We’re experimenting with a multi-threaded transport subsystem, -+ written by Jerome Vouillon. The downloadable binaries are still -+ single-threaded: if you want to try the multi-threaded version, -+ you’ll need to recompile from sources. (Say make THREADS=true.) -+ Native thread support from the compiler is required. Use the option -+ -threads N to select the maximal number of concurrent threads -+ (default is 5). Multi-threaded and single-threaded clients/servers -+ can interoperate. -+ * A new GTK-based user interface is now available, thanks to Jacques -+ Garrigue. The Tk user interface still works, but we’ll be shifting -+ development effort to the GTK interface from now on. -+ * OCaml 3.00 is now required for compiling Unison from sources. The -+ modules uitk and myfileselect have been changed to use labltk -+ instead of camltk. To compile the Tk interface in Windows, you must -+ have ocaml-3.00 and tk8.3. When installing tk8.3, put it in c:\Tcl -+ rather than the suggested c:\Program Files\Tcl, and be sure to -+ install the headers and libraries (which are not installed by -+ default). -+ * Added a new -addversionno switch, which causes unison to use -+ unison- instead of just unison as the remote -+ server command. This allows multiple versions of unison to coexist -+ conveniently on the same server: whichever version is run on the -+ client, the same version will be selected on the server. -+ -+ Changes since 1.219: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * This version fixes several annoying bugs, including: -+ + Some cases where propagation of file permissions was not -+ working. -+ + umask is now ignored when creating directories -+ + directories are create writable, so that a read-only directory -+ and its contents can be propagated. -+ + Handling of warnings generated by the server. -+ + Synchronizing a path whose parent is not a directory on both -+ sides is now flagged as erroneous. -+ + Fixed some bugs related to symnbolic links and nonexistant -+ roots. -+ o When a change (deletion or new contents) is propagated -+ onto a ’follow’ed symlink, the file pointed to by the -+ link is now changed. (We used to change the link itself, -+ which doesn’t fit our assertion that ’follow’ means the -+ link is completely invisible) -+ o When one root did not exist, propagating the other root -+ on top of it used to fail, because unison could not -+ calculate the working directory into which to write -+ changes. This should be fixed. -+ * A human-readable timestamp has been added to Unison’s archive -+ files. -+ * The semantics of Path and Name regular expressions now correspond -+ better. -+ * Some minor improvements to the text UI (e.g. a command for going -+ back to previous items) -+ * The organization of the export directory has changed — should be -+ easier to find / download things now. -+ -+ Changes since 1.200: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * This version has not been tested extensively on Windows. -+ * Major internal changes designed to make unison safer to run at the -+ same time as the replicas are being changed by the user. -+ * Internal performance improvements. -+ -+ Changes since 1.190: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * A number of internal functions have been changed to reduce the -+ amount of memory allocation, especially during the first -+ synchronization. This should help power users with very big -+ replicas. -+ * Reimplementation of low-level remote procedure call stuff, in -+ preparation for adding rsync-like smart file transfer in a later -+ release. -+ * Miscellaneous bug fixes. -+ -+ Changes since 1.180: -+ * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you -+ synchronize your replicas before upgrading, to avoid spurious -+ conflicts. The first sync after upgrading will be slow. -+ * Fixed some small bugs in the interpretation of ignore patterns. -+ * Fixed some problems that were preventing the Windows version from -+ working correctly when click-started. -+ * Fixes to treatment of file permissions under Windows, which were -+ causing spurious reports of different permissions when -+ synchronizing between windows and unix systems. -+ * Fixed one more non-tail-recursive list processing function, which -+ was causing stack overflows when synchronizing very large replicas. -+ -+ Changes since 1.169: -+ * The text user interface now provides commands for ignoring files. -+ * We found and fixed some more non-tail-recursive list processing -+ functions. Some power users have reported success with very large -+ replicas. -+ * INCOMPATIBLE CHANGE: Files ending in .tmp are no longer ignored -+ automatically. If you want to ignore such files, put an appropriate -+ ignore pattern in your profile. -+ * INCOMPATIBLE CHANGE: The syntax of ignore and follow patterns has -+ changed. Instead of putting a line of the form -+ ignore = -+ -+ in your profile (.unison/default.prf), you should put: -+ ignore = Regex -+ -+ Moreover, two other styles of pattern are also recognized: -+ ignore = Name -+ -+ matches any path in which one component matches , while -+ ignore = Path -+ -+ matches exactly the path . -+ Standard “globbing” conventions can be used in and : -+ + a ? matches any single character except / -+ + a * matches any sequence of characters not including / -+ + [xyz] matches any character from the set {x, y, z } -+ + {a,bb,ccc} matches any one of a, bb, or ccc. -+ See the user manual for some examples. -+ -+ Changes since 1.146: -+ * Some users were reporting stack overflows when synchronizing huge -+ directories. We found and fixed some non-tail-recursive list -+ processing functions, which we hope will solve the problem. Please -+ give it a try and let us know. -+ * Major additions to the documentation. -+ -+ Changes since 1.142: -+ * Major internal tidying and many small bugfixes. -+ * Major additions to the user manual. -+ * Unison can now be started with no arguments – it will prompt -+ automatically for the name of a profile file containing the roots -+ to be synchronized. This makes it possible to start the graphical -+ UI from a desktop icon. -+ * Fixed a small bug where the text UI on NT was raising a ’no such -+ signal’ exception. -+ -+ Changes since 1.139: -+ * The precompiled windows binary in the last release was compiled -+ with an old OCaml compiler, causing propagation of permissions not -+ to work (and perhaps leading to some other strange behaviors we’ve -+ heard reports about). This has been corrected. If you’re using -+ precompiled binaries on Windows, please upgrade. -+ * Added a -debug command line flag, which controls debugging of -+ various modules. Say -debug XXX to enable debug tracing for module -+ XXX, or -debug all to turn on absolutely everything. -+ * Fixed a small bug where the text UI on NT was raising a ’no such -+ signal’ exception. -+ -+ Changes since 1.111: -+ * INCOMPATIBLE CHANGE: The names and formats of the preference files -+ in the .unison directory have changed. In particular: -+ + the file “prefs” should be renamed to default.prf -+ + the contents of the file “ignore” should be merged into -+ default.prf. Each line of the form REGEXP in ignore should -+ become a line of the form ignore = REGEXP in default.prf. -+ * Unison now handles permission bits and symbolic links. See the -+ manual for details. -+ * You can now have different preference files in your .unison -+ directory. If you start unison like this -+ unison profilename -+ -+ (i.e. with just one “anonymous” command-line argument), then the -+ file ~/.unison/profilename.prf will be loaded instead of -+ default.prf. -+ * Some improvements to terminal handling in the text user interface -+ * Added a switch -killServer that terminates the remote server -+ process when the unison client is shutting down, even when using -+ sockets for communication. (By default, a remote server created -+ using ssh/rsh is terminated automatically, while a socket server is -+ left running.) -+ * When started in ’socket server’ mode, unison prints ’server -+ started’ on stderr when it is ready to accept connections. (This -+ may be useful for scripts that want to tell when a socket-mode -+ server has finished initalization.) -+ * We now make a nightly mirror of our current internal development -+ tree, in case anyone wants an up-to-the-minute version to hack -+ around with. -+ * Added a file CONTRIB with some suggestions for how to help us make -+ Unison better. -+ -+ -diff --git a/strings.ml b/strings.ml -index 563b5be..ccc5336 100644 ---- a/strings.ml -+++ b/strings.ml -@@ -1,2 +1,4473 @@ --(* Dummy strings.ml *) --let docs = [] -+(* DO NOT MODIFY. -+ This file has been automatically generated, see docs.ml. *) -+ -+let docs = -+ ("about", ("About Unison", -+ "Unison File Synchronizer\n\ -+ Version 2.40.102\n\ -+ \n\ -+ ")) -+:: -+ ("overview", ("Overview", -+ "Overview\n\ -+ \n\ -+ \032 Unison is a file-synchronization tool for Unix and Windows. It allows\n\ -+ \032 two replicas of a collection of files and directories to be stored on\n\ -+ \032 different hosts (or different disks on the same host), modified\n\ -+ \032 separately, and then brought up to date by propagating the changes in\n\ -+ \032 each replica to the other.\n\ -+ \n\ -+ \032 Unison shares a number of features with tools such as configuration\n\ -+ \032 management packages (CVS (http://www.cyclic.com/), PRCS\n\ -+ \032 (http://www.XCF.Berkeley.EDU/~jmacd/prcs.html), etc.), distributed\n\ -+ \032 filesystems (Coda (http://www.coda.cs.cmu.edu/), etc.), uni-directional\n\ -+ \032 mirroring utilities (rsync (http://samba.anu.edu.au/rsync/), etc.), and\n\ -+ \032 other synchronizers (Intellisync (http://www.pumatech.com), Reconcile\n\ -+ \032 (http://www.merl.com/reports/TR99-14/), etc). However, there are\n\ -+ \032 several points where it differs:\n\ -+ \032 * Unison runs on both Windows (95, 98, NT, 2k, and XP) and Unix (OSX,\n\ -+ \032 Solaris, Linux, etc.) systems. Moreover, Unison works across\n\ -+ \032 platforms, allowing you to synchronize a Windows laptop with a Unix\n\ -+ \032 server, for example.\n\ -+ \032 * Unlike a distributed filesystem, Unison is a user-level program:\n\ -+ \032 there is no need to modify the kernel or to have superuser\n\ -+ \032 privileges on either host.\n\ -+ \032 * Unlike simple mirroring or backup utilities, Unison can deal with\n\ -+ \032 updates to both replicas of a distributed directory structure.\n\ -+ \032 Updates that do not conflict are propagated automatically.\n\ -+ \032 Conflicting updates are detected and displayed.\n\ -+ \032 * Unison works between any pair of machines connected to the\n\ -+ \032 internet, communicating over either a direct socket link or\n\ -+ \032 tunneling over an encrypted ssh connection. It is careful with\n\ -+ \032 network bandwidth, and runs well over slow links such as PPP\n\ -+ \032 connections. Transfers of small updates to large files are\n\ -+ \032 optimized using a compression protocol similar to rsync.\n\ -+ \032 * Unison has a clear and precise specification, described below.\n\ -+ \032 * Unison is resilient to failure. It is careful to leave the replicas\n\ -+ \032 and its own private structures in a sensible state at all times,\n\ -+ \032 even in case of abnormal termination or communication failures.\n\ -+ \032 * Unison is free; full source code is available under the GNU Public\n\ -+ \032 License.\n\ -+ \n\ -+ ")) -+:: -+ ("intro", ("Preface", -+ "Preface\n\ -+ \n\ -+ ")) -+:: -+ ("people", ("People", -+ "People\n\ -+ \n\ -+ \032 Benjamin Pierce (http://www.cis.upenn.edu/~bcpierce/) leads the Unison\n\ -+ \032 project. The current version of Unison was designed and implemented by\n\ -+ \032 Trevor Jim (http://www.research.att.com/~trevor/), Benjamin Pierce\n\ -+ \032 (http://www.cis.upenn.edu/~bcpierce/), and J\195\169r\195\180me Vouillon\n\ -+ \032 (http://www.pps.jussieu.fr/~vouillon/), with Alan Schmitt\n\ -+ \032 (http://alan.petitepomme.net/), Malo Denielou, Zhe Yang\n\ -+ \032 (http://www.brics.dk/~zheyang/), Sylvain Gommier, and Matthieu Goulay.\n\ -+ \032 The Mac user interface was started by Trevor Jim and enormously\n\ -+ \032 improved by Ben Willmore. Our implementation of the rsync\n\ -+ \032 (http://samba.org/rsync/) protocol was built by Norman Ramsey\n\ -+ \032 (http://www.eecs.harvard.edu/~nr/) and Sylvain Gommier. It is based on\n\ -+ \032 Andrew Tridgell (http://samba.anu.edu.au/~tridge/)\226\128\153s thesis work\n\ -+ \032 (http://samba.anu.edu.au/~tridge/phd_thesis.pdf) and inspired by his\n\ -+ \032 rsync (http://samba.org/rsync/) utility. The mirroring and merging\n\ -+ \032 functionality was implemented by Sylvain Roy, improved by Malo\n\ -+ \032 Denielou, and improved yet further by St\195\169phane Lescuyer. Jacques\n\ -+ \032 Garrigue (http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/) contributed\n\ -+ \032 the original Gtk version of the user interface; the Gtk2 version was\n\ -+ \032 built by Stephen Tse. Sundar Balasubramaniam helped build a prototype\n\ -+ \032 implementation of an earlier synchronizer in Java. Insik Shin\n\ -+ \032 (http://www.cis.upenn.edu/~ishin/) and Insup Lee\n\ -+ \032 (http://www.cis.upenn.edu/~lee/) contributed design ideas to this\n\ -+ \032 implementation. Cedric Fournet\n\ -+ \032 (http://research.microsoft.com/~fournet/) contributed to an even\n\ -+ \032 earlier prototype.\n\ -+ \n\ -+ ")) -+:: -+ ("lists", ("Mailing Lists and Bug Reporting", -+ "Mailing Lists and Bug Reporting\n\ -+ \n\ -+ Mailing Lists:\n\ -+ \n\ -+ \032 Moderated mailing lists are available for bug reporting, announcements\n\ -+ \032 of new versions, discussions among users, and discussions among\n\ -+ \032 developers. See\n\ -+ \n\ -+ \032 http://www.cis.upenn.edu/~bcpierce/unison/lists.html\n\ -+ \n\ -+ \032 for more information.\n\ -+ \n\ -+ ")) -+:: -+ ("status", ("Development Status", -+ "Development Status\n\ -+ \n\ -+ \032 Unison is no longer under active development as a research project.\n\ -+ \032 (Our research efforts are now focused on a follow-on project called\n\ -+ \032 Harmony, described at http://www.cis.upenn.edu/~bcpierce/harmony.) At\n\ -+ \032 this point, there is no one whose job it is to maintain Unison, fix\n\ -+ \032 bugs, or answer questions.\n\ -+ \n\ -+ \032 However, the original developers are all still using Unison daily. It\n\ -+ \032 will continue to be maintained and supported for the foreseeable\n\ -+ \032 future, and we will occasionally release new versions with bug fixes,\n\ -+ \032 small improvements, and contributed patches.\n\ -+ \n\ -+ \032 Reports of bugs affecting correctness or safety are of interest to many\n\ -+ \032 people and will generally get high priority. Other bug reports will be\n\ -+ \032 looked at as time permits. Bugs should be reported to the users list at\n\ -+ \032 unison-users@yahoogroups.com (mailto:unison-users@yahoogroups.com).\n\ -+ \n\ -+ \032 Feature requests are welcome, but will probably just be added to the\n\ -+ \032 ever-growing todo list. They should also be sent to\n\ -+ \032 unison-users@yahoogroups.com (mailto:unison-users@yahoogroups.com).\n\ -+ \n\ -+ \032 Patches are even more welcome. They should be sent to\n\ -+ \032 unison-hackers@lists.seas.upenn.edu\n\ -+ \032 (mailto:unison-hackers@lists.seas.upenn.edu). (Since safety and\n\ -+ \032 robustness are Unison\226\128\153s most important properties, patches will be held\n\ -+ \032 to high standards of clear design and clean coding.) If you want to\n\ -+ \032 contribute to Unison, start by downloading the developer tarball from\n\ -+ \032 the download page. For some details on how the code is organized, etc.,\n\ -+ \032 see the file CONTRIB.\n\ -+ \n\ -+ ")) -+:: -+ ("copying", ("Copying", -+ "Copying\n\ -+ \n\ -+ \032 This file is part of Unison.\n\ -+ \n\ -+ \032 Unison is free software: you can redistribute it and/or modify it under\n\ -+ \032 the terms of the GNU General Public License as published by the Free\n\ -+ \032 Software Foundation, either version 3 of the License, or (at your\n\ -+ \032 option) any later version.\n\ -+ \n\ -+ \032 Unison is distributed in the hope that it will be useful, but WITHOUT\n\ -+ \032 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\ -+ \032 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n\ -+ \032 for more details.\n\ -+ \n\ -+ \032 The GNU Public License can be found at http://www.gnu.org/licenses. A\n\ -+ \032 copy is also included in the Unison source distribution in the file\n\ -+ \032 COPYING.\n\ -+ \n\ -+ ")) -+:: -+ ("ack", ("Acknowledgements", -+ "Acknowledgements\n\ -+ \n\ -+ \032 Work on Unison has been supported by the National Science Foundation\n\ -+ \032 under grants CCR-9701826 and ITR-0113226, Principles and Practice of\n\ -+ \032 Synchronization, and by University of Pennsylvania\226\128\153s Institute for\n\ -+ \032 Research in Cognitive Science (IRCS).\n\ -+ \n\ -+ ")) -+:: -+ ("install", ("Installation", -+ "Installation\n\ -+ \n\ -+ \032 Unison is designed to be easy to install. The following sequence of\n\ -+ \032 steps should get you a fully working installation in a few minutes. If\n\ -+ \032 you run into trouble, you may find the suggestions on the Frequently\n\ -+ \032 Asked Questions page\n\ -+ \032 (http://www.cis.upenn.edu/~bcpierce/unison/faq.html) helpful. Pre-built\n\ -+ \032 binaries are available for a variety of platforms.\n\ -+ \n\ -+ \032 Unison can be used with either of two user interfaces:\n\ -+ \032 1. a simple textual interface, suitable for dumb terminals (and\n\ -+ \032 running from scripts), and\n\ -+ \032 2. a more sophisticated grapical interface, based on Gtk2 (on\n\ -+ \032 Linux/Windows) or the native UI framework (on OSX).\n\ -+ \n\ -+ \032 You will need to install a copy of Unison on every machine that you\n\ -+ \032 want to synchronize. However, you only need the version with a\n\ -+ \032 graphical user interface (if you want a GUI at all) on the machine\n\ -+ \032 where you\226\128\153re actually going to display the interface (the CLIENT\n\ -+ \032 machine). Other machines that you synchronize with can get along just\n\ -+ \032 fine with the textual version.\n\ -+ \n\ -+ Downloading Unison\n\ -+ \n\ -+ \032 The Unison download site lives under\n\ -+ \032 http://www.cis.upenn.edu/~bcpierce/unison.\n\ -+ \n\ -+ \032 If a pre-built binary of Unison is available for the client machine\226\128\153s\n\ -+ \032 architecture, just download it and put it somewhere in your search path\n\ -+ \032 (if you\226\128\153re going to invoke it from the command line) or on your desktop\n\ -+ \032 (if you\226\128\153ll be click-starting it).\n\ -+ \n\ -+ \032 The executable file for the graphical version (with a name including\n\ -+ \032 gtkui) actually provides both interfaces: the graphical one appears by\n\ -+ \032 default, while the textual interface can be selected by including -ui\n\ -+ \032 text on the command line. The textui executable provides just the\n\ -+ \032 textual interface.\n\ -+ \n\ -+ \032 If you don\226\128\153t see a pre-built executable for your architecture, you\226\128\153ll\n\ -+ \032 need to build it yourself. See the section \226\128\156Building Unison\226\128\157 . There\n\ -+ \032 are also a small number of contributed ports to other architectures\n\ -+ \032 that are not maintained by us. See the Contributed Ports page\n\ -+ \032 (http://www.cis.upenn.edu/~bcpierce/unison/download.html) to check\n\ -+ \032 what\226\128\153s available.\n\ -+ \n\ -+ \032 Check to make sure that what you have downloaded is really executable.\n\ -+ \032 Either click-start it, or type \"unison -version\" at the command line.\n\ -+ \n\ -+ \032 Unison can be used in three different modes: with different directories\n\ -+ \032 on a single machine, with a remote machine over a direct socket\n\ -+ \032 connection, or with a remote machine using ssh for authentication and\n\ -+ \032 secure transfer. If you intend to use the last option, you may need to\n\ -+ \032 install ssh; see the section \226\128\156Installing Ssh\226\128\157 .\n\ -+ \n\ -+ Running Unison\n\ -+ \n\ -+ \032 Once you\226\128\153ve got Unison installed on at least one system, read the\n\ -+ \032 section \226\128\156Tutorial\226\128\157 of the user manual (or type \"unison -doc tutorial\")\n\ -+ \032 for instructions on how to get started.\n\ -+ \n\ -+ Upgrading\n\ -+ \n\ -+ \032 Upgrading to a new version of Unison is as simple as throwing away the\n\ -+ \032 old binary and installing the new one.\n\ -+ \n\ -+ \032 Before upgrading, it is a good idea to run the old version one last\n\ -+ \032 time, to make sure all your replicas are completely synchronized. A new\n\ -+ \032 version of Unison will sometimes introduce a different format for the\n\ -+ \032 archive files used to remember information about the previous state of\n\ -+ \032 the replicas. In this case, the old archive will be ignored (not\n\ -+ \032 deleted \226\128\148 if you roll back to the previous version of Unison, you will\n\ -+ \032 find the old archives intact), which means that any differences between\n\ -+ \032 the replicas will show up as conflicts that need to be resolved\n\ -+ \032 manually.\n\ -+ \n\ -+ Building Unison from Scratch\n\ -+ \n\ -+ \032 If a pre-built image is not available, you will need to compile it from\n\ -+ \032 scratch; the sources are available from the same place as the binaries.\n\ -+ \n\ -+ \032 In principle, Unison should work on any platform to which OCaml has\n\ -+ \032 been ported and on which the Unix module is fully implemented. It has\n\ -+ \032 been tested on many flavors of Windows (98, NT, 2000, XP) and Unix (OS\n\ -+ \032 X, Solaris, Linux, FreeBSD), and on both 32- and 64-bit architectures.\n\ -+ \n\ -+ Unix\n\ -+ \n\ -+ \032 You\226\128\153ll need the Objective Caml compiler (version 3.11.2 or later),\n\ -+ \032 which is available from http://caml.inria.fr. Building and installing\n\ -+ \032 OCaml on Unix systems is very straightforward; just follow the\n\ -+ \032 instructions in the distribution. You\226\128\153ll probably want to build the\n\ -+ \032 native-code compiler in addition to the bytecode compiler, as Unison\n\ -+ \032 runs much faster when compiled to native code, but this is not\n\ -+ \032 absolutely necessary. (Quick start: on many systems, the following\n\ -+ \032 sequence of commands will get you a working and installed compiler:\n\ -+ \032 first do make world opt, then su to root and do make install.)\n\ -+ \n\ -+ \032 You\226\128\153ll also need the GNU make utility, standard on many Unix systems.\n\ -+ \032 (Type \"make \226\128\147version\" to check that you\226\128\153ve got the GNU version.)\n\ -+ \032 Unison\226\128\153s build system is not parallelizable, so don\226\128\153t use make flags\n\ -+ \032 which cause it to start processes in parallel, e.g. -j for GNU make.\n\ -+ \n\ -+ \032 Once you\226\128\153ve got OCaml installed, grab a copy of the Unison sources,\n\ -+ \032 unzip and untar them, change to the new \"unison\" directory, and type\n\ -+ \032 \226\128\156make UISTYLE=text.\226\128\157 The result should be an executable file called\n\ -+ \032 \"unison\". Type \"./unison\" to make sure the program is executable. You\n\ -+ \032 should get back a usage message.\n\ -+ \n\ -+ \032 If you want to build the graphical user interface, you will need to\n\ -+ \032 install two additional things:\n\ -+ \032 * The Gtk2 libraries. These areavailable from http://www.gtk.org and\n\ -+ \032 are standard on many Unix installations.\n\ -+ \032 * The lablgtk2 OCaml library. Grab the developers\226\128\153 tarball from\n\ -+ \n\ -+ \032 http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html,\n\ -+ \032 untar it, and follow the instructions to build and install it.\n\ -+ \032 (Quick start: make configure, then make, then make opt, then su and\n\ -+ \032 make install.)\n\ -+ \n\ -+ \032 Now build unison. If your search paths are set up correctly, simply\n\ -+ \032 typing make again should build a unison executable with a Gtk2\n\ -+ \032 graphical interface. (In previous releases of Unison, it was necessary\n\ -+ \032 to add UISTYLE=gtk2 to the \226\128\153make\226\128\153 command above. This requirement has\n\ -+ \032 been removed: the makefile should detect automatically when lablgtk2 is\n\ -+ \032 present and set this flag automatically.)\n\ -+ \n\ -+ \032 Put the unison executable somewhere in your search path, either by\n\ -+ \032 adding the Unison directory to your PATH variable or by copying the\n\ -+ \032 executable to some standard directory where executables are stored.\n\ -+ \n\ -+ Mac OS X\n\ -+ \n\ -+ \032 To build the text-only user interface, follow the instructions above\n\ -+ \032 for building on Unix systems. You should do this first, even if you are\n\ -+ \032 also planning on building the GUI, just to make sure it works.\n\ -+ \n\ -+ \032 To build the basic GUI version, you\226\128\153ll first need to download and\n\ -+ \032 install the XCode developer tools from Apple. Once this is done, just\n\ -+ \032 type make UISTYLE=macnew in the src directory, and if things go well\n\ -+ \032 you should get an application that you can move from\n\ -+ \032 uimacnew/build/Default/Unison.app to wherever you want it.\n\ -+ \n\ -+ \032 There is also an experimental GUI with a somewhat smoother look and\n\ -+ \032 feel. To compile this one (once you\226\128\153ve got the basic one working),\n\ -+ \032 proceed as follows:\n\ -+ \032 1. Go to the uimacnew09 directory and double-click the file\n\ -+ \032 BWToolkit.ibplugin.\n\ -+ \032 2. Go back up to the src directory and type make UISTYLE=macnew09.\n\ -+ \032 3. You should get an application built for you at\n\ -+ \032 uimacnew09/build/Default/Unison.app.\n\ -+ \n\ -+ Windows\n\ -+ \n\ -+ \032 Although the binary distribution should work on any version of Windows,\n\ -+ \032 some people may want to build Unison from scratch on those systems too.\n\ -+ \n\ -+ Bytecode version:\n\ -+ \n\ -+ \032 The simpler but slower compilation option to build a Unison executable\n\ -+ \032 is to build a bytecode version. You need first install Windows version\n\ -+ \032 of the OCaml compiler (version 3.07 or later, available from\n\ -+ \032 http://caml.inria.fr). Then grab a copy of Unison sources and type\n\ -+ \032 make NATIVE=false\n\ -+ \n\ -+ \032 to compile the bytecode. The result should be an executable file called\n\ -+ \032 unison.exe.\n\ -+ \n\ -+ Native version:\n\ -+ \n\ -+ \032 Building a more efficient, native version of Unison on Windows requires\n\ -+ \032 a little more work. See the file INSTALL.win32 in the source code\n\ -+ \032 distribution.\n\ -+ \n\ -+ Installation Options\n\ -+ \n\ -+ \032 The Makefile in the distribution includes several switches that can be\n\ -+ \032 used to control how Unison is built. Here are the most useful ones:\n\ -+ \032 * Building with NATIVE=true uses the native-code OCaml compiler,\n\ -+ \032 yielding an executable that will run quite a bit faster. We use\n\ -+ \032 this for building distribution versions.\n\ -+ \032 * Building with make DEBUGGING=true generates debugging symbols.\n\ -+ \032 * Building with make STATIC=true generates a (mostly) statically\n\ -+ \032 linked executable. We use this for building distribution versions,\n\ -+ \032 for portability.\n\ -+ \n\ -+ ")) -+:: -+ ("tutorial", ("Tutorial", -+ "Tutorial\n\ -+ \n\ -+ Preliminaries\n\ -+ \n\ -+ \032 Unison can be used with either of two user interfaces:\n\ -+ \032 1. a straightforward textual interface and\n\ -+ \032 2. a more sophisticated graphical interface\n\ -+ \n\ -+ \032 The textual interface is more convenient for running from scripts and\n\ -+ \032 works on dumb terminals; the graphical interface is better for most\n\ -+ \032 interactive use. For this tutorial, you can use either. If you are\n\ -+ \032 running Unison from the command line, just typing unison will select\n\ -+ \032 either the text or the graphical interface, depending on which has been\n\ -+ \032 selected as default when the executable you are running was built. You\n\ -+ \032 can force the text interface even if graphical is the default by adding\n\ -+ \032 -ui text. The other command-line arguments to both versions are\n\ -+ \032 identical.\n\ -+ \n\ -+ \032 The graphical version can also be run directly by clicking on its icon,\n\ -+ \032 but this may require a little set-up (see the section \226\128\156Click-starting\n\ -+ \032 Unison\226\128\157 ). For this tutorial, we assume that you\226\128\153re starting it from\n\ -+ \032 the command line.\n\ -+ \n\ -+ \032 Unison can synchronize files and directories on a single machine, or\n\ -+ \032 between two machines on a network. (The same program runs on both\n\ -+ \032 machines; the only difference is which one is responsible for\n\ -+ \032 displaying the user interface.) If you\226\128\153re only interested in a\n\ -+ \032 single-machine setup, then let\226\128\153s call that machine the CLIENT . If\n\ -+ \032 you\226\128\153re synchronizing two machines, let\226\128\153s call them CLIENT and SERVER .\n\ -+ \n\ -+ Local Usage\n\ -+ \n\ -+ \032 Let\226\128\153s get the client machine set up first and see how to synchronize\n\ -+ \032 two directories on a single machine.\n\ -+ \n\ -+ \032 Follow the instructions in the section \226\128\156Installation\226\128\157 to either\n\ -+ \032 download or build an executable version of Unison, and install it\n\ -+ \032 somewhere on your search path. (If you just want to use the textual\n\ -+ \032 user interface, download the appropriate textui binary. If you just\n\ -+ \032 want to the graphical interface\226\128\148or if you will use both interfaces [the\n\ -+ \032 gtkui binary actually has both compiled in]\226\128\148then download the gtkui\n\ -+ \032 binary.)\n\ -+ \n\ -+ \032 Create a small test directory a.tmp containing a couple of files and/or\n\ -+ \032 subdirectories, e.g.,\n\ -+ \032 mkdir a.tmp\n\ -+ \032 touch a.tmp/a a.tmp/b\n\ -+ \032 mkdir a.tmp/d\n\ -+ \032 touch a.tmp/d/f\n\ -+ \n\ -+ \032 Copy this directory to b.tmp:\n\ -+ \032 cp -r a.tmp b.tmp\n\ -+ \n\ -+ \032 Now try synchronizing a.tmp and b.tmp. (Since they are identical,\n\ -+ \032 synchronizing them won\226\128\153t propagate any changes, but Unison will\n\ -+ \032 remember the current state of both directories so that it will be able\n\ -+ \032 to tell next time what has changed.) Type:\n\ -+ \032 unison a.tmp b.tmp\n\ -+ \n\ -+ \032 (You may need to add -ui text, depending how your unison binary was\n\ -+ \032 built.)\n\ -+ \n\ -+ \032 Textual Interface:\n\ -+ \032 * You should see a message notifying you that all the files are\n\ -+ \032 actually equal and then get returned to the command line.\n\ -+ \n\ -+ \032 Graphical Interface:\n\ -+ \032 * You should get a big empty window with a message at the bottom\n\ -+ \032 notifying you that all files are identical. Choose the Exit item\n\ -+ \032 from the File menu to get back to the command line.\n\ -+ \n\ -+ \032 Next, make some changes in a.tmp and/or b.tmp. For example:\n\ -+ \032 rm a.tmp/a\n\ -+ \032 echo \"Hello\" > a.tmp/b\n\ -+ \032 echo \"Hello\" > b.tmp/b\n\ -+ \032 date > b.tmp/c\n\ -+ \032 echo \"Hi there\" > a.tmp/d/h\n\ -+ \032 echo \"Hello there\" > b.tmp/d/h\n\ -+ \n\ -+ \032 Run Unison again:\n\ -+ \032 unison a.tmp b.tmp\n\ -+ \n\ -+ \032 This time, the user interface will display only the files that have\n\ -+ \032 changed. If a file has been modified in just one replica, then it will\n\ -+ \032 be displayed with an arrow indicating the direction that the change\n\ -+ \032 needs to be propagated. For example,\n\ -+ \032 <--- new file c [f]\n\ -+ \n\ -+ \032 indicates that the file c has been modified only in the second replica,\n\ -+ \032 and that the default action is therefore to propagate the new version\n\ -+ \032 to the first replica. To follow Unison\226\128\153s recommendation, press the \226\128\156f\226\128\157\n\ -+ \032 at the prompt.\n\ -+ \n\ -+ \032 If both replicas are modified and their contents are different, then\n\ -+ \032 the changes are in conflict: <-?-> is displayed to indicate that Unison\n\ -+ \032 needs guidance on which replica should override the other.\n\ -+ \032 new file <-?-> new file d/h []\n\ -+ \n\ -+ \032 By default, neither version will be propagated and both replicas will\n\ -+ \032 remain as they are.\n\ -+ \n\ -+ \032 If both replicas have been modified but their new contents are the same\n\ -+ \032 (as with the file b), then no propagation is necessary and nothing is\n\ -+ \032 shown. Unison simply notes that the file is up to date.\n\ -+ \n\ -+ \032 These display conventions are used by both versions of the user\n\ -+ \032 interface. The only difference lies in the way in which Unison\226\128\153s\n\ -+ \032 default actions are either accepted or overridden by the user.\n\ -+ \n\ -+ \032 Textual Interface:\n\ -+ \032 * The status of each modified file is displayed, in turn. When the\n\ -+ \032 copies of a file in the two replicas are not identical, the user\n\ -+ \032 interface will ask for instructions as to how to propagate the\n\ -+ \032 change. If some default action is indicated (by an arrow), you can\n\ -+ \032 simply press Return to go on to the next changed file. If you want\n\ -+ \032 to do something different with this file, press \226\128\156<\226\128\157 or \226\128\156>\226\128\157 to force\n\ -+ \032 the change to be propagated from right to left or from left to\n\ -+ \032 right, or else press \226\128\156/\226\128\157 to skip this file and leave both replicas\n\ -+ \032 alone. When it reaches the end of the list of modified files,\n\ -+ \032 Unison will ask you one more time whether it should proceed with\n\ -+ \032 the updates that have been selected.\n\ -+ \032 When Unison stops to wait for input from the user, pressing \226\128\156?\226\128\157\n\ -+ \032 will always give a list of possible responses and their meanings.\n\ -+ \n\ -+ \032 Graphical Interface:\n\ -+ \032 * The main window shows all the files that have been modified in\n\ -+ \032 either a.tmp or b.tmp. To override a default action (or to select\n\ -+ \032 an action in the case when there is no default), first select the\n\ -+ \032 file, either by clicking on its name or by using the up- and\n\ -+ \032 down-arrow keys. Then press either the left-arrow or \226\128\156<\226\128\157 key (to\n\ -+ \032 cause the version in b.tmp to propagate to a.tmp) or the\n\ -+ \032 right-arrow or \226\128\156>\226\128\157 key (which makes the a.tmp version override\n\ -+ \032 b.tmp).\n\ -+ \032 Every keyboard command can also be invoked from the menus at the\n\ -+ \032 top of the user interface. (Conversely, each menu item is annotated\n\ -+ \032 with its keyboard equivalent, if it has one.)\n\ -+ \032 When you are satisfied with the directions for the propagation of\n\ -+ \032 changes as shown in the main window, click the \226\128\156Go\226\128\157 button to set\n\ -+ \032 them in motion. A check sign will be displayed next to each\n\ -+ \032 filename when the file has been dealt with.\n\ -+ \n\ -+ Remote Usage\n\ -+ \n\ -+ \032 Next, we\226\128\153ll get Unison set up to synchronize replicas on two different\n\ -+ \032 machines.\n\ -+ \n\ -+ \032 Follow the instructions in the Installation section to download or\n\ -+ \032 build an executable version of Unison on the server machine, and\n\ -+ \032 install it somewhere on your search path. (It doesn\226\128\153t matter whether\n\ -+ \032 you install the textual or graphical version, since the copy of Unison\n\ -+ \032 on the server doesn\226\128\153t need to display any user interface at all.)\n\ -+ \n\ -+ \032 It is important that the version of Unison installed on the server\n\ -+ \032 machine is the same as the version of Unison on the client machine. But\n\ -+ \032 some flexibility on the version of Unison at the client side can be\n\ -+ \032 achieved by using the -addversionno option; see the section\n\ -+ \032 \226\128\156Preferences\226\128\157 .\n\ -+ \n\ -+ \032 Now there is a decision to be made. Unison provides two methods for\n\ -+ \032 communicating between the client and the server:\n\ -+ \032 * Remote shell method: To use this method, you must have some way of\n\ -+ \032 invoking remote commands on the server from the client\226\128\153s command\n\ -+ \032 line, using a facility such as ssh. This method is more convenient\n\ -+ \032 (since there is no need to manually start a \226\128\156unison server\226\128\157 process\n\ -+ \032 on the server) and also more secure (especially if you use ssh).\n\ -+ \032 * Socket method: This method requires only that you can get TCP\n\ -+ \032 packets from the client to the server and back. A draconian\n\ -+ \032 firewall can prevent this, but otherwise it should work anywhere.\n\ -+ \n\ -+ \032 Decide which of these you want to try, and continue with the section\n\ -+ \032 \226\128\156Remote Shell Method\226\128\157 or the section \226\128\156Socket Method\226\128\157 , as appropriate.\n\ -+ \n\ -+ Remote Shell Method\n\ -+ \n\ -+ \032 The standard remote shell facility on Unix systems is ssh, which\n\ -+ \032 provides the same functionality as the older rsh but much better\n\ -+ \032 security. Ssh is available from http://www.openssh.org. See\n\ -+ \032 section [1]A.2 for installation instructions for the Windows version.\n\ -+ \n\ -+ \032 Running ssh requires some coordination between the client and server\n\ -+ \032 machines to establish that the client is allowed to invoke commands on\n\ -+ \032 the server; please refer to the ssh documentation for information on\n\ -+ \032 how to set this up. The examples in this section use ssh, but you can\n\ -+ \032 substitute rsh for ssh if you wish.\n\ -+ \n\ -+ \032 First, test that we can invoke Unison on the server from the client.\n\ -+ \032 Typing\n\ -+ \032 ssh remotehostname unison -version\n\ -+ \n\ -+ \032 should print the same version information as running\n\ -+ \032 unison -version\n\ -+ \n\ -+ \032 locally on the client. If remote execution fails, then either something\n\ -+ \032 is wrong with your ssh setup (e.g., \226\128\156permission denied\226\128\157) or else the\n\ -+ \032 search path that\226\128\153s being used when executing commands on the server\n\ -+ \032 doesn\226\128\153t contain the unison executable (e.g., \226\128\156command not found\226\128\157).\n\ -+ \n\ -+ \032 Create a test directory a.tmp in your home directory on the client\n\ -+ \032 machine.\n\ -+ \n\ -+ \032 Test that the local unison client can start and connect to the remote\n\ -+ \032 server. Type\n\ -+ \032 unison -testServer a.tmp ssh://remotehostname/a.tmp\n\ -+ \n\ -+ \032 Now cd to your home directory and type:\n\ -+ \032 unison a.tmp ssh://remotehostname/a.tmp\n\ -+ \n\ -+ \032 The result should be that the entire directory a.tmp is propagated from\n\ -+ \032 the client to your home directory on the server.\n\ -+ \n\ -+ \032 After finishing the first synchronization, change a few files and try\n\ -+ \032 synchronizing again. You should see similar results as in the local\n\ -+ \032 case.\n\ -+ \n\ -+ \032 If your user name on the server is not the same as on the client, you\n\ -+ \032 need to specify it on the command line:\n\ -+ \032 unison a.tmp ssh://username@remotehostname/a.tmp\n\ -+ \n\ -+ \032 Notes:\n\ -+ \032 * If you want to put a.tmp some place other than your home directory\n\ -+ \032 on the remote host, you can give an absolute path for it by adding\n\ -+ \032 an extra slash between remotehostname and the beginning of the\n\ -+ \032 path:\n\ -+ \032 unison a.tmp ssh://remotehostname//absolute/path/to/a.tmp\n\ -+ \n\ -+ \032 * You can give an explicit path for the unison executable on the\n\ -+ \032 server by using the command-line option \"-servercmd\n\ -+ \032 /full/path/name/of/unison\" or adding\n\ -+ \032 \"servercmd=/full/path/name/of/unison\" to your profile (see the\n\ -+ \032 section \226\128\156Profile\226\128\157 ). Similarly, you can specify a explicit path for\n\ -+ \032 the ssh program using the \"-sshcmd\" option. Extra arguments can be\n\ -+ \032 passed to ssh by setting the -sshargs preference.\n\ -+ \n\ -+ Socket Method\n\ -+ \n\ -+ \032 Warning: The socket method is insecure: not only are the texts of\n\ -+ \032 your changes transmitted over the network in unprotected form, it is\n\ -+ \032 also possible for anyone in the world to connect to the server\n\ -+ \032 process and read out the contents of your filesystem! (Of course, to\n\ -+ \032 do this they must understand the protocol that Unison uses to\n\ -+ \032 communicate between client and server, but all they need for this is\n\ -+ \032 a copy of the Unison sources.) The socket method is provided only\n\ -+ \032 for expert users with specific needs; everyone else should use the\n\ -+ \032 ssh method.\n\ -+ \n\ -+ \032 To run Unison over a socket connection, you must start a Unison daemon\n\ -+ \032 process on the server. This process runs continuously, waiting for\n\ -+ \032 connections over a given socket from client machines running Unison and\n\ -+ \032 processing their requests in turn.\n\ -+ \n\ -+ \032 To start the daemon, type\n\ -+ \032 unison -socket NNNN\n\ -+ \n\ -+ \032 on the server machine, where NNNN is the socket number that the daemon\n\ -+ \032 should listen on for connections from clients. (NNNN can be any large\n\ -+ \032 number that is not being used by some other program; if NNNN is already\n\ -+ \032 in use, Unison will exit with an error message.) Note that paths\n\ -+ \032 specified by the client will be interpreted relative to the directory\n\ -+ \032 in which you start the server process; this behavior is different from\n\ -+ \032 the ssh case, where the path is relative to your home directory on the\n\ -+ \032 server.\n\ -+ \n\ -+ \032 Create a test directory a.tmp in your home directory on the client\n\ -+ \032 machine. Now type:\n\ -+ \032 unison a.tmp socket://remotehostname:NNNN/a.tmp\n\ -+ \n\ -+ \032 The result should be that the entire directory a.tmp is propagated from\n\ -+ \032 the client to the server (a.tmp will be created on the server in the\n\ -+ \032 directory that the server was started from). After finishing the first\n\ -+ \032 synchronization, change a few files and try synchronizing again. You\n\ -+ \032 should see similar results as in the local case.\n\ -+ \n\ -+ \032 Since the socket method is not used by many people, its functionality\n\ -+ \032 is rather limited. For example, the server can only deal with one\n\ -+ \032 client at a time.\n\ -+ \n\ -+ Using Unison for All Your Files\n\ -+ \n\ -+ \032 Once you are comfortable with the basic operation of Unison, you may\n\ -+ \032 find yourself wanting to use it regularly to synchronize your commonly\n\ -+ \032 used files. There are several possible ways of going about this:\n\ -+ \032 1. Synchronize your whole home directory, using the Ignore facility\n\ -+ \032 (see the section \226\128\156Ignore\226\128\157 ) to avoid synchronizing temporary files\n\ -+ \032 and things that only belong on one host.\n\ -+ \032 2. Create a subdirectory called shared (or current, or whatever) in\n\ -+ \032 your home directory on each host, and put all the files you want to\n\ -+ \032 synchronize into this directory.\n\ -+ \032 3. Create a subdirectory called shared (or current, or whatever) in\n\ -+ \032 your home directory on each host, and put links to all the files\n\ -+ \032 you want to synchronize into this directory. Use the follow\n\ -+ \032 preference (see the section \226\128\156Symbolic Links\226\128\157 ) to make Unison treat\n\ -+ \032 these links as transparent.\n\ -+ \032 4. Make your home directory the root of the synchronization, but tell\n\ -+ \032 Unison to synchronize only some of the files and subdirectories\n\ -+ \032 within it on any given run. This can be accomplished by using the\n\ -+ \032 -path switch on the command line:\n\ -+ \032 unison /home/username ssh://remotehost//home/username -path shared\n\ -+ \n\ -+ \032 The -path option can be used as many times as needed, to\n\ -+ \032 synchronize several files or subdirectories:\n\ -+ \032 unison /home/username ssh://remotehost//home/username \\\n\ -+ \032 -path shared \\\n\ -+ \032 -path pub \\\n\ -+ \032 -path .netscape/bookmarks.html\n\ -+ \n\ -+ \032 These -path arguments can also be put in your preference file. See\n\ -+ \032 the section \226\128\156Preferences\226\128\157 for an example.\n\ -+ \n\ -+ \032 Most people find that they only need to maintain a profile (or\n\ -+ \032 profiles) on one of the hosts that they synchronize, since Unison is\n\ -+ \032 always initiated from this host. (For example, if you\226\128\153re synchronizing\n\ -+ \032 a laptop with a fileserver, you\226\128\153ll probably always run Unison on the\n\ -+ \032 laptop.) This is a bit different from the usual situation with\n\ -+ \032 asymmetric mirroring programs like rdist, where the mirroring operation\n\ -+ \032 typically needs to be initiated from the machine with the most recent\n\ -+ \032 changes. the section \226\128\156Profile\226\128\157 covers the syntax of Unison profiles,\n\ -+ \032 together with some sample profiles.\n\ -+ \n\ -+ \032 Some tips on improving Unison\226\128\153s performance can be found on the\n\ -+ \032 Frequently Asked Questions page\n\ -+ \032 (http://www.cis.upenn.edu/~bcpierce/unison/faq.html).\n\ -+ \n\ -+ Using Unison to Synchronize More Than Two Machines\n\ -+ \n\ -+ \032 Unison is designed for synchronizing pairs of replicas. However, it is\n\ -+ \032 possible to use it to keep larger groups of machines in sync by\n\ -+ \032 performing multiple pairwise synchronizations.\n\ -+ \n\ -+ \032 If you need to do this, the most reliable way to set things up is to\n\ -+ \032 organize the machines into a \226\128\156star topology,\226\128\157 with one machine\n\ -+ \032 designated as the \226\128\156hub\226\128\157 and the rest as \226\128\156spokes,\226\128\157 and with each spoke\n\ -+ \032 machine synchronizing only with the hub. The big advantage of the star\n\ -+ \032 topology is that it eliminates the possibility of confusing \226\128\156spurious\n\ -+ \032 conflicts\226\128\157 arising from the fact that a separate archive is maintained\n\ -+ \032 by Unison for every pair of hosts that it synchronizes.\n\ -+ \n\ -+ Going Further\n\ -+ \n\ -+ \032 On-line documentation for the various features of Unison can be\n\ -+ \032 obtained either by typing\n\ -+ \032 unison -doc topics\n\ -+ \n\ -+ \032 at the command line, or by selecting the Help menu in the graphical\n\ -+ \032 user interface. The same information is also available in a typeset\n\ -+ \032 User\226\128\153s Manual (HTML or PostScript format) through\n\ -+ \032 http://www.cis.upenn.edu/~bcpierce/unison.\n\ -+ \n\ -+ \032 If you use Unison regularly, you should subscribe to one of the mailing\n\ -+ \032 lists, to receive announcements of new versions. See the section\n\ -+ \032 \226\128\156Mailing Lists\226\128\157 .\n\ -+ \n\ -+ ")) -+:: -+ ("basics", ("Basic Concepts", -+ "Basic Concepts\n\ -+ \n\ -+ \032 To understand how Unison works, it is necessary to discuss a few\n\ -+ \032 straightforward concepts. These concepts are developed more rigorously\n\ -+ \032 and at more length in a number of papers, available at\n\ -+ \032 http://www.cis.upenn.edu/~bcpierce/papers. But the informal\n\ -+ \032 presentation here should be enough for most users.\n\ -+ \n\ -+ Roots\n\ -+ \n\ -+ \032 A replica\226\128\153s root tells Unison where to find a set of files to be\n\ -+ \032 synchronized, either on the local machine or on a remote host. For\n\ -+ \032 example,\n\ -+ \032 relative/path/of/root\n\ -+ \n\ -+ \032 specifies a local root relative to the directory where Unison is\n\ -+ \032 started, while\n\ -+ \032 /absolute/path/of/root\n\ -+ \n\ -+ \032 specifies a root relative to the top of the local filesystem,\n\ -+ \032 independent of where Unison is running. Remote roots can begin with\n\ -+ \032 ssh://, rsh:// to indicate that the remote server should be started\n\ -+ \032 with rsh or ssh:\n\ -+ \032 ssh://remotehost//absolute/path/of/root\n\ -+ \032 rsh://user@remotehost/relative/path/of/root\n\ -+ \n\ -+ \032 If the remote server is already running (in the socket mode), then the\n\ -+ \032 syntax\n\ -+ \032 socket://remotehost:portnum//absolute/path/of/root\n\ -+ \032 socket://remotehost:portnum/relative/path/of/root\n\ -+ \n\ -+ \032 is used to specify the hostname and the port that the client Unison\n\ -+ \032 should use to contact it.\n\ -+ \n\ -+ \032 The syntax for roots is based on that of URIs (described in RFC 2396).\n\ -+ \032 The full grammar is:\n\ -+ \032 replica ::= [protocol:]//[user@][host][:port][/path]\n\ -+ \032 | path\n\ -+ \n\ -+ \032 protocol ::= file\n\ -+ \032 | socket\n\ -+ \032 | ssh\n\ -+ \032 | rsh\n\ -+ \n\ -+ \032 user ::= [-_a-zA-Z0-9]+\n\ -+ \n\ -+ \032 host ::= [-_a-zA-Z0-9.]+\n\ -+ \n\ -+ \032 port ::= [0-9]+\n\ -+ \n\ -+ \032 When path is given without any protocol prefix, the protocol is assumed\n\ -+ \032 to be file:. Under Windows, it is possible to synchronize with a remote\n\ -+ \032 directory using the file: protocol over the Windows Network\n\ -+ \032 Neighborhood. For example,\n\ -+ \032 unison foo //host/drive/bar\n\ -+ \n\ -+ \032 synchronizes the local directory foo with the directory drive:\\bar on\n\ -+ \032 the machine host, provided that host is accessible via Network\n\ -+ \032 Neighborhood. When the file: protocol is used in this way, there is no\n\ -+ \032 need for a Unison server to be running on the remote host. However,\n\ -+ \032 running Unison this way is only a good idea if the remote host is\n\ -+ \032 reached by a very fast network connection, since the full contents of\n\ -+ \032 every file in the remote replica will have to be transferred to the\n\ -+ \032 local machine to detect updates.\n\ -+ \n\ -+ \032 The names of roots are canonized by Unison before it uses them to\n\ -+ \032 compute the names of the corresponding archive files, so\n\ -+ \032 //saul//home/bcpierce/common and //saul.cis.upenn.edu/common will be\n\ -+ \032 recognized as the same replica under different names.\n\ -+ \n\ -+ Paths\n\ -+ \n\ -+ \032 A path refers to a point within a set of files being synchronized; it\n\ -+ \032 is specified relative to the root of the replica.\n\ -+ \n\ -+ \032 Formally, a path is just a sequence of names, separated by /. Note that\n\ -+ \032 the path separator character is always a forward slash, no matter what\n\ -+ \032 operating system Unison is running on. Forward slashes are converted to\n\ -+ \032 backslashes as necessary when paths are converted to filenames in the\n\ -+ \032 local filesystem on a particular host. (For example, suppose that we\n\ -+ \032 run Unison on a Windows system, synchronizing the local root c:\\pierce\n\ -+ \032 with the root ssh://saul.cis.upenn.edu/home/bcpierce on a Unix server.\n\ -+ \032 Then the path current/todo.txt refers to the file\n\ -+ \032 c:\\pierce\\current\\todo.txt on the client and\n\ -+ \032 /home/bcpierce/current/todo.txt on the server.)\n\ -+ \n\ -+ \032 The empty path (i.e., the empty sequence of names) denotes the whole\n\ -+ \032 replica. Unison displays the empty path as \226\128\156[root].\226\128\157\n\ -+ \n\ -+ \032 If p is a path and q is a path beginning with p, then q is said to be a\n\ -+ \032 descendant of p. (Each path is also a descendant of itself.)\n\ -+ \n\ -+ What is an Update?\n\ -+ \n\ -+ \032 The contents of a path p in a particular replica could be a file, a\n\ -+ \032 directory, a symbolic link, or absent (if p does not refer to anything\n\ -+ \032 at all in that replica). More specifically:\n\ -+ \032 * If p refers to an ordinary file, then the contents of p are the\n\ -+ \032 actual contents of this file (a string of bytes) plus the current\n\ -+ \032 permission bits of the file.\n\ -+ \032 * If p refers to a symbolic link, then the contents of p are just the\n\ -+ \032 string specifying where the link points.\n\ -+ \032 * If p refers to a directory, then the contents of p are just the\n\ -+ \032 token \226\128\156DIRECTORY\226\128\157 plus the current permission bits of the\n\ -+ \032 directory.\n\ -+ \032 * If p does not refer to anything in this replica, then the contents\n\ -+ \032 of p are the token \226\128\156ABSENT.\226\128\157\n\ -+ \n\ -+ \032 Unison keeps a record of the contents of each path after each\n\ -+ \032 successful synchronization of that path (i.e., it remembers the\n\ -+ \032 contents at the last moment when they were the same in the two\n\ -+ \032 replicas).\n\ -+ \n\ -+ \032 We say that a path is updated (in some replica) if its current contents\n\ -+ \032 are different from its contents the last time it was successfully\n\ -+ \032 synchronized. Note that whether a path is updated has nothing to do\n\ -+ \032 with its last modification time\226\128\148Unison considers only the contents when\n\ -+ \032 determining whether an update has occurred. This means that touching a\n\ -+ \032 file without changing its contents will not be recognized as an update.\n\ -+ \032 A file can even be changed several times and then changed back to its\n\ -+ \032 original contents; as long as Unison is only run at the end of this\n\ -+ \032 process, no update will be recognized.\n\ -+ \n\ -+ \032 What Unison actually calculates is a close approximation to this\n\ -+ \032 definition; see the section \226\128\156Caveats and Shortcomings\226\128\157 .\n\ -+ \n\ -+ What is a Conflict?\n\ -+ \n\ -+ \032 A path is said to be conflicting if the following conditions all hold:\n\ -+ \032 1. it has been updated in one replica,\n\ -+ \032 2. it or any of its descendants has been updated in the other replica,\n\ -+ \032 and\n\ -+ \032 3. its contents in the two replicas are not identical.\n\ -+ \n\ -+ Reconciliation\n\ -+ \n\ -+ \032 Unison operates in several distinct stages:\n\ -+ \032 1. On each host, it compares its archive file (which records the state\n\ -+ \032 of each path in the replica when it was last synchronized) with the\n\ -+ \032 current contents of the replica, to determine which paths have been\n\ -+ \032 updated.\n\ -+ \032 2. It checks for \226\128\156false conflicts\226\128\157 \226\128\148 paths that have been updated on\n\ -+ \032 both replicas, but whose current values are identical. These paths\n\ -+ \032 are silently marked as synchronized in the archive files in both\n\ -+ \032 replicas.\n\ -+ \032 3. It displays all the updated paths to the user. For updates that do\n\ -+ \032 not conflict, it suggests a default action (propagating the new\n\ -+ \032 contents from the updated replica to the other). Conflicting\n\ -+ \032 updates are just displayed. The user is given an opportunity to\n\ -+ \032 examine the current state of affairs, change the default actions\n\ -+ \032 for nonconflicting updates, and choose actions for conflicting\n\ -+ \032 updates.\n\ -+ \032 4. It performs the selected actions, one at a time. Each action is\n\ -+ \032 performed by first transferring the new contents to a temporary\n\ -+ \032 file on the receiving host, then atomically moving them into place.\n\ -+ \032 5. It updates its archive files to reflect the new state of the\n\ -+ \032 replicas.\n\ -+ \n\ -+ ")) -+:: -+ ("failures", ("Invariants", -+ "Invariants\n\ -+ \n\ -+ \032 Given the importance and delicacy of the job that it performs, it is\n\ -+ \032 important to understand both what a synchronizer does under normal\n\ -+ \032 conditions and what can happen under unusual conditions such as system\n\ -+ \032 crashes and communication failures.\n\ -+ \n\ -+ \032 Unison is careful to protect both its internal state and the state of\n\ -+ \032 the replicas at every point in this process. Specifically, the\n\ -+ \032 following guarantees are enforced:\n\ -+ \032 * At every moment, each path in each replica has either (1) its\n\ -+ \032 original contents (i.e., no change at all has been made to this\n\ -+ \032 path), or (2) its correct final contents (i.e., the value that the\n\ -+ \032 user expected to be propagated from the other replica).\n\ -+ \032 * At every moment, the information stored on disk about Unison\226\128\153s\n\ -+ \032 private state can be either (1) unchanged, or (2) updated to\n\ -+ \032 reflect those paths that have been successfully synchronized.\n\ -+ \n\ -+ \032 The upshot is that it is safe to interrupt Unison at any time, either\n\ -+ \032 manually or accidentally. [Caveat: the above is almost true there are\n\ -+ \032 occasionally brief periods where it is not (and, because of shortcoming\n\ -+ \032 of the Posix filesystem API, cannot be); in particular, when it is\n\ -+ \032 copying a file onto a directory or vice versa, it must first move the\n\ -+ \032 original contents out of the way. If Unison gets interrupted during one\n\ -+ \032 of these periods, some manual cleanup may be required. In this case, a\n\ -+ \032 file called DANGER.README will be left in your home directory,\n\ -+ \032 containing information about the operation that was interrupted. The\n\ -+ \032 next time you try to run Unison, it will notice this file and warn you\n\ -+ \032 about it.]\n\ -+ \n\ -+ \032 If an interruption happens while it is propagating updates, then there\n\ -+ \032 may be some paths for which an update has been propagated but which\n\ -+ \032 have not been marked as synchronized in Unison\226\128\153s archives. This is no\n\ -+ \032 problem: the next time Unison runs, it will detect changes to these\n\ -+ \032 paths in both replicas, notice that the contents are now equal, and\n\ -+ \032 mark the paths as successfully updated when it writes back its private\n\ -+ \032 state at the end of this run.\n\ -+ \n\ -+ \032 If Unison is interrupted, it may sometimes leave temporary working\n\ -+ \032 files (with suffix .tmp) in the replicas. It is safe to delete these\n\ -+ \032 files. Also, if the backups flag is set, Unison will leave around old\n\ -+ \032 versions of files that it overwrites, with names like\n\ -+ \032 file.0.unison.bak. These can be deleted safely when they are no longer\n\ -+ \032 wanted.\n\ -+ \n\ -+ \032 Unison is not bothered by clock skew between the different hosts on\n\ -+ \032 which it is running. It only performs comparisons between timestamps\n\ -+ \032 obtained from the same host, and the only assumption it makes about\n\ -+ \032 them is that the clock on each system always runs forward.\n\ -+ \n\ -+ \032 If Unison finds that its archive files have been deleted (or that the\n\ -+ \032 archive format has changed and they cannot be read, or that they don\226\128\153t\n\ -+ \032 exist because this is the first run of Unison on these particular\n\ -+ \032 roots), it takes a conservative approach: it behaves as though the\n\ -+ \032 replicas had both been completely empty at the point of the last\n\ -+ \032 synchronization. The effect of this is that, on the first run, files\n\ -+ \032 that exist in only one replica will be propagated to the other, while\n\ -+ \032 files that exist in both replicas but are unequal will be marked as\n\ -+ \032 conflicting.\n\ -+ \n\ -+ \032 Touching a file without changing its contents should never affect\n\ -+ \032 whether or not Unison does an update. (When running with the fastcheck\n\ -+ \032 preference set to true\226\128\148the default on Unix systems\226\128\148Unison uses file\n\ -+ \032 modtimes for a quick first pass to tell which files have definitely not\n\ -+ \032 changed; then, for each file that might have changed, it computes a\n\ -+ \032 fingerprint of the file\226\128\153s contents and compares it against the\n\ -+ \032 last-synchronized contents. Also, the -times option allows you to\n\ -+ \032 synchronize file times, but it does not cause identical files to be\n\ -+ \032 changed; Unison will only modify the file times.)\n\ -+ \n\ -+ \032 It is safe to \226\128\156brainwash\226\128\157 Unison by deleting its archive files on both\n\ -+ \032 replicas. The next time it runs, it will assume that all the files it\n\ -+ \032 sees in the replicas are new.\n\ -+ \n\ -+ \032 It is safe to modify files while Unison is working. If Unison discovers\n\ -+ \032 that it has propagated an out-of-date change, or that the file it is\n\ -+ \032 updating has changed on the target replica, it will signal a failure\n\ -+ \032 for that file. Run Unison again to propagate the latest change.\n\ -+ \n\ -+ \032 Changes to the ignore patterns from the user interface (e.g., using the\n\ -+ \032 \226\128\152i\226\128\153 key) are immediately reflected in the current profile.\n\ -+ \n\ -+ Caveats and Shortcomings\n\ -+ \n\ -+ \032 Here are some things to be careful of when using Unison.\n\ -+ \032 * In the interests of speed, the update detection algorithm may\n\ -+ \032 (depending on which OS architecture that you run Unison on)\n\ -+ \032 actually use an approximation to the definition given in the\n\ -+ \032 section \226\128\156What is an Update?\226\128\157 .\n\ -+ \032 In particular, the Unix implementation does not compare the actual\n\ -+ \032 contents of files to their previous contents, but simply looks at\n\ -+ \032 each file\226\128\153s inode number and modtime; if neither of these have\n\ -+ \032 changed, then it concludes that the file has not been changed.\n\ -+ \032 Under normal circumstances, this approximation is safe, in the\n\ -+ \032 sense that it may sometimes detect \226\128\156false updates\226\128\157 but will never\n\ -+ \032 miss a real one. However, it is possible to fool it, for example by\n\ -+ \032 using retouch to change a file\226\128\153s modtime back to a time in the\n\ -+ \032 past.\n\ -+ \032 * If you synchronize between a single-user filesystem and a shared\n\ -+ \032 Unix server, you should pay attention to your permission bits: by\n\ -+ \032 default, Unison will synchronize permissions verbatim, which may\n\ -+ \032 leave group-writable files on the server that could be written over\n\ -+ \032 by a lot of people.\n\ -+ \032 You can control this by setting your umask on both computers to\n\ -+ \032 something like 022, masking out the \226\128\156world write\226\128\157 and \226\128\156group write\226\128\157\n\ -+ \032 permission bits.\n\ -+ \032 Unison does not synchronize the setuid and setgid bits, for\n\ -+ \032 security.\n\ -+ \032 * The graphical user interface is single-threaded. This means that if\n\ -+ \032 Unison is performing some long-running operation, the display will\n\ -+ \032 not be repainted until it finishes. We recommend not trying to do\n\ -+ \032 anything with the user interface while Unison is in the middle of\n\ -+ \032 detecting changes or propagating files.\n\ -+ \032 * Unison does not understand hard links.\n\ -+ \032 * It is important to be a little careful when renaming directories\n\ -+ \032 containing ignored files.\n\ -+ \032 For example, suppose Unison is synchronizing directory A between\n\ -+ \032 the two machines called the \226\128\156local\226\128\157 and the \226\128\156remote\226\128\157 machine;\n\ -+ \032 suppose directory A contains a subdirectory D; and suppose D on the\n\ -+ \032 local machine contains a file or subdirectory P that matches an\n\ -+ \032 ignore directive in the profile used to synchronize. Thus path\n\ -+ \032 A/D/P exists on the local machine but not on the remote machine.\n\ -+ \032 If D is renamed to D\226\128\153 on the remote machine, and this change is\n\ -+ \032 propagated to the local machine, all such files or subdirectories P\n\ -+ \032 will be deleted. This is because Unison sees the rename as a delete\n\ -+ \032 and a separate create: it deletes the old directory (including the\n\ -+ \032 ignored files) and creates a new one (not including the ignored\n\ -+ \032 files, since they are completely invisible to it).\n\ -+ \n\ -+ ")) -+:: -+ ("reference", ("Reference Guide", -+ "Reference Guide\n\ -+ \n\ -+ \032 This section covers the features of Unison in detail.\n\ -+ \n\ -+ ")) -+:: -+ ("running", ("Running Unison", -+ "Running Unison\n\ -+ \n\ -+ \032 There are several ways to start Unison.\n\ -+ \032 * Typing \226\128\156unison profile\226\128\157 on the command line. Unison will look for a\n\ -+ \032 file profile.prf in the .unison directory. If this file does not\n\ -+ \032 specify a pair of roots, Unison will prompt for them and add them\n\ -+ \032 to the information specified by the profile.\n\ -+ \032 * Typing \226\128\156unison profile root1 root2\226\128\157 on the command line. In this\n\ -+ \032 case, Unison will use profile, which should not contain any root\n\ -+ \032 directives.\n\ -+ \032 * Typing \226\128\156unison root1 root2\226\128\157 on the command line. This has the same\n\ -+ \032 effect as typing \226\128\156unison default root1 root2.\226\128\157\n\ -+ \032 * Typing just \226\128\156unison\226\128\157 (or invoking Unison by clicking on a desktop\n\ -+ \032 icon). In this case, Unison will ask for the profile to use for\n\ -+ \032 synchronization (or create a new one, if necessary).\n\ -+ \n\ -+ The .unison Directory\n\ -+ \n\ -+ \032 Unison stores a variety of information in a private directory on each\n\ -+ \032 host. If the environment variable UNISON is defined, then its value\n\ -+ \032 will be used as the name of this directory. If UNISON is not defined,\n\ -+ \032 then the name of the directory depends on which operating system you\n\ -+ \032 are using. In Unix, the default is to use $HOME/.unison. In Windows, if\n\ -+ \032 the environment variable USERPROFILE is defined, then the directory\n\ -+ \032 will be $USERPROFILE\\.unison; otherwise if HOME is defined, it will be\n\ -+ \032 $HOME\\.unison; otherwise, it will be c:\\.unison.\n\ -+ \n\ -+ \032 The archive file for each replica is found in the .unison directory on\n\ -+ \032 that replica\226\128\153s host. Profiles (described below) are always taken from\n\ -+ \032 the .unison directory on the client host.\n\ -+ \n\ -+ \032 Note that Unison maintains a completely different set of archive files\n\ -+ \032 for each pair of roots.\n\ -+ \n\ -+ \032 We do not recommend synchronizing the whole .unison directory, as this\n\ -+ \032 will involve frequent propagation of large archive files. It should be\n\ -+ \032 safe to do it, though, if you really want to. Synchronizing just the\n\ -+ \032 profile files in the .unison directory is definitely OK.\n\ -+ \n\ -+ Archive Files\n\ -+ \n\ -+ \032 The name of the archive file on each replica is calculated from\n\ -+ \032 * the canonical names of all the hosts (short names like saul are\n\ -+ \032 converted into full addresses like saul.cis.upenn.edu),\n\ -+ \032 * the paths to the replicas on all the hosts (again, relative\n\ -+ \032 pathnames, symbolic links, etc. are converted into full, absolute\n\ -+ \032 paths), and\n\ -+ \032 * an internal version number that is changed whenever a new Unison\n\ -+ \032 release changes the format of the information stored in the\n\ -+ \032 archive.\n\ -+ \n\ -+ \032 This method should work well for most users. However, it is\n\ -+ \032 occasionally useful to change the way archive names are generated.\n\ -+ \032 Unison provides two ways of doing this.\n\ -+ \n\ -+ \032 The function that finds the canonical hostname of the local host (which\n\ -+ \032 is used, for example, in calculating the name of the archive file used\n\ -+ \032 to remember which files have been synchronized) normally uses the\n\ -+ \032 gethostname operating system call. However, if the environment variable\n\ -+ \032 UNISONLOCALHOSTNAME is set, its value will be used instead. This makes\n\ -+ \032 it easier to use Unison in situations where a machine\226\128\153s name changes\n\ -+ \032 frequently (e.g., because it is a laptop and gets moved around a lot).\n\ -+ \n\ -+ \032 A more powerful way of changing archive names is provided by the\n\ -+ \032 rootalias preference. The preference file may contain any number of\n\ -+ \032 lines of the form:\n\ -+ \032 rootalias = //hostnameA//path-to-replicaA -> //hostnameB/path-to-replicaB\n\ -+ \n\ -+ \032 When calculating the name of the archive files for a given pair of\n\ -+ \032 roots, Unison replaces any root that matches the left-hand side of any\n\ -+ \032 rootalias rule by the corresponding right-hand side.\n\ -+ \n\ -+ \032 So, if you need to relocate a root on one of the hosts, you can add a\n\ -+ \032 rule of the form:\n\ -+ \032 rootalias = //new-hostname//new-path -> //old-hostname/old-path\n\ -+ \n\ -+ \032 Note that root aliases are case-sensitive, even on case-insensitive\n\ -+ \032 file systems.\n\ -+ \n\ -+ \032 Warning: The rootalias option is dangerous and should only be used if\n\ -+ \032 you are sure you know what you\226\128\153re doing. In particular, it should only\n\ -+ \032 be used if you are positive that either (1) both the original root and\n\ -+ \032 the new alias refer to the same set of files, or (2) the files have\n\ -+ \032 been relocated so that the original name is now invalid and will never\n\ -+ \032 be used again. (If the original root and the alias refer to different\n\ -+ \032 sets of files, Unison\226\128\153s update detector could get confused.) After\n\ -+ \032 introducing a new rootalias, it is a good idea to run Unison a few\n\ -+ \032 times interactively (with the batch flag off, etc.) and carefully check\n\ -+ \032 that things look reasonable\226\128\148in particular, that update detection is\n\ -+ \032 working as expected.\n\ -+ \n\ -+ Preferences\n\ -+ \n\ -+ \032 Many details of Unison\226\128\153s behavior are configurable by user-settable\n\ -+ \032 \226\128\156preferences.\226\128\157\n\ -+ \n\ -+ \032 Some preferences are boolean-valued; these are often called flags.\n\ -+ \032 Others take numeric or string arguments, indicated in the preferences\n\ -+ \032 list by n or xxx. Most of the string preferences can be given several\n\ -+ \032 times; the arguments are accumulated into a list internally.\n\ -+ \n\ -+ \032 There are two ways to set the values of preferences: temporarily, by\n\ -+ \032 providing command-line arguments to a particular run of Unison, or\n\ -+ \032 permanently, by adding commands to a profile in the .unison directory\n\ -+ \032 on the client host. The order of preferences (either on the command\n\ -+ \032 line or in preference files) is not significant. On the command line,\n\ -+ \032 preferences and other arguments (the profile name and roots) can be\n\ -+ \032 intermixed in any order.\n\ -+ \n\ -+ \032 To set the value of a preference p from the command line, add an\n\ -+ \032 argument -p (for a boolean flag) or -p n or -p xxx (for a numeric or\n\ -+ \032 string preference) anywhere on the command line. To set a boolean flag\n\ -+ \032 to false on the command line, use -p=false.\n\ -+ \n\ -+ \032 Here are all the preferences supported by Unison. This list can be\n\ -+ \032 obtained by typing unison -help.\n\ -+ \n\ -+ Usage: unison [options]\n\ -+ \032 or unison root1 root2 [options]\n\ -+ \032 or unison profilename [options]\n\ -+ \n\ -+ Basic options:\n\ -+ \032-auto automatically accept default (nonconflicting) actions\n\ -+ \032-batch batch mode: ask no questions at all\n\ -+ \032-doc xxx show documentation ('-doc topics' lists topics)\n\ -+ \032-fat use appropriate options for FAT filesystems\n\ -+ \032-group synchronize group attributes\n\ -+ \032-ignore xxx add a pattern to the ignore list\n\ -+ \032-ignorenot xxx add a pattern to the ignorenot list\n\ -+ \032-nocreation xxx prevent file creations on one replica\n\ -+ \032-nodeletion xxx prevent file deletions on one replica\n\ -+ \032-noupdate xxx prevent file updates and deletions on one replica\n\ -+ \032-owner synchronize owner\n\ -+ \032-path xxx path to synchronize\n\ -+ \032-perms n part of the permissions which is synchronized\n\ -+ \032-root xxx root of a replica (should be used exactly twice)\n\ -+ \032-silent print nothing except error messages\n\ -+ \032-terse suppress status messages\n\ -+ \032-testserver exit immediately after the connection to the server\n\ -+ \032-times synchronize modification times\n\ -+ \032-version print version and exit\n\ -+ \n\ -+ Advanced options:\n\ -+ \032-addprefsto xxx file to add new prefs to\n\ -+ \032-addversionno add version number to name of unison on server\n\ -+ \032-backup xxx add a pattern to the backup list\n\ -+ \032-backupcurr xxx add a pattern to the backupcurr list\n\ -+ \032-backupcurrnot xxx add a pattern to the backupcurrnot list\n\ -+ \032-backupdir xxx directory for storing centralized backups\n\ -+ \032-backuploc xxx where backups are stored ('local' or 'central')\n\ -+ \032-backupnot xxx add a pattern to the backupnot list\n\ -+ \032-backupprefix xxx prefix for the names of backup files\n\ -+ \032-backups keep backup copies of all files (see also 'backup')\n\ -+ \032-backupsuffix xxx a suffix to be added to names of backup files\n\ -+ \032-confirmbigdel ask about whole-replica (or path) deletes (default true)\n\ -+ \032-confirmmerge ask for confirmation before commiting results of a merge\n\ -+ \032-contactquietly suppress the 'contacting server' message during startup\n\ -+ \032-copymax n maximum number of simultaneous copyprog transfers\n\ -+ \032-copyprog xxx external program for copying large files\n\ -+ \032-copyprogrest xxx variant of copyprog for resuming partial transfers\n\ -+ \032-copyquoterem xxx add quotes to remote file name for copyprog (true/false/defa\n\ -+ ult)\n\ -+ \032-copythreshold n use copyprog on files bigger than this (if >=0, in Kb)\n\ -+ \032-debug xxx debug module xxx ('all' -> everything, 'verbose' -> more)\n\ -+ \032-diff xxx set command for showing differences between files\n\ -+ \032-dontchmod when set, never use the chmod system call\n\ -+ \032-dumbtty do not change terminal settings in text UI\n\ -+ \032-fastcheck xxx do fast update detection (true/false/default)\n\ -+ \032-follow xxx add a pattern to the follow list\n\ -+ \032-force xxx force changes from this replica to the other\n\ -+ \032-forcepartial xxx add a pattern to the forcepartial list\n\ -+ \032-halfduplex force half-duplex communication with the server\n\ -+ \032-height n height (in lines) of main window in graphical interface\n\ -+ \032-host xxx bind the socket to this host name in server socket mode\n\ -+ \032-ignorearchives ignore existing archive files\n\ -+ \032-ignorecase xxx identify upper/lowercase filenames (true/false/default)\n\ -+ \032-ignoreinodenumbers ignore inode number changes when detecting updates\n\ -+ \032-ignorelocks ignore locks left over from previous run (dangerous!)\n\ -+ \032-immutable xxx add a pattern to the immutable list\n\ -+ \032-immutablenot xxx add a pattern to the immutablenot list\n\ -+ \032-key xxx define a keyboard shortcut for this profile (in some UIs)\n\ -+ \032-killserver kill server when done (even when using sockets)\n\ -+ \032-label xxx provide a descriptive string label for this profile\n\ -+ \032-links xxx allow the synchronization of symbolic links (true/false/defa\n\ -+ ult)\n\ -+ \032-log record actions in logfile (default true)\n\ -+ \032-logfile xxx logfile name\n\ -+ \032-maxbackups n number of backed up versions of a file\n\ -+ \032-maxerrors n maximum number of errors before a directory transfer is abor\n\ -+ ted\n\ -+ \032-maxthreads n maximum number of simultaneous file transfers\n\ -+ \032-merge xxx add a pattern to the merge list\n\ -+ \032-mountpoint xxx abort if this path does not exist\n\ -+ \032-nocreationpartial xxx add a pattern to the nocreationpartial list\n\ -+ \032-nodeletionpartial xxx add a pattern to the nodeletionpartial list\n\ -+ \032-noupdatepartial xxx add a pattern to the noupdatepartial list\n\ -+ \032-numericids don't map uid/gid values by user/group names\n\ -+ \032-prefer xxx choose this replica's version for conflicting changes\n\ -+ \032-preferpartial xxx add a pattern to the preferpartial list\n\ -+ \032-repeat xxx synchronize repeatedly (text interface only)\n\ -+ \032-retry n re-try failed synchronizations N times (text ui only)\n\ -+ \032-rootalias xxx register alias for canonical root names\n\ -+ \032-rsrc xxx synchronize resource forks (true/false/default)\n\ -+ \032-rsync activate the rsync transfer mode (default true)\n\ -+ \032-selftest run internal tests and exit\n\ -+ \032-servercmd xxx name of unison executable on remote server\n\ -+ \032-showarchive show 'true names' (for rootalias) of roots and archive\n\ -+ \032-socket xxx act as a server on a socket\n\ -+ \032-sortbysize list changed files by size, not name\n\ -+ \032-sortfirst xxx add a pattern to the sortfirst list\n\ -+ \032-sortlast xxx add a pattern to the sortlast list\n\ -+ \032-sortnewfirst list new before changed files\n\ -+ \032-sshargs xxx other arguments (if any) for remote shell command\n\ -+ \032-sshcmd xxx path to the ssh executable\n\ -+ \032-stream use a streaming protocol for transferring file contents (def\n\ -+ ault true)\n\ -+ \032-ui xxx select UI ('text' or 'graphic'); command-line only\n\ -+ \032-unicode xxx assume Unicode encoding in case insensitive mode\n\ -+ \032-xferbycopying optimize transfers using local copies (default true)\n\ -+ \n\ -+ \n\ -+ \032 Here, in more detail, is what they do. Many are discussed in greater\n\ -+ \032 detail in other sections of the manual.\n\ -+ \n\ -+ \032 addprefsto xxx\n\ -+ \032 By default, new preferences added by Unison (e.g., new ignore\n\ -+ \032 clauses) will be appended to whatever preference file Unison was\n\ -+ \032 told to load at the beginning of the run. Setting the preference\n\ -+ \032 addprefsto filename makes Unison add new preferences to the file\n\ -+ \032 named filename instead.\n\ -+ \n\ -+ \032 addversionno\n\ -+ \032 When this flag is set to true, Unison will use\n\ -+ \032 unison-currentversionnumber instead of just unison as the remote\n\ -+ \032 server command. This allows multiple binaries for different\n\ -+ \032 versions of unison to coexist conveniently on the same server:\n\ -+ \032 whichever version is run on the client, the same version will be\n\ -+ \032 selected on the server.\n\ -+ \n\ -+ \032 auto\n\ -+ \032 When set to true, this flag causes the user interface to skip\n\ -+ \032 asking for confirmations on non-conflicting changes. (More\n\ -+ \032 precisely, when the user interface is done setting the\n\ -+ \032 propagation direction for one entry and is about to move to the\n\ -+ \032 next, it will skip over all non-conflicting entries and go\n\ -+ \032 directly to the next conflict.)\n\ -+ \n\ -+ \032 backup xxx\n\ -+ \032 Including the preference -backup pathspec causes Unison to keep\n\ -+ \032 backup files for each path that matches pathspec. These backup\n\ -+ \032 files are kept in the directory specified by the backuplocation\n\ -+ \032 preference. The backups are named according to the backupprefix\n\ -+ \032 and backupsuffix preferences. The number of versions that are\n\ -+ \032 kept is determined by the maxbackups preference.\n\ -+ \n\ -+ \032 The syntax of pathspec is described in the section \226\128\156Path\n\ -+ \032 Specification\226\128\157 .\n\ -+ \n\ -+ \032 backupcurr xxx\n\ -+ \032 Including the preference -backupcurr pathspec causes Unison to\n\ -+ \032 keep a backup of the current version of every file matching\n\ -+ \032 pathspec. This file will be saved as a backup with version\n\ -+ \032 number 000. Such backups can be used as inputs to external\n\ -+ \032 merging programs, for instance. See the documentatation for the\n\ -+ \032 merge preference. For more details, see the section \226\128\156Merging\n\ -+ \032 Conflicting Versions\226\128\157 .\n\ -+ \n\ -+ \032 The syntax of pathspec is described in the section \226\128\156Path\n\ -+ \032 Specification\226\128\157 .\n\ -+ \n\ -+ \032 backupcurrnot xxx\n\ -+ \032 Exceptions to backupcurr, like the ignorenot preference.\n\ -+ \n\ -+ \032 backupdir xxx\n\ -+ \032 If this preference is set, Unison will use it as the name of the\n\ -+ \032 directory used to store backup files specified by the backup\n\ -+ \032 preference, when backuplocation is set to central. It is checked\n\ -+ \032 after the UNISONBACKUPDIR environment variable.\n\ -+ \n\ -+ \032 backuploc xxx\n\ -+ \032 This preference determines whether backups should be kept\n\ -+ \032 locally, near the original files, or in a central directory\n\ -+ \032 specified by the backupdir preference. If set to local, backups\n\ -+ \032 will be kept in the same directory as the original files, and if\n\ -+ \032 set to central, backupdir will be used instead.\n\ -+ \n\ -+ \032 backupnot xxx\n\ -+ \032 The values of this preference specify paths or individual files\n\ -+ \032 or regular expressions that should not be backed up, even if the\n\ -+ \032 backup preference selects them\226\128\148i.e., it selectively overrides\n\ -+ \032 backup. The same caveats apply here as with ignore and\n\ -+ \032 ignorenot.\n\ -+ \n\ -+ \032 backupprefix xxx\n\ -+ \032 When a backup for a file NAME is created, it is stored in a\n\ -+ \032 directory specified by backuplocation, in a file called\n\ -+ \032 backupprefixNAMEbackupsuffix. backupprefix can include a\n\ -+ \032 directory name (causing Unison to keep all backup files for a\n\ -+ \032 given directory in a subdirectory with this name), and both\n\ -+ \032 backupprefix and backupsuffix can contain the string$VERSION,\n\ -+ \032 which will be replaced by the age of the backup (1 for the most\n\ -+ \032 recent, 2 for the second most recent, and so on...). This\n\ -+ \032 keyword is ignored if it appears in a directory name in the\n\ -+ \032 prefix; if it does not appear anywhere in the prefix or the\n\ -+ \032 suffix, it will be automatically placed at the beginning of the\n\ -+ \032 suffix.\n\ -+ \n\ -+ \032 One thing to be careful of: If the backuploc preference is set\n\ -+ \032 to local, Unison will automatically ignore all files whose\n\ -+ \032 prefix and suffix match backupprefix and backupsuffix. So be\n\ -+ \032 careful to choose values for these preferences that are\n\ -+ \032 sufficiently different from the names of your real files.\n\ -+ \n\ -+ \032 backups\n\ -+ \032 Setting this flag to true is equivalent to setting\n\ -+ \032 backuplocation to local and backup to Name *.\n\ -+ \n\ -+ \032 backupsuffix xxx\n\ -+ \032 See backupprefix for full documentation.\n\ -+ \n\ -+ \032 batch\n\ -+ \032 When this is set to true, the user interface will ask no\n\ -+ \032 questions at all. Non-conflicting changes will be propagated;\n\ -+ \032 conflicts will be skipped.\n\ -+ \n\ -+ \032 confirmbigdel\n\ -+ \032 When this is set to true, Unison will request an extra\n\ -+ \032 confirmation if it appears that the entire replica has been\n\ -+ \032 deleted, before propagating the change. If the batch flag is\n\ -+ \032 also set, synchronization will be aborted. When the path\n\ -+ \032 preference is used, the same confirmation will be requested for\n\ -+ \032 top-level paths. (At the moment, this flag only affects the text\n\ -+ \032 user interface.) See also the mountpoint preference.\n\ -+ \n\ -+ \032 confirmmerge\n\ -+ \032 Setting this preference causes both the text and graphical\n\ -+ \032 interfaces to ask the user if the results of a merge command may\n\ -+ \032 be commited to the replica or not. Since the merge command works\n\ -+ \032 on temporary files, the user can then cancel all the effects of\n\ -+ \032 applying the merge if it turns out that the result is not\n\ -+ \032 satisfactory. In batch-mode, this preference has no effect.\n\ -+ \032 Default is false.\n\ -+ \n\ -+ \032 contactquietly\n\ -+ \032 If this flag is set, Unison will skip displaying the \226\128\152Contacting\n\ -+ \032 server\226\128\153 message (which some users find annoying) during startup.\n\ -+ \n\ -+ \032 copymax n\n\ -+ \032 A number indicating how many instances of the external copying\n\ -+ \032 utility Unison is allowed to run simultaneously (default to 1).\n\ -+ \n\ -+ \032 copyprog xxx\n\ -+ \032 A string giving the name of an external program that can be used\n\ -+ \032 to copy large files efficiently (plus command-line switches\n\ -+ \032 telling it to copy files in-place). The default setting invokes\n\ -+ \032 rsync with appropriate options\226\128\148most users should not need to\n\ -+ \032 change it.\n\ -+ \n\ -+ \032 copyprogrest xxx\n\ -+ \032 A variant of copyprog that names an external program that should\n\ -+ \032 be used to continue the transfer of a large file that has\n\ -+ \032 already been partially transferred. Typically, copyprogrest will\n\ -+ \032 just be copyprog with one extra option (e.g., --partial, for\n\ -+ \032 rsync). The default setting invokes rsync with appropriate\n\ -+ \032 options\226\128\148most users should not need to change it.\n\ -+ \n\ -+ \032 copyquoterem xxx\n\ -+ \032 When set to true, this flag causes Unison to add an extra layer\n\ -+ \032 of quotes to the remote path passed to the external copy\n\ -+ \032 program. This is needed by rsync, for example, which internally\n\ -+ \032 uses an ssh connection requiring an extra level of quoting for\n\ -+ \032 paths containing spaces. When this flag is set to default, extra\n\ -+ \032 quotes are added if the value of copyprog contains the string\n\ -+ \032 rsync.\n\ -+ \n\ -+ \032 copythreshold n\n\ -+ \032 A number indicating above what filesize (in kilobytes) Unison\n\ -+ \032 should use the external copying utility specified by copyprog.\n\ -+ \032 Specifying 0 will cause all copies to use the external program;\n\ -+ \032 a negative number will prevent any files from using it. The\n\ -+ \032 default is -1. See the section \226\128\156Making Unison Faster on Large\n\ -+ \032 Files\226\128\157 for more information.\n\ -+ \n\ -+ \032 debug xxx\n\ -+ \032 This preference is used to make Unison print various sorts of\n\ -+ \032 information about what it is doing internally on the standard\n\ -+ \032 error stream. It can be used many times, each time with the name\n\ -+ \032 of a module for which debugging information should be printed.\n\ -+ \032 Possible arguments for debug can be found by looking for calls\n\ -+ \032 to Util.debug in the sources (using, e.g., grep). Setting -debug\n\ -+ \032 all causes information from all modules to be printed (this mode\n\ -+ \032 of usage is the first one to try, if you are trying to\n\ -+ \032 understand something that Unison seems to be doing wrong);\n\ -+ \032 -debug verbose turns on some additional debugging output from\n\ -+ \032 some modules (e.g., it will show exactly what bytes are being\n\ -+ \032 sent across the network).\n\ -+ \n\ -+ \032 diff xxx\n\ -+ \032 This preference can be used to control the name and command-line\n\ -+ \032 arguments of the system utility used to generate displays of\n\ -+ \032 file differences. The default is \226\128\152diff -u CURRENT2 CURRENT1\226\128\153. If\n\ -+ \032 the value of this preference contains the substrings CURRENT1\n\ -+ \032 and CURRENT2, these will be replaced by the names of the files\n\ -+ \032 to be diffed. If not, the two filenames will be appended to the\n\ -+ \032 command. In both cases, the filenames are suitably quoted.\n\ -+ \n\ -+ \032 doc xxx\n\ -+ \032 The command-line argument -doc secname causes unison to display\n\ -+ \032 section secname of the manual on the standard output and then\n\ -+ \032 exit. Use -doc all to display the whole manual, which includes\n\ -+ \032 exactly the same information as the printed and HTML manuals,\n\ -+ \032 modulo formatting. Use -doc topics to obtain a list of the names\n\ -+ \032 of the various sections that can be printed.\n\ -+ \n\ -+ \032 dontchmod\n\ -+ \032 By default, Unison uses the \226\128\153chmod\226\128\153 system call to set the\n\ -+ \032 permission bits of files after it has copied them. But in some\n\ -+ \032 circumstances (and under some operating systems), the chmod call\n\ -+ \032 always fails. Setting this preference completely prevents Unison\n\ -+ \032 from ever calling chmod.\n\ -+ \n\ -+ \032 dumbtty\n\ -+ \032 When set to true, this flag makes the text mode user interface\n\ -+ \032 avoid trying to change any of the terminal settings. (Normally,\n\ -+ \032 Unison puts the terminal in \226\128\152raw mode\226\128\153, so that it can do things\n\ -+ \032 like overwriting the current line.) This is useful, for example,\n\ -+ \032 when Unison runs in a shell inside of Emacs.\n\ -+ \n\ -+ \032 When dumbtty is set, commands to the user interface need to be\n\ -+ \032 followed by a carriage return before Unison will execute them.\n\ -+ \032 (When it is off, Unison recognizes keystrokes as soon as they\n\ -+ \032 are typed.)\n\ -+ \n\ -+ \032 This preference has no effect on the graphical user interface.\n\ -+ \n\ -+ \032 dumparchives\n\ -+ \032 When this preference is set, Unison will create a file\n\ -+ \032 unison.dump on each host, containing a text summary of the\n\ -+ \032 archive, immediately after loading it.\n\ -+ \n\ -+ \032 fastcheck xxx\n\ -+ \032 When this preference is set to true, Unison will use the\n\ -+ \032 modification time and length of a file as a \226\128\152pseudo inode\n\ -+ \032 number\226\128\153 when scanning replicas for updates, instead of reading\n\ -+ \032 the full contents of every file. Under Windows, this may cause\n\ -+ \032 Unison to miss propagating an update if the modification time\n\ -+ \032 and length of the file are both unchanged by the update.\n\ -+ \032 However, Unison will never overwrite such an update with a\n\ -+ \032 change from the other replica, since it always does a safe check\n\ -+ \032 for updates just before propagating a change. Thus, it is\n\ -+ \032 reasonable to use this switch under Windows most of the time and\n\ -+ \032 occasionally run Unison once with fastcheck set to false, if you\n\ -+ \032 are worried that Unison may have overlooked an update. For\n\ -+ \032 backward compatibility, yes, no, and default can be used in\n\ -+ \032 place of true, false, and auto. See the section \226\128\156Fast Checking\226\128\157\n\ -+ \032 for more information.\n\ -+ \n\ -+ \032 fat\n\ -+ \032 When this is set to true, Unison will use appropriate options to\n\ -+ \032 synchronize efficiently and without error a replica located on a\n\ -+ \032 FAT filesystem on a non-Windows machine: do not synchronize\n\ -+ \032 permissions (perms = 0); never use chmod ( t dontchmod = true);\n\ -+ \032 treat filenames as case insensitive (ignorecase = true); do not\n\ -+ \032 attempt to synchronize symbolic links (links = false); ignore\n\ -+ \032 inode number changes when detecting updates (ignoreinodenumbers\n\ -+ \032 = true). Any of these change can be overridden by explicitely\n\ -+ \032 setting the corresponding preference in the profile.\n\ -+ \n\ -+ \032 follow xxx\n\ -+ \032 Including the preference -follow pathspec causes Unison to treat\n\ -+ \032 symbolic links matching pathspec as \226\128\152invisible\226\128\153 and behave as if\n\ -+ \032 the object pointed to by the link had appeared literally at this\n\ -+ \032 position in the replica. See the section \226\128\156Symbolic Links\226\128\157 for\n\ -+ \032 more details. The syntax of pathspec is described in the section\n\ -+ \032 \226\128\156Path Specification\226\128\157 .\n\ -+ \n\ -+ \032 force xxx\n\ -+ \032 Including the preference -force root causes Unison to resolve\n\ -+ \032 all differences (even non-conflicting changes) in favor of root.\n\ -+ \032 This effectively changes Unison from a synchronizer into a\n\ -+ \032 mirroring utility.\n\ -+ \n\ -+ \032 You can also specify -force newer (or -force older) to force\n\ -+ \032 Unison to choose the file with the later (earlier) modtime. In\n\ -+ \032 this case, the -times preference must also be enabled.\n\ -+ \n\ -+ \032 This preference is overridden by the forcepartial preference.\n\ -+ \n\ -+ \032 This preference should be used only if you are sure you know\n\ -+ \032 what you are doing!\n\ -+ \n\ -+ \032 forcepartial xxx\n\ -+ \032 Including the preference forcepartial = PATHSPEC -> root causes\n\ -+ \032 Unison to resolve all differences (even non-conflicting changes)\n\ -+ \032 in favor of root for the files in PATHSPEC (see the section\n\ -+ \032 \226\128\156Path Specification\226\128\157 for more information). This effectively\n\ -+ \032 changes Unison from a synchronizer into a mirroring utility.\n\ -+ \n\ -+ \032 You can also specify forcepartial PATHSPEC -> newer (or\n\ -+ \032 forcepartial PATHSPEC older) to force Unison to choose the file\n\ -+ \032 with the later (earlier) modtime. In this case, the -times\n\ -+ \032 preference must also be enabled.\n\ -+ \n\ -+ \032 This preference should be used only if you are sure you know\n\ -+ \032 what you are doing!\n\ -+ \n\ -+ \032 group\n\ -+ \032 When this flag is set to true, the group attributes of the files\n\ -+ \032 are synchronized. Whether the group names or the group\n\ -+ \032 identifiers are synchronized depends on the preference numerids.\n\ -+ \n\ -+ \032 halfduplex\n\ -+ \032 When this flag is set to true, Unison network communication is\n\ -+ \032 forced to be half duplex (the client and the server never\n\ -+ \032 simultaneously emit data). If you experience unstabilities with\n\ -+ \032 your network link, this may help. The communication is always\n\ -+ \032 half-duplex when synchronizing with a Windows machine due to a\n\ -+ \032 limitation of Unison current implementation that could result in\n\ -+ \032 a deadlock.\n\ -+ \n\ -+ \032 height n\n\ -+ \032 Used to set the height (in lines) of the main window in the\n\ -+ \032 graphical user interface.\n\ -+ \n\ -+ \032 ignore xxx\n\ -+ \032 Including the preference -ignore pathspec causes Unison to\n\ -+ \032 completely ignore paths that match pathspec (as well as their\n\ -+ \032 children). This is useful for avoiding synchronizing temporary\n\ -+ \032 files, object files, etc. The syntax of pathspec is described in\n\ -+ \032 the section \226\128\156Path Specification\226\128\157 , and further details on\n\ -+ \032 ignoring paths is found in the section \226\128\156Ignoring Paths\226\128\157 .\n\ -+ \n\ -+ \032 ignorearchives\n\ -+ \032 When this preference is set, Unison will ignore any existing\n\ -+ \032 archive files and behave as though it were being run for the\n\ -+ \032 first time on these replicas. It is not a good idea to set this\n\ -+ \032 option in a profile: it is intended for command-line use.\n\ -+ \n\ -+ \032 ignorecase xxx\n\ -+ \032 When set to true, this flag causes Unison to treat filenames as\n\ -+ \032 case insensitive\226\128\148i.e., files in the two replicas whose names\n\ -+ \032 differ in (upper- and lower-case) \226\128\152spelling\226\128\153 are treated as the\n\ -+ \032 same file. When the flag is set to false, Unison will treat all\n\ -+ \032 filenames as case sensitive. Ordinarily, when the flag is set to\n\ -+ \032 default, filenames are automatically taken to be\n\ -+ \032 case-insensitive if either host is running Windows or OSX. In\n\ -+ \032 rare circumstances it may be useful to set the flag manually.\n\ -+ \n\ -+ \032 ignoreinodenumbers\n\ -+ \032 When set to true, this preference makes Unison not take\n\ -+ \032 advantage of inode numbers during fast update detection. This\n\ -+ \032 switch should be used with care, as it is less safe than the\n\ -+ \032 standard update detection method, but it can be useful with\n\ -+ \032 filesystems which do not support inode numbers.\n\ -+ \n\ -+ \032 ignorelocks\n\ -+ \032 When this preference is set, Unison will ignore any lock files\n\ -+ \032 that may have been left over from a previous run of Unison that\n\ -+ \032 was interrupted while reading or writing archive files; by\n\ -+ \032 default, when Unison sees these lock files it will stop and\n\ -+ \032 request manual intervention. This option should be set only if\n\ -+ \032 you are positive that no other instance of Unison might be\n\ -+ \032 concurrently accessing the same archive files (e.g., because\n\ -+ \032 there was only one instance of unison running and it has just\n\ -+ \032 crashed or you have just killed it). It is probably not a good\n\ -+ \032 idea to set this option in a profile: it is intended for\n\ -+ \032 command-line use.\n\ -+ \n\ -+ \032 ignorenot xxx\n\ -+ \032 This preference overrides the preference ignore. It gives a list\n\ -+ \032 of patterns (in the same format as ignore) for paths that should\n\ -+ \032 definitely not be ignored, whether or not they happen to match\n\ -+ \032 one of the ignore patterns.\n\ -+ \n\ -+ \032 Note that the semantics of ignore and ignorenot is a little\n\ -+ \032 counter-intuitive. When detecting updates, Unison examines paths\n\ -+ \032 in depth-first order, starting from the roots of the replicas\n\ -+ \032 and working downwards. Before examining each path, it checks\n\ -+ \032 whether it matches ignore and does not match ignorenot; in this\n\ -+ \032 case it skips this path and all its descendants. This means\n\ -+ \032 that, if some parent of a given path matches an ignore pattern,\n\ -+ \032 then it will be skipped even if the path itself matches an\n\ -+ \032 ignorenot pattern. In particular, putting ignore = Path * in\n\ -+ \032 your profile and then using ignorenot to select particular paths\n\ -+ \032 to be synchronized will not work. Instead, you should use the\n\ -+ \032 path preference to choose particular paths to synchronize.\n\ -+ \n\ -+ \032 immutable xxx\n\ -+ \032 This preference specifies paths for directories whose immediate\n\ -+ \032 children are all immutable files \226\128\148 i.e., once a file has been\n\ -+ \032 created, its contents never changes. When scanning for updates,\n\ -+ \032 Unison does not check whether these files have been modified;\n\ -+ \032 this can speed update detection significantly (in particular,\n\ -+ \032 for mail directories).\n\ -+ \n\ -+ \032 immutablenot xxx\n\ -+ \032 This preference overrides immutable.\n\ -+ \n\ -+ \032 key xxx\n\ -+ \032 Used in a profile to define a numeric key (0-9) that can be used\n\ -+ \032 in the graphical user interface to switch immediately to this\n\ -+ \032 profile.\n\ -+ \n\ -+ \032 killserver\n\ -+ \032 When set to true, this flag causes Unison to kill the remote\n\ -+ \032 server process when the synchronization is finished. This\n\ -+ \032 behavior is the default for ssh connections, so this preference\n\ -+ \032 is not normally needed when running over ssh; it is provided so\n\ -+ \032 that socket-mode servers can be killed off after a single run of\n\ -+ \032 Unison, rather than waiting to accept future connections. (Some\n\ -+ \032 users prefer to start a remote socket server for each run of\n\ -+ \032 Unison, rather than leaving one running all the time.)\n\ -+ \n\ -+ \032 label xxx\n\ -+ \032 Used in a profile to provide a descriptive string documenting\n\ -+ \032 its settings. (This is useful for users that switch between\n\ -+ \032 several profiles, especially using the \226\128\152fast switch\226\128\153 feature of\n\ -+ \032 the graphical user interface.)\n\ -+ \n\ -+ \032 links xxx\n\ -+ \032 When set to true, this flag causes Unison to synchronize\n\ -+ \032 symbolic links. When the flag is set to false, symbolic links\n\ -+ \032 will result in an error during update detection. Ordinarily,\n\ -+ \032 when the flag is set to default, symbolic links are synchronized\n\ -+ \032 except when one of the hosts is running Windows. In rare\n\ -+ \032 circumstances it may be useful to set the flag manually.\n\ -+ \n\ -+ \032 log\n\ -+ \032 When this flag is set, Unison will log all changes to the\n\ -+ \032 filesystems on a file.\n\ -+ \n\ -+ \032 logfile xxx\n\ -+ \032 By default, logging messages will be appended to the file\n\ -+ \032 unison.log in your HOME directory. Set this preference if you\n\ -+ \032 prefer another file.\n\ -+ \n\ -+ \032 maxbackups n\n\ -+ \032 This preference specifies the number of backup versions that\n\ -+ \032 will be kept by unison, for each path that matches the predicate\n\ -+ \032 backup. The default is 2.\n\ -+ \n\ -+ \032 maxerrors n\n\ -+ \032 This preference controls after how many errors Unison aborts a\n\ -+ \032 directory transfer. Setting it to a large number allows Unison\n\ -+ \032 to transfer most of a directory even when some files fail to be\n\ -+ \032 copied. The default is 1. If the preference is set too high,\n\ -+ \032 Unison may take a long time to abort in case of repeated\n\ -+ \032 failures (for instance, when the disk is full).\n\ -+ \n\ -+ \032 maxthreads n\n\ -+ \032 This preference controls how much concurrency is allowed during\n\ -+ \032 the transport phase. Normally, it should be set reasonably high\n\ -+ \032 to maximize performance, but when Unison is used over a\n\ -+ \032 low-bandwidth link it may be helpful to set it lower (e.g. to 1)\n\ -+ \032 so that Unison doesn\226\128\153t soak up all the available bandwidth. The\n\ -+ \032 default is the special value 0, which mean 20 threads when file\n\ -+ \032 content streaming is desactivated and 1000 threads when it is\n\ -+ \032 activated.\n\ -+ \n\ -+ \032 merge xxx\n\ -+ \032 This preference can be used to run a merge program which will\n\ -+ \032 create a new version for each of the files and the backup, with\n\ -+ \032 the last backup and the both replicas. Setting the merge\n\ -+ \032 preference for a path will also cause this path to be backed up,\n\ -+ \032 just like t backup. The syntax of pathspec>cmd is described in\n\ -+ \032 the section \226\128\156Path Specification\226\128\157 , and further details on\n\ -+ \032 Merging functions are present in the section \226\128\156Merging files\226\128\157 .\n\ -+ \n\ -+ \032 mountpoint xxx\n\ -+ \032 Including the preference -mountpoint PATH causes Unison to\n\ -+ \032 double-check, at the end of update detection, that PATH exists\n\ -+ \032 and abort if it does not. This is useful when Unison is used to\n\ -+ \032 synchronize removable media. This preference can be given more\n\ -+ \032 than once. See the section \226\128\156Mount Points\226\128\157 .\n\ -+ \n\ -+ \032 nocreation xxx\n\ -+ \032 Including the preference -nocreation root prevents Unison from\n\ -+ \032 performing any file creation on root root.\n\ -+ \n\ -+ \032 This preference can be included twice, once for each root, if\n\ -+ \032 you want to prevent any creation.\n\ -+ \n\ -+ \032 nocreationpartial xxx\n\ -+ \032 Including the preference nocreationpartial = PATHSPEC -> root\n\ -+ \032 prevents Unison from performing any file creation in PATHSPEC on\n\ -+ \032 root root (see the section \226\128\156Path Specification\226\128\157 for more\n\ -+ \032 information). It is recommended to use BelowPath patterns when\n\ -+ \032 selecting a directory and all its contents.\n\ -+ \n\ -+ \032 nodeletion xxx\n\ -+ \032 Including the preference -nodeletion root prevents Unison from\n\ -+ \032 performing any file deletion on root root.\n\ -+ \n\ -+ \032 This preference can be included twice, once for each root, if\n\ -+ \032 you want to prevent any deletion.\n\ -+ \n\ -+ \032 nodeletionpartial xxx\n\ -+ \032 Including the preference nodeletionpartial = PATHSPEC -> root\n\ -+ \032 prevents Unison from performing any file deletion in PATHSPEC on\n\ -+ \032 root root (see the section \226\128\156Path Specification\226\128\157 for more\n\ -+ \032 information). It is recommended to use BelowPath patterns when\n\ -+ \032 selecting a directory and all its contents.\n\ -+ \n\ -+ \032 noupdate xxx\n\ -+ \032 Including the preference -noupdate root prevents Unison from\n\ -+ \032 performing any file update or deletion on root root.\n\ -+ \n\ -+ \032 This preference can be included twice, once for each root, if\n\ -+ \032 you want to prevent any update.\n\ -+ \n\ -+ \032 noupdatepartial xxx\n\ -+ \032 Including the preference noupdatepartial = PATHSPEC -> root\n\ -+ \032 prevents Unison from performing any file update or deletion in\n\ -+ \032 PATHSPEC on root root (see the section \226\128\156Path Specification\226\128\157 for\n\ -+ \032 more information). It is recommended to use BelowPath patterns\n\ -+ \032 when selecting a directory and all its contents.\n\ -+ \n\ -+ \032 numericids\n\ -+ \032 When this flag is set to true, groups and users are synchronized\n\ -+ \032 numerically, rather than by name.\n\ -+ \n\ -+ \032 The special uid 0 and the special group 0 are never mapped via\n\ -+ \032 user/group names even if this preference is not set.\n\ -+ \n\ -+ \032 owner\n\ -+ \032 When this flag is set to true, the owner attributes of the files\n\ -+ \032 are synchronized. Whether the owner names or the owner\n\ -+ \032 identifiers are synchronizeddepends on the preference numerids.\n\ -+ \n\ -+ \032 path xxx\n\ -+ \032 When no path preference is given, Unison will simply synchronize\n\ -+ \032 the two entire replicas, beginning from the given pair of roots.\n\ -+ \032 If one or more path preferences are given, then Unison will\n\ -+ \032 synchronize only these paths and their children. (This is useful\n\ -+ \032 for doing a fast sync of just one directory, for example.) Note\n\ -+ \032 that path preferences are intepreted literally\226\128\148they are not\n\ -+ \032 regular expressions.\n\ -+ \n\ -+ \032 perms n\n\ -+ \032 The integer value of this preference is a mask indicating which\n\ -+ \032 permission bits should be synchronized. It is set by default to\n\ -+ \032 0o1777: all bits but the set-uid and set-gid bits are\n\ -+ \032 synchronised (synchronizing theses latter bits can be a security\n\ -+ \032 hazard). If you want to synchronize all bits, you can set the\n\ -+ \032 value of this preference to \226\136\1461. If one of the replica is on a\n\ -+ \032 FAT [Windows] filesystem, you should consider using the t fat\n\ -+ \032 preference instead of this preference. If you need Unison not to\n\ -+ \032 set permissions at all, set the value of this preference to 0\n\ -+ \032 and set the preference t dontchmod to t true.\n\ -+ \n\ -+ \032 prefer xxx\n\ -+ \032 Including the preference -prefer root causes Unison always to\n\ -+ \032 resolve conflicts in favor of root, rather than asking for\n\ -+ \032 guidance from the user. (The syntax of root is the same as for\n\ -+ \032 the root preference, plus the special values newer and older.)\n\ -+ \n\ -+ \032 This preference is overridden by the preferpartial preference.\n\ -+ \n\ -+ \032 This preference should be used only if you are sure you know\n\ -+ \032 what you are doing!\n\ -+ \n\ -+ \032 preferpartial xxx\n\ -+ \032 Including the preference preferpartial = PATHSPEC -> root causes\n\ -+ \032 Unison always to resolve conflicts in favor of root, rather than\n\ -+ \032 asking for guidance from the user, for the files in PATHSPEC\n\ -+ \032 (see the section \226\128\156Path Specification\226\128\157 for more information).\n\ -+ \032 (The syntax of root is the same as for the root preference, plus\n\ -+ \032 the special values newer and older.)\n\ -+ \n\ -+ \032 This preference should be used only if you are sure you know\n\ -+ \032 what you are doing!\n\ -+ \n\ -+ \032 repeat xxx\n\ -+ \032 Setting this preference causes the text-mode interface to\n\ -+ \032 synchronize repeatedly, rather than doing it just once and\n\ -+ \032 stopping. If the argument is a number, Unison will pause for\n\ -+ \032 that many seconds before beginning again.\n\ -+ \n\ -+ \032 retry n\n\ -+ \032 Setting this preference causes the text-mode interface to try\n\ -+ \032 again to synchronize updated paths where synchronization fails.\n\ -+ \032 Each such path will be tried N times.\n\ -+ \n\ -+ \032 root xxx\n\ -+ \032 Each use of this preference names the root of one of the\n\ -+ \032 replicas for Unison to synchronize. Exactly two roots are\n\ -+ \032 needed, so normal modes of usage are either to give two values\n\ -+ \032 for root in the profile, or to give no values in the profile and\n\ -+ \032 provide two on the command line. Details of the syntax of roots\n\ -+ \032 can be found in the section \226\128\156Roots\226\128\157 .\n\ -+ \n\ -+ \032 The two roots can be given in either order; Unison will sort\n\ -+ \032 them into a canonical order before doing anything else. It also\n\ -+ \032 tries to \226\128\152canonize\226\128\153 the machine names and paths that appear in\n\ -+ \032 the roots, so that, if Unison is invoked later with a slightly\n\ -+ \032 different name for the same root, it will be able to locate the\n\ -+ \032 correct archives.\n\ -+ \n\ -+ \032 rootalias xxx\n\ -+ \032 When calculating the name of the archive files for a given pair\n\ -+ \032 of roots, Unison replaces any roots matching the left-hand side\n\ -+ \032 of any rootalias rule by the corresponding right-hand side.\n\ -+ \n\ -+ \032 rshargs xxx\n\ -+ \032 The string value of this preference will be passed as additional\n\ -+ \032 arguments (besides the host name and the name of the Unison\n\ -+ \032 executable on the remote system) to the rsh command used to\n\ -+ \032 invoke the remote server.\n\ -+ \n\ -+ \032 rshcmd xxx\n\ -+ \032 This preference can be used to explicitly set the name of the\n\ -+ \032 rsh executable (e.g., giving a full path name), if necessary.\n\ -+ \n\ -+ \032 rsrc xxx\n\ -+ \032 When set to true, this flag causes Unison to synchronize\n\ -+ \032 resource forks and HFS meta-data. On filesystems that do not\n\ -+ \032 natively support resource forks, this data is stored in\n\ -+ \032 Carbon-compatible ._ AppleDouble files. When the flag is set to\n\ -+ \032 false, Unison will not synchronize these data. Ordinarily, the\n\ -+ \032 flag is set to default, and these data are automatically\n\ -+ \032 synchronized if either host is running OSX. In rare\n\ -+ \032 circumstances it is useful to set the flag manually.\n\ -+ \n\ -+ \032 rsync\n\ -+ \032 Unison uses the \226\128\153rsync algorithm\226\128\153 for \226\128\153diffs-only\226\128\153 transfer of\n\ -+ \032 updates to large files. Setting this flag to false makes Unison\n\ -+ \032 use whole-file transfers instead. Under normal circumstances,\n\ -+ \032 there is no reason to do this, but if you are having trouble\n\ -+ \032 with repeated \226\128\153rsync failure\226\128\153 errors, setting it to false should\n\ -+ \032 permit you to synchronize the offending files.\n\ -+ \n\ -+ \032 selftest\n\ -+ \032 Run internal tests and exit. This option is mostly for\n\ -+ \032 developers and must be used carefully: in particular, it will\n\ -+ \032 delete the contents of both roots, so that it can install its\n\ -+ \032 own files for testing. This flag only makes sense on the command\n\ -+ \032 line. When it is provided, no preference file is read: all\n\ -+ \032 preferences must be specified on thecommand line. Also, since\n\ -+ \032 the self-test procedure involves overwriting the roots and\n\ -+ \032 backup directory, the names of the roots and of the backupdir\n\ -+ \032 preference must include the string \"test\" or else the tests will\n\ -+ \032 be aborted. (If these are not given on the command line, dummy\n\ -+ \032 subdirectories in the current directory will be created\n\ -+ \032 automatically.)\n\ -+ \n\ -+ \032 servercmd xxx\n\ -+ \032 This preference can be used to explicitly set the name of the\n\ -+ \032 Unison executable on the remote server (e.g., giving a full path\n\ -+ \032 name), if necessary.\n\ -+ \n\ -+ \032 showarchive\n\ -+ \032 When this preference is set, Unison will print out the \226\128\153true\n\ -+ \032 names\226\128\153of the roots, in the same form as is expected by the\n\ -+ \032 rootaliaspreference.\n\ -+ \n\ -+ \032 silent\n\ -+ \032 When this preference is set to true, the textual user interface\n\ -+ \032 will print nothing at all, except in the case of errors. Setting\n\ -+ \032 silent to true automatically sets the batch preference to true.\n\ -+ \n\ -+ \032 sortbysize\n\ -+ \032 When this flag is set, the user interface will list changed\n\ -+ \032 files by size (smallest first) rather than by name. This is\n\ -+ \032 useful, for example, for synchronizing over slow links, since it\n\ -+ \032 puts very large files at the end of the list where they will not\n\ -+ \032 prevent smaller files from being transferred quickly.\n\ -+ \n\ -+ \032 This preference (as well as the other sorting flags, but not the\n\ -+ \032 sorting preferences that require patterns as arguments) can be\n\ -+ \032 set interactively and temporarily using the \226\128\153Sort\226\128\153 menu in the\n\ -+ \032 graphical user interface.\n\ -+ \n\ -+ \032 sortfirst xxx\n\ -+ \032 Each argument to sortfirst is a pattern pathspec, which\n\ -+ \032 describes a set of paths. Files matching any of these patterns\n\ -+ \032 will be listed first in the user interface. The syntax of\n\ -+ \032 pathspec is described in the section \226\128\156Path Specification\226\128\157 .\n\ -+ \n\ -+ \032 sortlast xxx\n\ -+ \032 Similar to sortfirst, except that files matching one of these\n\ -+ \032 patterns will be listed at the very end.\n\ -+ \n\ -+ \032 sortnewfirst\n\ -+ \032 When this flag is set, the user interface will list newly\n\ -+ \032 created files before all others. This is useful, for example,\n\ -+ \032 for checking that newly created files are not \226\128\152junk\226\128\153, i.e., ones\n\ -+ \032 that should be ignored or deleted rather than synchronized.\n\ -+ \n\ -+ \032 sshargs xxx\n\ -+ \032 The string value of this preference will be passed as additional\n\ -+ \032 arguments (besides the host name and the name of the Unison\n\ -+ \032 executable on the remote system) to the ssh command used to\n\ -+ \032 invoke the remote server.\n\ -+ \n\ -+ \032 sshcmd xxx\n\ -+ \032 This preference can be used to explicitly set the name of the\n\ -+ \032 ssh executable (e.g., giving a full path name), if necessary.\n\ -+ \n\ -+ \032 sshversion xxx\n\ -+ \032 This preference can be used to control which version of ssh\n\ -+ \032 should be used to connect to the server. Legal values are 1 and\n\ -+ \032 2, which will cause unison to try to use ssh1 orssh2 instead of\n\ -+ \032 just ssh to invoke ssh. The default value is empty, which will\n\ -+ \032 make unison use whatever version of ssh is installed as the\n\ -+ \032 default \226\128\152ssh\226\128\153 command.\n\ -+ \n\ -+ \032 stream\n\ -+ \032 When this preference is set, Unison will use an experimental\n\ -+ \032 streaming protocol for transferring file contents more\n\ -+ \032 efficiently. The default value is true.\n\ -+ \n\ -+ \032 terse\n\ -+ \032 When this preference is set to true, the user interface will not\n\ -+ \032 print status messages.\n\ -+ \n\ -+ \032 testserver\n\ -+ \032 Setting this flag on the command line causes Unison to attempt\n\ -+ \032 to connect to the remote server and, if successful, print a\n\ -+ \032 message and immediately exit. Useful for debugging installation\n\ -+ \032 problems. Should not be set in preference files.\n\ -+ \n\ -+ \032 times\n\ -+ \032 When this flag is set to true, file modification times (but not\n\ -+ \032 directory modtimes) are propagated.\n\ -+ \n\ -+ \032 ui xxx\n\ -+ \032 This preference selects either the graphical or the textual user\n\ -+ \032 interface. Legal values are graphic or text.\n\ -+ \n\ -+ \032 Because this option is processed specially during Unison\226\128\153s\n\ -+ \032 start-up sequence, it can only be used on the command line. In\n\ -+ \032 preference files it has no effect.\n\ -+ \n\ -+ \032 If the Unison executable was compiled with only a textual\n\ -+ \032 interface, this option has no effect. (The pre-compiled binaries\n\ -+ \032 are all compiled with both interfaces available.)\n\ -+ \n\ -+ \032 unicode xxx\n\ -+ \032 When set to true, this flag causes Unison to perform case\n\ -+ \032 insensitive file comparisons assuming Unicode encoding. This is\n\ -+ \032 the default. When the flag is set to false, a Latin 1 encoding\n\ -+ \032 is assumed. When Unison runs in case sensitive mode, this flag\n\ -+ \032 only makes a difference if one host is running Windows or Mac OS\n\ -+ \032 X. Under Windows, the flag selects between using the Unicode or\n\ -+ \032 8bit Windows API for accessing the filesystem. Under Mac OS X,\n\ -+ \032 it selects whether comparing the filenames up to decomposition,\n\ -+ \032 or byte-for-byte.\n\ -+ \n\ -+ \032 version\n\ -+ \032 Print the current version number and exit. (This option only\n\ -+ \032 makes sense on the command line.)\n\ -+ \n\ -+ \032 xferbycopying\n\ -+ \032 When this preference is set, Unison will try to avoid\n\ -+ \032 transferring file contents across the network by recognizing\n\ -+ \032 when a file with the required contents already exists in the\n\ -+ \032 target replica. This usually allows file moves to be propagated\n\ -+ \032 very quickly. The default value istrue.\n\ -+ \n\ -+ Profiles\n\ -+ \n\ -+ \032 A profile is a text file that specifies permanent settings for roots,\n\ -+ \032 paths, ignore patterns, and other preferences, so that they do not need\n\ -+ \032 to be typed at the command line every time Unison is run. Profiles\n\ -+ \032 should reside in the .unison directory on the client machine. If Unison\n\ -+ \032 is started with just one argument name on the command line, it looks\n\ -+ \032 for a profile called name.prf in the .unison directory. If it is\n\ -+ \032 started with no arguments, it scans the .unison directory for files\n\ -+ \032 whose names end in .prf and offers a menu (provided that the Unison\n\ -+ \032 executable is compiled with the graphical user interface). If a file\n\ -+ \032 named default.prf is found, its settings will be offered as the default\n\ -+ \032 choices.\n\ -+ \n\ -+ \032 To set the value of a preference p permanently, add to the appropriate\n\ -+ \032 profile a line of the form\n\ -+ \032 p = true\n\ -+ \n\ -+ \032 for a boolean flag or\n\ -+ \032 p = \n\ -+ \n\ -+ \032 for a preference of any other type.\n\ -+ \n\ -+ \032 Whitespaces around p and xxx are ignored. A profile may also include\n\ -+ \032 blank lines and lines beginning with #; both are ignored.\n\ -+ \n\ -+ \032 When Unison starts, it first reads the profile and then the command\n\ -+ \032 line, so command-line options will override settings from the profile.\n\ -+ \n\ -+ \032 Profiles may also include lines of the form include name, which will\n\ -+ \032 cause the file name (or name.prf, if name does not exist in the .unison\n\ -+ \032 directory) to be read at the point, and included as if its contents,\n\ -+ \032 instead of the include line, was part of the profile. Include lines\n\ -+ \032 allows settings common to several profiles to be stored in one place.\n\ -+ \n\ -+ \032 A profile may include a preference \226\128\152label = desc\226\128\153 to provide a\n\ -+ \032 description of the options selected in this profile. The string desc is\n\ -+ \032 listed along with the profile name in the profile selection dialog, and\n\ -+ \032 displayed in the top-right corner of the main Unison window in the\n\ -+ \032 graphical user interface.\n\ -+ \n\ -+ \032 The graphical user-interface also supports one-key shortcuts for\n\ -+ \032 commonly used profiles. If a profile contains a preference of the form\n\ -+ \032 \226\128\152key = n\226\128\153, where n is a single digit, then pressing this digit key will\n\ -+ \032 cause Unison to immediately switch to this profile and begin\n\ -+ \032 synchronization again from scratch. In this case, all actions that have\n\ -+ \032 been selected for a set of changes currently being displayed will be\n\ -+ \032 discarded.\n\ -+ \n\ -+ Sample Profiles\n\ -+ \n\ -+ A Minimal Profile\n\ -+ \n\ -+ \032 Here is a very minimal profile file, such as might be found in\n\ -+ \032 .unison/default.prf:\n\ -+ \032 # Roots of the synchronization\n\ -+ \032 root = /home/bcpierce\n\ -+ \032 root = ssh://saul//home/bcpierce\n\ -+ \n\ -+ \032 # Paths to synchronize\n\ -+ \032 path = current\n\ -+ \032 path = common\n\ -+ \032 path = .netscape/bookmarks.html\n\ -+ \n\ -+ A Basic Profile\n\ -+ \n\ -+ \032 Here is a more sophisticated profile, illustrating some other useful\n\ -+ \032 features.\n\ -+ \032 # Roots of the synchronization\n\ -+ \032 root = /home/bcpierce\n\ -+ \032 root = ssh://saul//home/bcpierce\n\ -+ \n\ -+ \032 # Paths to synchronize\n\ -+ \032 path = current\n\ -+ \032 path = common\n\ -+ \032 path = .netscape/bookmarks.html\n\ -+ \n\ -+ \032 # Some regexps specifying names and paths to ignore\n\ -+ \032 ignore = Name temp.*\n\ -+ \032 ignore = Name *~\n\ -+ \032 ignore = Name .*~\n\ -+ \032 ignore = Path */pilot/backup/Archive_*\n\ -+ \032 ignore = Name *.o\n\ -+ \032 ignore = Name *.tmp\n\ -+ \n\ -+ \032 # Window height\n\ -+ \032 height = 37\n\ -+ \n\ -+ \032 # Keep a backup copy of every file in a central location\n\ -+ \032 backuplocation = central\n\ -+ \032 backupdir = /home/bcpierce/backups\n\ -+ \032 backup = Name *\n\ -+ \032 backupprefix = $VERSION.\n\ -+ \032 backupsuffix =\n\ -+ \n\ -+ \032 # Use this command for displaying diffs\n\ -+ \032 diff = diff -y -W 79 --suppress-common-lines\n\ -+ \n\ -+ \032 # Log actions to the terminal\n\ -+ \032 log = true\n\ -+ \n\ -+ A Power-User Profile\n\ -+ \n\ -+ \032 When Unison is used with large replicas, it is often convenient to be\n\ -+ \032 able to synchronize just a part of the replicas on a given run (this\n\ -+ \032 saves the time of detecting updates in the other parts). This can be\n\ -+ \032 accomplished by splitting up the profile into several parts \226\128\148 a common\n\ -+ \032 part containing most of the preference settings, plus one \226\128\156top-level\226\128\157\n\ -+ \032 file for each set of paths that need to be synchronized. (The include\n\ -+ \032 mechanism can also be used to allow the same set of preference settings\n\ -+ \032 to be used with different roots.)\n\ -+ \n\ -+ \032 The collection of profiles implementing this scheme might look as\n\ -+ \032 follows. The file default.prf is empty except for an include directive:\n\ -+ \032 # Include the contents of the file common\n\ -+ \032 include common\n\ -+ \n\ -+ \032 Note that the name of the common file is common, not common.prf; this\n\ -+ \032 prevents Unison from offering common as one of the list of profiles in\n\ -+ \032 the opening dialog (in the graphical UI).\n\ -+ \n\ -+ \032 The file common contains the real preferences:\n\ -+ \032 # Roots of the synchronization\n\ -+ \032 root = /home/bcpierce\n\ -+ \032 root = ssh://saul//home/bcpierce\n\ -+ \n\ -+ \032 # (... other preferences ...)\n\ -+ \n\ -+ \032 # If any new preferences are added by Unison (e.g. 'ignore'\n\ -+ \032 # preferences added via the graphical UI), then store them in the\n\ -+ \032 # file 'common' rathen than in the top-level preference file\n\ -+ \032 addprefsto = common\n\ -+ \n\ -+ \032 # Names and paths to ignore:\n\ -+ \032 ignore = Name temp.*\n\ -+ \032 ignore = Name *~\n\ -+ \032 ignore = Name .*~\n\ -+ \032 ignore = Path */pilot/backup/Archive_*\n\ -+ \032 ignore = Name *.o\n\ -+ \032 ignore = Name *.tmp\n\ -+ \n\ -+ \032 Note that there are no path preferences in common. This means that,\n\ -+ \032 when we invoke Unison with the default profile (e.g., by typing \226\128\153unison\n\ -+ \032 default\226\128\153 or just \226\128\153unison\226\128\153 on the command line), the whole replicas will\n\ -+ \032 be synchronized. (If we never want to synchronize the whole replicas,\n\ -+ \032 then default.prf would instead include settings for all the paths that\n\ -+ \032 are usually synchronized.)\n\ -+ \n\ -+ \032 To synchronize just part of the replicas, Unison is invoked with an\n\ -+ \032 alternate preference file\226\128\148e.g., doing \226\128\153unison workingset\226\128\153, where the\n\ -+ \032 preference file workingset.prf contains\n\ -+ \032 path = current/papers\n\ -+ \032 path = Mail/inbox\n\ -+ \032 path = Mail/drafts\n\ -+ \032 include common\n\ -+ \n\ -+ \032 causes Unison to synchronize just the listed subdirectories.\n\ -+ \n\ -+ \032 The key preference can be used in combination with the graphical UI to\n\ -+ \032 quickly switch between different sets of paths. For example, if the\n\ -+ \032 file mail.prf contains\n\ -+ \032 path = Mail\n\ -+ \032 batch = true\n\ -+ \032 key = 2\n\ -+ \032 include common\n\ -+ \n\ -+ \032 then pressing 2 will cause Unison to look for updates in the Mail\n\ -+ \032 subdirectory and (because the batch flag is set) immediately propagate\n\ -+ \032 any that it finds.\n\ -+ \n\ -+ Keeping Backups\n\ -+ \n\ -+ \032 When Unison overwrites a file or directory by propagating a new version\n\ -+ \032 from the other replica, it can keep the old version around as a backup.\n\ -+ \032 There are several preferences that control precisely where these\n\ -+ \032 backups are stored and how they are named.\n\ -+ \n\ -+ \032 To enable backups, you must give one or more backup preferences. Each\n\ -+ \032 of these has the form\n\ -+ \032 backup = \n\ -+ \n\ -+ \032 where has the same form as for the ignore preference. For\n\ -+ \032 example,\n\ -+ \032 backup = Name *\n\ -+ \n\ -+ \032 causes Unison to keep backups of all files and directories. The\n\ -+ \032 backupnot preference can be used to give a few exceptions: it specifies\n\ -+ \032 which files and directories should not be backed up, even if they match\n\ -+ \032 the backup pathspec.\n\ -+ \n\ -+ \032 It is important to note that the pathspec is matched against the path\n\ -+ \032 that is being updated by Unison, not its descendants. For example, if\n\ -+ \032 you set backup = Name *.txt and then delete a whole directory named foo\n\ -+ \032 containing some text files, these files will not be backed up because\n\ -+ \032 Unison will just check that foo does not match *.txt. Similarly, if the\n\ -+ \032 directory itself happened to be called foo.txt, then the whole\n\ -+ \032 directory and all the files in it will be backed up, regardless of\n\ -+ \032 their names.\n\ -+ \n\ -+ \032 Backup files can be stored either centrally or locally. This behavior\n\ -+ \032 is controlled by the preference backuplocation, whose value must be\n\ -+ \032 either central or local. (The default is central.)\n\ -+ \n\ -+ \032 When backups are stored locally, they are kept in the same directory as\n\ -+ \032 the original.\n\ -+ \n\ -+ \032 When backups are stored centrally, the directory used to hold them is\n\ -+ \032 controlled by the preference backupdir and the environment variable\n\ -+ \032 UNISONBACKUPDIR. (The environment variable is checked first.) If\n\ -+ \032 neither of these are set, then the directory .unison/backup in the\n\ -+ \032 user\226\128\153s home directory is used.\n\ -+ \n\ -+ \032 The preference maxbackups controls how many previous versions of each\n\ -+ \032 file are kept (including the current version).\n\ -+ \n\ -+ \032 By default, backup files are named .bak.VERSION.FILENAME, where\n\ -+ \032 FILENAME is the original filename and VERSION is the backup number (1\n\ -+ \032 for the most recent, 2 for the next most recent, etc.). This can be\n\ -+ \032 changed by setting the preferences backupprefix and/or backupsuffix. If\n\ -+ \032 desired, backupprefix may include a directory prefix; this can be used\n\ -+ \032 with backuplocation = local to put all backup files for each directory\n\ -+ \032 into a single subdirectory. For example, setting\n\ -+ \032 backuplocation = local\n\ -+ \032 backupprefix = .unison/$VERSION.\n\ -+ \032 backupsuffix =\n\ -+ \n\ -+ \032 will put all backups in a local subdirectory named .unison. Also, note\n\ -+ \032 that the string $VERSION in either backupprefix or backupsuffix (it\n\ -+ \032 must appear in one or the other) is replaced by the version number.\n\ -+ \032 This can be used, for example, to ensure that backup files retain the\n\ -+ \032 same extension as the originals.\n\ -+ \n\ -+ \032 For backward compatibility, the backups preference is also supported.\n\ -+ \032 It simply means backup = Name * and backuplocation = local.\n\ -+ \n\ -+ Merging Conflicting Versions\n\ -+ \n\ -+ \032 Unison can invoke external programs to merge conflicting versions of a\n\ -+ \032 file. The preference merge controls this process.\n\ -+ \n\ -+ \032 The merge preference may be given once or several times in a preference\n\ -+ \032 file (it can also be given on the command line, of course, but this\n\ -+ \032 tends to be awkward because of the spaces and special characters\n\ -+ \032 involved). Each instance of the preference looks like this:\n\ -+ \032 merge = -> \n\ -+ \n\ -+ \032 The here has exactly the same format as for the ignore\n\ -+ \032 preference (see the section \226\128\156Path specification\226\128\157 ). For example, using\n\ -+ \032 \226\128\156Name *.txt\226\128\157 as the tells Unison that this command should be\n\ -+ \032 used whenever a file with extension .txt needs to be merged.\n\ -+ \n\ -+ \032 Many external merging programs require as inputs not just the two files\n\ -+ \032 that need to be merged, but also a file containing the last\n\ -+ \032 synchronized version. You can ask Unison to keep a copy of the last\n\ -+ \032 synchronized version for some files using the backupcurrent preference.\n\ -+ \032 This preference is used in exactly the same way as backup and its\n\ -+ \032 meaning is similar, except that it causes backups to be kept of the\n\ -+ \032 current contents of each file after it has been synchronized by Unison,\n\ -+ \032 rather than the previous contents that Unison overwrote. These backups\n\ -+ \032 are kept on both replicas in the same place as ordinary backup\n\ -+ \032 files\226\128\148i.e. according to the backuplocation and backupdir preferences.\n\ -+ \032 They are named like the original files if backupslocation is set to\n\ -+ \032 \226\128\153central\226\128\153 and otherwise, Unison uses the backupprefix and backupsuffix\n\ -+ \032 preferences and assumes a version number 000 for these backups.\n\ -+ \n\ -+ \032 The part of the preference specifies what external command\n\ -+ \032 should be invoked to merge files at paths matching the .\n\ -+ \032 Within this string, several special substrings are recognized; these\n\ -+ \032 will be substituted with appropriate values before invoking a sub-shell\n\ -+ \032 to execute the command.\n\ -+ \032 * CURRENT1 is replaced by the name of (a temporary copy of) the local\n\ -+ \032 variant of the file.\n\ -+ \032 * CURRENT2 is replaced by the name of a temporary file, into which\n\ -+ \032 the contents of the remote variant of the file have been\n\ -+ \032 transferred by Unison prior to performing the merge.\n\ -+ \032 * CURRENTARCH is replaced by the name of the backed up copy of the\n\ -+ \032 original version of the file (i.e., the file saved by Unison if the\n\ -+ \032 current filename matches the path specifications for the\n\ -+ \032 backupcurrent preference, as explained above), if one exists. If no\n\ -+ \032 archive exists and CURRENTARCH appears in the merge command, then\n\ -+ \032 an error is signalled.\n\ -+ \032 * CURRENTARCHOPT is replaced by the name of the backed up copy of the\n\ -+ \032 original version of the file (i.e., its state at the end of the\n\ -+ \032 last successful run of Unison), if one exists, or the empty string\n\ -+ \032 if no archive exists.\n\ -+ \032 * NEW is replaced by the name of a temporary file that Unison expects\n\ -+ \032 to be written by the merge program when it finishes, giving the\n\ -+ \032 desired new contents of the file.\n\ -+ \032 * PATH is replaced by the path (relative to the roots of the\n\ -+ \032 replicas) of the file being merged.\n\ -+ \032 * NEW1 and NEW2 are replaced by the names of temporary files that\n\ -+ \032 Unison expects to be written by the merge program when it is only\n\ -+ \032 able to partially merge the originals; in this case, NEW1 will be\n\ -+ \032 written back to the local replica and NEW2 to the remote replica;\n\ -+ \032 NEWARCH, if present, will be used as the \226\128\156last common state\226\128\157 of the\n\ -+ \032 replicas. (These three options are provided for later compatibility\n\ -+ \032 with the Harmony data synchronizer.)\n\ -+ \n\ -+ \032 To accommodate the wide variety of programs that users might want to\n\ -+ \032 use for merging, Unison checks for several possible situations when the\n\ -+ \032 merge program exits:\n\ -+ \032 * If the merge program exits with a non-zero status, then merge is\n\ -+ \032 considered to have failed and the replicas are not changed.\n\ -+ \032 * If the file NEW has been created, it is written back to both\n\ -+ \032 replicas (and stored in the backup directory). Similarly, if just\n\ -+ \032 the file NEW1 has been created, it is written back to both\n\ -+ \032 replicas.\n\ -+ \032 * If neither NEW nor NEW1 have been created, then Unison examines the\n\ -+ \032 temporary files CURRENT1 and CURRENT2 that were given as inputs to\n\ -+ \032 the merge program. If either has been changed (or both have been\n\ -+ \032 changed in identical ways), then its new contents are written back\n\ -+ \032 to both replicas. If either CURRENT1 or CURRENT2 has been deleted,\n\ -+ \032 then the contents of the other are written back to both replicas.\n\ -+ \032 * If the files NEW1, NEW2, and NEWARCH have all been created, they\n\ -+ \032 are written back to the local replica, remote replica, and backup\n\ -+ \032 directory, respectively. If the files NEW1, NEW2 have been created,\n\ -+ \032 but NEWARCH has not, then these files are written back to the local\n\ -+ \032 replica and remote replica, respectively. Also, if NEW1 and NEW2\n\ -+ \032 have identical contents, then the same contents are stored as a\n\ -+ \032 backup (if the backupcurrent preference is set for this path) to\n\ -+ \032 reflect the fact that the path is currently in sync.\n\ -+ \032 * If NEW1 and NEW2 (resp. CURRENT1 and CURRENT2) are created (resp.\n\ -+ \032 overwritten) with different contents but the merge command did not\n\ -+ \032 fail (i.e., it exited with status code 0), then we copy NEW1 (resp.\n\ -+ \032 CURRENT1) to the other replica and to the archive.\n\ -+ \032 This behavior is a design choice made to handle the case where a\n\ -+ \032 merge command only synchronizes some specific contents between two\n\ -+ \032 files, skipping some irrelevant information (order between entries,\n\ -+ \032 for instance). We assume that, if the merge command exits normally,\n\ -+ \032 then the two resulting files are \226\128\156as good as equal.\226\128\157 (The reason we\n\ -+ \032 copy one on top of the other is to avoid Unison detecting that the\n\ -+ \032 files are unequal the next time it is run and trying again to merge\n\ -+ \032 them when, in fact, the merge program has already made them as\n\ -+ \032 similar as it is able to.)\n\ -+ \n\ -+ \032 If the confirmmerge preference is set and Unison is not run in batch\n\ -+ \032 mode, then Unison will always ask for confirmation before actually\n\ -+ \032 committing the results of the merge to the replicas.\n\ -+ \n\ -+ \032 A large number of external merging programs are available. For example,\n\ -+ \032 on Unix systems setting the merge preference to\n\ -+ \032 merge = Name *.txt -> diff3 -m CURRENT1 CURRENTARCH CURRENT2\n\ -+ \032 > NEW || echo \"differences detected\"\n\ -+ \n\ -+ \032 will tell Unison to use the external diff3 program for merging.\n\ -+ \032 Alternatively, users of emacs may find the following settings\n\ -+ \032 convenient:\n\ -+ \032 merge = Name *.txt -> emacs -q --eval '(ediff-merge-files-with-ancestor\n\ -+ \032 \"CURRENT1\" \"CURRENT2\" \"CURRENTARCH\" nil \"NEW\")'\n\ -+ \n\ -+ \032 (These commands are displayed here on two lines to avoid running off\n\ -+ \032 the edge of the page. In your preference file, each command should be\n\ -+ \032 written on a single line.)\n\ -+ \n\ -+ \032 Users running emacs under windows may find something like this useful:\n\ -+ \032 merge = Name * -> C:\\Progra~1\\Emacs\\emacs\\bin\\emacs.exe -q --eval\n\ -+ \032 \"(ediff-files \"\"\"CURRENT1\"\"\" \"\"\"CURRENT2\"\"\")\"\n\ -+ \n\ -+ \032 Users running Mac OS X (you may need the Developer Tools installed to\n\ -+ \032 get the opendiff utility) may prefer\n\ -+ \032 merge = Name *.txt -> opendiff CURRENT1 CURRENT2 -ancestor CURRENTARCH -merg\n\ -+ e NEW\n\ -+ \n\ -+ \032 Here is a slightly more involved hack. The opendiff program can operate\n\ -+ \032 either with or without an archive file. A merge command of this form\n\ -+ \032 merge = Name *.txt ->\n\ -+ \032 if [ CURRENTARCHOPTx = x ];\n\ -+ \032 then opendiff CURRENT1 CURRENT2 -merge NEW;\n\ -+ \032 else opendiff CURRENT1 CURRENT2 -ancestor CURRENTARCHOPT -merge NE\n\ -+ W;\n\ -+ \032 fi\n\ -+ \n\ -+ \032 (still all on one line in the preference file!) will test whether an\n\ -+ \032 archive file exists and use the appropriate variant of the arguments to\n\ -+ \032 opendiff.\n\ -+ \n\ -+ \032 Ordinarily, external merge programs are only invoked when Unison is not\n\ -+ \032 running in batch mode. To specify an external merge program that should\n\ -+ \032 be used no matter the setting of the batch flag, use the mergebatch\n\ -+ \032 preference instead of merge.\n\ -+ \n\ -+ \032 Please post suggestions for other useful values of the merge\n\ -+ \032 preference to the unison-users mailing list\226\128\148we\226\128\153d like to give\n\ -+ \032 several examples here.\n\ -+ \n\ -+ The User Interface\n\ -+ \n\ -+ \032 Both the textual and the graphical user interfaces are intended to be\n\ -+ \032 mostly self-explanatory. Here are just a few tricks:\n\ -+ \032 * By default, when running on Unix the textual user interface will\n\ -+ \032 try to put the terminal into the \226\128\156raw mode\226\128\157 so that it reads the\n\ -+ \032 input a character at a time rather than a line at a time. (This\n\ -+ \032 means you can type just the single keystroke \226\128\156>\226\128\157 to tell Unison to\n\ -+ \032 propagate a file from left to right, rather than \226\128\156> Enter.\226\128\157)\n\ -+ \032 There are some situations, though, where this will not work \226\128\148 for\n\ -+ \032 example, when Unison is running in a shell window inside Emacs.\n\ -+ \032 Setting the dumbtty preference will force Unison to leave the\n\ -+ \032 terminal alone and process input a line at a time.\n\ -+ \n\ -+ Exit code\n\ -+ \n\ -+ \032 When running in the textual mode, Unison returns an exit status, which\n\ -+ \032 describes whether, and at which level, the synchronization was\n\ -+ \032 successful. The exit status could be useful when Unison is invoked from\n\ -+ \032 a script. Currently, there are four possible values for the exit\n\ -+ \032 status:\n\ -+ \032 * 0: successful synchronization; everything is up-to-date now.\n\ -+ \032 * 1: some files were skipped, but all file transfers were successful.\n\ -+ \032 * 2: non-fatal failures occurred during file transfer.\n\ -+ \032 * 3: a fatal error occurred, or the execution was interrupted.\n\ -+ \n\ -+ \032 The graphical interface does not return any useful information through\n\ -+ \032 the exit status.\n\ -+ \n\ -+ Path specification\n\ -+ \n\ -+ \032 Several Unison preferences (e.g., ignore/ignorenot, follow,\n\ -+ \032 sortfirst/sortlast, backup, merge, etc.) specify individual paths or\n\ -+ \032 sets of paths. These preferences share a common syntax based on\n\ -+ \032 regular-expressions. Each preference is associated with a list of path\n\ -+ \032 patterns; the paths specified are those that match any one of the path\n\ -+ \032 pattern.\n\ -+ \032 * Pattern preferences can be given on the command line, or, more\n\ -+ \032 often, stored in profiles, using the same syntax as other\n\ -+ \032 preferences. For example, a profile line of the form\n\ -+ \032 ignore = pattern\n\ -+ \n\ -+ \032 adds pattern to the list of patterns to be ignored.\n\ -+ \032 * Each pattern can have one of three forms. The most general form is\n\ -+ \032 a Posix extended regular expression introduced by the keyword\n\ -+ \032 Regex. (The collating sequences and character classes of full Posix\n\ -+ \032 regexps are not currently supported).\n\ -+ \032 Regex regexp\n\ -+ \n\ -+ \032 For convenience, three other styles of pattern are also recognized:\n\ -+ \032 Name name\n\ -+ \n\ -+ \032 matches any path in which the last component matches name,\n\ -+ \032 Path path\n\ -+ \n\ -+ \032 matches exactly the path path, and\n\ -+ \032 BelowPath path\n\ -+ \n\ -+ \032 matches the path path and any path below. The name and path\n\ -+ \032 arguments of the latter forms of patterns are not regular\n\ -+ \032 expressions. Instead, standard \226\128\156globbing\226\128\157 conventions can be used\n\ -+ \032 in name and path:\n\ -+ \032 + a * matches any sequence of characters not including / (and\n\ -+ \032 not beginning with ., when used at the beginning of a name)\n\ -+ \032 + a ? matches any single character except / (and leading .)\n\ -+ \032 + [xyz] matches any character from the set {x, y, z }\n\ -+ \032 + {a,bb,ccc} matches any one of a, bb, or ccc.\n\ -+ \032 * The path separator in path patterns is always the forward-slash\n\ -+ \032 character \226\128\156/\226\128\157 \226\128\148 even when the client or server is running under\n\ -+ \032 Windows, where the normal separator character is a backslash. This\n\ -+ \032 makes it possible to use the same set of path patterns for both\n\ -+ \032 Unix and Windows file systems.\n\ -+ \n\ -+ \032 Some examples of path patterns appear in the section \226\128\156Ignoring Paths\226\128\157 .\n\ -+ \n\ -+ Ignoring Paths\n\ -+ \n\ -+ \032 Most users of Unison will find that their replicas contain lots of\n\ -+ \032 files that they don\226\128\153t ever want to synchronize \226\128\148 temporary files, very\n\ -+ \032 large files, old stuff, architecture-specific binaries, etc. They can\n\ -+ \032 instruct Unison to ignore these paths using patterns introduced in the\n\ -+ \032 section \226\128\156Path Patterns\226\128\157 .\n\ -+ \n\ -+ \032 For example, the following pattern will make Unison ignore any path\n\ -+ \032 containing the name CVS or a name ending in .cmo:\n\ -+ \032 ignore = Name {CVS,*.cmo}\n\ -+ \n\ -+ \032 The next pattern makes Unison ignore the path a/b:\n\ -+ \032 ignore = Path a/b\n\ -+ \n\ -+ \032 Path patterns do not skip filesnames beginning with . (as Name patterns\n\ -+ \032 do). For example,\n\ -+ \032 ignore = Path */tmp\n\ -+ \n\ -+ \032 will include .foo/tmp in the set of ignore directories, as it is a\n\ -+ \032 path, not a name, that is ignored.\n\ -+ \n\ -+ \032 The following pattern makes Unison ignore any path beginning with a/b\n\ -+ \032 and ending with a name ending by .ml.\n\ -+ \032 ignore = Regex a/b/.*\\.ml\n\ -+ \n\ -+ \032 Note that regular expression patterns are \226\128\156anchored\226\128\157: they must match\n\ -+ \032 the whole path, not just a substring of the path.\n\ -+ \n\ -+ \032 Here are a few extra points regarding the ignore preference.\n\ -+ \032 * If a directory is ignored, all its descendents will be too.\n\ -+ \032 * The user interface provides some convenient commands for adding new\n\ -+ \032 patterns to be ignored. To ignore a particular file, select it and\n\ -+ \032 press \226\128\156i\226\128\157. To ignore all files with the same extension, select it\n\ -+ \032 and press \226\128\156E\226\128\157 (with the shift key). To ignore all files with the\n\ -+ \032 same name, no matter what directory they appear in, select it and\n\ -+ \032 press \226\128\156N\226\128\157. These new patterns become permanent: they are\n\ -+ \032 immediately added to the current profile on disk.\n\ -+ \032 * If you use the include directive to include a common collection of\n\ -+ \032 preferences in several top-level preference files, you will\n\ -+ \032 probably also want to set the addprefsto preference to the name of\n\ -+ \032 this file. This will cause any new ignore patterns that you add\n\ -+ \032 from inside Unison to be appended to this file, instead of\n\ -+ \032 whichever top-level preference file you started Unison with.\n\ -+ \032 * Ignore patterns can also be specified on the command line, if you\n\ -+ \032 like (this is probably not very useful), using an option like\n\ -+ \032 -ignore 'Name temp.txt'.\n\ -+ \032 * Be careful about renaming directories containing ignored files.\n\ -+ \032 Because Unison understands the rename as a delete plus a create,\n\ -+ \032 any ignored files in the directory will be lost (since they are\n\ -+ \032 invisible to Unison and therefore they do not get recreated in the\n\ -+ \032 new version of the directory).\n\ -+ \032 * There is also an ignorenot preference, which specifies a set of\n\ -+ \032 patterns for paths that should not be ignored, even if they match\n\ -+ \032 an ignore pattern. However, the interaction of these two sets of\n\ -+ \032 patterns can be a little tricky. Here is exactly how it works:\n\ -+ \032 + Unison starts detecting updates from the root of the\n\ -+ \032 replicas\226\128\148i.e., from the empty path. If the empty path matches\n\ -+ \032 an ignore pattern and does not match an ignorenot pattern,\n\ -+ \032 then the whole replica will be ignored. (For this reason, it\n\ -+ \032 is not a good idea to include Name * as an ignore pattern. If\n\ -+ \032 you want to ignore everything except a certain set of files,\n\ -+ \032 use Name ?*.)\n\ -+ \032 + If the root is a directory, Unison continues looking for\n\ -+ \032 updates in all the immediate children of the root. Again, if\n\ -+ \032 the name of some child matches an ignore pattern and does not\n\ -+ \032 match an ignorenot pattern, then this whole path including\n\ -+ \032 everything below it will be ignored.\n\ -+ \032 + If any of the non-ignored children are directories, then the\n\ -+ \032 process continues recursively.\n\ -+ \n\ -+ Symbolic Links\n\ -+ \n\ -+ \032 Ordinarily, Unison treats symbolic links in Unix replicas as \226\128\156opaque\226\128\157:\n\ -+ \032 it considers the contents of the link to be just the string specifying\n\ -+ \032 where the link points, and it will propagate changes in this string to\n\ -+ \032 the other replica.\n\ -+ \n\ -+ \032 It is sometimes useful to treat a symbolic link \226\128\156transparently,\226\128\157 acting\n\ -+ \032 as though whatever it points to were physically in the replica at the\n\ -+ \032 point where the symbolic link appears. To tell Unison to treat a link\n\ -+ \032 in this manner, add a line of the form\n\ -+ \032 follow = pathspec\n\ -+ \n\ -+ \032 to the profile, where pathspec is a path pattern as described in the\n\ -+ \032 section \226\128\156Path Patterns\226\128\157 .\n\ -+ \n\ -+ \032 Windows file systems do not support symbolic links; Unison will refuse\n\ -+ \032 to propagate an opaque symbolic link from Unix to Windows and flag the\n\ -+ \032 path as erroneous. When a Unix replica is to be synchronized with a\n\ -+ \032 Windows system, all symbolic links should match either an ignore\n\ -+ \032 pattern or a follow pattern.\n\ -+ \n\ -+ Permissions\n\ -+ \n\ -+ \032 Synchronizing the permission bits of files is slightly tricky when two\n\ -+ \032 different filesytems are involved (e.g., when synchronizing a Windows\n\ -+ \032 client and a Unix server). In detail, here\226\128\153s how it works:\n\ -+ \032 * When the permission bits of an existing file or directory are\n\ -+ \032 changed, the values of those bits that make sense on both operating\n\ -+ \032 systems will be propagated to the other replica. The other bits\n\ -+ \032 will not be changed.\n\ -+ \032 * When a newly created file is propagated to a remote replica, the\n\ -+ \032 permission bits that make sense in both operating systems are also\n\ -+ \032 propagated. The values of the other bits are set to default values\n\ -+ \032 (they are taken from the current umask, if the receiving host is a\n\ -+ \032 Unix system).\n\ -+ \032 * For security reasons, the Unix setuid and setgid bits are not\n\ -+ \032 propagated.\n\ -+ \032 * The Unix owner and group ids are not propagated. (What would this\n\ -+ \032 mean, in general?) All files are created with the owner and group\n\ -+ \032 of the server process.\n\ -+ \n\ -+ Cross-Platform Synchronization\n\ -+ \n\ -+ \032 If you use Unison to synchronize files between Windows and Unix\n\ -+ \032 systems, there are a few special issues to be aware of.\n\ -+ \n\ -+ \032 Case conflicts. In Unix, filenames are case sensitive: foo and FOO can\n\ -+ \032 refer to different files. In Windows, on the other hand, filenames are\n\ -+ \032 not case sensitive: foo and FOO can only refer to the same file. This\n\ -+ \032 means that a Unix foo and FOO cannot be synchronized onto a Windows\n\ -+ \032 system \226\128\148 Windows won\226\128\153t allow two different files to have the \226\128\156same\226\128\157\n\ -+ \032 name. Unison detects this situation for you, and reports that it cannot\n\ -+ \032 synchronize the files.\n\ -+ \n\ -+ \032 You can deal with a case conflict in a couple of ways. If you need to\n\ -+ \032 have both files on the Windows system, your only choice is to rename\n\ -+ \032 one of the Unix files to avoid the case conflict, and re-synchronize.\n\ -+ \032 If you don\226\128\153t need the files on the Windows system, you can simply\n\ -+ \032 disregard Unison\226\128\153s warning message, and go ahead with the\n\ -+ \032 synchronization; Unison won\226\128\153t touch those files. If you don\226\128\153t want to\n\ -+ \032 see the warning on each synchronization, you can tell Unison to ignore\n\ -+ \032 the files (see the section \226\128\156Ignore\226\128\157 ).\n\ -+ \n\ -+ \032 Illegal filenames. Unix allows some filenames that are illegal in\n\ -+ \032 Windows. For example, colons (\226\128\152:\226\128\153) are not allowed in Windows\n\ -+ \032 filenames, but they are legal in Unix filenames. This means that a Unix\n\ -+ \032 file foo:bar can\226\128\153t be synchronized to a Windows system. As with case\n\ -+ \032 conflicts, Unison detects this situation for you, and you have the same\n\ -+ \032 options: you can either rename the Unix file and re-synchronize, or you\n\ -+ \032 can ignore it.\n\ -+ \n\ -+ Slow Links\n\ -+ \n\ -+ \032 Unison is built to run well even over relatively slow links such as\n\ -+ \032 modems and DSL connections.\n\ -+ \n\ -+ \032 Unison uses the \226\128\156rsync protocol\226\128\157 designed by Andrew Tridgell and Paul\n\ -+ \032 Mackerras to greatly speed up transfers of large files in which only\n\ -+ \032 small changes have been made. More information about the rsync protocol\n\ -+ \032 can be found at the rsync web site (http://samba.anu.edu.au/rsync/).\n\ -+ \n\ -+ \032 If you are using Unison with ssh, you may get some speed improvement by\n\ -+ \032 enabling ssh\226\128\153s compression feature. Do this by adding the option\n\ -+ \032 \226\128\156-sshargs -C\226\128\157 to the command line or \226\128\156sshargs = -C\226\128\157 to your profile.\n\ -+ \n\ -+ Making Unison Faster on Large Files\n\ -+ \n\ -+ \032 Unison\226\128\153s built-in implementation of the rsync algorithm makes\n\ -+ \032 transferring updates to existing files pretty fast. However, for\n\ -+ \032 whole-file copies of newly created files, the built-in transfer method\n\ -+ \032 is not highly optimized. Also, if Unison is interrupted in the middle\n\ -+ \032 of transferring a large file, it will attempt to retransfer the whole\n\ -+ \032 thing on the next run.\n\ -+ \n\ -+ \032 These shortcomings can be addressed with a little extra work by telling\n\ -+ \032 Unison to use an external file copying utility for whole-file\n\ -+ \032 transfers. The recommended one is the standalone rsync tool, which is\n\ -+ \032 available by default on most Unix systems and can easily be installed\n\ -+ \032 on Windows systems using Cygwin.\n\ -+ \n\ -+ \032 If you have rsync installed on both hosts, you can make Unison use it\n\ -+ \032 simply by setting the copythreshold flag to something non-negative. If\n\ -+ \032 you set it to 0, Unison will use the external copy utility for all\n\ -+ \032 whole-file transfers. (This is probably slower than letting Unison copy\n\ -+ \032 small files by itself, but can be useful for testing.) If you set it to\n\ -+ \032 a larger value, Unison will use the external utility for all files\n\ -+ \032 larger than this size (which is given in kilobytes, so setting it to\n\ -+ \032 1000 will cause the external tool to be used for all transfers larger\n\ -+ \032 than a megabyte).\n\ -+ \n\ -+ \032 If you want to use a different external copy utility, set both the\n\ -+ \032 copyprog and copyprogpartial preferences\226\128\148the former is used for the\n\ -+ \032 first transfer of a file, while the latter is used when Unison sees a\n\ -+ \032 partially transferred temp file on the receiving host. Be careful here:\n\ -+ \032 Your external tool needs to be instructed to copy files in place\n\ -+ \032 (otherwise if the transfer is interrupted Unison will not notice that\n\ -+ \032 some of the data has already been transferred, the next time it tries).\n\ -+ \032 The default values are:\n\ -+ \032 copyprog = rsync --inplace --compress\n\ -+ \032 copyprogrest = rsync --partial --inplace --compress\n\ -+ \n\ -+ \032 You may also need to set the copyquoterem preference. When it is set to\n\ -+ \032 true, this causes Unison to add an extra layer of quotes to the remote\n\ -+ \032 path passed to the external copy program. This is is needed by rsync,\n\ -+ \032 for example, which internally uses an ssh connection, requiring an\n\ -+ \032 extra level of quoting for paths containing spaces. When this flag is\n\ -+ \032 set to default, extra quotes are added if the value of copyprog\n\ -+ \032 contains the string rsync. The default value is default, naturally.\n\ -+ \n\ -+ \032 If a directory transfer is interrupted, the next run of Unison will\n\ -+ \032 automatically skip any files that were completely transferred before\n\ -+ \032 the interruption. (This behavior is always on: it does not depend on\n\ -+ \032 the setting of the copythreshold preference.) Note, though, that the\n\ -+ \032 new directory will not appear in the destination filesystem until\n\ -+ \032 everything has been transferred\226\128\148partially transferred directories are\n\ -+ \032 kept in a temporary location (with names like .unison.DIRNAME....)\n\ -+ \032 until the transfer is complete.\n\ -+ \n\ -+ Fast Update Detection\n\ -+ \n\ -+ \032 If your replicas are large and at least one of them is on a Windows\n\ -+ \032 system, you may find that Unison\226\128\153s default method for detecting changes\n\ -+ \032 (which involves scanning the full contents of every file on every\n\ -+ \032 sync\226\128\148the only completely safe way to do it under Windows) is too slow.\n\ -+ \032 Unison provides a preference fastcheck that, when set to true, causes\n\ -+ \032 it to use file creation times as \226\128\153pseudo inode numbers\226\128\153 when scanning\n\ -+ \032 replicas for updates, instead of reading the full contents of every\n\ -+ \032 file.\n\ -+ \n\ -+ \032 When fastcheck is set to no, Unison will perform slow\n\ -+ \032 checking\226\128\148re-scanning the contents of each file on each\n\ -+ \032 synchronization\226\128\148on all replicas. When fastcheck is set to default\n\ -+ \032 (which, naturally, is the default), Unison will use fast checks on Unix\n\ -+ \032 replicas and slow checks on Windows replicas.\n\ -+ \n\ -+ \032 This strategy may cause Unison to miss propagating an update if the\n\ -+ \032 modification time and length of the file are both unchanged by the\n\ -+ \032 update. However, Unison will never overwrite such an update with a\n\ -+ \032 change from the other replica, since it always does a safe check for\n\ -+ \032 updates just before propagating a change. Thus, it is reasonable to use\n\ -+ \032 this switch most of the time and occasionally run Unison once with\n\ -+ \032 fastcheck set to no, if you are worried that Unison may have overlooked\n\ -+ \032 an update.\n\ -+ \n\ -+ \032 Fastcheck is (always) automatically disabled for files with extension\n\ -+ \032 .xls or .mpp, to prevent Unison from being confused by the habits of\n\ -+ \032 certain programs (Excel, in particular) of updating files without\n\ -+ \032 changing their modification times.\n\ -+ \n\ -+ Mount Points and Removable Media\n\ -+ \n\ -+ \032 Using Unison removable media such as USB drives can be dangerous unless\n\ -+ \032 you are careful. If you synchronize a directory that is stored on\n\ -+ \032 removable media when the media is not present, it will look to Unison\n\ -+ \032 as though the whole directory has been deleted, and it will proceed to\n\ -+ \032 delete the directory from the other replica\226\128\148probably not what you want!\n\ -+ \n\ -+ \032 To prevent accidents, Unison provides a preference called mountpoint.\n\ -+ \032 Including a line like\n\ -+ \032 mountpoint = foo\n\ -+ \n\ -+ \032 in your preference file will cause Unison to check, after it finishes\n\ -+ \032 detecting updates, that something actually exists at the path foo on\n\ -+ \032 both replicas; if it does not, the Unison run will abort.\n\ -+ \n\ -+ Click-starting Unison\n\ -+ \n\ -+ \032 On Windows NT/2k/XP systems, the graphical version of Unison can be\n\ -+ \032 invoked directly by clicking on its icon. On Windows 95/98 systems,\n\ -+ \032 click-starting also works, as long as you are not using ssh. Due to an\n\ -+ \032 incompatibility with ocaml and Windows 95/98 that is not under our\n\ -+ \032 control, you must start Unison from a DOS window in Windows 95/98 if\n\ -+ \032 you want to use ssh.\n\ -+ \n\ -+ \032 When you click on the Unison icon, two windows will be created:\n\ -+ \032 Unison\226\128\153s regular window, plus a console window, which is used only for\n\ -+ \032 giving your password to ssh (if you do not use ssh to connect, you can\n\ -+ \032 ignore this window). When your password is requested, you\226\128\153ll need to\n\ -+ \032 activate the console window (e.g., by clicking in it) before typing. If\n\ -+ \032 you start Unison from a DOS window, Unison\226\128\153s regular window will appear\n\ -+ \032 and you will type your password in the DOS window you were using.\n\ -+ \n\ -+ \032 To use Unison in this mode, you must first create a profile (see the\n\ -+ \032 section \226\128\156Profile\226\128\157 ). Use your favorite editor for this.\n\ -+ \n\ -+ ")) -+:: -+ ("ssh", ("Installing Ssh", -+ "Installing Ssh\n\ -+ \n\ -+ \032 Warning: These instructions may be out of date. More current\n\ -+ \032 information can be found the Unison Wiki\n\ -+ \032 (http://alliance.seas.upenn.edu/ bcpierce/wiki/index.php?n=Main.UnisonF\n\ -+ \032 AQOSSpecific).\n\ -+ \n\ -+ \032 Your local host will need just an ssh client; the remote host needs an\n\ -+ \032 ssh server (or daemon), which is available on Unix systems. Unison is\n\ -+ \032 known to work with ssh version 1.2.27 (Unix) and version 1.2.14\n\ -+ \032 (Windows); other versions may or may not work.\n\ -+ \n\ -+ Unix\n\ -+ \n\ -+ \032 Most modern Unix installations come with ssh pre-installed.\n\ -+ \n\ -+ Windows\n\ -+ \n\ -+ \032 Many Windows implementations of ssh only provide graphical interfaces,\n\ -+ \032 but Unison requires an ssh client that it can invoke with a\n\ -+ \032 command-line interface. A suitable version of ssh can be installed as\n\ -+ \032 follows.\n\ -+ \032 1. Download an ssh executable.\n\ -+ \032 Warning: there are many implementations and ports of ssh for\n\ -+ \032 Windows, and not all of them will work with Unison. We have gotten\n\ -+ \032 Unison to work with Cygwin\226\128\153s port of openssh, and we suggest you\n\ -+ \032 try that one first. Here\226\128\153s how to install it:\n\ -+ \032 a. First, create a new folder on your desktop to hold temporary\n\ -+ \032 installation files. It can have any name you like, but in\n\ -+ \032 these instructions we\226\128\153ll assume that you call it Foo.\n\ -+ \032 b. Direct your web browser to www.cygwin.com, and click on the\n\ -+ \032 \226\128\156Install now!\226\128\157 link. This will download a file, setup.exe;\n\ -+ \032 save it in the directory Foo. The file setup.exe is a small\n\ -+ \032 program that will download the actual install files from the\n\ -+ \032 Internet when you run it.\n\ -+ \032 c. Start setup.exe (by double-clicking). This brings up a series\n\ -+ \032 of dialogs that you will have to go through. Select \226\128\156Install\n\ -+ \032 from Internet.\226\128\157 For \226\128\156Local Package Directory\226\128\157 select the\n\ -+ \032 directory Foo. For \226\128\156Select install root directory\226\128\157 we\n\ -+ \032 recommend that you use the default, C:\\cygwin. The next dialog\n\ -+ \032 asks you to select the way that you want to connect to the\n\ -+ \032 network to download the installation files; we have used \226\128\156Use\n\ -+ \032 IE5 Settings\226\128\157 successfully, but you may need to make a\n\ -+ \032 different selection depending on your networking setup. The\n\ -+ \032 next dialog gives a list of mirrors; select one close to you.\n\ -+ \032 Next you are asked to select which packages to install. The\n\ -+ \032 default settings in this dialog download a lot of packages\n\ -+ \032 that are not strictly necessary to run Unison with ssh. If you\n\ -+ \032 don\226\128\153t want to install a package, click on it until \226\128\156skip\226\128\157 is\n\ -+ \032 shown. For a minimum installation, select only the packages\n\ -+ \032 \226\128\156cygwin\226\128\157 and \226\128\156openssh,\226\128\157 which come to about 1900KB; the full\n\ -+ \032 installation is much larger.\n\ -+ \n\ -+ \032 Note that you are plan to build unison using the free CygWin GNU C\n\ -+ \032 compiler, you need to install essential development packages such as\n\ -+ \032 \226\128\156gcc\226\128\157, \226\128\156make\226\128\157, \226\128\156fileutil\226\128\157, etc; we refer to the file\n\ -+ \032 \226\128\156INSTALL.win32-cygwin-gnuc\226\128\157 in the source distribution for further\n\ -+ \032 details.\n\ -+ \032 After the packages are downloaded and installed, the next\n\ -+ \032 dialog allows you to choose whether to \226\128\156Create Desktop Icon\226\128\157\n\ -+ \032 and \226\128\156Add to Start Menu.\226\128\157 You make the call.\n\ -+ \032 d. You can now delete the directory Foo and its contents.\n\ -+ \032 Some people have reported problems using Cygwin\226\128\153s ssh with Unison.\n\ -+ \032 If you have trouble, you might try other ones instead:\n\ -+ \032 http://linuxmafia.com/ssh/win32.html\n\ -+ \n\ -+ \032 2. You must set the environment variables HOME and PATH. Ssh will\n\ -+ \032 create a directory .ssh in the directory given by HOME, so that it\n\ -+ \032 has a place to keep data like your public and private keys. PATH\n\ -+ \032 must be set to include the Cygwin bin directory, so that Unison can\n\ -+ \032 find the ssh executable.\n\ -+ \032 + On Windows 95/98, add the lines\n\ -+ \032 set PATH=%PATH%;\n\ -+ \032 set HOME=\n\ -+ \n\ -+ \032 to the file C:\\AUTOEXEC.BAT, where is the directory\n\ -+ \032 where you want ssh to create its .ssh directory, and \n\ -+ \032 is the directory where the executable ssh.exe is stored; if\n\ -+ \032 you\226\128\153ve installed Cygwin in the default location, this is\n\ -+ \032 C:\\cygwin\\bin. You will have to reboot your computer to take\n\ -+ \032 the changes into account.\n\ -+ \032 + On Windows NT/2k/XP, open the environment variables dialog\n\ -+ \032 box:\n\ -+ \032 o Windows NT: My Computer/Properties/Environment\n\ -+ \032 o Windows 2k: My Computer/Properties/Advanced/Environment\n\ -+ \032 variables\n\ -+ \032 then select Path and edit its value by appending ; to\n\ -+ \032 it, where is the full name of the directory that\n\ -+ \032 includes the ssh executable; if you\226\128\153ve installed Cygwin in the\n\ -+ \032 default location, this is C:\\cygwin\\bin.\n\ -+ \032 3. Test ssh from a DOS shell by typing\n\ -+ \032 ssh -l \n\ -+ \n\ -+ \032 You should get a prompt for your password on ,\n\ -+ \032 followed by a working connection.\n\ -+ \032 4. Note that ssh-keygen may not work (fails with \226\128\156gethostname: no such\n\ -+ \032 file or directory\226\128\157) on some systems. This is OK: you can use ssh\n\ -+ \032 with your regular password for the remote system.\n\ -+ \032 5. You should now be able to use Unison with an ssh connection. If you\n\ -+ \032 are logged in with a different user name on the local and remote\n\ -+ \032 hosts, provide your remote user name when providing the remote root\n\ -+ \032 (i.e., //username@host/path...).\n\ -+ \n\ -+ ")) -+:: -+ ("news", ("Changes in Version 2.40.102", -+ "Changes in Version 2.40.102\n\ -+ \n\ -+ \032 Changes since 2.40.1:\n\ -+ \032 * Added \"BelowPath\" patterns, that match a path as well as all paths\n\ -+ \032 below (convenient to use with nodeletion,update,creationpartial\n\ -+ \032 preferences)\n\ -+ \032 * Added a \"fat\" preference that makes Unison use the right options\n\ -+ \032 when one of the replica is on a FAT filesystem.\n\ -+ \032 * Allow \"prefer/force=newer\" even when not synchronizing modification\n\ -+ \032 times. (The reconciler will not be aware of the modification time\n\ -+ \032 of unchanged files, so the synchronization choices of Unison can be\n\ -+ \032 different from when \"times=true\", but the behavior remains sane:\n\ -+ \032 changed files with the most recent modification time will be\n\ -+ \032 propagated.)\n\ -+ \032 * Minor fixes and improvements:\n\ -+ \032 + Compare filenames up to decomposition in case sensitive mode\n\ -+ \032 when one host is running MacOSX and the unicode preference is\n\ -+ \032 set to true.\n\ -+ \032 + Rsync: somewhat faster compressor\n\ -+ \032 + Make Unicode the default on all architectures (it was only the\n\ -+ \032 default when a Mac OS X or Windows machine was involved).\n\ -+ \n\ -+ \032 Changes since 2.32:\n\ -+ \032 * Major enhancement: Unicode support.\n\ -+ \032 + Unison should now handle unicode filenames correctly on all\n\ -+ \032 platforms.\n\ -+ \032 + This functionality is controlled by a new preference unicode.\n\ -+ \032 + Unicode mode is now the default when one of the hosts is under\n\ -+ \032 Windows or MacOS. This may make upgrades a bit more painful\n\ -+ \032 (the archives cannot be reused), but this is a much saner\n\ -+ \032 default.\n\ -+ \032 * Partial transfer of directories. If an error occurs while\n\ -+ \032 transferring a directory, the part transferred so far is copied\n\ -+ \032 into place (and the archives are updated accordingly). The\n\ -+ \032 \"maxerrors\" preference controls how many transfer error Unison will\n\ -+ \032 accept before stopping the transfer of a directory (by default,\n\ -+ \032 only one). This makes it possible to transfer most of a directory\n\ -+ \032 even if there are some errors. Currently, only the first error is\n\ -+ \032 reported by the GUIs.\n\ -+ \032 Also, allow partial transfer of a directory when there was an error\n\ -+ \032 deep inside this directory during update detection. At the moment,\n\ -+ \032 this is only activated with the text and GTK UIs, which have been\n\ -+ \032 modified so that they show that the transfer is going to be partial\n\ -+ \032 and so that they can display all errors.\n\ -+ \032 * Improvement to the code for resuming directory transfers:\n\ -+ \032 + if a file was not correctly transferred (or the source has\n\ -+ \032 been modified since, with unchanged size), Unison performs a\n\ -+ \032 new transfer rather than failing\n\ -+ \032 + spurious files are deleted (this can happen if a file is\n\ -+ \032 deleted on the source replica before resuming the transfer;\n\ -+ \032 not deleting the file would result in it reappearing on the\n\ -+ \032 target replica)\n\ -+ \032 * Experimental streaming protocol for transferring file contents (can\n\ -+ \032 be disabled by setting the directive \"stream\" to false): file\n\ -+ \032 contents is transfered asynchronously (without waiting for a\n\ -+ \032 response from the destination after each chunk sent) rather than\n\ -+ \032 using the synchronous RPC mechanism. As a consequence:\n\ -+ \032 + Unison now transfers the contents of a single file at a time\n\ -+ \032 (Unison used to transfer several contents simultaneously in\n\ -+ \032 order to hide the connection latency.)\n\ -+ \032 + the transfer of large files uses the full available bandwidth\n\ -+ \032 and is not slowed done due to the connection latency anymore\n\ -+ \032 + we get performance improvement for small files as well by\n\ -+ \032 scheduling many files simultaneously (as scheduling a file for\n\ -+ \032 transfer consume little ressource: it does not mean allocating\n\ -+ \032 a large buffer anymore)\n\ -+ \032 * Changes to the internal implementation of the rsync algorithm:\n\ -+ \032 + use longer blocks for large files (the size of a block is the\n\ -+ \032 square root of the size of the file for large files);\n\ -+ \032 + transmit less checksum information per block (we still have\n\ -+ \032 less than one chance in a hundred million of transferring a\n\ -+ \032 file incorrectly, and Unison will catch any transfer error\n\ -+ \032 when fingerprinting the whole file)\n\ -+ \032 + avoid transfer overhead (which was 4 bytes per block)\n\ -+ \032 For a 1G file, the first optimization saves a factor 50 on the\n\ -+ \032 amount of data transferred from the target to the source (blocks\n\ -+ \032 are 32768 bytes rather than just 700 bytes). The two other\n\ -+ \032 optimizations save another factor of 2 (from 24 bytes per block\n\ -+ \032 down to 10).\n\ -+ \032 * Implemented an on-disk file fingerprint cache to speed-up update\n\ -+ \032 detection after a crash: this way, Unison does not have do\n\ -+ \032 recompute all the file fingerprints from scratch.\n\ -+ \032 + When Unison detects that the archive case-sensitivity mode\n\ -+ \032 does not match the current settings, it populates the\n\ -+ \032 fingerprint cache using the archive contents. This way,\n\ -+ \032 changing the case-sensitivity mode should be reasonably fast.\n\ -+ \032 * New preferences \"noupdate=root\", \"nodeletion=root\",\n\ -+ \032 \"nocreation=root\" that prevent Unison from performing files\n\ -+ \032 updates, deletions or creations on the given root. Also \226\128\153partial\226\128\153\n\ -+ \032 versions of \226\128\153noupdate\226\128\153, \226\128\153nodeletion\226\128\153 and \226\128\153nocreation\226\128\153\n\ -+ \032 * Limit the number of simultaneous external copy program (\"copymax\"\n\ -+ \032 preference)\n\ -+ \032 * New \"links\" preference. When set to false, Unison will report an\n\ -+ \032 error on symlinks during update detection. (This is the default\n\ -+ \032 when one host is running Windows but not Cygwin.) This is better\n\ -+ \032 than failing during propagation.\n\ -+ \032 * Added a preference \"halfduplex\" to force half-duplex communication\n\ -+ \032 with the server. This may be useful on unreliable links (as a more\n\ -+ \032 efficient alternative to \"maxthreads = 1\").\n\ -+ \032 * Renamed preference \"pretendwin\" to \"ignoreinodenumbers\" (an alias\n\ -+ \032 is kept for backwards compatibility).\n\ -+ \032 * Ignore one-second differences when synchronizing modification time.\n\ -+ \032 (Technically, this is an incompatible archive format change, but it\n\ -+ \032 is backward compatible. To trigger a problem, a user would have to\n\ -+ \032 synchronize modification times on a filesystem with a two-second\n\ -+ \032 granularity and then downgrade to a previous version of Unison,\n\ -+ \032 which does not work well in such a case. Thus, it does not seem\n\ -+ \032 worthwhile to increment the archive format number, which would\n\ -+ \032 impact all users.)\n\ -+ \032 * Do not keep many files simultaneously opened anymore when the rsync\n\ -+ \032 algorithm is in use.\n\ -+ \032 * Add \226\128\156ignorearchives\226\128\157 preference to ignore existing archives (to\n\ -+ \032 avoid forcing users to delete them manually, in situations where\n\ -+ \032 one archive has gotten deleted or corrupted).\n\ -+ \032 * Mac OS\n\ -+ \032 + fixed rsync bug which could result in an \"index out of bounds\"\n\ -+ \032 error when transferring resource forks.\n\ -+ \032 + Fixed bug which made Unison ignore finder information and\n\ -+ \032 resource fork when compiled to 64bit on Mac OSX.\n\ -+ \032 + should now be 64 bit clean (the Growl framework is not up to\n\ -+ \032 date, though)\n\ -+ \032 + Made the bridge between Objective C and Ocaml code GC friendly\n\ -+ \032 (it was allocating ML values and putting them in an array\n\ -+ \032 which was not registered with the GC)\n\ -+ \032 + use darker grey arrows (patch contributed by Eric Y. Kow)\n\ -+ \032 * GTK user interface\n\ -+ \032 + assistant for creating profiles\n\ -+ \032 + profile editor\n\ -+ \032 + pop up a summary window when the replicas are not fully\n\ -+ \032 synchronized after transport\n\ -+ \032 + display estimated remaining time and transfer rate on the\n\ -+ \032 progress bar\n\ -+ \032 + allow simultaneous selection of several items\n\ -+ \032 + Do not reload the preference file before a new update\n\ -+ \032 detection if it is unchanged\n\ -+ \032 + disabled scrolling to the first unfinished item during\n\ -+ \032 transport. It goes way too fast when lot of small files are\n\ -+ \032 synchronized, and it makes it impossible to browse the file\n\ -+ \032 list during transport.\n\ -+ \032 + take into account the \"height\" preference again\n\ -+ \032 + the internal list of selected reconciler item was not always\n\ -+ \032 in sync with what was displayed (GTK bug?); workaround\n\ -+ \032 implemented\n\ -+ \032 + Do not display \"Looking for change\" messages during\n\ -+ \032 propagation (when checking the targe is unchanged) but only\n\ -+ \032 during update detection\n\ -+ \032 + Apply patch to fix some crashes in the OSX GUI, thanks to Onne\n\ -+ \032 Gorter.\n\ -+ \032 * Text UI\n\ -+ \032 + During update detection, display status by updating a single\n\ -+ \032 line rather than generating a new line of output every so\n\ -+ \032 often. Should be less confusing.\n\ -+ \032 * Windows\n\ -+ \032 + Fastcheck is now the default under Windows. People mostly use\n\ -+ \032 NTFS nowadays and the Unicode API provides an equivalent to\n\ -+ \032 inode numbers for this filesystem.\n\ -+ \032 + Only use long UNC path for accessing replicas (as \226\128\153..\226\128\153 is not\n\ -+ \032 handled with this format of paths, but can be useful)\n\ -+ \032 + Windows text UI: now put the console into UTF-8 output mode.\n\ -+ \032 This is the right thing to do when in Unicode mode, and is no\n\ -+ \032 worse than what we had previously otherwise (the console use\n\ -+ \032 some esoteric encoding by default). This only works when using\n\ -+ \032 a Unicode font instead of the default raster font.\n\ -+ \032 + Don\226\128\153t get the home directory from environment variable HOME\n\ -+ \032 under Windows (except for Cygwin binaries): we don\226\128\153t want the\n\ -+ \032 behavior of Unison to depends on whether it is run from a\n\ -+ \032 Cygwin shell (where HOME is set) or in any other way (where\n\ -+ \032 HOME is usually not set).\n\ -+ \032 * Miscellaneous fixes and improvements\n\ -+ \032 + Made a server waiting on a socket more resilient to unexpected\n\ -+ \032 lost connections from the client.\n\ -+ \032 + Small patch to property setting code suggested by Ulrich\n\ -+ \032 Gernkow.\n\ -+ \032 + Several fixes to the change transfer functions (both the\n\ -+ \032 internal ones and external transfers using rsync). In\n\ -+ \032 particular, limit the number of simultaneous transfer using an\n\ -+ \032 rsync (as the rsync algorithm can use a large amount of memory\n\ -+ \032 when processing huge files)\n\ -+ \032 + Keep track of which file contents are being transferred, and\n\ -+ \032 delay the transfer of a file when another file with the same\n\ -+ \032 contents is currently being transferred. This way, the second\n\ -+ \032 transfer can be skipped and replaced by a local copy.\n\ -+ \032 + Experimental update detection optimization: do not read the\n\ -+ \032 contents of unchanged directories\n\ -+ \032 + When a file transfer fails, turn off fastcheck for this file\n\ -+ \032 on the next sync.\n\ -+ \032 + Fixed bug with case insensitive mode on a case sensitive\n\ -+ \032 filesystem:\n\ -+ \032 o if file \"a/a\" is created on one replica and directory \"A\"\n\ -+ \032 is created on the other, the file failed to be\n\ -+ \032 synchronized the first time Unison is run afterwards, as\n\ -+ \032 Unison uses the wrong path \"a/a\" (if Unison is run again,\n\ -+ \032 the directories are in the archive, so the right path is\n\ -+ \032 used);\n\ -+ \032 o if file \"a\" appears on one replica and file \"A\" appears\n\ -+ \032 on the other with different contents, Unison was unable\n\ -+ \032 to synchronize them.\n\ -+ \032 + Improved error reporting when the destination is updated\n\ -+ \032 during synchronization: Unison now tells which file has been\n\ -+ \032 updated, and how.\n\ -+ \032 + Limit the length of temporary file names\n\ -+ \032 + Case sensitivity information put in the archive (in a backward\n\ -+ \032 compatible way) and checked when the archive is loaded\n\ -+ \032 + Got rid of the 16mb marshalling limit by marshalling to a\n\ -+ \032 bigarray.\n\ -+ \032 + Resume copy of partially transferred files.\n\ -+ \n\ -+ \032 Changes since 2.31:\n\ -+ \032 * Small user interface changes\n\ -+ \032 + Small change to text UI \"scanning...\" messages, to print just\n\ -+ \032 directories (hopefully making it clearer that individual files\n\ -+ \032 are not necessarily being fingerprinted).\n\ -+ \032 * Minor fixes and improvements:\n\ -+ \032 + Ignore one hour differences when deciding whether a file may\n\ -+ \032 have been updated. This avoids slow update detection after\n\ -+ \032 daylight saving time changes under Windows. This makes Unison\n\ -+ \032 slightly more likely to miss an update, but it should be safe\n\ -+ \032 enough.\n\ -+ \032 + Fix a small bug that was affecting mainly windows users. We\n\ -+ \032 need to commit the archives at the end of the sync even if\n\ -+ \032 there are no updates to propagate because some files (in fact,\n\ -+ \032 if we\226\128\153ve just switched to DST on windows, a LOT of files)\n\ -+ \032 might have new modtimes in the archive. (Changed the text UI\n\ -+ \032 only. It\226\128\153s less clear where to change the GUI.)\n\ -+ \032 + Don\226\128\153t delete the temp file when a transfer fails due to a\n\ -+ \032 fingerprint mismatch (so that we can have a look and see why!)\n\ -+ \032 We\226\128\153ve also added more debugging code togive more informative\n\ -+ \032 error messages when we encounter the dreaded and longstanding\n\ -+ \032 \"assert failed during file transfer\" bug\n\ -+ \032 + Incorrect paths (\"path\" directive) now result in an error\n\ -+ \032 update item rather than a fatal error.\n\ -+ \032 + Create parent directories (with correct permissions) during\n\ -+ \032 transport for paths which point to non-existent locations in\n\ -+ \032 the destination replica.\n\ -+ \n\ -+ \032 Changes since 2.27:\n\ -+ \032 * If Unison is interrupted during a directory transfer, it will now\n\ -+ \032 leave the partially transferred directory intact in a temporary\n\ -+ \032 location. (This maintains the invariant that new files/directories\n\ -+ \032 are transferred either completely or not at all.) The next time\n\ -+ \032 Unison is run, it will continue filling in this temporary\n\ -+ \032 directory, skipping transferring files that it finds are already\n\ -+ \032 there.\n\ -+ \032 * We\226\128\153ve added experimental support for invoking an external file\n\ -+ \032 transfer tool for whole-file copies instead of Unison\226\128\153s built-in\n\ -+ \032 transfer protocol. Three new preferences have been added:\n\ -+ \032 + copyprog is a string giving the name (and command-line\n\ -+ \032 switches, if needed) of an external program that can be used\n\ -+ \032 to copy large files efficiently. By default, rsync is invoked,\n\ -+ \032 but other tools such as scp can be used instead by changing\n\ -+ \032 the value of this preference. (Although this is not its\n\ -+ \032 primary purpose, rsync is actually a pretty fast way of\n\ -+ \032 copying files that don\226\128\153t already exist on the receiving host.)\n\ -+ \032 For files that do already exist on (but that have been changed\n\ -+ \032 in one replica), Unison will always use its built-in\n\ -+ \032 implementation of the rsync algorithm.\n\ -+ \032 + Added a \"copyprogrest\" preference, so that we can give\n\ -+ \032 different command lines for invoking the external copy utility\n\ -+ \032 depending on whether a partially transferred file already\n\ -+ \032 exists or not. (Rsync doesn\226\128\153t seem to care about this, but\n\ -+ \032 other utilities may.)\n\ -+ \032 + copythreshold is an integer (-1 by default), indicating above\n\ -+ \032 what filesize (in megabytes) Unison should use the external\n\ -+ \032 copying utility specified by copyprog. Specifying 0 will cause\n\ -+ \032 ALL copies to use the external program; a negative number will\n\ -+ \032 prevent any files from using it. (Default is -1.)\n\ -+ \032 Thanks to Alan Schmitt for a huge amount of hacking and to an\n\ -+ \032 anonymous sponsor for suggesting and underwriting this extension.\n\ -+ \032 * Small improvements:\n\ -+ \032 + Added a new preference, dontchmod. By default, Unison uses the\n\ -+ \032 chmod system call to set the permission bits of files after it\n\ -+ \032 has copied them. But in some circumstances (and under some\n\ -+ \032 operating systems), the chmod call always fails. Setting this\n\ -+ \032 preference completely prevents Unison from ever calling chmod.\n\ -+ \032 + Don\226\128\153t ignore files that look like backup files if the\n\ -+ \032 backuplocation preference is set to central\n\ -+ \032 + Shortened the names of several preferences. The old names are\n\ -+ \032 also still supported, for backwards compatibility, but they do\n\ -+ \032 not appear in the documentation.\n\ -+ \032 + Lots of little documentation tidying. (In particular,\n\ -+ \032 preferences are separated into Basic and Advanced! This should\n\ -+ \032 hopefully make Unison a little more approachable for new\n\ -+ \032 users.\n\ -+ \032 + Unison can sometimes fail to transfer a file, giving the\n\ -+ \032 unhelpful message \"Destination updated during synchronization\"\n\ -+ \032 even though the file has not been changed. This can be caused\n\ -+ \032 by programs that change either the file\226\128\153s contents or the\n\ -+ \032 file\226\128\153s extended attributes without changing its modification\n\ -+ \032 time. It\226\128\153s not clear what is the best fix for this \226\128\147 it is not\n\ -+ \032 Unison\226\128\153s fault, but it makes Unison\226\128\153s behavior puzzling \226\128\147 but\n\ -+ \032 at least Unison can be more helpful about suggesting a\n\ -+ \032 workaround (running once with fastcheck set to false). The\n\ -+ \032 failure message has been changed to give this advice.\n\ -+ \032 + Further improvements to the OS X GUI (thanks to Alan Schmitt\n\ -+ \032 and Craig Federighi).\n\ -+ \032 * Very preliminary support for triggering Unison from an external\n\ -+ \032 filesystem-watching utility. The current implementation is very\n\ -+ \032 simple, not efficient, and almost completely untested\226\128\148not ready for\n\ -+ \032 real users. But if someone wants to help improve it (e.g., by\n\ -+ \032 writing a filesystem watcher for your favorite OS), please make\n\ -+ \032 yourself known!\n\ -+ \032 On the Unison side, the new behavior is very simple:\n\ -+ \032 + use the text UI\n\ -+ \032 + start Unison with the command-line flag \"-repeat FOO\", where\n\ -+ \032 FOO is name of a file where Unison should look for\n\ -+ \032 notifications of changes\n\ -+ \032 + when it starts up, Unison will read the whole contents of this\n\ -+ \032 file (on both hosts), which should be a newline-separated list\n\ -+ \032 of paths (relative to the root of the synchronization) and\n\ -+ \032 synchronize just these paths, as if it had been started with\n\ -+ \032 the \"-path=xxx\" option for each one of them\n\ -+ \032 + when it finishes, it will sleep for a few seconds and then\n\ -+ \032 examine the watchfile again; if anything has been added, it\n\ -+ \032 will read the new paths, synchronize them, and go back to\n\ -+ \032 sleep\n\ -+ \032 + that\226\128\153s it!\n\ -+ \032 To use this to drive Unison \"incrementally,\" just start it in this\n\ -+ \032 mode and start up a tool (on each host) to watch for new changes to\n\ -+ \032 the filesystem and append the appropriate paths to the watchfile.\n\ -+ \032 Hopefully such tools should not be too hard to write.\n\ -+ \032 * Bug fixes:\n\ -+ \032 + Fixed a bug that was causing new files to be created with\n\ -+ \032 permissions 0x600 instead of using a reasonable default (like\n\ -+ \032 0x644), if the \226\128\153perms\226\128\153 flag was set to 0. (Bug reported by Ben\n\ -+ \032 Crowell.)\n\ -+ \032 + Follow maxthreads preference when transferring directories.\n\ -+ \n\ -+ \032 Changes since 2.17:\n\ -+ \032 * Major rewrite and cleanup of the whole Mac OS X graphical user\n\ -+ \032 interface by Craig Federighi. Thanks, Craig!!!\n\ -+ \032 * Small fix to ctime (non-)handling in update detection under windows\n\ -+ \032 with fastcheck.\n\ -+ \032 * Several small fixes to the GTK2 UI to make it work better under\n\ -+ \032 Windows [thanks to Karl M for these].\n\ -+ \032 * The backup functionality has been completely rewritten. The\n\ -+ \032 external interface has not changed, but numerous bugs, irregular\n\ -+ \032 behaviors, and cross-platform inconsistencies have been corrected.\n\ -+ \032 * The Unison project now accepts donations via PayPal. If you\226\128\153d like\n\ -+ \032 to donate, you can find a link to the donation page on the Unison\n\ -+ \032 home page (http://www.cis.upenn.edu/ bcpierce/unison/lists.html).\n\ -+ \032 * Some important safety improvements:\n\ -+ \032 + Added a new mountpoint preference, which can be used to\n\ -+ \032 specify a path that must exist in both replicas at the end of\n\ -+ \032 update detection (otherwise Unison aborts). This can be used\n\ -+ \032 to avoid potentially dangerous situations when Unison is used\n\ -+ \032 with removable media such as external hard drives and compact\n\ -+ \032 flash cards.\n\ -+ \032 + The confirmation of \226\128\156big deletes\226\128\157 is now controlled by a\n\ -+ \032 boolean preference confirmbigdeletes. Default is true, which\n\ -+ \032 gives the same behavior as previously. (This functionality is\n\ -+ \032 at least partly superceded by the mountpoint preference, but\n\ -+ \032 it has been left in place in case it is useful to some\n\ -+ \032 people.)\n\ -+ \032 + If Unison is asked to \226\128\156follow\226\128\157 a symbolic link but there is\n\ -+ \032 nothing at the other end of the link, it will now flag this\n\ -+ \032 path as an error, rather than treating the symlink itself as\n\ -+ \032 missing or deleted. This avoids a potentially dangerous\n\ -+ \032 situation where a followed symlink points to an external\n\ -+ \032 filesystem that might be offline when Unison is run (whereupon\n\ -+ \032 Unison would cheerfully delete the corresponding files in the\n\ -+ \032 other replica!).\n\ -+ \032 * Smaller changes:\n\ -+ \032 + Added forcepartial and preferpartial preferences, which behave\n\ -+ \032 like force and prefer but can be specified on a per-path\n\ -+ \032 basis. [Thanks to Alan Schmitt for this.]\n\ -+ \032 + A bare-bones self test feature was added, which runs unison\n\ -+ \032 through some of its paces and checks that the results are as\n\ -+ \032 expected. The coverage of the tests is still very limited, but\n\ -+ \032 the facility has already been very useful in debugging the new\n\ -+ \032 backup functionality (especially in exposing some subtle\n\ -+ \032 cross-platform issues).\n\ -+ \032 + Refined debugging code so that the verbosity of individual\n\ -+ \032 modules can be controlled separately. Instead of just putting\n\ -+ \032 \226\128\153-debug verbose\226\128\153 on the command line, you can put \226\128\153-debug\n\ -+ \032 update+\226\128\153, which causes all the extra messages in the Update\n\ -+ \032 module, but not other modules, to be printed. Putting \226\128\153-debug\n\ -+ \032 verbose\226\128\153 causes all modules to print with maximum verbosity.\n\ -+ \032 + Removed mergebatch preference. (It never seemed very useful,\n\ -+ \032 and its semantics were confusing.)\n\ -+ \032 + Rewrote some of the merging functionality, for better\n\ -+ \032 cooperation with external Harmony instances.\n\ -+ \032 + Changed the temp file prefix from .# to .unison.\n\ -+ \032 + Compressed the output from the text user interface\n\ -+ \032 (particularly when run with the -terse flag) to make it easier\n\ -+ \032 to interpret the results when Unison is run several times in\n\ -+ \032 succession from a script.\n\ -+ \032 + Diff and merge functions now work under Windows.\n\ -+ \032 + Changed the order of arguments to the default diff command (so\n\ -+ \032 that the + and - annotations in diff\226\128\153s output are reversed).\n\ -+ \032 + Added .mpp files to the \226\128\156never fastcheck\226\128\157 list (like .xls\n\ -+ \032 files).\n\ -+ \032 * Many small bugfixes, including:\n\ -+ \032 + Fixed a longstanding bug regarding fastcheck and daylight\n\ -+ \032 saving time under Windows when Unison is set up to synchronize\n\ -+ \032 modification times. (Modification times cannot be updated in\n\ -+ \032 the archive in this case, so we have to ignore one hour\n\ -+ \032 differences.)\n\ -+ \032 + Fixed a bug that would occasionally cause the archives to be\n\ -+ \032 left in non-identical states on the two hosts after\n\ -+ \032 synchronization.\n\ -+ \032 + Fixed a bug that prevented Unison from communicating correctly\n\ -+ \032 between 32- and 64-bit architectures.\n\ -+ \032 + On windows, file creation times are no longer used as a proxy\n\ -+ \032 for inode numbers. (This is unfortunate, as it makes fastcheck\n\ -+ \032 a little less safe. But it turns out that file creation times\n\ -+ \032 are not reliable under Windows: if a file is removed and a new\n\ -+ \032 file is created in its place, the new one will sometimes be\n\ -+ \032 given the same creation date as the old one!)\n\ -+ \032 + Set read-only file to R/W on OSX before attempting to change\n\ -+ \032 other attributes.\n\ -+ \032 + Fixed bug resulting in spurious \"Aborted\" errors during\n\ -+ \032 transport (thanks to Jerome Vouillon)\n\ -+ \032 + Enable diff if file contents have changed in one replica, but\n\ -+ \032 only properties in the other.\n\ -+ \032 + Removed misleading documentation for \226\128\153repeat\226\128\153 preference.\n\ -+ \032 + Fixed a bug in merging code where Unison could sometimes\n\ -+ \032 deadlock with the external merge program, if the latter\n\ -+ \032 produced large amounts of output.\n\ -+ \032 + Workaround for a bug compiling gtk2 user interface against\n\ -+ \032 current versions of gtk2+ libraries.\n\ -+ \032 + Added a better error message for \"ambiguous paths\".\n\ -+ \032 + Squashed a longstanding bug that would cause file transfer to\n\ -+ \032 fail with the message \226\128\156Failed: Error in readWrite: Is a\n\ -+ \032 directory.\226\128\157\n\ -+ \032 + Replaced symlinks with copies of their targets in the Growl\n\ -+ \032 framework in src/uimac. This should make the sources easier to\n\ -+ \032 check out from the svn repository on WinXP systems.\n\ -+ \032 + Added a workaround (suggested by Karl M.) for the problem\n\ -+ \032 discussed on the unison users mailing list where, on the\n\ -+ \032 Windows platform, the server would hang when transferring\n\ -+ \032 files. I conjecture that the problem has to do with the RPC\n\ -+ \032 mechanism, which was used to make a call back from the server\n\ -+ \032 to the client (inside the Trace.log function) so that the log\n\ -+ \032 message would be appended to the log file on the client. The\n\ -+ \032 workaround is to dump these messages (about when xferbycopying\n\ -+ \032 shortcuts are applied and whether they succeed) just to the\n\ -+ \032 standard output of the Unison process, not to the log file.\n\ -+ \n\ -+ \032 Changes since 2.13.0:\n\ -+ \032 * The features for performing backups and for invoking external merge\n\ -+ \032 programs have been completely rewritten by Stephane Lescuyer\n\ -+ \032 (thanks, Stephane!). The user-visible functionality should not\n\ -+ \032 change, but the internals have been rationalized and there are a\n\ -+ \032 number of new features. See the manual (in particular, the\n\ -+ \032 description of the backupXXX preferences) for details.\n\ -+ \032 * Incorporated patches for ipv6 support, contributed by Samuel\n\ -+ \032 Thibault. (Note that, due to a bug in the released OCaml 3.08.3\n\ -+ \032 compiler, this code will not actually work with ipv6 unless\n\ -+ \032 compiled with the CVS version of the OCaml compiler, where the bug\n\ -+ \032 has been fixed; however, ipv4 should continue to work normally.)\n\ -+ \032 * OSX interface:\n\ -+ \032 + Incorporated Ben Willmore\226\128\153s cool new icon for the Mac UI.\n\ -+ \032 * Small fixes:\n\ -+ \032 + Fixed off by one error in month numbers (in printed dates)\n\ -+ \032 reported by Bob Burger\n\ -+ \n\ -+ \032 Changes since 2.12.0:\n\ -+ \032 * New convention for release numbering: Releases will continue to be\n\ -+ \032 given numbers of the form X.Y.Z, but, from now on, just the major\n\ -+ \032 version number (X.Y) will be considered significant when checking\n\ -+ \032 compatibility between client and server versions. The third\n\ -+ \032 component of the version number will be used only to identify\n\ -+ \032 \226\128\156patch levels\226\128\157 of releases.\n\ -+ \032 This change goes hand in hand with a change to the procedure for\n\ -+ \032 making new releases. Candidate releases will initially be given\n\ -+ \032 \226\128\156beta release\226\128\157 status when they are announced for public\n\ -+ \032 consumption. Any bugs that are discovered will be fixed in a\n\ -+ \032 separate branch of the source repository (without changing the\n\ -+ \032 major version number) and new tarballs re-released as needed. When\n\ -+ \032 this process converges, the patched beta version will be dubbed\n\ -+ \032 stable.\n\ -+ \032 * Warning (failure in batch mode) when one path is completely\n\ -+ \032 emptied. This prevents Unison from deleting everything on one\n\ -+ \032 replica when the other disappear.\n\ -+ \032 * Fix diff bug (where no difference is shown the first time the diff\n\ -+ \032 command is given).\n\ -+ \032 * User interface changes:\n\ -+ \032 + Improved workaround for button focus problem (GTK2 UI)\n\ -+ \032 + Put leading zeroes in date fields\n\ -+ \032 + More robust handling of character encodings in GTK2 UI\n\ -+ \032 + Changed format of modification time displays, from modified at\n\ -+ \032 hh:mm:ss on dd MMM, yyyy to modified on yyyy-mm-dd hh:mm:ss\n\ -+ \032 + Changed time display to include seconds (so that people on FAT\n\ -+ \032 filesystems will not be confused when Unison tries to update a\n\ -+ \032 file time to an odd number of seconds and the filesystem\n\ -+ \032 truncates it to an even number!)\n\ -+ \032 + Use the diff \"-u\" option by default when showing differences\n\ -+ \032 between files (the output is more readable)\n\ -+ \032 + In text mode, pipe the diff output to a pager if the\n\ -+ \032 environment variable PAGER is set\n\ -+ \032 + Bug fixes and cleanups in ssh password prompting. Now works\n\ -+ \032 with the GTK2 UI under Linux. (Hopefully the Mac OS X one is\n\ -+ \032 not broken!)\n\ -+ \032 + Include profile name in the GTK2 window name\n\ -+ \032 + Added bindings \226\128\153,\226\128\153 (same as \226\128\153<\226\128\153) and \226\128\153.\226\128\153 (same as \226\128\153>\226\128\153) in the\n\ -+ \032 GTK2 UI\n\ -+ \032 * Mac GUI:\n\ -+ \032 + actions like < and > scroll to the next item as necessary.\n\ -+ \032 + Restart has a menu item and keyboard shortcut (command-R).\n\ -+ \032 + Added a command-line tool for Mac OS X. It can be installed\n\ -+ \032 from the Unison menu.\n\ -+ \032 + New icon.\n\ -+ \032 + Handle the \"help\" command-line argument properly.\n\ -+ \032 + Handle profiles given on the command line properly.\n\ -+ \032 + When a profile has been selected, the profile dialog is\n\ -+ \032 replaced by a \"connecting\" message while the connection is\n\ -+ \032 being made. This gives better feedback.\n\ -+ \032 + Size of left and right columns is now large enough so that\n\ -+ \032 \"PropsChanged\" is not cut off.\n\ -+ \032 * Minor changes:\n\ -+ \032 + Disable multi-threading when both roots are local\n\ -+ \032 + Improved error handling code. In particular, make sure all\n\ -+ \032 files are closed in case of a transient failure\n\ -+ \032 + Under Windows, use $UNISON for home directory as a last resort\n\ -+ \032 (it was wrongly moved before $HOME and $USERPROFILE in Unison\n\ -+ \032 2.12.0)\n\ -+ \032 + Reopen the logfile if its name changes (profile change)\n\ -+ \032 + Double-check that permissions and modification times have been\n\ -+ \032 properly set: there are some combination of OS and filesystem\n\ -+ \032 on which setting them can fail in a silent way.\n\ -+ \032 + Check for bad Windows filenames for pure Windows\n\ -+ \032 synchronization also (not just cross architecture\n\ -+ \032 synchronization). This way, filenames containing backslashes,\n\ -+ \032 which are not correctly handled by unison, are rejected right\n\ -+ \032 away.\n\ -+ \032 + Attempt to resolve issues with synchronizing modification\n\ -+ \032 times of read-only files under Windows\n\ -+ \032 + Ignore chmod failures when deleting files\n\ -+ \032 + Ignore trailing dots in filenames in case insensitive mode\n\ -+ \032 + Proper quoting of paths, files and extensions ignored using\n\ -+ \032 the UI\n\ -+ \032 + The strings CURRENT1 and CURRENT2 are now correctly substitued\n\ -+ \032 when they occur in the diff preference\n\ -+ \032 + Improvements to syncing resource forks between Macs via a\n\ -+ \032 non-Mac system.\n\ -+ \n\ -+ \032 Changes since 2.10.2:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ -+ \032 * Source code availability: The Unison sources are now managed using\n\ -+ \032 Subversion. One nice side-effect is that anonymous checkout is now\n\ -+ \032 possible, like this:\n\ -+ \032 svn co https://cvs.cis.upenn.edu:3690/svnroot/unison/\n\ -+ \n\ -+ \032 We will also continue to export a \226\128\156developer tarball\226\128\157 of the\n\ -+ \032 current (modulo one day) sources in the web export directory. To\n\ -+ \032 receive commit logs for changes to the sources, subscribe to the\n\ -+ \032 unison-hackers list\n\ -+ \032 (http://www.cis.upenn.edu/ bcpierce/unison/lists.html).\n\ -+ \032 * Text user interface:\n\ -+ \032 + Substantial reworking of the internal logic of the text UI to\n\ -+ \032 make it a bit easier to modify.\n\ -+ \032 + The dumbtty flag in the text UI is automatically set to true\n\ -+ \032 if the client is running on a Unix system and the EMACS\n\ -+ \032 environment variable is set to anything other than the empty\n\ -+ \032 string.\n\ -+ \032 * Native OS X gui:\n\ -+ \032 + Added a synchronize menu item with keyboard shortcut\n\ -+ \032 + Added a merge menu item, still needs to be debugged\n\ -+ \032 + Fixes to compile for Panther\n\ -+ \032 + Miscellaneous improvements and bugfixes\n\ -+ \032 * Small changes:\n\ -+ \032 + Changed the filename checking code to apply to Windows only,\n\ -+ \032 instead of OS X as well.\n\ -+ \032 + Finder flags now synchronized\n\ -+ \032 + Fallback in copy.ml for filesystem that do not support O_EXCL\n\ -+ \032 + Changed buffer size for local file copy (was highly\n\ -+ \032 inefficient with synchronous writes)\n\ -+ \032 + Ignore chmod failure when deleting a directory\n\ -+ \032 + Fixed assertion failure when resolving a conflict content\n\ -+ \032 change / permission changes in favor of the content change.\n\ -+ \032 + Workaround for transferring large files using rsync.\n\ -+ \032 + Use buffered I/O for files (this is the only way to open files\n\ -+ \032 in binary mode under Cygwin).\n\ -+ \032 + On non-Cygwin Windows systems, the UNISON environment variable\n\ -+ \032 is now checked first to determine where to look for Unison\226\128\153s\n\ -+ \032 archive and preference files, followed by HOME and USERPROFILE\n\ -+ \032 in that order. On Unix and Cygwin systems, HOME is used.\n\ -+ \032 + Generalized diff preference so that it can be given either as\n\ -+ \032 just the command name to be used for calculating diffs or else\n\ -+ \032 a whole command line, containing the strings CURRENT1 and\n\ -+ \032 CURRENT2, which will be replaced by the names of the files to\n\ -+ \032 be diff\226\128\153ed before the command is called.\n\ -+ \032 + Recognize password prompts in some newer versions of ssh.\n\ -+ \n\ -+ \032 Changes since 2.9.20:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ -+ \032 * Major functionality changes:\n\ -+ \032 + Major tidying and enhancement of \226\128\153merge\226\128\153 functionality. The\n\ -+ \032 main user-visible change is that the external merge program\n\ -+ \032 may either write the merged output to a single new file, as\n\ -+ \032 before, or it may modify one or both of its input files, or it\n\ -+ \032 may write two new files. In the latter cases, its\n\ -+ \032 modifications will be copied back into place on both the local\n\ -+ \032 and the remote host, and (if the two files are now equal) the\n\ -+ \032 archive will be updated appropriately. More information can be\n\ -+ \032 found in the user manual. Thanks to Malo Denielou and Alan\n\ -+ \032 Schmitt for these improvements.\n\ -+ \032 Warning: the new merging functionality is not completely\n\ -+ \032 compatible with old versions! Check the manual for details.\n\ -+ \032 + Files larger than 2Gb are now supported.\n\ -+ \032 + Added preliminary (and still somewhat experimental) support\n\ -+ \032 for the Apple OS X operating system.\n\ -+ \032 o Resource forks should be transferred correctly. (See the\n\ -+ \032 manual for details of how this works when synchronizing\n\ -+ \032 HFS with non-HFS volumes.) Synchronization of file type\n\ -+ \032 and creator information is also supported.\n\ -+ \032 o On OSX systems, the name of the directory for storing\n\ -+ \032 Unison\226\128\153s archives, preference files, etc., is now\n\ -+ \032 determined as follows:\n\ -+ \032 # if ~/.unison exists, use it\n\ -+ \032 # otherwise, use ~/Library/Application Support/Unison,\n\ -+ \032 creating it if necessary.\n\ -+ \032 o A preliminary native-Cocoa user interface is under\n\ -+ \032 construction. This still needs some work, and some users\n\ -+ \032 experience unpredictable crashes, so it is only for\n\ -+ \032 hackers for now. Run make with UISTYLE=mac to build this\n\ -+ \032 interface.\n\ -+ \032 * Minor functionality changes:\n\ -+ \032 + Added an ignorelocks preference, which forces Unison to\n\ -+ \032 override left-over archive locks. (Setting this preference is\n\ -+ \032 dangerous! Use it only if you are positive you know what you\n\ -+ \032 are doing.)\n\ -+ \032 + Added a new preference assumeContentsAreImmutable. If a\n\ -+ \032 directory matches one of the patterns set in this preference,\n\ -+ \032 then update detection is skipped for files in this directory.\n\ -+ \032 (The purpose is to speed update detection for cases like Mail\n\ -+ \032 folders, which contain lots and lots of immutable files.) Also\n\ -+ \032 a preference assumeContentsAreImmutableNot, which overrides\n\ -+ \032 the first, similarly to ignorenot. (Later amendment: these\n\ -+ \032 preferences are now called immutable and immutablenot.)\n\ -+ \032 + The ignorecase flag has been changed from a boolean to a\n\ -+ \032 three-valued preference. The default setting, called default,\n\ -+ \032 checks the operating systems running on the client and server\n\ -+ \032 and ignores filename case if either of them is OSX or Windows.\n\ -+ \032 Setting ignorecase to true or false overrides this behavior.\n\ -+ \032 If you have been setting ignorecase on the command line using\n\ -+ \032 -ignorecase=true or -ignorecase=false, you will need to change\n\ -+ \032 to -ignorecase true or -ignorecase false.\n\ -+ \032 + a new preference, \226\128\153repeat\226\128\153, for the text user interface\n\ -+ \032 (only). If \226\128\153repeat\226\128\153 is set to a number, then, after it\n\ -+ \032 finishes synchronizing, Unison will wait for that many seconds\n\ -+ \032 and then start over, continuing this way until it is killed\n\ -+ \032 from outside. Setting repeat to true will automatically set\n\ -+ \032 the batch preference to true.\n\ -+ \032 + Excel files are now handled specially, so that the fastcheck\n\ -+ \032 optimization is skipped even if the fastcheck flag is set.\n\ -+ \032 (Excel does some naughty things with modtimes, making this\n\ -+ \032 optimization unreliable and leading to failures during change\n\ -+ \032 propagation.)\n\ -+ \032 + The ignorecase flag has been changed from a boolean to a\n\ -+ \032 three-valued preference. The default setting, called\n\ -+ \032 \226\128\153default\226\128\153, checks the operating systems running on the client\n\ -+ \032 and server and ignores filename case if either of them is OSX\n\ -+ \032 or Windows. Setting ignorecase to \226\128\153true\226\128\153 or \226\128\153false\226\128\153 overrides\n\ -+ \032 this behavior.\n\ -+ \032 + Added a new preference, \226\128\153repeat\226\128\153, for the text user interface\n\ -+ \032 (only, at the moment). If \226\128\153repeat\226\128\153 is set to a number, then,\n\ -+ \032 after it finishes synchronizing, Unison will wait for that\n\ -+ \032 many seconds and then start over, continuing this way until it\n\ -+ \032 is killed from outside. Setting repeat to true will\n\ -+ \032 automatically set the batch preference to true.\n\ -+ \032 + The \226\128\153rshargs\226\128\153 preference has been split into \226\128\153rshargs\226\128\153 and\n\ -+ \032 \226\128\153sshargs\226\128\153 (mainly to make the documentation clearer). In fact,\n\ -+ \032 \226\128\153rshargs\226\128\153 is no longer mentioned in the documentation at all,\n\ -+ \032 since pretty much everybody uses ssh now anyway.\n\ -+ \032 * Documentation\n\ -+ \032 + The web pages have been completely redesigned and reorganized.\n\ -+ \032 (Thanks to Alan Schmitt for help with this.)\n\ -+ \032 * User interface improvements\n\ -+ \032 + Added a GTK2 user interface, capable (among other things) of\n\ -+ \032 displaying filenames in any locale encoding. Kudos to Stephen\n\ -+ \032 Tse for contributing this code!\n\ -+ \032 + The text UI now prints a list of failed and skipped transfers\n\ -+ \032 at the end of synchronization.\n\ -+ \032 + Restarting update detection from the graphical UI will reload\n\ -+ \032 the current profile (which in particular will reset the -path\n\ -+ \032 preference, in case it has been narrowed by using the \226\128\156Recheck\n\ -+ \032 unsynchronized items\226\128\157 command).\n\ -+ \032 + Several small improvements to the text user interface,\n\ -+ \032 including a progress display.\n\ -+ \032 * Bug fixes (too numerous to count, actually, but here are some):\n\ -+ \032 + The maxthreads preference works now.\n\ -+ \032 + Fixed bug where warning message about uname returning an\n\ -+ \032 unrecognized result was preventing connection to server. (The\n\ -+ \032 warning is no longer printed, and all systems where \226\128\153uname\226\128\153\n\ -+ \032 returns anything other than \226\128\153Darwin\226\128\153 are assumed not to be\n\ -+ \032 running OS X.)\n\ -+ \032 + Fixed a problem on OS X that caused some valid file names\n\ -+ \032 (e.g., those including colons) to be considered invalid.\n\ -+ \032 + Patched Path.followLink to follow links under cygwin in\n\ -+ \032 addition to Unix (suggested by Matt Swift).\n\ -+ \032 + Small change to the storeRootsName function, suggested by\n\ -+ \032 bliviero at ichips.intel.com, to fix a problem in unison with\n\ -+ \032 the \226\128\152rootalias\226\128\153 option, which allows you to tell unison that\n\ -+ \032 two roots contain the same files. Rootalias was being applied\n\ -+ \032 after the hosts were sorted, so it wouldn\226\128\153t work properly in\n\ -+ \032 all cases.\n\ -+ \032 + Incorporated a fix by Dmitry Bely for setting utimes of\n\ -+ \032 read-only files on Win32 systems.\n\ -+ \032 * Installation / portability:\n\ -+ \032 + Unison now compiles with OCaml version 3.07 and later out of\n\ -+ \032 the box.\n\ -+ \032 + Makefile.OCaml fixed to compile out of the box under OpenBSD.\n\ -+ \032 + a few additional ports (e.g. OpenBSD, Zaurus/IPAQ) are now\n\ -+ \032 mentioned in the documentation\n\ -+ \032 + Unison can now be installed easily on OSX systems using the\n\ -+ \032 Fink package manager\n\ -+ \n\ -+ \032 Changes since 2.9.1:\n\ -+ \032 * Added a preference maxthreads that can be used to limit the number\n\ -+ \032 of simultaneous file transfers.\n\ -+ \032 * Added a backupdir preference, which controls where backup files are\n\ -+ \032 stored.\n\ -+ \032 * Basic support added for OSX. In particular, Unison now recognizes\n\ -+ \032 when one of the hosts being synchronized is running OSX and\n\ -+ \032 switches to a case-insensitive treatment of filenames (i.e., \226\128\153foo\226\128\153\n\ -+ \032 and \226\128\153FOO\226\128\153 are considered to be the same file). (OSX is not yet\n\ -+ \032 fully working, however: in particular, files with resource forks\n\ -+ \032 will not be synchronized correctly.)\n\ -+ \032 * The same hash used to form the archive name is now also added to\n\ -+ \032 the names of the temp files created during file transfer. The\n\ -+ \032 reason for this is that, during update detection, we are going to\n\ -+ \032 silently delete any old temp files that we find along the way, and\n\ -+ \032 we want to prevent ourselves from deleting temp files belonging to\n\ -+ \032 other instances of Unison that may be running in parallel, e.g.\n\ -+ \032 synchronizing with a different host. Thanks to Ruslan Ermilov for\n\ -+ \032 this suggestion.\n\ -+ \032 * Several small user interface improvements\n\ -+ \032 * Documentation\n\ -+ \032 + FAQ and bug reporting instructions have been split out as\n\ -+ \032 separate HTML pages, accessible directly from the unison web\n\ -+ \032 page.\n\ -+ \032 + Additions to FAQ, in particular suggestions about performance\n\ -+ \032 tuning.\n\ -+ \032 * Makefile\n\ -+ \032 + Makefile.OCaml now sets UISTYLE=text or UISTYLE=gtk\n\ -+ \032 automatically, depending on whether it finds lablgtk installed\n\ -+ \032 + Unison should now compile \226\128\156out of the box\226\128\157 under OSX\n\ -+ \n\ -+ \032 Changes since 2.8.1:\n\ -+ \032 * Changing profile works again under Windows\n\ -+ \032 * File movement optimization: Unison now tries to use local copy\n\ -+ \032 instead of transfer for moved or copied files. It is controled by a\n\ -+ \032 boolean option \226\128\156xferbycopying\226\128\157.\n\ -+ \032 * Network statistics window (transfer rate, amount of data\n\ -+ \032 transferred). [NB: not available in Windows-Cygwin version.]\n\ -+ \032 * symlinks work under the cygwin version (which is dynamically\n\ -+ \032 linked).\n\ -+ \032 * Fixed potential deadlock when synchronizing between Windows and\n\ -+ \032 Unix\n\ -+ \032 * Small improvements:\n\ -+ \032 + If neither the USERPROFILE nor the HOME environment variables\n\ -+ \032 are set, then Unison will put its temporary commit log (called\n\ -+ \032 DANGER.README) into the directory named by the UNISON\n\ -+ \032 environment variable, if any; otherwise it will use C:.\n\ -+ \032 + alternative set of values for fastcheck: yes = true; no =\n\ -+ \032 false; default = auto.\n\ -+ \032 + -silent implies -contactquietly\n\ -+ \032 * Source code:\n\ -+ \032 + Code reorganization and tidying. (Started breaking up some of\n\ -+ \032 the basic utility modules so that the non-unison-specific\n\ -+ \032 stuff can be made available for other projects.)\n\ -+ \032 + several Makefile and docs changes (for release);\n\ -+ \032 + further comments in \226\128\156update.ml\226\128\157;\n\ -+ \032 + connection information is not stored in global variables\n\ -+ \032 anymore.\n\ -+ \n\ -+ \032 Changes since 2.7.78:\n\ -+ \032 * Small bugfix to textual user interface under Unix (to avoid leaving\n\ -+ \032 the terminal in a bad state where it would not echo inputs after\n\ -+ \032 Unison exited).\n\ -+ \n\ -+ \032 Changes since 2.7.39:\n\ -+ \032 * Improvements to the main web page (stable and beta version docs are\n\ -+ \032 now both accessible).\n\ -+ \032 * User manual revised.\n\ -+ \032 * Added some new preferences:\n\ -+ \032 + \226\128\156sshcmd\226\128\157 and \226\128\156rshcmd\226\128\157 for specifying paths to ssh and rsh\n\ -+ \032 programs.\n\ -+ \032 + \226\128\156contactquietly\226\128\157 for suppressing the \226\128\156contacting server\226\128\157\n\ -+ \032 message during Unison startup (under the graphical UI).\n\ -+ \032 * Bug fixes:\n\ -+ \032 + Fixed small bug in UI that neglected to change the displayed\n\ -+ \032 column headers if loading a new profile caused the roots to\n\ -+ \032 change.\n\ -+ \032 + Fixed a bug that would put the text UI into an infinite loop\n\ -+ \032 if it encountered a conflict when run in batch mode.\n\ -+ \032 + Added some code to try to fix the display of non-Ascii\n\ -+ \032 characters in filenames on Windows systems in the GTK UI.\n\ -+ \032 (This code is currently untested\226\128\148if you\226\128\153re one of the people\n\ -+ \032 that had reported problems with display of non-ascii\n\ -+ \032 filenames, we\226\128\153d appreciate knowing if this actually fixes\n\ -+ \032 things.)\n\ -+ \032 + \226\128\152-prefer/-force newer\226\128\153 works properly now. (The bug was\n\ -+ \032 reported by Sebastian Urbaniak and Sean Fulton.)\n\ -+ \032 * User interface and Unison behavior:\n\ -+ \032 + Renamed \226\128\152Proceed\226\128\153 to \226\128\152Go\226\128\153 in the graphical UI.\n\ -+ \032 + Added exit status for the textual user interface.\n\ -+ \032 + Paths that are not synchronized because of conflicts or errors\n\ -+ \032 during update detection are now noted in the log file.\n\ -+ \032 + [END] messages in log now use a briefer format\n\ -+ \032 + Changed the text UI startup sequence so that ./unison -ui text\n\ -+ \032 will use the default profile instead of failing.\n\ -+ \032 + Made some improvements to the error messages.\n\ -+ \032 + Added some debugging messages to remote.ml.\n\ -+ \n\ -+ \032 Changes since 2.7.7:\n\ -+ \032 * Incorporated, once again, a multi-threaded transport sub-system. It\n\ -+ \032 transfers several files at the same time, thereby making much more\n\ -+ \032 effective use of available network bandwidth. Unlike the earlier\n\ -+ \032 attempt, this time we do not rely on the native thread library of\n\ -+ \032 OCaml. Instead, we implement a light-weight, non-preemptive\n\ -+ \032 multi-thread library in OCaml directly. This version appears\n\ -+ \032 stable.\n\ -+ \032 Some adjustments to unison are made to accommodate the\n\ -+ \032 multi-threaded version. These include, in particular, changes to\n\ -+ \032 the user interface and logging, for example:\n\ -+ \032 + Two log entries for each transferring task, one for the\n\ -+ \032 beginning, one for the end.\n\ -+ \032 + Suppressed warning messages against removing temp files left\n\ -+ \032 by a previous unison run, because warning does not work nicely\n\ -+ \032 under multi-threading. The temp file names are made less\n\ -+ \032 likely to coincide with the name of a file created by the\n\ -+ \032 user. They take the form\n\ -+ \032 .#..unison.tmp. [N.b. This was later changed\n\ -+ \032 to .unison...unison.tmp.]\n\ -+ \032 * Added a new command to the GTK user interface: pressing \226\128\153f\226\128\153 causes\n\ -+ \032 Unison to start a new update detection phase, using as paths just\n\ -+ \032 those paths that have been detected as changed and not yet marked\n\ -+ \032 as successfully completed. Use this command to quickly restart\n\ -+ \032 Unison on just the set of paths still needing attention after a\n\ -+ \032 previous run.\n\ -+ \032 * Made the ignorecase preference user-visible, and changed the\n\ -+ \032 initialization code so that it can be manually set to true, even if\n\ -+ \032 neither host is running Windows. (This may be useful, e.g., when\n\ -+ \032 using Unison running on a Unix system with a FAT volume mounted.)\n\ -+ \032 * Small improvements and bug fixes:\n\ -+ \032 + Errors in preference files now generate fatal errors rather\n\ -+ \032 than warnings at startup time. (I.e., you can\226\128\153t go on from\n\ -+ \032 them.) Also, we fixed a bug that was preventing these warnings\n\ -+ \032 from appearing in the text UI, so some users who have been\n\ -+ \032 running (unsuspectingly) with garbage in their prefs files may\n\ -+ \032 now get error reports.\n\ -+ \032 + Error reporting for preference files now provides file name\n\ -+ \032 and line number.\n\ -+ \032 + More intelligible message in the case of identical change to\n\ -+ \032 the same files: \226\128\156Nothing to do: replicas have been changed\n\ -+ \032 only in identical ways since last sync.\226\128\157\n\ -+ \032 + Files with prefix \226\128\153.#\226\128\153 excluded when scanning for preference\n\ -+ \032 files.\n\ -+ \032 + Rsync instructions are send directly instead of first\n\ -+ \032 marshaled.\n\ -+ \032 + Won\226\128\153t try forever to get the fingerprint of a continuously\n\ -+ \032 changing file: unison will give up after certain number of\n\ -+ \032 retries.\n\ -+ \032 + Other bug fixes, including the one reported by Peter Selinger\n\ -+ \032 (force=older preference not working).\n\ -+ \032 * Compilation:\n\ -+ \032 + Upgraded to the new OCaml 3.04 compiler, with the LablGtk\n\ -+ \032 1.2.3 library (patched version used for compiling under\n\ -+ \032 Windows).\n\ -+ \032 + Added the option to compile unison on the Windows platform\n\ -+ \032 with Cygwin GNU C compiler. This option only supports building\n\ -+ \032 dynamically linked unison executables.\n\ -+ \n\ -+ \032 Changes since 2.7.4:\n\ -+ \032 * Fixed a silly (but debilitating) bug in the client startup\n\ -+ \032 sequence.\n\ -+ \n\ -+ \032 Changes since 2.7.1:\n\ -+ \032 * Added addprefsto preference, which (when set) controls which\n\ -+ \032 preference file new preferences (e.g. new ignore patterns) are\n\ -+ \032 added to.\n\ -+ \032 * Bug fix: read the initial connection header one byte at a time, so\n\ -+ \032 that we don\226\128\153t block if the header is shorter than expected. (This\n\ -+ \032 bug did not affect normal operation \226\128\148 it just made it hard to tell\n\ -+ \032 when you were trying to use Unison incorrectly with an old version\n\ -+ \032 of the server, since it would hang instead of giving an error\n\ -+ \032 message.)\n\ -+ \n\ -+ \032 Changes since 2.6.59:\n\ -+ \032 * Changed fastcheck from a boolean to a string preference. Its legal\n\ -+ \032 values are yes (for a fast check), no (for a safe check), or\n\ -+ \032 default (for a fast check\226\128\148which also happens to be safe\226\128\148when\n\ -+ \032 running on Unix and a safe check when on Windows). The default is\n\ -+ \032 default.\n\ -+ \032 * Several preferences have been renamed for consistency. All\n\ -+ \032 preference names are now spelled out in lowercase. For backward\n\ -+ \032 compatibility, the old names still work, but they are not mentioned\n\ -+ \032 in the manual any more.\n\ -+ \032 * The temp files created by the \226\128\153diff\226\128\153 and \226\128\153merge\226\128\153 commands are now\n\ -+ \032 named by prepending a new prefix to the file name, rather than\n\ -+ \032 appending a suffix. This should avoid confusing diff/merge programs\n\ -+ \032 that depend on the suffix to guess the type of the file contents.\n\ -+ \032 * We now set the keepalive option on the server socket, to make sure\n\ -+ \032 that the server times out if the communication link is unexpectedly\n\ -+ \032 broken.\n\ -+ \032 * Bug fixes:\n\ -+ \032 + When updating small files, Unison now closes the destination\n\ -+ \032 file.\n\ -+ \032 + File permissions are properly updated when the file is behind\n\ -+ \032 a followed link.\n\ -+ \032 + Several other small fixes.\n\ -+ \n\ -+ \032 Changes since 2.6.38:\n\ -+ \032 * Major Windows performance improvement!\n\ -+ \032 We\226\128\153ve added a preference fastcheck that makes Unison look only at a\n\ -+ \032 file\226\128\153s creation time and last-modified time to check whether it has\n\ -+ \032 changed. This should result in a huge speedup when checking for\n\ -+ \032 updates in large replicas.\n\ -+ \032 When this switch is set, Unison will use file creation times as\n\ -+ \032 \226\128\153pseudo inode numbers\226\128\153 when scanning Windows replicas for updates,\n\ -+ \032 instead of reading the full contents of every file. This may cause\n\ -+ \032 Unison to miss propagating an update if the create time,\n\ -+ \032 modification time, and length of the file are all unchanged by the\n\ -+ \032 update (this is not easy to achieve, but it can be done). However,\n\ -+ \032 Unison will never overwrite such an update with a change from the\n\ -+ \032 other replica, since it always does a safe check for updates just\n\ -+ \032 before propagating a change. Thus, it is reasonable to use this\n\ -+ \032 switch most of the time and occasionally run Unison once with\n\ -+ \032 fastcheck set to false, if you are worried that Unison may have\n\ -+ \032 overlooked an update.\n\ -+ \032 Warning: This change is has not yet been thoroughly field-tested.\n\ -+ \032 If you set the fastcheck preference, pay careful attention to what\n\ -+ \032 Unison is doing.\n\ -+ \032 * New functionality: centralized backups and merging\n\ -+ \032 + This version incorporates two pieces of major new\n\ -+ \032 functionality, implemented by Sylvain Roy during a summer\n\ -+ \032 internship at Penn: a centralized backup facility that keeps a\n\ -+ \032 full backup of (selected files in) each replica, and a merging\n\ -+ \032 feature that allows Unison to invoke an external file-merging\n\ -+ \032 tool to resolve conflicting changes to individual files.\n\ -+ \032 + Centralized backups:\n\ -+ \032 o Unison now maintains full backups of the\n\ -+ \032 last-synchronized versions of (some of) the files in each\n\ -+ \032 replica; these function both as backups in the usual\n\ -+ \032 sense and as the \226\128\156common version\226\128\157 when invoking external\n\ -+ \032 merge programs.\n\ -+ \032 o The backed up files are stored in a directory\n\ -+ \032 /.unison/backup on each host. (The name of this directory\n\ -+ \032 can be changed by setting the environment variable\n\ -+ \032 UNISONBACKUPDIR.)\n\ -+ \032 o The predicate backup controls which files are actually\n\ -+ \032 backed up: giving the preference \226\128\153backup = Path *\226\128\153 causes\n\ -+ \032 backing up of all files.\n\ -+ \032 o Files are added to the backup directory whenever unison\n\ -+ \032 updates its archive. This means that\n\ -+ \032 # When unison reconstructs its archive from scratch\n\ -+ \032 (e.g., because of an upgrade, or because the archive\n\ -+ \032 files have been manually deleted), all files will be\n\ -+ \032 backed up.\n\ -+ \032 # Otherwise, each file will be backed up the first\n\ -+ \032 time unison propagates an update for it.\n\ -+ \032 o The preference backupversions controls how many previous\n\ -+ \032 versions of each file are kept. The default is 2 (i.e.,\n\ -+ \032 the last synchronized version plus one backup).\n\ -+ \032 o For backward compatibility, the backups preference is\n\ -+ \032 also still supported, but backup is now preferred.\n\ -+ \032 o It is OK to manually delete files from the backup\n\ -+ \032 directory (or to throw away the directory itself). Before\n\ -+ \032 unison uses any of these files for anything important, it\n\ -+ \032 checks that its fingerprint matches the one that it\n\ -+ \032 expects.\n\ -+ \032 + Merging:\n\ -+ \032 o Both user interfaces offer a new \226\128\153merge\226\128\153 command, invoked\n\ -+ \032 by pressing \226\128\153m\226\128\153 (with a changed file selected).\n\ -+ \032 o The actual merging is performed by an external program.\n\ -+ \032 The preferences merge and merge2 control how this program\n\ -+ \032 is invoked. If a backup exists for this file (see the\n\ -+ \032 backup preference), then the merge preference is used for\n\ -+ \032 this purpose; otherwise merge2 is used. In both cases,\n\ -+ \032 the value of the preference should be a string\n\ -+ \032 representing the command that should be passed to a shell\n\ -+ \032 to invoke the merge program. Within this string, the\n\ -+ \032 special substrings CURRENT1, CURRENT2, NEW, and OLD may\n\ -+ \032 appear at any point. Unison will substitute these as\n\ -+ \032 follows before invoking the command:\n\ -+ \032 # CURRENT1 is replaced by the name of the local copy\n\ -+ \032 of the file;\n\ -+ \032 # CURRENT2 is replaced by the name of a temporary\n\ -+ \032 file, into which the contents of the remote copy of\n\ -+ \032 the file have been transferred by Unison prior to\n\ -+ \032 performing the merge;\n\ -+ \032 # NEW is replaced by the name of a temporary file that\n\ -+ \032 Unison expects to be written by the merge program\n\ -+ \032 when it finishes, giving the desired new contents of\n\ -+ \032 the file; and\n\ -+ \032 # OLD is replaced by the name of the backed up copy of\n\ -+ \032 the original version of the file (i.e., its state at\n\ -+ \032 the end of the last successful run of Unison), if\n\ -+ \032 one exists (applies only to merge, not merge2).\n\ -+ \032 For example, on Unix systems setting the merge preference\n\ -+ \032 to\n\ -+ \032 merge = diff3 -m CURRENT1 OLD CURRENT2 > NEW\n\ -+ \n\ -+ \032 will tell Unison to use the external diff3 program for\n\ -+ \032 merging.\n\ -+ \032 A large number of external merging programs are\n\ -+ \032 available. For example, emacs users may find the\n\ -+ \032 following convenient:\n\ -+ \032 merge2 = emacs -q --eval '(ediff-merge-files \"CURRENT1\" \"CURRENT2\"\n\ -+ \032 nil \"NEW\")'\n\ -+ \032 merge = emacs -q --eval '(ediff-merge-files-with-ancestor\n\ -+ \032 \"CURRENT1\" \"CURRENT2\" \"OLD\" nil \"NEW\")'\n\ -+ \n\ -+ \032 (These commands are displayed here on two lines to avoid\n\ -+ \032 running off the edge of the page. In your preference\n\ -+ \032 file, each should be written on a single line.)\n\ -+ \032 o If the external program exits without leaving any file at\n\ -+ \032 the path NEW, Unison considers the merge to have failed.\n\ -+ \032 If the merge program writes a file called NEW but exits\n\ -+ \032 with a non-zero status code, then Unison considers the\n\ -+ \032 merge to have succeeded but to have generated conflicts.\n\ -+ \032 In this case, it attempts to invoke an external editor so\n\ -+ \032 that the user can resolve the conflicts. The value of the\n\ -+ \032 editor preference controls what editor is invoked by\n\ -+ \032 Unison. The default is emacs.\n\ -+ \032 o Please send us suggestions for other useful values of the\n\ -+ \032 merge2 and merge preferences \226\128\147 we\226\128\153d like to give several\n\ -+ \032 examples in the manual.\n\ -+ \032 * Smaller changes:\n\ -+ \032 + When one preference file includes another, unison no longer\n\ -+ \032 adds the suffix \226\128\153.prf\226\128\153 to the included file by default. If a\n\ -+ \032 file with precisely the given name exists in the .unison\n\ -+ \032 directory, it will be used; otherwise Unison will add .prf, as\n\ -+ \032 it did before. (This change means that included preference\n\ -+ \032 files can be named blah.include instead of blah.prf, so that\n\ -+ \032 unison will not offer them in its \226\128\153choose a preference file\226\128\153\n\ -+ \032 dialog.)\n\ -+ \032 + For Linux systems, we now offer both a statically linked and a\n\ -+ \032 dynamically linked executable. The static one is larger, but\n\ -+ \032 will probably run on more systems, since it doesn\226\128\153t depend on\n\ -+ \032 the same versions of dynamically linked library modules being\n\ -+ \032 available.\n\ -+ \032 + Fixed the force and prefer preferences, which were getting the\n\ -+ \032 propagation direction exactly backwards.\n\ -+ \032 + Fixed a bug in the startup code that would cause unison to\n\ -+ \032 crash when the default profile (~/.unison/default.prf) does\n\ -+ \032 not exist.\n\ -+ \032 + Fixed a bug where, on the run when a profile is first created,\n\ -+ \032 Unison would confusingly display the roots in reverse order in\n\ -+ \032 the user interface.\n\ -+ \032 * For developers:\n\ -+ \032 + We\226\128\153ve added a module dependency diagram to the source\n\ -+ \032 distribution, in src/DEPENDENCIES.ps, to help new prospective\n\ -+ \032 developers with navigating the code.\n\ -+ \n\ -+ \032 Changes since 2.6.11:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ -+ \032 * INCOMPATIBLE CHANGE: The startup sequence has been completely\n\ -+ \032 rewritten and greatly simplified. The main user-visible change is\n\ -+ \032 that the defaultpath preference has been removed. Its effect can be\n\ -+ \032 approximated by using multiple profiles, with include directives to\n\ -+ \032 incorporate common settings. All uses of defaultpath in existing\n\ -+ \032 profiles should be changed to path.\n\ -+ \032 Another change in startup behavior that will affect some users is\n\ -+ \032 that it is no longer possible to specify roots both in the profile\n\ -+ \032 and on the command line.\n\ -+ \032 You can achieve a similar effect, though, by breaking your profile\n\ -+ \032 into two:\n\ -+ \n\ -+ \032 default.prf =\n\ -+ \032 root = blah\n\ -+ \032 root = foo\n\ -+ \032 include common\n\ -+ \n\ -+ \032 common.prf =\n\ -+ \032 \n\ -+ \n\ -+ \032 Now do\n\ -+ \032 unison common root1 root2\n\ -+ \n\ -+ \032 when you want to specify roots explicitly.\n\ -+ \032 * The -prefer and -force options have been extended to allow users to\n\ -+ \032 specify that files with more recent modtimes should be propagated,\n\ -+ \032 writing either -prefer newer or -force newer. (For symmetry, Unison\n\ -+ \032 will also accept -prefer older or -force older.) The -force\n\ -+ \032 older/newer options can only be used when -times is also set.\n\ -+ \032 The graphical user interface provides access to these facilities on\n\ -+ \032 a one-off basis via the Actions menu.\n\ -+ \032 * Names of roots can now be \226\128\156aliased\226\128\157 to allow replicas to be\n\ -+ \032 relocated without changing the name of the archive file where\n\ -+ \032 Unison stores information between runs. (This feature is for\n\ -+ \032 experts only. See the \226\128\156Archive Files\226\128\157 section of the manual for\n\ -+ \032 more information.)\n\ -+ \032 * Graphical user-interface:\n\ -+ \032 + A new command is provided in the Synchronization menu for\n\ -+ \032 switching to a new profile without restarting Unison from\n\ -+ \032 scratch.\n\ -+ \032 + The GUI also supports one-key shortcuts for commonly used\n\ -+ \032 profiles. If a profile contains a preference of the form \226\128\153key\n\ -+ \032 = n\226\128\153, where n is a single digit, then pressing this key will\n\ -+ \032 cause Unison to immediately switch to this profile and begin\n\ -+ \032 synchronization again from scratch. (Any actions that may have\n\ -+ \032 been selected for a set of changes currently being displayed\n\ -+ \032 will be discarded.)\n\ -+ \032 + Each profile may include a preference \226\128\153label = \226\128\153\n\ -+ \032 giving a descriptive string that described the options\n\ -+ \032 selected in this profile. The string is listed along with the\n\ -+ \032 profile name in the profile selection dialog, and displayed in\n\ -+ \032 the top-right corner of the main Unison window.\n\ -+ \032 * Minor:\n\ -+ \032 + Fixed a bug that would sometimes cause the \226\128\153diff\226\128\153 display to\n\ -+ \032 order the files backwards relative to the main user interface.\n\ -+ \032 (Thanks to Pascal Brisset for this fix.)\n\ -+ \032 + On Unix systems, the graphical version of Unison will check\n\ -+ \032 the DISPLAY variable and, if it is not set, automatically fall\n\ -+ \032 back to the textual user interface.\n\ -+ \032 + Synchronization paths (path preferences) are now matched\n\ -+ \032 against the ignore preferences. So if a path is both specified\n\ -+ \032 in a path preference and ignored, it will be skipped.\n\ -+ \032 + Numerous other bugfixes and small improvements.\n\ -+ \n\ -+ \032 Changes since 2.6.1:\n\ -+ \032 * The synchronization of modification times has been disabled for\n\ -+ \032 directories.\n\ -+ \032 * Preference files may now include lines of the form include ,\n\ -+ \032 which will cause name.prf to be read at that point.\n\ -+ \032 * The synchronization of permission between Windows and Unix now\n\ -+ \032 works properly.\n\ -+ \032 * A binding CYGWIN=binmode in now added to the environment so that\n\ -+ \032 the Cygwin port of OpenSSH works properly in a non-Cygwin context.\n\ -+ \032 * The servercmd and addversionno preferences can now be used\n\ -+ \032 together: -addversionno appends an appropriate -NNN to the server\n\ -+ \032 command, which is found by using the value of the -servercmd\n\ -+ \032 preference if there is one, or else just unison.\n\ -+ \032 * Both '-pref=val' and '-pref val' are now allowed for boolean\n\ -+ \032 values. (The former can be used to set a preference to false.)\n\ -+ \032 * Lot of small bugs fixed.\n\ -+ \n\ -+ \032 Changes since 2.5.31:\n\ -+ \032 * The log preference is now set to true by default, since the log\n\ -+ \032 file seems useful for most users.\n\ -+ \032 * Several miscellaneous bugfixes (most involving symlinks).\n\ -+ \n\ -+ \032 Changes since 2.5.25:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed (again).\n\ -+ \032 * Several significant bugs introduced in 2.5.25 have been fixed.\n\ -+ \n\ -+ \032 Changes since 2.5.1:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * New functionality:\n\ -+ \032 + Unison now synchronizes file modtimes, user-ids, and\n\ -+ \032 group-ids.\n\ -+ \032 These new features are controlled by a set of new preferences,\n\ -+ \032 all of which are currently false by default.\n\ -+ \032 o When the times preference is set to true, file\n\ -+ \032 modification times are propaged. (Because the\n\ -+ \032 representations of time may not have the same granularity\n\ -+ \032 on both replicas, Unison may not always be able to make\n\ -+ \032 the modtimes precisely equal, but it will get them as\n\ -+ \032 close as the operating systems involved allow.)\n\ -+ \032 o When the owner preference is set to true, file ownership\n\ -+ \032 information is synchronized.\n\ -+ \032 o When the group preference is set to true, group\n\ -+ \032 information is synchronized.\n\ -+ \032 o When the numericIds preference is set to true, owner and\n\ -+ \032 group information is synchronized numerically. By\n\ -+ \032 default, owner and group numbers are converted to names\n\ -+ \032 on each replica and these names are synchronized. (The\n\ -+ \032 special user id 0 and the special group 0 are never\n\ -+ \032 mapped via user/group names even if this preference is\n\ -+ \032 not set.)\n\ -+ \032 + Added an integer-valued preference perms that can be used to\n\ -+ \032 control the propagation of permission bits. The value of this\n\ -+ \032 preference is a mask indicating which permission bits should\n\ -+ \032 be synchronized. It is set by default to 0o1777: all bits but\n\ -+ \032 the set-uid and set-gid bits are synchronised (synchronizing\n\ -+ \032 theses latter bits can be a security hazard). If you want to\n\ -+ \032 synchronize all bits, you can set the value of this preference\n\ -+ \032 to \226\136\1461.\n\ -+ \032 + Added a log preference (default false), which makes Unison\n\ -+ \032 keep a complete record of the changes it makes to the\n\ -+ \032 replicas. By default, this record is written to a file called\n\ -+ \032 unison.log in the user\226\128\153s home directory (the value of the HOME\n\ -+ \032 environment variable). If you want it someplace else, set the\n\ -+ \032 logfile preference to the full pathname you want Unison to\n\ -+ \032 use.\n\ -+ \032 + Added an ignorenot preference that maintains a set of patterns\n\ -+ \032 for paths that should definitely not be ignored, whether or\n\ -+ \032 not they match an ignore pattern. (That is, a path will now be\n\ -+ \032 ignored iff it matches an ignore pattern and does not match\n\ -+ \032 any ignorenot patterns.)\n\ -+ \032 * User-interface improvements:\n\ -+ \032 + Roots are now displayed in the user interface in the same\n\ -+ \032 order as they were given on the command line or in the\n\ -+ \032 preferences file.\n\ -+ \032 + When the batch preference is set, the graphical user interface\n\ -+ \032 no longer waits for user confirmation when it displays a\n\ -+ \032 warning message: it simply pops up an advisory window with a\n\ -+ \032 Dismiss button at the bottom and keeps on going.\n\ -+ \032 + Added a new preference for controlling how many status\n\ -+ \032 messages are printed during update detection: statusdepth\n\ -+ \032 controls the maximum depth for paths on the local machine\n\ -+ \032 (longer paths are not displayed, nor are non-directory paths).\n\ -+ \032 The value should be an integer; default is 1.\n\ -+ \032 + Removed the trace and silent preferences. They did not seem\n\ -+ \032 very useful, and there were too many preferences for\n\ -+ \032 controlling output in various ways.\n\ -+ \032 + The text UI now displays just the default command (the one\n\ -+ \032 that will be used if the user just types ) instead of\n\ -+ \032 all available commands. Typing ? will print the full list of\n\ -+ \032 possibilities.\n\ -+ \032 + The function that finds the canonical hostname of the local\n\ -+ \032 host (which is used, for example, in calculating the name of\n\ -+ \032 the archive file used to remember which files have been\n\ -+ \032 synchronized) normally uses the gethostname operating system\n\ -+ \032 call. However, if the environment variable UNISONLOCALHOSTNAME\n\ -+ \032 is set, its value will now be used instead. This makes it\n\ -+ \032 easier to use Unison in situations where a machine\226\128\153s name\n\ -+ \032 changes frequently (e.g., because it is a laptop and gets\n\ -+ \032 moved around a lot).\n\ -+ \032 + File owner and group are now displayed in the \226\128\156detail window\226\128\157\n\ -+ \032 at the bottom of the screen, when unison is configured to\n\ -+ \032 synchronize them.\n\ -+ \032 * For hackers:\n\ -+ \032 + Updated to Jacques Garrigue\226\128\153s new version of lablgtk, which\n\ -+ \032 means we can throw away our local patched version.\n\ -+ \032 If you\226\128\153re compiling the GTK version of unison from sources,\n\ -+ \032 you\226\128\153ll need to update your copy of lablgtk to the developers\n\ -+ \032 release. (Warning: installing lablgtk under Windows is\n\ -+ \032 currently a bit challenging.)\n\ -+ \032 + The TODO.txt file (in the source distribution) has been\n\ -+ \032 cleaned up and reorganized. The list of pending tasks should\n\ -+ \032 be much easier to make sense of, for people that may want to\n\ -+ \032 contribute their programming energies. There is also a\n\ -+ \032 separate file BUGS.txt for open bugs.\n\ -+ \032 + The Tk user interface has been removed (it was not being\n\ -+ \032 maintained and no longer compiles).\n\ -+ \032 + The debug preference now prints quite a bit of additional\n\ -+ \032 information that should be useful for identifying sources of\n\ -+ \032 problems.\n\ -+ \032 + The version number of the remote server is now checked right\n\ -+ \032 away during the connection setup handshake, rather than later.\n\ -+ \032 (Somebody sent a bug report of a server crash that turned out\n\ -+ \032 to come from using inconsistent versions: better to check this\n\ -+ \032 earlier and in a way that can\226\128\153t crash either client or\n\ -+ \032 server.)\n\ -+ \032 + Unison now runs correctly on 64-bit architectures (e.g. Alpha\n\ -+ \032 linux). We will not be distributing binaries for these\n\ -+ \032 architectures ourselves (at least for a while) but if someone\n\ -+ \032 would like to make them available, we\226\128\153ll be glad to provide a\n\ -+ \032 link to them.\n\ -+ \032 * Bug fixes:\n\ -+ \032 + Pattern matching (e.g. for ignore) is now case-insensitive\n\ -+ \032 when Unison is in case-insensitive mode (i.e., when one of the\n\ -+ \032 replicas is on a windows machine).\n\ -+ \032 + Some people had trouble with mysterious failures during\n\ -+ \032 propagation of updates, where files would be falsely reported\n\ -+ \032 as having changed during synchronization. This should be\n\ -+ \032 fixed.\n\ -+ \032 + Numerous smaller fixes.\n\ -+ \n\ -+ \032 Changes since 2.4.1:\n\ -+ \032 * Added a number of \226\128\153sorting modes\226\128\153 for the user interface. By\n\ -+ \032 default, conflicting changes are displayed at the top, and the rest\n\ -+ \032 of the entries are sorted in alphabetical order. This behavior can\n\ -+ \032 be changed in the following ways:\n\ -+ \032 + Setting the sortnewfirst preference to true causes newly\n\ -+ \032 created files to be displayed before changed files.\n\ -+ \032 + Setting sortbysize causes files to be displayed in increasing\n\ -+ \032 order of size.\n\ -+ \032 + Giving the preference sortfirst= (where is\n\ -+ \032 a path descriptor in the same format as \226\128\153ignore\226\128\153 and \226\128\153follow\226\128\153\n\ -+ \032 patterns, causes paths matching this pattern to be displayed\n\ -+ \032 first.\n\ -+ \032 + Similarly, giving the preference sortlast= causes\n\ -+ \032 paths matching this pattern to be displayed last.\n\ -+ \032 The sorting preferences are described in more detail in the user\n\ -+ \032 manual. The sortnewfirst and sortbysize flags can also be accessed\n\ -+ \032 from the \226\128\153Sort\226\128\153 menu in the grpahical user interface.\n\ -+ \032 * Added two new preferences that can be used to change unison\226\128\153s\n\ -+ \032 fundamental behavior to make it more like a mirroring tool instead\n\ -+ \032 of a synchronizer.\n\ -+ \032 + Giving the preference prefer with argument (by adding\n\ -+ \032 -prefer to the command line or prefer=) to your\n\ -+ \032 profile) means that, if there is a conflict, the contents of\n\ -+ \032 should be propagated to the other replica (with no\n\ -+ \032 questions asked). Non-conflicting changes are treated as\n\ -+ \032 usual.\n\ -+ \032 + Giving the preference force with argument will make\n\ -+ \032 unison resolve all differences in favor of the given root,\n\ -+ \032 even if it was the other replica that was changed.\n\ -+ \032 These options should be used with care! (More information is\n\ -+ \032 available in the manual.)\n\ -+ \032 * Small changes:\n\ -+ \032 + Changed default answer to \226\128\153Yes\226\128\153 in all two-button dialogs in\n\ -+ \032 the graphical interface (this seems more intuitive).\n\ -+ \032 + The rsync preference has been removed (it was used to activate\n\ -+ \032 rsync compression for file transfers, but rsync compression is\n\ -+ \032 now enabled by default).\n\ -+ \032 + In the text user interface, the arrows indicating which\n\ -+ \032 direction changes are being propagated are printed differently\n\ -+ \032 when the user has overridded Unison\226\128\153s default recommendation\n\ -+ \032 (====> instead of ---->). This matches the behavior of the\n\ -+ \032 graphical interface, which displays such arrows in a different\n\ -+ \032 color.\n\ -+ \032 + Carriage returns (Control-M\226\128\153s) are ignored at the ends of\n\ -+ \032 lines in profiles, for Windows compatibility.\n\ -+ \032 + All preferences are now fully documented in the user manual.\n\ -+ \n\ -+ \032 Changes since 2.3.12:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * New/improved functionality:\n\ -+ \032 + A new preference -sortbysize controls the order in which\n\ -+ \032 changes are displayed to the user: when it is set to true, the\n\ -+ \032 smallest changed files are displayed first. (The default\n\ -+ \032 setting is false.)\n\ -+ \032 + A new preference -sortnewfirst causes newly created files to\n\ -+ \032 be listed before other updates in the user interface.\n\ -+ \032 + We now allow the ssh protocol to specify a port.\n\ -+ \032 + Incompatible change: The unison: protocol is deprecated, and\n\ -+ \032 we added file: and socket:. You may have to modify your\n\ -+ \032 profiles in the .unison directory. If a replica is specified\n\ -+ \032 without an explicit protocol, we now assume it refers to a\n\ -+ \032 file. (Previously \"//saul/foo\" meant to use SSH to connect to\n\ -+ \032 saul, then access the foo directory. Now it means to access\n\ -+ \032 saul via a remote file mechanism such as samba; the old effect\n\ -+ \032 is now achieved by writing ssh://saul/foo.)\n\ -+ \032 + Changed the startup sequence for the case where roots are\n\ -+ \032 given but no profile is given on the command line. The new\n\ -+ \032 behavior is to use the default profile (creating it if it does\n\ -+ \032 not exist), and temporarily override its roots. The manual\n\ -+ \032 claimed that this case would work by reading no profile at\n\ -+ \032 all, but AFAIK this was never true.\n\ -+ \032 + In all user interfaces, files with conflicts are always listed\n\ -+ \032 first\n\ -+ \032 + A new preference \226\128\153sshversion\226\128\153 can be used to control which\n\ -+ \032 version of ssh should be used to connect to the server. Legal\n\ -+ \032 values are 1 and 2. (Default is empty, which will make unison\n\ -+ \032 use whatever version of ssh is installed as the default \226\128\153ssh\226\128\153\n\ -+ \032 command.)\n\ -+ \032 + The situation when the permissions of a file was updated the\n\ -+ \032 same on both side is now handled correctly (we used to report\n\ -+ \032 a spurious conflict)\n\ -+ \032 * Improvements for the Windows version:\n\ -+ \032 + The fact that filenames are treated case-insensitively under\n\ -+ \032 Windows should now be handled correctly. The exact behavior is\n\ -+ \032 described in the cross-platform section of the manual.\n\ -+ \032 + It should be possible to synchronize with Windows shares,\n\ -+ \032 e.g., //host/drive/path.\n\ -+ \032 + Workarounds to the bug in syncing root directories in Windows.\n\ -+ \032 The most difficult thing to fix is an ocaml bug: Unix.opendir\n\ -+ \032 fails on c: in some versions of Windows.\n\ -+ \032 * Improvements to the GTK user interface (the Tk interface is no\n\ -+ \032 longer being maintained):\n\ -+ \032 + The UI now displays actions differently (in blue) when they\n\ -+ \032 have been explicitly changed by the user from Unison\226\128\153s default\n\ -+ \032 recommendation.\n\ -+ \032 + More colorful appearance.\n\ -+ \032 + The initial profile selection window works better.\n\ -+ \032 + If any transfers failed, a message to this effect is displayed\n\ -+ \032 along with \226\128\153Synchronization complete\226\128\153 at the end of the\n\ -+ \032 transfer phase (in case they may have scrolled off the top).\n\ -+ \032 + Added a global progress meter, displaying the percentage of\n\ -+ \032 total bytes that have been transferred so far.\n\ -+ \032 * Improvements to the text user interface:\n\ -+ \032 + The file details will be displayed automatically when a\n\ -+ \032 conflict is been detected.\n\ -+ \032 + when a warning is generated (e.g. for a temporary file left\n\ -+ \032 over from a previous run of unison) Unison will no longer wait\n\ -+ \032 for a response if it is running in -batch mode.\n\ -+ \032 + The UI now displays a short list of possible inputs each time\n\ -+ \032 it waits for user interaction.\n\ -+ \032 + The UI now quits immediately (rather than looping back and\n\ -+ \032 starting the interaction again) if the user presses \226\128\153q\226\128\153 when\n\ -+ \032 asked whether to propagate changes.\n\ -+ \032 + Pressing \226\128\153g\226\128\153 in the text user interface will proceed\n\ -+ \032 immediately with propagating updates, without asking any more\n\ -+ \032 questions.\n\ -+ \032 * Documentation and installation changes:\n\ -+ \032 + The manual now includes a FAQ, plus sections on common\n\ -+ \032 problems and on tricks contributed by users.\n\ -+ \032 + Both the download page and the download directory explicitly\n\ -+ \032 say what are the current stable and beta-test version numbers.\n\ -+ \032 + The OCaml sources for the up-to-the-minute developers\226\128\153 version\n\ -+ \032 (not guaranteed to be stable, or even to compile, at any given\n\ -+ \032 time!) are now available from the download page.\n\ -+ \032 + Added a subsection to the manual describing cross-platform\n\ -+ \032 issues (case conflicts, illegal filenames)\n\ -+ \032 * Many small bug fixes and random improvements.\n\ -+ \n\ -+ \032 Changes since 2.3.1:\n\ -+ \032 * Several bug fixes. The most important is a bug in the rsync module\n\ -+ \032 that would occasionally cause change propagation to fail with a\n\ -+ \032 \226\128\153rename\226\128\153 error.\n\ -+ \n\ -+ \032 Changes since 2.2:\n\ -+ \032 * The multi-threaded transport system is now disabled by default. (It\n\ -+ \032 is not stable enough yet.)\n\ -+ \032 * Various bug fixes.\n\ -+ \032 * A new experimental feature:\n\ -+ \032 The final component of a -path argument may now be the wildcard\n\ -+ \032 specifier *. When Unison sees such a path, it expands this path on\n\ -+ \032 the client into into the corresponding list of paths by listing the\n\ -+ \032 contents of that directory.\n\ -+ \032 Note that if you use wildcard paths from the command line, you will\n\ -+ \032 probably need to use quotes or a backslash to prevent the * from\n\ -+ \032 being interpreted by your shell.\n\ -+ \032 If both roots are local, the contents of the first one will be used\n\ -+ \032 for expanding wildcard paths. (Nb: this is the first one after the\n\ -+ \032 canonization step \226\128\147 i.e., the one that is listed first in the user\n\ -+ \032 interface \226\128\147 not the one listed first on the command line or in the\n\ -+ \032 preferences file.)\n\ -+ \n\ -+ \032 Changes since 2.1:\n\ -+ \032 * The transport subsystem now includes an implementation by Sylvain\n\ -+ \032 Gommier and Norman Ramsey of Tridgell and Mackerras\226\128\153s rsync\n\ -+ \032 protocol. This protocol achieves much faster transfers when only a\n\ -+ \032 small part of a large file has been changed by sending just diffs.\n\ -+ \032 This feature is mainly helpful for transfers over slow links\226\128\148on\n\ -+ \032 fast local area networks it can actually degrade performance\226\128\148so we\n\ -+ \032 have left it off by default. Start unison with the -rsync option\n\ -+ \032 (or put rsync=true in your preferences file) to turn it on.\n\ -+ \032 * \226\128\156Progress bars\226\128\157 are now diplayed during remote file transfers,\n\ -+ \032 showing what percentage of each file has been transferred so far.\n\ -+ \032 * The version numbering scheme has changed. New releases will now be\n\ -+ \032 have numbers like 2.2.30, where the second component is incremented\n\ -+ \032 on every significant public release and the third component is the\n\ -+ \032 \226\128\156patch level.\226\128\157\n\ -+ \032 * Miscellaneous improvements to the GTK-based user interface.\n\ -+ \032 * The manual is now available in PDF format.\n\ -+ \032 * We are experimenting with using a multi-threaded transport\n\ -+ \032 subsystem to transfer several files at the same time, making much\n\ -+ \032 more effective use of available network bandwidth. This feature is\n\ -+ \032 not completely stable yet, so by default it is disabled in the\n\ -+ \032 release version of Unison.\n\ -+ \032 If you want to play with the multi-threaded version, you\226\128\153ll need to\n\ -+ \032 recompile Unison from sources (as described in the documentation),\n\ -+ \032 setting the THREADS flag in Makefile.OCaml to true. Make sure that\n\ -+ \032 your OCaml compiler has been installed with the -with-pthreads\n\ -+ \032 configuration option. (You can verify this by checking whether the\n\ -+ \032 file threads/threads.cma in the OCaml standard library directory\n\ -+ \032 contains the string -lpthread near the end.)\n\ -+ \n\ -+ \032 Changes since 1.292:\n\ -+ \032 * Reduced memory footprint (this is especially important during the\n\ -+ \032 first run of unison, where it has to gather information about all\n\ -+ \032 the files in both repositories).\n\ -+ \032 * Fixed a bug that would cause the socket server under NT to fail\n\ -+ \032 after the client exits.\n\ -+ \032 * Added a SHIFT modifier to the Ignore menu shortcut keys in GTK\n\ -+ \032 interface (to avoid hitting them accidentally).\n\ -+ \n\ -+ \032 Changes since 1.231:\n\ -+ \032 * Tunneling over ssh is now supported in the Windows version. See the\n\ -+ \032 installation section of the manual for detailed instructions.\n\ -+ \032 * The transport subsystem now includes an implementation of the rsync\n\ -+ \032 protocol, built by Sylvain Gommier and Norman Ramsey. This protocol\n\ -+ \032 achieves much faster transfers when only a small part of a large\n\ -+ \032 file has been changed by sending just diffs. The rsync feature is\n\ -+ \032 off by default in the current version. Use the -rsync switch to\n\ -+ \032 turn it on. (Nb. We still have a lot of tuning to do: you may not\n\ -+ \032 notice much speedup yet.)\n\ -+ \032 * We\226\128\153re experimenting with a multi-threaded transport subsystem,\n\ -+ \032 written by Jerome Vouillon. The downloadable binaries are still\n\ -+ \032 single-threaded: if you want to try the multi-threaded version,\n\ -+ \032 you\226\128\153ll need to recompile from sources. (Say make THREADS=true.)\n\ -+ \032 Native thread support from the compiler is required. Use the option\n\ -+ \032 -threads N to select the maximal number of concurrent threads\n\ -+ \032 (default is 5). Multi-threaded and single-threaded clients/servers\n\ -+ \032 can interoperate.\n\ -+ \032 * A new GTK-based user interface is now available, thanks to Jacques\n\ -+ \032 Garrigue. The Tk user interface still works, but we\226\128\153ll be shifting\n\ -+ \032 development effort to the GTK interface from now on.\n\ -+ \032 * OCaml 3.00 is now required for compiling Unison from sources. The\n\ -+ \032 modules uitk and myfileselect have been changed to use labltk\n\ -+ \032 instead of camltk. To compile the Tk interface in Windows, you must\n\ -+ \032 have ocaml-3.00 and tk8.3. When installing tk8.3, put it in c:\\Tcl\n\ -+ \032 rather than the suggested c:\\Program Files\\Tcl, and be sure to\n\ -+ \032 install the headers and libraries (which are not installed by\n\ -+ \032 default).\n\ -+ \032 * Added a new -addversionno switch, which causes unison to use\n\ -+ \032 unison- instead of just unison as the remote\n\ -+ \032 server command. This allows multiple versions of unison to coexist\n\ -+ \032 conveniently on the same server: whichever version is run on the\n\ -+ \032 client, the same version will be selected on the server.\n\ -+ \n\ -+ \032 Changes since 1.219:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * This version fixes several annoying bugs, including:\n\ -+ \032 + Some cases where propagation of file permissions was not\n\ -+ \032 working.\n\ -+ \032 + umask is now ignored when creating directories\n\ -+ \032 + directories are create writable, so that a read-only directory\n\ -+ \032 and its contents can be propagated.\n\ -+ \032 + Handling of warnings generated by the server.\n\ -+ \032 + Synchronizing a path whose parent is not a directory on both\n\ -+ \032 sides is now flagged as erroneous.\n\ -+ \032 + Fixed some bugs related to symnbolic links and nonexistant\n\ -+ \032 roots.\n\ -+ \032 o When a change (deletion or new contents) is propagated\n\ -+ \032 onto a \226\128\153follow\226\128\153ed symlink, the file pointed to by the\n\ -+ \032 link is now changed. (We used to change the link itself,\n\ -+ \032 which doesn\226\128\153t fit our assertion that \226\128\153follow\226\128\153 means the\n\ -+ \032 link is completely invisible)\n\ -+ \032 o When one root did not exist, propagating the other root\n\ -+ \032 on top of it used to fail, because unison could not\n\ -+ \032 calculate the working directory into which to write\n\ -+ \032 changes. This should be fixed.\n\ -+ \032 * A human-readable timestamp has been added to Unison\226\128\153s archive\n\ -+ \032 files.\n\ -+ \032 * The semantics of Path and Name regular expressions now correspond\n\ -+ \032 better.\n\ -+ \032 * Some minor improvements to the text UI (e.g. a command for going\n\ -+ \032 back to previous items)\n\ -+ \032 * The organization of the export directory has changed \226\128\148 should be\n\ -+ \032 easier to find / download things now.\n\ -+ \n\ -+ \032 Changes since 1.200:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * This version has not been tested extensively on Windows.\n\ -+ \032 * Major internal changes designed to make unison safer to run at the\n\ -+ \032 same time as the replicas are being changed by the user.\n\ -+ \032 * Internal performance improvements.\n\ -+ \n\ -+ \032 Changes since 1.190:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * A number of internal functions have been changed to reduce the\n\ -+ \032 amount of memory allocation, especially during the first\n\ -+ \032 synchronization. This should help power users with very big\n\ -+ \032 replicas.\n\ -+ \032 * Reimplementation of low-level remote procedure call stuff, in\n\ -+ \032 preparation for adding rsync-like smart file transfer in a later\n\ -+ \032 release.\n\ -+ \032 * Miscellaneous bug fixes.\n\ -+ \n\ -+ \032 Changes since 1.180:\n\ -+ \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ -+ \032 synchronize your replicas before upgrading, to avoid spurious\n\ -+ \032 conflicts. The first sync after upgrading will be slow.\n\ -+ \032 * Fixed some small bugs in the interpretation of ignore patterns.\n\ -+ \032 * Fixed some problems that were preventing the Windows version from\n\ -+ \032 working correctly when click-started.\n\ -+ \032 * Fixes to treatment of file permissions under Windows, which were\n\ -+ \032 causing spurious reports of different permissions when\n\ -+ \032 synchronizing between windows and unix systems.\n\ -+ \032 * Fixed one more non-tail-recursive list processing function, which\n\ -+ \032 was causing stack overflows when synchronizing very large replicas.\n\ -+ \n\ -+ \032 Changes since 1.169:\n\ -+ \032 * The text user interface now provides commands for ignoring files.\n\ -+ \032 * We found and fixed some more non-tail-recursive list processing\n\ -+ \032 functions. Some power users have reported success with very large\n\ -+ \032 replicas.\n\ -+ \032 * INCOMPATIBLE CHANGE: Files ending in .tmp are no longer ignored\n\ -+ \032 automatically. If you want to ignore such files, put an appropriate\n\ -+ \032 ignore pattern in your profile.\n\ -+ \032 * INCOMPATIBLE CHANGE: The syntax of ignore and follow patterns has\n\ -+ \032 changed. Instead of putting a line of the form\n\ -+ \032 ignore = \n\ -+ \n\ -+ \032 in your profile (.unison/default.prf), you should put:\n\ -+ \032 ignore = Regex \n\ -+ \n\ -+ \032 Moreover, two other styles of pattern are also recognized:\n\ -+ \032 ignore = Name \n\ -+ \n\ -+ \032 matches any path in which one component matches , while\n\ -+ \032 ignore = Path \n\ -+ \n\ -+ \032 matches exactly the path .\n\ -+ \032 Standard \226\128\156globbing\226\128\157 conventions can be used in and :\n\ -+ \032 + a ? matches any single character except /\n\ -+ \032 + a * matches any sequence of characters not including /\n\ -+ \032 + [xyz] matches any character from the set {x, y, z }\n\ -+ \032 + {a,bb,ccc} matches any one of a, bb, or ccc.\n\ -+ \032 See the user manual for some examples.\n\ -+ \n\ -+ \032 Changes since 1.146:\n\ -+ \032 * Some users were reporting stack overflows when synchronizing huge\n\ -+ \032 directories. We found and fixed some non-tail-recursive list\n\ -+ \032 processing functions, which we hope will solve the problem. Please\n\ -+ \032 give it a try and let us know.\n\ -+ \032 * Major additions to the documentation.\n\ -+ \n\ -+ \032 Changes since 1.142:\n\ -+ \032 * Major internal tidying and many small bugfixes.\n\ -+ \032 * Major additions to the user manual.\n\ -+ \032 * Unison can now be started with no arguments \226\128\147 it will prompt\n\ -+ \032 automatically for the name of a profile file containing the roots\n\ -+ \032 to be synchronized. This makes it possible to start the graphical\n\ -+ \032 UI from a desktop icon.\n\ -+ \032 * Fixed a small bug where the text UI on NT was raising a \226\128\153no such\n\ -+ \032 signal\226\128\153 exception.\n\ -+ \n\ -+ \032 Changes since 1.139:\n\ -+ \032 * The precompiled windows binary in the last release was compiled\n\ -+ \032 with an old OCaml compiler, causing propagation of permissions not\n\ -+ \032 to work (and perhaps leading to some other strange behaviors we\226\128\153ve\n\ -+ \032 heard reports about). This has been corrected. If you\226\128\153re using\n\ -+ \032 precompiled binaries on Windows, please upgrade.\n\ -+ \032 * Added a -debug command line flag, which controls debugging of\n\ -+ \032 various modules. Say -debug XXX to enable debug tracing for module\n\ -+ \032 XXX, or -debug all to turn on absolutely everything.\n\ -+ \032 * Fixed a small bug where the text UI on NT was raising a \226\128\153no such\n\ -+ \032 signal\226\128\153 exception.\n\ -+ \n\ -+ \032 Changes since 1.111:\n\ -+ \032 * INCOMPATIBLE CHANGE: The names and formats of the preference files\n\ -+ \032 in the .unison directory have changed. In particular:\n\ -+ \032 + the file \226\128\156prefs\226\128\157 should be renamed to default.prf\n\ -+ \032 + the contents of the file \226\128\156ignore\226\128\157 should be merged into\n\ -+ \032 default.prf. Each line of the form REGEXP in ignore should\n\ -+ \032 become a line of the form ignore = REGEXP in default.prf.\n\ -+ \032 * Unison now handles permission bits and symbolic links. See the\n\ -+ \032 manual for details.\n\ -+ \032 * You can now have different preference files in your .unison\n\ -+ \032 directory. If you start unison like this\n\ -+ \032 unison profilename\n\ -+ \n\ -+ \032 (i.e. with just one \226\128\156anonymous\226\128\157 command-line argument), then the\n\ -+ \032 file ~/.unison/profilename.prf will be loaded instead of\n\ -+ \032 default.prf.\n\ -+ \032 * Some improvements to terminal handling in the text user interface\n\ -+ \032 * Added a switch -killServer that terminates the remote server\n\ -+ \032 process when the unison client is shutting down, even when using\n\ -+ \032 sockets for communication. (By default, a remote server created\n\ -+ \032 using ssh/rsh is terminated automatically, while a socket server is\n\ -+ \032 left running.)\n\ -+ \032 * When started in \226\128\153socket server\226\128\153 mode, unison prints \226\128\153server\n\ -+ \032 started\226\128\153 on stderr when it is ready to accept connections. (This\n\ -+ \032 may be useful for scripts that want to tell when a socket-mode\n\ -+ \032 server has finished initalization.)\n\ -+ \032 * We now make a nightly mirror of our current internal development\n\ -+ \032 tree, in case anyone wants an up-to-the-minute version to hack\n\ -+ \032 around with.\n\ -+ \032 * Added a file CONTRIB with some suggestions for how to help us make\n\ -+ \032 Unison better.\n\ -+ \n\ -+ ")) -+:: -+ ("junk", ("Junk", -+ "Junk\n\ -+ \032 __________________________________________________________________\n\ -+ \n\ -+ \032 This document was translated from L^AT[E]X by [2]H^EV^EA.\n\ -+ \n\ -+ R\195\169f\195\169rences\n\ -+ \n\ -+ \032 1. file://localhost/localdisk/glondu/software/ocaml-stuff/unison/doc/temp.html#ssh-win\n\ -+ \032 2. http://hevea.inria.fr/index.html\n\ -+ ")) -+:: -+ [];; -+ --- diff -Nru unison-2.40.102/debian/patches/0002-Fix-typos-spotted-by-Lintian.patch unison-2.48.3/debian/patches/0002-Fix-typos-spotted-by-Lintian.patch --- unison-2.40.102/debian/patches/0002-Fix-typos-spotted-by-Lintian.patch 2013-04-17 13:46:01.000000000 +0000 +++ unison-2.48.3/debian/patches/0002-Fix-typos-spotted-by-Lintian.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,227 +0,0 @@ -From: Stephane Glondu -Date: Sun, 8 Jan 2012 14:12:24 +0100 -Subject: Fix typos spotted by Lintian - ---- - INSTALL.win32-msvc | 2 +- - copy.mli | 2 +- - globals.ml | 2 +- - osx.ml | 24 ++++++++++++------------ - transfer.ml | 2 +- - transfer.mli | 4 ++-- - transport.ml | 2 +- - uicommon.ml | 4 ++-- - uicommon.mli | 2 +- - 9 files changed, 22 insertions(+), 22 deletions(-) - -diff --git a/INSTALL.win32-msvc b/INSTALL.win32-msvc -index a425a0f..6924210 100644 ---- a/INSTALL.win32-msvc -+++ b/INSTALL.win32-msvc -@@ -475,7 +475,7 @@ directories and files or processing names supplied by the user: - - Appendix D - Windows icons - -- Here are some general informations on how to make your Windows -+ Here are some general information on how to make your Windows - program have a nice icon. - - * What we mean by icon is a set of bitmaps that are displayed by -diff --git a/copy.mli b/copy.mli -index 9147794..287f26d 100644 ---- a/copy.mli -+++ b/copy.mli -@@ -12,7 +12,7 @@ val file : - -> Os.fullfingerprint (* fingerprint of file *) - -> Fileinfo.stamp option - (* source file stamp, if available *) -- -> Osx.ressStamp (* ressource info of file *) -+ -> Osx.ressStamp (* resource info of file *) - -> Uutil.File.t (* file's index in UI (for progress bars) *) - -> Fileinfo.t Lwt.t (* information regarding the transferred file *) - -diff --git a/globals.ml b/globals.ml -index 02e1a87..fcb810f 100644 ---- a/globals.ml -+++ b/globals.ml -@@ -302,5 +302,5 @@ let fatFilesystem = - do not attempt to synchronize symbolic links ({\\tt links = false}); \ - ignore inode number changes when detecting updates \ - ({\\tt ignoreinodenumbers = true}). \ -- Any of these change can be overridden by explicitely setting \ -+ Any of these change can be overridden by explicitly setting \ - the corresponding preference in the profile.") -diff --git a/osx.ml b/osx.ml -index dc58b64..13e6257 100644 ---- a/osx.ml -+++ b/osx.ml -@@ -58,15 +58,15 @@ let init b = - let doubleMagic = "\000\005\022\007" - let doubleVersion = "\000\002\000\000" - let doubleFiller = String.make 16 '\000' --let ressource_fork_empty_tag = "This resource fork intentionally left blank " -+let resource_fork_empty_tag = "This resource fork intentionally left blank " - let finfoLength = 32L - let emptyFinderInfo () = String.make 32 '\000' --let empty_ressource_fork = -+let empty_resource_fork = - "\000\000\001\000" ^ - "\000\000\001\000" ^ - "\000\000\000\000" ^ - "\000\000\000\030" ^ -- ressource_fork_empty_tag ^ -+ resource_fork_empty_tag ^ - String.make (66+128) '\000' ^ - "\000\000\001\000" ^ - "\000\000\001\000" ^ -@@ -239,7 +239,7 @@ let getFileInfos dataFspath dataPath typ = - if not (Prefs.read rsrc) then defaultInfos typ else - match typ with - (`FILE | `DIRECTORY) as typ -> -- Util.convertUnixErrorsToTransient "getting file informations" (fun () -> -+ Util.convertUnixErrorsToTransient "getting file information" (fun () -> - try - let (fInfo, rsrcLength) = - getFileInfosInternal -@@ -260,15 +260,15 @@ let getFileInfos dataFspath dataPath typ = - let (rsrcOffset, rsrcLength) = - try - let (offset, len) = Safelist.assoc `RSRC entries in -- (* We need to check that the ressource fork is not a -+ (* We need to check that the resource fork is not a - dummy one included for compatibility reasons *) - if len = 286L && - protect (fun () -> - LargeFile.seek_in inch (Int64.add offset 16L); -- let len = String.length ressource_fork_empty_tag in -+ let len = String.length resource_fork_empty_tag in - let buf = String.create len in - really_input inch buf 0 len; -- buf = ressource_fork_empty_tag) -+ buf = resource_fork_empty_tag) - (fun () -> close_in_noerr inch) - then - (0L, 0L) -@@ -279,7 +279,7 @@ let getFileInfos dataFspath dataPath typ = - in - debug (fun () -> - Util.msg -- "AppleDouble for file %s / %s: ressource fork length: %d\n" -+ "AppleDouble for file %s / %s: resource fork length: %d\n" - (Fspath.toDebugString dataFspath) (Path.toString dataPath) - (Int64.to_int rsrcLength)); - let finfo = -@@ -339,7 +339,7 @@ let insertInfo fullInfo info = - - let setFileInfos dataFspath dataPath finfo = - assert (finfo <> ""); -- Util.convertUnixErrorsToTransient "setting file informations" (fun () -> -+ Util.convertUnixErrorsToTransient "setting file information" (fun () -> - try - let p = Fspath.toSysPath (Fspath.concat dataFspath dataPath) in - let (fullFinfo, _) = getFileInfosInternal p false in -@@ -391,7 +391,7 @@ let setFileInfos dataFspath dataPath finfo = - in - (* Apparently, for compatibility with various old versions - of Mac OS X that did not follow the AppleDouble specification, -- we have to include a dummy ressource fork... -+ we have to include a dummy resource fork... - We also put an empty extended attribute section at the - end of the finder info section, mimicking the Mac OS X - kernel behavior. *) -@@ -409,7 +409,7 @@ let setFileInfos dataFspath dataPath finfo = - output_string outch (insertInfo (emptyFinderInfo ()) finfo); - output_string outch (empty_attribute_chunk ()); - (* extended attributes *) -- output_string outch empty_ressource_fork; -+ output_string outch empty_resource_fork; - close_out outch) - (fun () -> close_out_noerr outch) - end -@@ -458,7 +458,7 @@ let ressFingerprint fspath path info = - Fingerprint.file fspath (ressPath path) - | AppleDoubleRess (_, _, _, len, (path, offset)) -> - debug (fun () -> -- Util.msg "ressource fork fingerprint: path %s, offset %d, len %d" -+ Util.msg "resource fork fingerprint: path %s, offset %d, len %d" - (Fspath.toString path) - (Int64.to_int offset) (Uutil.Filesize.toInt len)); - Fingerprint.subfile path offset len -diff --git a/transfer.ml b/transfer.ml -index ed42ef9..858d1e4 100644 ---- a/transfer.ml -+++ b/transfer.ml -@@ -103,7 +103,7 @@ let queueSizeFS = Uutil.Filesize.ofInt queueSize - type tokenQueue = - { mutable data : Bytearray.t; (* the queued tokens *) - mutable previous : [`Str of int | `Block of int | `None]; -- (* some informations about the -+ (* some information about the - previous token *) - mutable pos : int; (* head of the queue *) - mutable prog : int; (* the size of the data they represent *) -diff --git a/transfer.mli b/transfer.mli -index d58df07..429082a 100644 ---- a/transfer.mli -+++ b/transfer.mli -@@ -80,7 +80,7 @@ module Rsync : - (* Expected size of the [rsync_block_info] datastructure (in KiB). *) - val memoryFootprint : Uutil.Filesize.t -> Uutil.Filesize.t -> int - -- (* Compute block informations from the old file *) -+ (* Compute block information from the old file *) - val rsyncPreprocess : - in_channel (* old file descriptor *) - -> Uutil.Filesize.t (* source file length *) -@@ -98,7 +98,7 @@ module Rsync : - - (*** SOURCE HOST ***) - -- (* Using block informations, parse the new file and send transfer -+ (* Using block information, parse the new file and send transfer - instructions accordingly *) - val rsyncCompress : - rsync_block_info -diff --git a/transport.ml b/transport.ml -index 55ea3cc..9e0a316 100644 ---- a/transport.ml -+++ b/transport.ml -@@ -80,7 +80,7 @@ let logLwtNumbered (lwtDescription: string) (lwtShortDescription: string) - let doAction fromRoot fromPath fromContents toRoot toPath toContents id = - (* When streaming, we can transfer many file simultaneously: - as the contents of only one file is transferred in one direction -- at any time, little ressource is consumed this way. *) -+ at any time, little resource is consumed this way. *) - let limit = - let n = Prefs.read maxthreads in - if n > 0 then n else -diff --git a/uicommon.ml b/uicommon.ml -index ae81225..6234dd2 100644 ---- a/uicommon.ml -+++ b/uicommon.ml -@@ -120,9 +120,9 @@ let retry = - - let confirmmerge = - Prefs.createBool "confirmmerge" false -- "!ask for confirmation before commiting results of a merge" -+ "!ask for confirmation before committing results of a merge" - ("Setting this preference causes both the text and graphical interfaces" -- ^ " to ask the user if the results of a merge command may be commited " -+ ^ " to ask the user if the results of a merge command may be committed " - ^ " to the replica or not. Since the merge command works on temporary files," - ^ " the user can then cancel all the effects of applying the merge if it" - ^ " turns out that the result is not satisfactory. In " -diff --git a/uicommon.mli b/uicommon.mli -index 2a6ee86..64c681a 100644 ---- a/uicommon.mli -+++ b/uicommon.mli -@@ -37,7 +37,7 @@ val repeat : string Prefs.t - (* User preference: Try failing paths N times *) - val retry : int Prefs.t - --(* User preference: confirmation before commiting merge results *) -+(* User preference: confirmation before committing merge results *) - val confirmmerge : bool Prefs.t - - (* Format the information about current contents of a path in one replica (the second argument --- diff -Nru unison-2.40.102/debian/patches/series unison-2.48.3/debian/patches/series --- unison-2.40.102/debian/patches/series 2013-05-30 11:10:32.000000000 +0000 +++ unison-2.48.3/debian/patches/series 2016-03-18 14:45:05.000000000 +0000 @@ -1,3 +1 @@ -0001-Regenerate-generated-files.patch -0002-Fix-typos-spotted-by-Lintian.patch change-logfile-location.patch diff -Nru unison-2.40.102/debian/templates/dirs unison-2.48.3/debian/templates/dirs --- unison-2.40.102/debian/templates/dirs 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/templates/dirs 2016-02-07 17:18:10.000000000 +0000 @@ -1,3 +1,3 @@ usr/bin usr/share/man/man1 -etc/bash_completion.d +usr/share/bash-completion/completions diff -Nru unison-2.40.102/debian/unison-gtk.desktop.in unison-2.48.3/debian/unison-gtk.desktop.in --- unison-2.40.102/debian/unison-gtk.desktop.in 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/unison-gtk.desktop.in 2016-02-07 17:18:10.000000000 +0000 @@ -6,7 +6,7 @@ Terminal=false X-MultipleArgs=false Type=Application -Icon=/usr/share/pixmaps/@UNISON_GTK_PACKAGE@.svg +Icon=@UNISON_GTK_PACKAGE@.svg Categories=Utility;FileTools;GTK; StartupWMClass=Unison-gtk StartupNotify=true diff -Nru unison-2.40.102/debian/unison-gtk.install.in unison-2.48.3/debian/unison-gtk.install.in --- unison-2.40.102/debian/unison-gtk.install.in 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/unison-gtk.install.in 2016-02-07 17:18:10.000000000 +0000 @@ -2,4 +2,4 @@ debian/@UNISON_GTK_PACKAGE@.svg /usr/share/pixmaps/ @UNISON_GTK@ /usr/bin/ debian/@UNISON_GTK_PACKAGE@.desktop /usr/share/applications/ -debian/@UNISON_GTK_PACKAGE@.completion.bash /etc/bash_completion.d/@UNISON_GTK_PACKAGE@ +debian/@UNISON_GTK_PACKAGE@.completion.bash /usr/share/bash-completion/completions/@UNISON_GTK_PACKAGE@ diff -Nru unison-2.40.102/debian/unison.install.in unison-2.48.3/debian/unison.install.in --- unison-2.40.102/debian/unison.install.in 2013-04-13 06:53:29.000000000 +0000 +++ unison-2.48.3/debian/unison.install.in 2016-02-07 17:18:10.000000000 +0000 @@ -1,2 +1,2 @@ @UNISON@ /usr/bin/ -debian/@UNISON_PACKAGE@.completion.bash /etc/bash_completion.d/@UNISON_PACKAGE@ +debian/@UNISON_PACKAGE@.completion.bash /usr/share/bash-completion/completions/@UNISON_PACKAGE@ diff -Nru unison-2.40.102/.depend unison-2.48.3/.depend --- unison-2.40.102/.depend 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/.depend 2012-08-09 14:30:22.000000000 +0000 @@ -1,359 +1,403 @@ -abort.cmi: uutil.cmi -bytearray.cmi: -case.cmi: ubase/prefs.cmi -checksum.cmi: -clroot.cmi: +abort.cmi: uutil.cmi +bytearray.cmi: +case.cmi: ubase/prefs.cmi +checksum.cmi: +clroot.cmi: common.cmi: uutil.cmi props.cmi path.cmi osx.cmi os.cmi name.cmi fspath.cmi \ - fileinfo.cmi + fileinfo.cmi copy.cmi: uutil.cmi props.cmi path.cmi osx.cmi os.cmi lwt/lwt.cmi fspath.cmi \ - fileinfo.cmi common.cmi -external.cmi: lwt/lwt.cmi + fileinfo.cmi common.cmi +external.cmi: lwt/lwt.cmi fileinfo.cmi: system.cmi props.cmi ubase/prefs.cmi path.cmi osx.cmi \ - fspath.cmi + fspath.cmi files.cmi: uutil.cmi system.cmi props.cmi path.cmi lwt/lwt_util.cmi \ - lwt/lwt.cmi common.cmi -fileutil.cmi: -fingerprint.cmi: uutil.cmi path.cmi fspath.cmi + lwt/lwt.cmi common.cmi +fileutil.cmi: +fingerprint.cmi: uutil.cmi path.cmi fspath.cmi fpcache.cmi: system.cmi props.cmi path.cmi osx.cmi os.cmi fspath.cmi \ - fileinfo.cmi -fs.cmi: system/system_intf.cmo fspath.cmi -fspath.cmi: system.cmi path.cmi name.cmi -globals.cmi: ubase/prefs.cmi pred.cmi path.cmi lwt/lwt.cmi common.cmi -lock.cmi: system.cmi -name.cmi: -os.cmi: system.cmi props.cmi path.cmi name.cmi fspath.cmi fileinfo.cmi -osx.cmi: uutil.cmi ubase/prefs.cmi path.cmi fspath.cmi fingerprint.cmi -path.cmi: pred.cmi name.cmi -pred.cmi: -props.cmi: uutil.cmi ubase/prefs.cmi path.cmi osx.cmi fspath.cmi -recon.cmi: props.cmi path.cmi common.cmi + fileinfo.cmi +fs.cmi: system/system_intf.cmo fspath.cmi +fspath.cmi: system.cmi path.cmi name.cmi +fswatch.cmi: path.cmi lwt/lwt.cmi fspath.cmi +fswatchold.cmi: path.cmi lwt/lwt.cmi fspath.cmi +globals.cmi: ubase/prefs.cmi pred.cmi path.cmi lwt/lwt.cmi common.cmi +lock.cmi: system.cmi +name.cmi: +os.cmi: uutil.cmi system.cmi props.cmi path.cmi name.cmi fspath.cmi \ + fileinfo.cmi +osx.cmi: uutil.cmi ubase/prefs.cmi path.cmi fspath.cmi fingerprint.cmi +path.cmi: pred.cmi name.cmi +pred.cmi: +props.cmi: uutil.cmi ubase/prefs.cmi path.cmi osx.cmi fspath.cmi +recon.cmi: props.cmi path.cmi common.cmi remote.cmi: ubase/prefs.cmi lwt/lwt.cmi fspath.cmi common.cmi clroot.cmi \ - bytearray.cmi -sortri.cmi: common.cmi -stasher.cmi: update.cmi ubase/prefs.cmi path.cmi os.cmi fspath.cmi -strings.cmi: -system.cmi: system/system_intf.cmo -terminal.cmi: lwt/lwt_unix.cmi -test.cmi: -transfer.cmi: uutil.cmi lwt/lwt.cmi bytearray.cmi -transport.cmi: uutil.cmi lwt/lwt.cmi common.cmi -tree.cmi: -ui.cmi: -uicommon.cmi: uutil.cmi ubase/prefs.cmi path.cmi lwt/lwt.cmi common.cmi -uigtk.cmi: uicommon.cmi -uigtk2.cmi: uicommon.cmi -uitext.cmi: uicommon.cmi -unicode.cmi: + bytearray.cmi +sortri.cmi: common.cmi +stasher.cmi: update.cmi ubase/prefs.cmi path.cmi os.cmi fspath.cmi +strings.cmi: +system.cmi: system/system_intf.cmo +terminal.cmi: lwt/lwt_unix.cmi +test.cmi: +transfer.cmi: uutil.cmi lwt/lwt.cmi bytearray.cmi +transport.cmi: uutil.cmi lwt/lwt.cmi common.cmi +tree.cmi: +ui.cmi: +uicommon.cmi: uutil.cmi ubase/prefs.cmi path.cmi lwt/lwt.cmi common.cmi +uigtk.cmi: uicommon.cmi +uigtk2.cmi: uicommon.cmi +uitext.cmi: uicommon.cmi +unicode.cmi: update.cmi: uutil.cmi tree.cmi props.cmi path.cmi osx.cmi os.cmi name.cmi \ - lwt/lwt.cmi fspath.cmi fileinfo.cmi common.cmi -uutil.cmi: -xferhint.cmi: ubase/prefs.cmi path.cmi os.cmi fspath.cmi -abort.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi ubase/prefs.cmi abort.cmi -abort.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx ubase/prefs.cmx abort.cmi -bytearray.cmo: bytearray.cmi -bytearray.cmx: bytearray.cmi -case.cmo: ubase/util.cmi unicode.cmi ubase/prefs.cmi case.cmi -case.cmx: ubase/util.cmx unicode.cmx ubase/prefs.cmx case.cmi -checksum.cmo: checksum.cmi -checksum.cmx: checksum.cmi -clroot.cmo: ubase/util.cmi ubase/rx.cmi ubase/prefs.cmi clroot.cmi -clroot.cmx: ubase/util.cmx ubase/rx.cmx ubase/prefs.cmx clroot.cmi + ubase/myMap.cmi lwt/lwt.cmi fspath.cmi fileinfo.cmi common.cmi +uutil.cmi: +xferhint.cmi: ubase/prefs.cmi path.cmi os.cmi fspath.cmi +abort.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi ubase/prefs.cmi abort.cmi +abort.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx ubase/prefs.cmx abort.cmi +bytearray.cmo: bytearray.cmi +bytearray.cmx: bytearray.cmi +case.cmo: ubase/util.cmi unicode.cmi ubase/prefs.cmi case.cmi +case.cmx: ubase/util.cmx unicode.cmx ubase/prefs.cmx case.cmi +checksum.cmo: checksum.cmi +checksum.cmx: checksum.cmi +clroot.cmo: ubase/util.cmi ubase/rx.cmi ubase/prefs.cmi clroot.cmi +clroot.cmx: ubase/util.cmx ubase/rx.cmx ubase/prefs.cmx clroot.cmi common.cmo: uutil.cmi ubase/util.cmi ubase/safelist.cmi props.cmi path.cmi \ - osx.cmi os.cmi name.cmi fspath.cmi fileinfo.cmi common.cmi + osx.cmi os.cmi name.cmi fspath.cmi fileinfo.cmi common.cmi common.cmx: uutil.cmx ubase/util.cmx ubase/safelist.cmx props.cmx path.cmx \ - osx.cmx os.cmx name.cmx fspath.cmx fileinfo.cmx common.cmi + osx.cmx os.cmx name.cmx fspath.cmx fileinfo.cmx common.cmi copy.cmo: xferhint.cmi uutil.cmi ubase/util.cmi update.cmi transfer.cmi \ ubase/trace.cmi ubase/safelist.cmi remote.cmi props.cmi ubase/prefs.cmi \ path.cmi osx.cmi os.cmi lwt/lwt_util.cmi lwt/lwt.cmi globals.cmi \ fspath.cmi fs.cmi fpcache.cmi fingerprint.cmi fileinfo.cmi external.cmi \ - common.cmi clroot.cmi bytearray.cmi abort.cmi copy.cmi + common.cmi clroot.cmi bytearray.cmi abort.cmi copy.cmi copy.cmx: xferhint.cmx uutil.cmx ubase/util.cmx update.cmx transfer.cmx \ ubase/trace.cmx ubase/safelist.cmx remote.cmx props.cmx ubase/prefs.cmx \ path.cmx osx.cmx os.cmx lwt/lwt_util.cmx lwt/lwt.cmx globals.cmx \ fspath.cmx fs.cmx fpcache.cmx fingerprint.cmx fileinfo.cmx external.cmx \ - common.cmx clroot.cmx bytearray.cmx abort.cmx copy.cmi + common.cmx clroot.cmx bytearray.cmx abort.cmx copy.cmi external.cmo: ubase/util.cmi system.cmi ubase/safelist.cmi lwt/lwt_util.cmi \ - lwt/lwt_unix.cmi lwt/lwt.cmi external.cmi + lwt/lwt_unix.cmi lwt/lwt.cmi external.cmi external.cmx: ubase/util.cmx system.cmx ubase/safelist.cmx lwt/lwt_util.cmx \ - lwt/lwt_unix.cmx lwt/lwt.cmx external.cmi + lwt/lwt_unix.cmx lwt/lwt.cmx external.cmi fileinfo.cmo: ubase/util.cmi system.cmi props.cmi ubase/prefs.cmi path.cmi \ - osx.cmi fspath.cmi fs.cmi fileinfo.cmi + osx.cmi fswatch.cmi fspath.cmi fs.cmi fileinfo.cmi fileinfo.cmx: ubase/util.cmx system.cmx props.cmx ubase/prefs.cmx path.cmx \ - osx.cmx fspath.cmx fs.cmx fileinfo.cmi + osx.cmx fswatch.cmx fspath.cmx fs.cmx fileinfo.cmi files.cmo: xferhint.cmi uutil.cmi ubase/util.cmi update.cmi ubase/trace.cmi \ system.cmi stasher.cmi ubase/safelist.cmi ubase/rx.cmi remote.cmi \ props.cmi ubase/prefs.cmi path.cmi osx.cmi os.cmi name.cmi \ lwt/lwt_util.cmi lwt/lwt_unix.cmi lwt/lwt.cmi globals.cmi fspath.cmi \ fs.cmi fingerprint.cmi fileinfo.cmi external.cmi copy.cmi common.cmi \ - abort.cmi files.cmi + abort.cmi files.cmi files.cmx: xferhint.cmx uutil.cmx ubase/util.cmx update.cmx ubase/trace.cmx \ system.cmx stasher.cmx ubase/safelist.cmx ubase/rx.cmx remote.cmx \ props.cmx ubase/prefs.cmx path.cmx osx.cmx os.cmx name.cmx \ lwt/lwt_util.cmx lwt/lwt_unix.cmx lwt/lwt.cmx globals.cmx fspath.cmx \ fs.cmx fingerprint.cmx fileinfo.cmx external.cmx copy.cmx common.cmx \ - abort.cmx files.cmi -fileutil.cmo: fileutil.cmi -fileutil.cmx: fileutil.cmi -fingerprint.cmo: uutil.cmi ubase/util.cmi fspath.cmi fs.cmi fingerprint.cmi -fingerprint.cmx: uutil.cmx ubase/util.cmx fspath.cmx fs.cmx fingerprint.cmi + abort.cmx files.cmi +fileutil.cmo: fileutil.cmi +fileutil.cmx: fileutil.cmi +fingerprint.cmo: uutil.cmi ubase/util.cmi path.cmi fspath.cmi fs.cmi \ + fingerprint.cmi +fingerprint.cmx: uutil.cmx ubase/util.cmx path.cmx fspath.cmx fs.cmx \ + fingerprint.cmi fpcache.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi system.cmi \ - ubase/safelist.cmi props.cmi path.cmi osx.cmi os.cmi fileinfo.cmi \ - fpcache.cmi + ubase/safelist.cmi props.cmi ubase/prefs.cmi path.cmi osx.cmi os.cmi \ + fspath.cmi fileinfo.cmi fpcache.cmi fpcache.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx system.cmx \ - ubase/safelist.cmx props.cmx path.cmx osx.cmx os.cmx fileinfo.cmx \ - fpcache.cmi -fs.cmo: fspath.cmi fs.cmi -fs.cmx: fspath.cmx fs.cmi + ubase/safelist.cmx props.cmx ubase/prefs.cmx path.cmx osx.cmx os.cmx \ + fspath.cmx fileinfo.cmx fpcache.cmi +fs.cmo: fspath.cmi fs.cmi +fs.cmx: fspath.cmx fs.cmi fspath.cmo: uutil.cmi ubase/util.cmi system.cmi ubase/rx.cmi path.cmi \ - name.cmi fileutil.cmi fspath.cmi + name.cmi fileutil.cmi fspath.cmi fspath.cmx: uutil.cmx ubase/util.cmx system.cmx ubase/rx.cmx path.cmx \ - name.cmx fileutil.cmx fspath.cmi + name.cmx fileutil.cmx fspath.cmi +fswatch.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi system.cmi path.cmi \ + lwt/lwt_unix.cmi lwt/lwt.cmi fspath.cmi fswatch.cmi +fswatch.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx system.cmx path.cmx \ + lwt/lwt_unix.cmx lwt/lwt.cmx fspath.cmx fswatch.cmi +fswatchold.cmo: uutil.cmi ubase/util.cmi system.cmi ubase/safelist.cmi \ + ubase/prefs.cmi pred.cmi path.cmi os.cmi lwt/lwt_unix.cmi lwt/lwt.cmi \ + globals.cmi fswatch.cmi fspath.cmi fswatchold.cmi +fswatchold.cmx: uutil.cmx ubase/util.cmx system.cmx ubase/safelist.cmx \ + ubase/prefs.cmx pred.cmx path.cmx os.cmx lwt/lwt_unix.cmx lwt/lwt.cmx \ + globals.cmx fswatch.cmx fspath.cmx fswatchold.cmi globals.cmo: ubase/util.cmi ubase/trace.cmi ubase/safelist.cmi remote.cmi \ ubase/prefs.cmi pred.cmi path.cmi os.cmi name.cmi lwt/lwt_util.cmi \ - lwt/lwt_unix.cmi lwt/lwt.cmi common.cmi clroot.cmi globals.cmi + lwt/lwt_unix.cmi lwt/lwt.cmi common.cmi clroot.cmi globals.cmi globals.cmx: ubase/util.cmx ubase/trace.cmx ubase/safelist.cmx remote.cmx \ ubase/prefs.cmx pred.cmx path.cmx os.cmx name.cmx lwt/lwt_util.cmx \ - lwt/lwt_unix.cmx lwt/lwt.cmx common.cmx clroot.cmx globals.cmi -library_info.cmo: -library_info.cmx: -linkgtk.cmo: uigtk.cmi main.cmo -linkgtk.cmx: uigtk.cmx main.cmx -linkgtk2.cmo: uigtk2.cmi main.cmo -linkgtk2.cmx: uigtk2.cmx main.cmx -linktext.cmo: uitext.cmi main.cmo -linktext.cmx: uitext.cmx main.cmx -lock.cmo: ubase/util.cmi system.cmi lock.cmi -lock.cmx: ubase/util.cmx system.cmx lock.cmi + lwt/lwt_unix.cmx lwt/lwt.cmx common.cmx clroot.cmx globals.cmi +library_info.cmo: +library_info.cmx: +linkgtk.cmo: uigtk.cmi main.cmo +linkgtk.cmx: uigtk.cmx main.cmx +linkgtk2.cmo: uigtk2.cmi main.cmo +linkgtk2.cmx: uigtk2.cmx main.cmx +linktext.cmo: uitext.cmi main.cmo +linktext.cmx: uitext.cmx main.cmx +lock.cmo: ubase/util.cmi system.cmi lock.cmi +lock.cmx: ubase/util.cmx system.cmx lock.cmi main.cmo: uutil.cmi ubase/util.cmi uitext.cmi uicommon.cmi strings.cmi \ - ubase/safelist.cmi remote.cmi ubase/prefs.cmi os.cmi + ubase/safelist.cmi remote.cmi ubase/prefs.cmi os.cmi main.cmx: uutil.cmx ubase/util.cmx uitext.cmx uicommon.cmx strings.cmx \ - ubase/safelist.cmx remote.cmx ubase/prefs.cmx os.cmx -mkProjectInfo.cmo: -mkProjectInfo.cmx: -name.cmo: ubase/util.cmi ubase/rx.cmi case.cmi name.cmi -name.cmx: ubase/util.cmx ubase/rx.cmx case.cmx name.cmi -os.cmo: uutil.cmi ubase/util.cmi system.cmi ubase/safelist.cmi props.cmi \ - ubase/prefs.cmi path.cmi osx.cmi name.cmi fspath.cmi fs.cmi \ - fingerprint.cmi fileinfo.cmi os.cmi -os.cmx: uutil.cmx ubase/util.cmx system.cmx ubase/safelist.cmx props.cmx \ - ubase/prefs.cmx path.cmx osx.cmx name.cmx fspath.cmx fs.cmx \ - fingerprint.cmx fileinfo.cmx os.cmi + ubase/safelist.cmx remote.cmx ubase/prefs.cmx os.cmx +mkProjectInfo.cmo: +mkProjectInfo.cmx: +name.cmo: ubase/util.cmi ubase/rx.cmi case.cmi name.cmi +name.cmx: ubase/util.cmx ubase/rx.cmx case.cmx name.cmi +os.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi system.cmi \ + ubase/safelist.cmi props.cmi ubase/prefs.cmi path.cmi osx.cmi name.cmi \ + fspath.cmi fs.cmi fingerprint.cmi fileinfo.cmi os.cmi +os.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx system.cmx \ + ubase/safelist.cmx props.cmx ubase/prefs.cmx path.cmx osx.cmx name.cmx \ + fspath.cmx fs.cmx fingerprint.cmx fileinfo.cmx os.cmi osx.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi system.cmi \ ubase/safelist.cmi ubase/prefs.cmi path.cmi name.cmi fspath.cmi fs.cmi \ - fingerprint.cmi osx.cmi + fingerprint.cmi osx.cmi osx.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx system.cmx \ ubase/safelist.cmx ubase/prefs.cmx path.cmx name.cmx fspath.cmx fs.cmx \ - fingerprint.cmx osx.cmi + fingerprint.cmx osx.cmi path.cmo: ubase/util.cmi ubase/safelist.cmi ubase/rx.cmi pred.cmi name.cmi \ - fileutil.cmi case.cmi path.cmi + fileutil.cmi case.cmi path.cmi path.cmx: ubase/util.cmx ubase/safelist.cmx ubase/rx.cmx pred.cmx name.cmx \ - fileutil.cmx case.cmx path.cmi -pixmaps.cmo: -pixmaps.cmx: + fileutil.cmx case.cmx path.cmi +pixmaps.cmo: +pixmaps.cmx: pred.cmo: ubase/util.cmi ubase/safelist.cmi ubase/rx.cmi ubase/prefs.cmi \ - case.cmi pred.cmi + case.cmi pred.cmi pred.cmx: ubase/util.cmx ubase/safelist.cmx ubase/rx.cmx ubase/prefs.cmx \ - case.cmx pred.cmi + case.cmx pred.cmi props.cmo: uutil.cmi ubase/util.cmi ubase/prefs.cmi path.cmi osx.cmi \ - lwt/lwt_unix.cmi fspath.cmi fs.cmi external.cmi props.cmi + lwt/lwt_unix.cmi fspath.cmi fs.cmi external.cmi props.cmi props.cmx: uutil.cmx ubase/util.cmx ubase/prefs.cmx path.cmx osx.cmx \ - lwt/lwt_unix.cmx fspath.cmx fs.cmx external.cmx props.cmi + lwt/lwt_unix.cmx fspath.cmx fs.cmx external.cmx props.cmi recon.cmo: ubase/util.cmi update.cmi tree.cmi ubase/trace.cmi sortri.cmi \ ubase/safelist.cmi props.cmi ubase/prefs.cmi pred.cmi path.cmi name.cmi \ - globals.cmi fileinfo.cmi common.cmi recon.cmi + globals.cmi fileinfo.cmi common.cmi recon.cmi recon.cmx: ubase/util.cmx update.cmx tree.cmx ubase/trace.cmx sortri.cmx \ ubase/safelist.cmx props.cmx ubase/prefs.cmx pred.cmx path.cmx name.cmx \ - globals.cmx fileinfo.cmx common.cmx recon.cmi + globals.cmx fileinfo.cmx common.cmx recon.cmi remote.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi terminal.cmi system.cmi \ ubase/safelist.cmi ubase/prefs.cmi os.cmi lwt/lwt_util.cmi \ lwt/lwt_unix.cmi lwt/lwt.cmi fspath.cmi fs.cmi common.cmi clroot.cmi \ - case.cmi bytearray.cmi remote.cmi + case.cmi bytearray.cmi remote.cmi remote.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx terminal.cmx system.cmx \ ubase/safelist.cmx ubase/prefs.cmx os.cmx lwt/lwt_util.cmx \ lwt/lwt_unix.cmx lwt/lwt.cmx fspath.cmx fs.cmx common.cmx clroot.cmx \ - case.cmx bytearray.cmx remote.cmi + case.cmx bytearray.cmx remote.cmi sortri.cmo: ubase/util.cmi ubase/safelist.cmi ubase/prefs.cmi pred.cmi \ - path.cmi common.cmi sortri.cmi + path.cmi common.cmi sortri.cmi sortri.cmx: ubase/util.cmx ubase/safelist.cmx ubase/prefs.cmx pred.cmx \ - path.cmx common.cmx sortri.cmi + path.cmx common.cmx sortri.cmi stasher.cmo: xferhint.cmi ubase/util.cmi update.cmi system.cmi \ ubase/safelist.cmi remote.cmi props.cmi ubase/prefs.cmi pred.cmi path.cmi \ osx.cmi os.cmi lwt/lwt_unix.cmi lwt/lwt.cmi globals.cmi fspath.cmi \ - fingerprint.cmi fileutil.cmi fileinfo.cmi copy.cmi common.cmi stasher.cmi + fingerprint.cmi fileutil.cmi fileinfo.cmi copy.cmi common.cmi stasher.cmi stasher.cmx: xferhint.cmx ubase/util.cmx update.cmx system.cmx \ ubase/safelist.cmx remote.cmx props.cmx ubase/prefs.cmx pred.cmx path.cmx \ osx.cmx os.cmx lwt/lwt_unix.cmx lwt/lwt.cmx globals.cmx fspath.cmx \ - fingerprint.cmx fileutil.cmx fileinfo.cmx copy.cmx common.cmx stasher.cmi -strings.cmo: strings.cmi -strings.cmx: strings.cmi -system.cmo: system.cmi -system.cmx: system.cmi + fingerprint.cmx fileutil.cmx fileinfo.cmx copy.cmx common.cmx stasher.cmi +strings.cmo: strings.cmi +strings.cmx: strings.cmi +system.cmo: system.cmi +system.cmx: system.cmi terminal.cmo: system.cmi ubase/rx.cmi lwt/lwt_unix.cmi lwt/lwt.cmi \ - terminal.cmi + terminal.cmi terminal.cmx: system.cmx ubase/rx.cmx lwt/lwt_unix.cmx lwt/lwt.cmx \ - terminal.cmi + terminal.cmi test.cmo: uutil.cmi ubase/util.cmi update.cmi uicommon.cmi transport.cmi \ ubase/trace.cmi stasher.cmi ubase/safelist.cmi remote.cmi recon.cmi \ ubase/prefs.cmi path.cmi os.cmi lwt/lwt_util.cmi lwt/lwt_unix.cmi \ lwt/lwt.cmi globals.cmi fspath.cmi fs.cmi fingerprint.cmi common.cmi \ - test.cmi + test.cmi test.cmx: uutil.cmx ubase/util.cmx update.cmx uicommon.cmx transport.cmx \ ubase/trace.cmx stasher.cmx ubase/safelist.cmx remote.cmx recon.cmx \ ubase/prefs.cmx path.cmx os.cmx lwt/lwt_util.cmx lwt/lwt_unix.cmx \ lwt/lwt.cmx globals.cmx fspath.cmx fs.cmx fingerprint.cmx common.cmx \ - test.cmi + test.cmi transfer.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi ubase/safelist.cmi \ - lwt/lwt.cmi checksum.cmi bytearray.cmi transfer.cmi + lwt/lwt.cmi checksum.cmi bytearray.cmi transfer.cmi transfer.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx ubase/safelist.cmx \ - lwt/lwt.cmx checksum.cmx bytearray.cmx transfer.cmi + lwt/lwt.cmx checksum.cmx bytearray.cmx transfer.cmi transport.cmo: uutil.cmi ubase/util.cmi ubase/trace.cmi remote.cmi props.cmi \ ubase/prefs.cmi path.cmi osx.cmi lwt/lwt_util.cmi lwt/lwt.cmi globals.cmi \ - files.cmi common.cmi abort.cmi transport.cmi + files.cmi common.cmi abort.cmi transport.cmi transport.cmx: uutil.cmx ubase/util.cmx ubase/trace.cmx remote.cmx props.cmx \ ubase/prefs.cmx path.cmx osx.cmx lwt/lwt_util.cmx lwt/lwt.cmx globals.cmx \ - files.cmx common.cmx abort.cmx transport.cmi -tree.cmo: ubase/safelist.cmi tree.cmi -tree.cmx: ubase/safelist.cmx tree.cmi + files.cmx common.cmx abort.cmx transport.cmi +tree.cmo: ubase/safelist.cmi tree.cmi +tree.cmx: ubase/safelist.cmx tree.cmi uicommon.cmo: xferhint.cmi uutil.cmi ubase/util.cmi update.cmi \ ubase/trace.cmi system.cmi stasher.cmi ubase/safelist.cmi remote.cmi \ recon.cmi props.cmi ubase/prefs.cmi path.cmi osx.cmi os.cmi name.cmi \ lwt/lwt_unix.cmi lwt/lwt.cmi globals.cmi fspath.cmi files.cmi \ - fileinfo.cmi common.cmi clroot.cmi case.cmi uicommon.cmi + fileinfo.cmi common.cmi clroot.cmi case.cmi uicommon.cmi uicommon.cmx: xferhint.cmx uutil.cmx ubase/util.cmx update.cmx \ ubase/trace.cmx system.cmx stasher.cmx ubase/safelist.cmx remote.cmx \ recon.cmx props.cmx ubase/prefs.cmx path.cmx osx.cmx os.cmx name.cmx \ lwt/lwt_unix.cmx lwt/lwt.cmx globals.cmx fspath.cmx files.cmx \ - fileinfo.cmx common.cmx clroot.cmx case.cmx uicommon.cmi + fileinfo.cmx common.cmx clroot.cmx case.cmx uicommon.cmi uigtk.cmo: uutil.cmi ubase/util.cmi update.cmi uitext.cmi uicommon.cmi \ transport.cmi ubase/trace.cmi system.cmi strings.cmi sortri.cmi \ ubase/safelist.cmi remote.cmi recon.cmi ubase/prefs.cmi pixmaps.cmo \ path.cmi os.cmi lwt/lwt_util.cmi lwt/lwt_unix.cmi lwt/lwt.cmi globals.cmi \ - files.cmi common.cmi clroot.cmi uigtk.cmi + files.cmi common.cmi clroot.cmi uigtk.cmi uigtk.cmx: uutil.cmx ubase/util.cmx update.cmx uitext.cmx uicommon.cmx \ transport.cmx ubase/trace.cmx system.cmx strings.cmx sortri.cmx \ ubase/safelist.cmx remote.cmx recon.cmx ubase/prefs.cmx pixmaps.cmx \ path.cmx os.cmx lwt/lwt_util.cmx lwt/lwt_unix.cmx lwt/lwt.cmx globals.cmx \ - files.cmx common.cmx clroot.cmx uigtk.cmi + files.cmx common.cmx clroot.cmx uigtk.cmi uigtk2.cmo: uutil.cmi ubase/util.cmi update.cmi unicode.cmi uitext.cmi \ uicommon.cmi transport.cmi ubase/trace.cmi system.cmi strings.cmi \ sortri.cmi ubase/safelist.cmi remote.cmi recon.cmi ubase/prefs.cmi \ pixmaps.cmo path.cmi os.cmi lwt/lwt_util.cmi lwt/lwt_unix.cmi lwt/lwt.cmi \ - globals.cmi files.cmi common.cmi clroot.cmi case.cmi uigtk2.cmi + globals.cmi files.cmi common.cmi clroot.cmi case.cmi uigtk2.cmi uigtk2.cmx: uutil.cmx ubase/util.cmx update.cmx unicode.cmx uitext.cmx \ uicommon.cmx transport.cmx ubase/trace.cmx system.cmx strings.cmx \ sortri.cmx ubase/safelist.cmx remote.cmx recon.cmx ubase/prefs.cmx \ pixmaps.cmx path.cmx os.cmx lwt/lwt_util.cmx lwt/lwt_unix.cmx lwt/lwt.cmx \ - globals.cmx files.cmx common.cmx clroot.cmx case.cmx uigtk2.cmi + globals.cmx files.cmx common.cmx clroot.cmx case.cmx uigtk2.cmi uimacbridge.cmo: xferhint.cmi uutil.cmi ubase/util.cmi update.cmi \ uicommon.cmi transport.cmi ubase/trace.cmi terminal.cmi system.cmi \ stasher.cmi ubase/safelist.cmi remote.cmi recon.cmi ubase/prefs.cmi \ path.cmi os.cmi main.cmo lwt/lwt_util.cmi lwt/lwt_unix.cmi lwt/lwt.cmi \ - globals.cmi fspath.cmi files.cmi common.cmi clroot.cmi + globals.cmi fspath.cmi files.cmi common.cmi clroot.cmi uimacbridge.cmx: xferhint.cmx uutil.cmx ubase/util.cmx update.cmx \ uicommon.cmx transport.cmx ubase/trace.cmx terminal.cmx system.cmx \ stasher.cmx ubase/safelist.cmx remote.cmx recon.cmx ubase/prefs.cmx \ path.cmx os.cmx main.cmx lwt/lwt_util.cmx lwt/lwt_unix.cmx lwt/lwt.cmx \ - globals.cmx fspath.cmx files.cmx common.cmx clroot.cmx + globals.cmx fspath.cmx files.cmx common.cmx clroot.cmx uimacbridgenew.cmo: xferhint.cmi uutil.cmi ubase/util.cmi update.cmi \ unicode.cmi uicommon.cmi transport.cmi ubase/trace.cmi terminal.cmi \ system.cmi stasher.cmi ubase/safelist.cmi remote.cmi recon.cmi \ ubase/prefs.cmi path.cmi os.cmi main.cmo lwt/lwt_util.cmi \ lwt/lwt_unix.cmi lwt/lwt.cmi globals.cmi fspath.cmi files.cmi common.cmi \ - clroot.cmi + clroot.cmi uimacbridgenew.cmx: xferhint.cmx uutil.cmx ubase/util.cmx update.cmx \ unicode.cmx uicommon.cmx transport.cmx ubase/trace.cmx terminal.cmx \ system.cmx stasher.cmx ubase/safelist.cmx remote.cmx recon.cmx \ ubase/prefs.cmx path.cmx os.cmx main.cmx lwt/lwt_util.cmx \ lwt/lwt_unix.cmx lwt/lwt.cmx globals.cmx fspath.cmx files.cmx common.cmx \ - clroot.cmx + clroot.cmx uitext.cmo: uutil.cmi ubase/util.cmi update.cmi uicommon.cmi transport.cmi \ ubase/trace.cmi system.cmi ubase/safelist.cmi remote.cmi recon.cmi \ ubase/prefs.cmi path.cmi lwt/lwt_util.cmi lwt/lwt_unix.cmi lwt/lwt.cmi \ - globals.cmi common.cmi uitext.cmi + globals.cmi fswatchold.cmi common.cmi uitext.cmi uitext.cmx: uutil.cmx ubase/util.cmx update.cmx uicommon.cmx transport.cmx \ ubase/trace.cmx system.cmx ubase/safelist.cmx remote.cmx recon.cmx \ ubase/prefs.cmx path.cmx lwt/lwt_util.cmx lwt/lwt_unix.cmx lwt/lwt.cmx \ - globals.cmx common.cmx uitext.cmi -unicode.cmo: unicode_tables.cmo unicode.cmi -unicode.cmx: unicode_tables.cmx unicode.cmi -unicode_tables.cmo: -unicode_tables.cmx: + globals.cmx fswatchold.cmx common.cmx uitext.cmi +unicode.cmo: unicode_tables.cmo unicode.cmi +unicode.cmx: unicode_tables.cmx unicode.cmi +unicode_tables.cmo: +unicode_tables.cmx: update.cmo: xferhint.cmi uutil.cmi ubase/util.cmi tree.cmi ubase/trace.cmi \ system.cmi ubase/safelist.cmi remote.cmi props.cmi ubase/proplist.cmi \ ubase/prefs.cmi pred.cmi path.cmi osx.cmi os.cmi name.cmi ubase/myMap.cmi \ - lwt/lwt_unix.cmi lwt/lwt.cmi lock.cmi globals.cmi fspath.cmi fpcache.cmi \ - fingerprint.cmi fileinfo.cmi common.cmi case.cmi update.cmi + lwt/lwt_unix.cmi lwt/lwt.cmi lock.cmi globals.cmi fswatchold.cmi \ + fswatch.cmi fspath.cmi fpcache.cmi fingerprint.cmi fileinfo.cmi \ + common.cmi case.cmi update.cmi update.cmx: xferhint.cmx uutil.cmx ubase/util.cmx tree.cmx ubase/trace.cmx \ system.cmx ubase/safelist.cmx remote.cmx props.cmx ubase/proplist.cmx \ ubase/prefs.cmx pred.cmx path.cmx osx.cmx os.cmx name.cmx ubase/myMap.cmx \ - lwt/lwt_unix.cmx lwt/lwt.cmx lock.cmx globals.cmx fspath.cmx fpcache.cmx \ - fingerprint.cmx fileinfo.cmx common.cmx case.cmx update.cmi -uutil.cmo: ubase/util.cmi ubase/trace.cmi uutil.cmi -uutil.cmx: ubase/util.cmx ubase/trace.cmx uutil.cmi + lwt/lwt_unix.cmx lwt/lwt.cmx lock.cmx globals.cmx fswatchold.cmx \ + fswatch.cmx fspath.cmx fpcache.cmx fingerprint.cmx fileinfo.cmx \ + common.cmx case.cmx update.cmi +uutil.cmo: ubase/util.cmi ubase/trace.cmi uutil.cmi +uutil.cmx: ubase/util.cmx ubase/trace.cmx uutil.cmi xferhint.cmo: ubase/util.cmi ubase/trace.cmi ubase/prefs.cmi path.cmi os.cmi \ - fspath.cmi xferhint.cmi + fspath.cmi xferhint.cmi xferhint.cmx: ubase/util.cmx ubase/trace.cmx ubase/prefs.cmx path.cmx os.cmx \ - fspath.cmx xferhint.cmi -lwt/lwt.cmo: lwt/lwt.cmi -lwt/lwt.cmx: lwt/lwt.cmi -lwt/lwt_unix.cmo: lwt/lwt_unix.cmi -lwt/lwt_unix.cmx: lwt/lwt_unix.cmi -lwt/lwt_util.cmo: lwt/lwt.cmi lwt/lwt_util.cmi -lwt/lwt_util.cmx: lwt/lwt.cmx lwt/lwt_util.cmi -lwt/pqueue.cmo: lwt/pqueue.cmi -lwt/pqueue.cmx: lwt/pqueue.cmi -system/system_generic.cmo: -system/system_generic.cmx: -system/system_intf.cmo: -system/system_intf.cmx: -system/system_win.cmo: unicode.cmi system/system_generic.cmo ubase/rx.cmi -system/system_win.cmx: unicode.cmx system/system_generic.cmx ubase/rx.cmx -ubase/myMap.cmo: ubase/myMap.cmi -ubase/myMap.cmx: ubase/myMap.cmi + fspath.cmx xferhint.cmi +fsmonitor/watchercommon.cmo: lwt/lwt_unix.cmi lwt/lwt.cmi \ + fsmonitor/watchercommon.cmi +fsmonitor/watchercommon.cmx: lwt/lwt_unix.cmx lwt/lwt.cmx \ + fsmonitor/watchercommon.cmi +lwt/lwt.cmo: lwt/lwt.cmi +lwt/lwt.cmx: lwt/lwt.cmi +lwt/lwt_unix.cmo: lwt/lwt_unix.cmi +lwt/lwt_unix.cmx: lwt/lwt_unix.cmi +lwt/lwt_util.cmo: lwt/lwt.cmi lwt/lwt_util.cmi +lwt/lwt_util.cmx: lwt/lwt.cmx lwt/lwt_util.cmi +lwt/pqueue.cmo: lwt/pqueue.cmi +lwt/pqueue.cmx: lwt/pqueue.cmi +system/system_generic.cmo: +system/system_generic.cmx: +system/system_intf.cmo: +system/system_intf.cmx: +system/system_win.cmo: unicode.cmi system/system_generic.cmo ubase/rx.cmi +system/system_win.cmx: unicode.cmx system/system_generic.cmx ubase/rx.cmx +ubase/myMap.cmo: ubase/myMap.cmi +ubase/myMap.cmx: ubase/myMap.cmi ubase/prefs.cmo: ubase/util.cmi ubase/uarg.cmi system.cmi ubase/safelist.cmi \ - ubase/prefs.cmi + ubase/prefs.cmi ubase/prefs.cmx: ubase/util.cmx ubase/uarg.cmx system.cmx ubase/safelist.cmx \ - ubase/prefs.cmi -ubase/proplist.cmo: ubase/util.cmi ubase/proplist.cmi -ubase/proplist.cmx: ubase/util.cmx ubase/proplist.cmi -ubase/rx.cmo: ubase/rx.cmi -ubase/rx.cmx: ubase/rx.cmi -ubase/safelist.cmo: ubase/safelist.cmi -ubase/safelist.cmx: ubase/safelist.cmi + ubase/prefs.cmi +ubase/proplist.cmo: ubase/util.cmi ubase/proplist.cmi +ubase/proplist.cmx: ubase/util.cmx ubase/proplist.cmi +ubase/rx.cmo: ubase/rx.cmi +ubase/rx.cmx: ubase/rx.cmi +ubase/safelist.cmo: ubase/safelist.cmi +ubase/safelist.cmx: ubase/safelist.cmi ubase/trace.cmo: ubase/util.cmi system.cmi ubase/safelist.cmi ubase/prefs.cmi \ - ubase/trace.cmi + ubase/trace.cmi ubase/trace.cmx: ubase/util.cmx system.cmx ubase/safelist.cmx ubase/prefs.cmx \ - ubase/trace.cmi -ubase/uarg.cmo: ubase/util.cmi system.cmi ubase/safelist.cmi ubase/uarg.cmi -ubase/uarg.cmx: ubase/util.cmx system.cmx ubase/safelist.cmx ubase/uarg.cmi -ubase/uprintf.cmo: ubase/uprintf.cmi -ubase/uprintf.cmx: ubase/uprintf.cmi + ubase/trace.cmi +ubase/uarg.cmo: ubase/util.cmi system.cmi ubase/safelist.cmi ubase/uarg.cmi +ubase/uarg.cmx: ubase/util.cmx system.cmx ubase/safelist.cmx ubase/uarg.cmi +ubase/uprintf.cmo: ubase/uprintf.cmi +ubase/uprintf.cmx: ubase/uprintf.cmi ubase/util.cmo: ubase/uprintf.cmi system.cmi ubase/safelist.cmi \ - ubase/util.cmi + ubase/util.cmi ubase/util.cmx: ubase/uprintf.cmx system.cmx ubase/safelist.cmx \ - ubase/util.cmi -lwt/lwt.cmi: -lwt/lwt_unix.cmi: lwt/lwt.cmi -lwt/lwt_util.cmi: lwt/lwt.cmi -lwt/pqueue.cmi: -ubase/myMap.cmi: -ubase/prefs.cmi: ubase/util.cmi system.cmi -ubase/proplist.cmi: -ubase/rx.cmi: -ubase/safelist.cmi: -ubase/trace.cmi: ubase/prefs.cmi -ubase/uarg.cmi: -ubase/uprintf.cmi: -ubase/util.cmi: system.cmi -lwt/example/editor.cmo: lwt/lwt_unix.cmi -lwt/example/editor.cmx: lwt/lwt_unix.cmx -lwt/example/relay.cmo: lwt/lwt_unix.cmi lwt/lwt.cmi -lwt/example/relay.cmx: lwt/lwt_unix.cmx lwt/lwt.cmx -lwt/generic/lwt_unix_impl.cmo: lwt/pqueue.cmi lwt/lwt.cmi -lwt/generic/lwt_unix_impl.cmx: lwt/pqueue.cmx lwt/lwt.cmx -lwt/win/lwt_unix_impl.cmo: lwt/pqueue.cmi lwt/lwt.cmi -lwt/win/lwt_unix_impl.cmx: lwt/pqueue.cmx lwt/lwt.cmx -system/generic/system_impl.cmo: system/system_generic.cmo -system/generic/system_impl.cmx: system/system_generic.cmx -system/win/system_impl.cmo: system/system_win.cmo system/system_generic.cmo -system/win/system_impl.cmx: system/system_win.cmx system/system_generic.cmx + ubase/util.cmi +fsmonitor/watchercommon.cmi: +lwt/lwt.cmi: +lwt/lwt_unix.cmi: lwt/lwt.cmi +lwt/lwt_util.cmi: lwt/lwt.cmi +lwt/pqueue.cmi: +ubase/myMap.cmi: +ubase/prefs.cmi: ubase/util.cmi system.cmi +ubase/proplist.cmi: +ubase/rx.cmi: +ubase/safelist.cmi: +ubase/trace.cmi: ubase/prefs.cmi +ubase/uarg.cmi: +ubase/uprintf.cmi: +ubase/util.cmi: system.cmi +fsmonitor/linux/inotify.cmo: fsmonitor/linux/inotify.cmi +fsmonitor/linux/inotify.cmx: fsmonitor/linux/inotify.cmi +fsmonitor/linux/lwt_inotify.cmo: lwt/lwt_unix.cmi lwt/lwt.cmi \ + fsmonitor/linux/inotify.cmi fsmonitor/linux/lwt_inotify.cmi +fsmonitor/linux/lwt_inotify.cmx: lwt/lwt_unix.cmx lwt/lwt.cmx \ + fsmonitor/linux/inotify.cmx fsmonitor/linux/lwt_inotify.cmi +fsmonitor/linux/watcher.cmo: fsmonitor/watchercommon.cmi \ + fsmonitor/linux/lwt_inotify.cmi lwt/lwt.cmi fsmonitor/linux/inotify.cmi +fsmonitor/linux/watcher.cmx: fsmonitor/watchercommon.cmx \ + fsmonitor/linux/lwt_inotify.cmx lwt/lwt.cmx fsmonitor/linux/inotify.cmx +fsmonitor/windows/shortnames.cmo: fsmonitor/windows/shortnames.cmi +fsmonitor/windows/shortnames.cmx: fsmonitor/windows/shortnames.cmi +fsmonitor/windows/watcher.cmo: fsmonitor/watchercommon.cmi \ + fsmonitor/windows/shortnames.cmi lwt/lwt.cmi +fsmonitor/windows/watcher.cmx: fsmonitor/watchercommon.cmx \ + fsmonitor/windows/shortnames.cmx lwt/lwt.cmx +lwt/example/editor.cmo: lwt/lwt_unix.cmi +lwt/example/editor.cmx: lwt/lwt_unix.cmx +lwt/example/relay.cmo: lwt/lwt_unix.cmi lwt/lwt.cmi +lwt/example/relay.cmx: lwt/lwt_unix.cmx lwt/lwt.cmx +lwt/generic/lwt_unix_impl.cmo: lwt/pqueue.cmi lwt/lwt.cmi +lwt/generic/lwt_unix_impl.cmx: lwt/pqueue.cmx lwt/lwt.cmx +lwt/win/lwt_unix_impl.cmo: lwt/pqueue.cmi lwt/lwt.cmi +lwt/win/lwt_unix_impl.cmx: lwt/pqueue.cmx lwt/lwt.cmx +lwt/win/lwt_win.cmo: lwt/win/lwt_win.cmi +lwt/win/lwt_win.cmx: lwt/win/lwt_win.cmi +system/generic/system_impl.cmo: system/system_generic.cmo +system/generic/system_impl.cmx: system/system_generic.cmx +system/win/system_impl.cmo: system/system_win.cmo system/system_generic.cmo +system/win/system_impl.cmx: system/system_win.cmx system/system_generic.cmx +fsmonitor/linux/inotify.cmi: +fsmonitor/linux/lwt_inotify.cmi: lwt/lwt.cmi fsmonitor/linux/inotify.cmi +fsmonitor/windows/shortnames.cmi: +lwt/win/lwt_win.cmi: lwt/lwt.cmi diff -Nru unison-2.40.102/external.ml unison-2.48.3/external.ml --- unison-2.40.102/external.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/external.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/external.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,35 +26,30 @@ open Lwt let readChannelTillEof c = - let rec loop lines = - try let l = input_line c in - (* Util.msg "%s\n" l; *) - loop (l::lines) - with End_of_file -> lines in - String.concat "\n" (Safelist.rev (loop [])) + let lst = ref [] in + let rec loop () = + lst := input_line c :: !lst; + loop () + in + begin try loop () with End_of_file -> () end; + String.concat "\n" (Safelist.rev !lst) let readChannelTillEof_lwt c = let rec loop lines = - let lo = - try - Some(Lwt_unix.run (Lwt_unix.input_line c)) - with End_of_file -> None - in - match lo with - Some l -> loop (l :: lines) - | None -> lines + Lwt.try_bind + (fun () -> Lwt_unix.input_line c) + (fun l -> loop (l :: lines)) + (fun e -> if e = End_of_file then Lwt.return lines else Lwt.fail e) in - String.concat "\n" (Safelist.rev (loop [])) + String.concat "\n" (Safelist.rev (Lwt_unix.run (loop []))) let readChannelsTillEof l = let rec suckitdry lines c = - Lwt.catch - (fun() -> Lwt_unix.input_line c >>= (fun l -> return (Some l))) - (fun e -> match e with End_of_file -> return None | _ -> raise e) - >>= (fun lo -> - match lo with - None -> return lines - | Some l -> suckitdry (l :: lines) c) in + Lwt.try_bind + (fun () -> Lwt_unix.input_line c) + (fun l -> suckitdry (l :: lines) c) + (fun e -> match e with End_of_file -> Lwt.return lines | _ -> raise e) + in Lwt_util.map (fun c -> suckitdry [] c diff -Nru unison-2.40.102/external.mli unison-2.48.3/external.mli --- unison-2.40.102/external.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/external.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/external.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) val runExternalProgram : string -> (Unix.process_status * string) Lwt.t val readChannelTillEof : in_channel -> string diff -Nru unison-2.40.102/fileinfo.ml unison-2.48.3/fileinfo.ml --- unison-2.40.102/fileinfo.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fileinfo.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fileinfo.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -55,13 +55,14 @@ if stats.Unix.LargeFile.st_kind = Unix.S_LNK && fromRoot && Path.followLink path - then + then begin + Fswatch.followLink path; try Fs.stat fullpath with Unix.Unix_error((Unix.ENOENT | Unix.ENOTDIR),_,_) -> raise (Util.Transient (Printf.sprintf "Path %s is marked 'follow' but its target is missing" (Fspath.toPrintString fullpath))) - else + end else stats let get fromRoot fspath path = diff -Nru unison-2.40.102/fileinfo.mli unison-2.48.3/fileinfo.mli --- unison-2.40.102/fileinfo.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fileinfo.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,12 +1,12 @@ (* Unison file synchronizer: src/fileinfo.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type typ = [`ABSENT | `FILE | `DIRECTORY | `SYMLINK] val type2string : typ -> string type t = { typ : typ; inode : int; desc : Props.t; osX : Osx.info} -val get : bool -> Fspath.t -> Path.local -> t +val get : bool (* fromRoot *) -> Fspath.t -> Path.local -> t val set : Fspath.t -> Path.local -> [`Set of Props.t | `Copy of Path.local | `Update of Props.t] -> Props.t -> unit diff -Nru unison-2.40.102/files.ml unison-2.48.3/files.ml --- unison-2.40.102/files.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/files.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/files.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -72,14 +72,52 @@ (* ------------------------------------------------------------ *) -let deleteLocal (fspathTo, (pathTo, ui)) = +let copyOnConflict = Prefs.createBool "copyonconflict" false + "!keep copies of conflicting files" + "When this flag is set, Unison will make a copy of files that would \ + otherwise be overwritten or deleted in case of conflicting changes, \ + and more generally whenever the default behavior is overriden. \ + This makes it possible to automatically resolve conflicts in a \ + fairly safe way when synchronizing continuously, in combination \ + with the \\verb|-repeat watch| and \\verb|-prefer newer| preferences." + +let prepareCopy workingDir path notDefault = + if notDefault && Prefs.read copyOnConflict then begin + let tmpPath = Os.tempPath workingDir path in + Copy.recursively workingDir path workingDir tmpPath; + Some (workingDir, path, tmpPath) + end else + None + +let finishCopy copyInfo = + match copyInfo with + Some (workingDir, path, tmpPath) -> + let tm = Unix.localtime (Unix.gettimeofday ()) in + let rec copyPath n = + let p = + Path.addToFinalName path + (Format.sprintf " (copy: conflict%s on %04d-%02d-%02d)" + (if n = 0 then "" else " #" ^ string_of_int n) + (tm.Unix.tm_year + 1900) (tm.Unix.tm_mon + 1) tm.Unix.tm_mday) + in + if Os.exists workingDir p then copyPath (n + 1) else p + in + Os.rename "keepCopy" workingDir tmpPath workingDir (copyPath 0) + | None -> + () + +(* ------------------------------------------------------------ *) + +let deleteLocal (fspathTo, (pathTo, ui, notDefault)) = debug (fun () -> Util.msg "deleteLocal [%s] (None, %s)\n" (Fspath.toDebugString fspathTo) (Path.toString pathTo)); let localPathTo = Update.translatePathLocal fspathTo pathTo in + let copyInfo = prepareCopy fspathTo localPathTo notDefault in (* Make sure the target is unchanged first *) (* (There is an unavoidable race condition here.) *) let prevArch = Update.checkNoUpdates fspathTo localPathTo ui in + finishCopy copyInfo; Stasher.backup fspathTo localPathTo `AndRemove prevArch; (* Archive update must be done last *) Update.replaceArchiveLocal fspathTo localPathTo Update.NoArchive; @@ -87,8 +125,8 @@ let deleteOnRoot = Remote.registerRootCmd "delete" deleteLocal -let delete rootFrom pathFrom rootTo pathTo ui = - deleteOnRoot rootTo (pathTo, ui) >>= fun _ -> +let delete rootFrom pathFrom rootTo pathTo ui notDefault = + deleteOnRoot rootTo (pathTo, ui, notDefault) >>= fun _ -> Update.replaceArchive rootFrom pathFrom Update.NoArchive (* ------------------------------------------------------------ *) @@ -268,10 +306,13 @@ temp file into place, but remain able to roll back if something fails either locally or on the other side. *) let renameLocal - (fspathTo, (localPathTo, workingDir, pathFrom, pathTo, ui, archOpt)) = + (fspathTo, + (localPathTo, workingDir, pathFrom, pathTo, ui, archOpt, notDefault)) = + let copyInfo = prepareCopy workingDir pathTo notDefault in (* Make sure the target is unchanged, then do the rename. (Note that there is an unavoidable race condition here...) *) let prevArch = Update.checkNoUpdates fspathTo localPathTo ui in + finishCopy copyInfo; performRename fspathTo localPathTo workingDir pathFrom pathTo prevArch; begin match archOpt with Some archTo -> Stasher.stashCurrentVersion fspathTo localPathTo None; @@ -285,12 +326,13 @@ let renameOnHost = Remote.registerRootCmd "rename" renameLocal -let rename root localPath workingDir pathOld pathNew ui archOpt = +let rename root localPath workingDir pathOld pathNew ui archOpt notDefault = debug (fun() -> Util.msg "rename(root=%s, pathOld=%s, pathNew=%s)\n" (root2string root) (Path.toString pathOld) (Path.toString pathNew)); - renameOnHost root (localPath, workingDir, pathOld, pathNew, ui, archOpt) + renameOnHost root + (localPath, workingDir, pathOld, pathNew, ui, archOpt, notDefault) (* ------------------------------------------------------------ *) @@ -431,6 +473,7 @@ this updateItem still describes the current state of the target replica) *) propsTo (* the properties of the parent directories *) + notDefault (* [true] if not Unison's default action *) id = (* for progress display *) debug (fun() -> Util.msg @@ -471,19 +514,19 @@ Lwt.catch (fun () -> match f with - Update.ArchiveFile (desc, dig, stamp, ress) -> + Update.ArchiveFile (desc, fp, stamp, ress) -> Lwt_util.run_in_region copyReg 1 (fun () -> Abort.check id; let stmp = if Update.useFastChecking () then Some stamp else None in Copy.file rootFrom pFrom rootTo workingDir pTo realPTo - update desc dig stmp ress id + update desc fp stmp ress id >>= fun info -> let ress' = Osx.stamp info.Fileinfo.osX in Lwt.return (Update.ArchiveFile (Props.override info.Fileinfo.desc desc, - dig, Fileinfo.stamp info, ress'), + fp, Fileinfo.stamp info, ress'), [])) | Update.ArchiveSymlink l -> Lwt_util.run_in_region copyReg 1 (fun () -> @@ -564,7 +607,7 @@ (* Rename the files to their final location and then update the archive on the destination replica *) rename rootTo localPathTo workingDir tempPathTo realPathTo uiTo - (Some archTo) >>= fun () -> + (Some archTo) notDefault >>= fun () -> (* Update the archive on the source replica FIX: we could reuse localArch if rootFrom is the same as rootLocal *) updateSourceArchive rootFrom (localPathFrom, uiFrom, errPaths) >>= fun () -> @@ -733,7 +776,8 @@ let cooked = Util.replacesubstring cooked "NEW2" out2 in let cooked = Util.replacesubstring cooked "NEWARCH" outarch in let cooked = Util.replacesubstring cooked "NEW" out1 in - let cooked = Util.replacesubstring cooked "PATH" (Path.toString p) in + let cooked = Util.replacesubstring cooked "PATH" + (Uutil.quotes (Path.toString p)) in cooked let copyBack fspathFrom pathFrom rootTo pathTo propsTo uiTo id = @@ -747,7 +791,7 @@ (Local, fspathFrom) pathFrom rootTo workingDirForCopy tempPathTo realPathTo `Copy newprops fp None stamp id >>= fun info -> rename rootTo localPathTo workingDirForCopy tempPathTo realPathTo - uiTo None) + uiTo None false) let keeptempfilesaftermerge = Prefs.createBool @@ -822,14 +866,14 @@ (* retrieve the archive for this file, if any *) let arch = match ui1, ui2 with - | Updates (_, Previous (_,_,dig,_)), Updates (_, Previous (_,_,dig2,_)) -> - if dig = dig2 then - Stasher.getRecentVersion fspath1 localPath1 dig + | Updates (_, Previous (_,_,fp,_)), Updates (_, Previous (_,_,fp2,_)) -> + if fp = fp2 then + Stasher.getRecentVersion fspath1 localPath1 fp else assert false - | NoUpdates, Updates(_, Previous (_,_,dig,_)) - | Updates(_, Previous (_,_,dig,_)), NoUpdates -> - Stasher.getRecentVersion fspath1 localPath1 dig + | NoUpdates, Updates(_, Previous (_,_,fp,_)) + | Updates(_, Previous (_,_,fp,_)), NoUpdates -> + Stasher.getRecentVersion fspath1 localPath1 fp | Updates (_, New), Updates(_, New) | Updates (_, New), NoUpdates | NoUpdates, Updates (_, New) -> @@ -860,9 +904,9 @@ Os.delete workingDirForMerge newarch; let info1 = Fileinfo.get false workingDirForMerge working1 in (* FIX: Why split out the parts of the pair? Why is it not abstract anyway??? *) - let dig1 = Os.fingerprint workingDirForMerge working1 info1 in + let fp1 = Os.fingerprint workingDirForMerge working1 info1 in let info2 = Fileinfo.get false workingDirForMerge working2 in - let dig2 = Os.fingerprint workingDirForMerge working2 info2 in + let fp2 = Os.fingerprint workingDirForMerge working2 info2 in let cmd = formatMergeCmd path1 (Fspath.quotes (Fspath.concat workingDirForMerge working1)) @@ -910,9 +954,9 @@ say (fun () -> Util.msg "Two outputs detected \n"); let info1 = Fileinfo.get false workingDirForMerge new1 in let info2 = Fileinfo.get false workingDirForMerge new2 in - let dig1' = Os.fingerprint workingDirForMerge new1 info1 in - let dig2' = Os.fingerprint workingDirForMerge new2 info2 in - if dig1'=dig2' then begin + let fp1' = Os.fingerprint workingDirForMerge new1 info1 in + let fp2' = Os.fingerprint workingDirForMerge new2 info2 in + if fp1'=fp2' then begin debug (fun () -> Util.msg "Two outputs equal => update the archive\n"); copy [(new1,working1); (new2,working2); (new1,workingarch)]; end else @@ -950,18 +994,18 @@ if working1_still_exists && working2_still_exists then begin say (fun () -> Util.msg "No output from merge cmd and both original files are still present\n"); let info1' = Fileinfo.get false workingDirForMerge working1 in - let dig1' = Os.fingerprint workingDirForMerge working1 info1' in + let fp1' = Os.fingerprint workingDirForMerge working1 info1' in let info2' = Fileinfo.get false workingDirForMerge working2 in - let dig2' = Os.fingerprint workingDirForMerge working2 info2' in - if dig1 = dig1' && dig2 = dig2' then + let fp2' = Os.fingerprint workingDirForMerge working2 info2' in + if fp1 = fp1' && fp2 = fp2' then raise (Util.Transient "Merge program didn't change either temp file"); - if dig1' = dig2' then begin + if fp1' = fp2' then begin say (fun () -> Util.msg "Merge program made files equal\n"); copy [(working1,workingarch)]; - end else if dig2 = dig2' then begin + end else if fp2 = fp2' then begin say (fun () -> Util.msg "Merge program changed just first input\n"); copy [(working1,working2);(working1,workingarch)] - end else if dig1 = dig1' then begin + end else if fp1 = fp1' then begin say (fun () -> Util.msg "Merge program changed just second input\n"); copy [(working2,working1);(working2,workingarch)] end else @@ -1016,11 +1060,11 @@ Util.msg "Warning: 'backupcurrent' is not set for path %s\n" (Path.toString path1); Stasher.stashCurrentVersion workingDirForMerge localPath1 (Some workingarch); let infoarch = Fileinfo.get false workingDirForMerge workingarch in - let dig = Os.fingerprint arch_fspath Path.empty infoarch in - debug (fun () -> Util.msg "New digest is %s\n" (Os.fullfingerprint_to_string dig)); + let fp = Os.fingerprint arch_fspath Path.empty infoarch in + debug (fun () -> Util.msg "New fingerprint is %s\n" (Os.fullfingerprint_to_string fp)); let new_archive_entry = Update.ArchiveFile - (Props.get (Fs.stat arch_fspath) infoarch.osX, dig, + (Props.get (Fs.stat arch_fspath) infoarch.osX, fp, Fileinfo.stamp (Fileinfo.get true arch_fspath Path.empty), Osx.stamp infoarch.osX) in Update.replaceArchive root1 path1 new_archive_entry >>= fun _ -> diff -Nru unison-2.40.102/files.mli unison-2.48.3/files.mli --- unison-2.40.102/files.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/files.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/files.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* As usual, these functions should only be called by the client (i.e., in *) (* the same address space as the user interface). *) @@ -11,6 +11,7 @@ -> Common.root (* root *) -> Path.t (* path to delete *) -> Common.updateItem (* updates that will be discarded *) + -> bool (* [true] if not Unison's default action *) -> unit Lwt.t (* Region used for the copying. Exported to be correctly set in transport.ml *) @@ -31,6 +32,7 @@ -> Path.t (* to what path *) -> Common.updateItem (* dest. updates *) -> Props.t list (* properties of parent directories *) + -> bool (* [true] if not Unison's default action *) -> Uutil.File.t (* id for showing progress of transfer *) -> unit Lwt.t diff -Nru unison-2.40.102/fileutil.ml unison-2.48.3/fileutil.ml --- unison-2.40.102/fileutil.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fileutil.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fileutil.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/fileutil.mli unison-2.48.3/fileutil.mli --- unison-2.40.102/fileutil.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fileutil.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fileutil.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Convert backslashes in a string to forward slashes. Useful in Windows. *) val backslashes2forwardslashes : string -> string diff -Nru unison-2.40.102/fingerprint.ml unison-2.48.3/fingerprint.ml --- unison-2.40.102/fingerprint.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fingerprint.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fingerprint.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,11 +15,17 @@ along with this program. If not, see . *) - (* NOTE: IF YOU CHANGE TYPE "FINGERPRINT", THE ARCHIVE FORMAT CHANGES; *) (* INCREMENT "UPDATE.ARCHIVEFORMAT" *) type t = string +let pseudo_prefix = "LEN" + +let pseudo path len = pseudo_prefix ^ (Uutil.Filesize.toString len) ^ "@" ^ + (Digest.string (Path.toString path)) + +let ispseudo f = Util.startswith f pseudo_prefix + (* Assumes that (fspath, path) is a file and gives its ``digest '', that is *) (* a short string of cryptographic quality representing it. *) let file fspath path = @@ -67,14 +73,16 @@ (int2hexa first, int2hexa second) let toString md5 = - let length = String.length md5 in - let string = String.create (length * 2) in - for i=0 to (length - 1) do - let c1, c2 = hexaCode (md5.[i]) in - string.[2*i] <- c1; - string.[2*i + 1] <- c2; - done; - string + if ispseudo md5 then md5 else begin + let length = String.length md5 in + let string = String.create (length * 2) in + for i=0 to (length - 1) do + let c1, c2 = hexaCode (md5.[i]) in + string.[2*i] <- c1; + string.[2*i + 1] <- c2; + done; + string + end let string = Digest.string @@ -92,3 +100,4 @@ end let equal (d : string) d' = d = d' + diff -Nru unison-2.40.102/fingerprint.mli unison-2.48.3/fingerprint.mli --- unison-2.40.102/fingerprint.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fingerprint.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fingerprint.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type t @@ -17,3 +17,9 @@ val hash : t -> int val equal : t -> t -> bool + +(* A pseudo-fingerprint has the same type as a real one (so it can + be stored in the archive, etc.), but it is computed just from the + size of the file, ignoring the contents *) +val pseudo : Path.local -> Uutil.Filesize.t -> t +val ispseudo : t -> bool diff -Nru unison-2.40.102/fpcache.ml unison-2.48.3/fpcache.ml --- unison-2.40.102/fpcache.ml 2010-10-08 15:44:59.000000000 +0000 +++ unison-2.48.3/fpcache.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fpcache.ml *) -(* Copyright 1999-2010, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -128,9 +128,9 @@ let magic = "Unison fingerprint cache format 2" -let init fastCheck fspath = +let init fastCheck ignorearchives fspath = finish (); - if fastCheck then begin + if fastCheck && not ignorearchives then begin begin try debug (fun () -> Util.msg "opening cache file %s for input\n" (System.fspathToDebugString fspath)); @@ -235,10 +235,42 @@ in du && ressClearlyUnchanged fastCheck newInfo oldRess du -let fingerprint fastCheck currfspath path info optDig = +let fastercheckUNSAFE = + Prefs.createBool "fastercheckUNSAFE" + false "!skip computing fingerprints for new files (experts only!)" + ( "THIS FEATURE IS STILL EXPERIMENTAL AND SHOULD BE USED WITH EXTREME CAUTION. " + ^ "\n\n" + ^ "When this flag is set to {\\tt true}, Unison will compute a 'pseudo-" + ^ "fingerprint' the first time it sees a file (either because the file is " + ^ "new or because Unison is running for the first time). This enormously " + ^ "speeds update detection, but it must be used with care, as it can cause " + ^ "Unison to miss conflicts: If " + ^ "a given path in the filesystem contains files on {\\em both} sides that " + ^ "Unison has not yet seen, and if those files have the same length but different " + ^ "contents, then Unison will not notice the presence of a conflict. If, later, one " + ^ "of the files is changed, the changed file will be propagated, overwriting " + ^ "the other. " + ^ "\n\n" + ^ "Moreover, even when the files are initially identical, setting this flag can lead " + ^ "to potentially confusing behavior: " + ^ "if a newly created file is later touched without being modified, Unison will " + ^ "treat this " + ^ "conservatively as a potential change (since it has no record of the earlier " + ^ "contents) and show it as needing to be propagated to the other replica. " + ^ "\n\n" + ^ "Most users should leave this flag off -- the small time savings of not " + ^ "fingerprinting new files is not worth the cost in terms of safety. However, " + ^ "it can be very useful for power users with huge replicas that are known to " + ^ "be already synchronized (e.g., because one replica is a newly created duplicate " + ^ "of the other, or because they have previously been synchronized with Unison but " + ^ "Unison's archives need to be rebuilt). In such situations, it is recommended " + ^ "that this flag be set only for the initial run of Unison, so that new archives " + ^ "can be created quickly, and then turned off for normal use.") + +let fingerprint ?(newfile=false) fastCheck currfspath path info optFp = let res = try - let (cachedDesc, cachedDig, cachedStamp, cachedRess) = + let (cachedDesc, cachedFp, cachedStamp, cachedRess) = PathTbl.find tbl (Path.toString path) in if not (clearlyUnchanged @@ -247,13 +279,21 @@ raise Not_found; debug (fun () -> Util.msg "cache hit for path %s\n" (Path.toDebugString path)); - (info.Fileinfo.desc, cachedDig, Fileinfo.stamp info, + (info.Fileinfo.desc, cachedFp, Fileinfo.stamp info, Fileinfo.ressStamp info) with Not_found -> if fastCheck then debug (fun () -> Util.msg "cache miss for path %s\n" (Path.toDebugString path)); - let (info, dig) = Os.safeFingerprint currfspath path info optDig in + let (info, dig) = + if Prefs.read fastercheckUNSAFE && newfile then begin + debug (fun()-> Util.msg "skipping initial fingerprint of %s\n" + (Fspath.toDebugString (Fspath.concat currfspath path))); + (Fileinfo.get false currfspath path, + Os.pseudoFingerprint path (Props.length info.Fileinfo.desc)) + end else begin + Os.safeFingerprint currfspath path info optFp + end in (info.Fileinfo.desc, dig, Fileinfo.stamp info, Fileinfo.ressStamp info) in save path res; diff -Nru unison-2.40.102/fpcache.mli unison-2.48.3/fpcache.mli --- unison-2.40.102/fpcache.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fpcache.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,14 +1,15 @@ (* Unison file synchronizer: src/fpcache.mli *) -(* Copyright 1999-2010, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Initialize the cache *) -val init : bool -> System.fspath -> unit +val init : bool -> bool -> System.fspath -> unit (* Close the cache file and clear the in-memory cache *) val finish : unit -> unit (* Get the fingerprint of a file, possibly from the cache *) val fingerprint : + ?newfile:bool -> bool -> Fspath.t -> Path.local -> Fileinfo.t -> Os.fullfingerprint option -> Props.t * Os.fullfingerprint * Fileinfo.stamp * Osx.ressStamp diff -Nru unison-2.40.102/fs.ml unison-2.48.3/fs.ml --- unison-2.40.102/fs.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fs.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fs.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/fs.mli unison-2.48.3/fs.mli --- unison-2.40.102/fs.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/fs.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fs.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Operations on fspaths *) diff -Nru unison-2.40.102/fsmonitor/linux/inotify.ml unison-2.48.3/fsmonitor/linux/inotify.ml --- unison-2.40.102/fsmonitor/linux/inotify.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/inotify.ml 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,119 @@ +(* + * Copyright (C) 2006-2008 Vincent Hanquez + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; version 2.1 only. with the special + * exception on linking described in file LICENSE. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * Inotify OCaml binding + *) + +exception Error of string * int + +type select_event = + | S_Access + | S_Attrib + | S_Close_write + | S_Close_nowrite + | S_Create + | S_Delete + | S_Delete_self + | S_Modify + | S_Move_self + | S_Moved_from + | S_Moved_to + | S_Open + | S_Dont_follow + | S_Mask_add + | S_Oneshot + | S_Onlydir + (* convenience *) + | S_Move + | S_Close + | S_All + +type type_event = + | Access + | Attrib + | Close_write + | Close_nowrite + | Create + | Delete + | Delete_self + | Modify + | Move_self + | Moved_from + | Moved_to + | Open + | Ignored + | Isdir + | Q_overflow + | Unmount + +let string_of_event = function + | Access -> "ACCESS" + | Attrib -> "ATTRIB" + | Close_write -> "CLOSE_WRITE" + | Close_nowrite -> "CLOSE_NOWRITE" + | Create -> "CREATE" + | Delete -> "DELETE" + | Delete_self -> "DELETE_SELF" + | Modify -> "MODIFY" + | Move_self -> "MOVE_SELF" + | Moved_from -> "MOVED_FROM" + | Moved_to -> "MOVED_TO" + | Open -> "OPEN" + | Ignored -> "IGNORED" + | Isdir -> "ISDIR" + | Q_overflow -> "Q_OVERFLOW" + | Unmount -> "UNMOUNT" + +let int_of_wd wd = wd + +type wd = int +type event = wd * type_event list * int32 * string option + +external init : unit -> Unix.file_descr = "stub_inotify_init" +external add_watch : Unix.file_descr -> string -> select_event list -> wd + = "stub_inotify_add_watch" +external rm_watch : Unix.file_descr -> wd -> unit = "stub_inotify_rm_watch" +external convert : string -> (wd * type_event list * int32 * int) + = "stub_inotify_convert" +external struct_size : unit -> int = "stub_inotify_struct_size" + +external to_read : Unix.file_descr -> int = "stub_inotify_ioctl_fionread" + +let read fd = + let ss = struct_size () in + let toread = to_read fd in + + let ret = ref [] in + let buf = String.make toread '\000' in + let toread = Unix.read fd buf 0 toread in + + let read_c_string offset len = + let index = ref 0 in + while !index < len && buf.[offset + !index] <> '\000' do incr index done; + String.sub buf offset !index + in + + let i = ref 0 in + + while !i < toread + do + let wd, l, cookie, len = convert (String.sub buf !i ss) in + let s = if len > 0 then Some (read_c_string (!i + ss) len) else None in + ret := (wd, l, cookie, s) :: !ret; + i := !i + (ss + len); + done; + + List.rev !ret + +let _ = Callback.register_exception "inotify.error" (Error ("register_callback", 0)) + diff -Nru unison-2.40.102/fsmonitor/linux/inotify.mli unison-2.48.3/fsmonitor/linux/inotify.mli --- unison-2.40.102/fsmonitor/linux/inotify.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/inotify.mli 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,66 @@ +(* + * Copyright (C) 2006-2008 Vincent Hanquez + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; version 2.1 only. with the special + * exception on linking described in file LICENSE. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * Inotify OCaml binding + *) +exception Error of string * int + +type select_event = +| S_Access +| S_Attrib +| S_Close_write +| S_Close_nowrite +| S_Create +| S_Delete +| S_Delete_self +| S_Modify +| S_Move_self +| S_Moved_from +| S_Moved_to +| S_Open +| S_Dont_follow +| S_Mask_add +| S_Oneshot +| S_Onlydir +| S_Move +| S_Close +| S_All + +type type_event = +| Access +| Attrib +| Close_write +| Close_nowrite +| Create +| Delete +| Delete_self +| Modify +| Move_self +| Moved_from +| Moved_to +| Open +| Ignored +| Isdir +| Q_overflow +| Unmount + +type wd +type event = wd * type_event list * int32 * string option + +val int_of_wd : wd -> int +val string_of_event : type_event -> string + +val init : unit -> Unix.file_descr +val add_watch : Unix.file_descr -> string -> select_event list -> wd +val rm_watch : Unix.file_descr -> wd -> unit +val read : Unix.file_descr -> event list diff -Nru unison-2.40.102/fsmonitor/linux/inotify_stubs.c unison-2.48.3/fsmonitor/linux/inotify_stubs.c --- unison-2.40.102/fsmonitor/linux/inotify_stubs.c 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/inotify_stubs.c 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,150 @@ +/* + * Copyright (C) 2006-2008 Vincent Hanquez + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; version 2.1 only. with the special + * exception on linking described in file LICENSE. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * Inotify Ocaml binding - C glue + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 4 +#define GLIBC_SUPPORT_INOTIFY 1 +#else +#define GLIBC_SUPPORT_INOTIFY 0 +#endif + +#if GLIBC_SUPPORT_INOTIFY +#include +#else +#include "inotify_compat.h" +#endif + +static int inotify_flag_table[] = { + IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, + IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, + IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, + IN_DONT_FOLLOW, IN_MASK_ADD, IN_ONESHOT, IN_ONLYDIR, + IN_MOVE, IN_CLOSE, IN_ALL_EVENTS, 0 +}; + +static int inotify_return_table[] = { + IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, + IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, + IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, + IN_IGNORED, IN_ISDIR, IN_Q_OVERFLOW, IN_UNMOUNT, 0 +}; + +static void raise_inotify_error(char const *msg) +{ + static value *inotify_err = NULL; + value args[2]; + + if (!inotify_err) + inotify_err = caml_named_value("inotify.error"); + args[0] = caml_copy_string(msg); + args[1] = Val_int(errno); + + caml_raise_with_args(*inotify_err, 2, args); +} + +value stub_inotify_init(value unit) +{ + CAMLparam1(unit); + int fd; + + fd = inotify_init(); + CAMLreturn(Val_int(fd)); +} + +value stub_inotify_ioctl_fionread(value fd) +{ + CAMLparam1(fd); + int rc, bytes; + + rc = ioctl(Int_val(fd), FIONREAD, &bytes); + if (rc == -1) + raise_inotify_error("ioctl fionread"); + + CAMLreturn(Val_int(bytes)); +} + +value stub_inotify_add_watch(value fd, value path, value mask) +{ + CAMLparam3(fd, path, mask); + int cv_mask, wd; + + cv_mask = caml_convert_flag_list(mask, inotify_flag_table); + wd = inotify_add_watch(Int_val(fd), String_val(path), cv_mask); + if (wd < 0) + raise_inotify_error("add_watch"); + CAMLreturn(Val_int(wd)); +} + +value stub_inotify_rm_watch(value fd, value wd) +{ + CAMLparam2(fd, wd); + int ret; + + ret = inotify_rm_watch(Int_val(fd), Int_val(wd)); + if (ret == -1) + raise_inotify_error("rm_watch"); + CAMLreturn(Val_unit); +} + +value stub_inotify_struct_size(void) +{ + CAMLparam0(); + CAMLreturn(Val_int(sizeof(struct inotify_event))); +} + +value stub_inotify_convert(value buf) +{ + CAMLparam1(buf); + CAMLlocal3(event, l, tmpl); + struct inotify_event ev; + int i; + + l = Val_emptylist; + tmpl = Val_emptylist; + + memcpy(&ev, String_val(buf), sizeof(struct inotify_event)); + + for (i = 0; inotify_return_table[i]; i++) { + if (!(ev.mask & inotify_return_table[i])) + continue; + tmpl = caml_alloc_small(2, Tag_cons); + Field(tmpl, 0) = Val_int(i); + Field(tmpl, 1) = l; + l = tmpl; + } + + event = caml_alloc_tuple(4); + Store_field(event, 0, Val_int(ev.wd)); + Store_field(event, 1, l); + Store_field(event, 2, caml_copy_int32(ev.cookie)); + Store_field(event, 3, Val_int(ev.len)); + + CAMLreturn(event); +} diff -Nru unison-2.40.102/fsmonitor/linux/lwt_inotify.ml unison-2.48.3/fsmonitor/linux/lwt_inotify.ml --- unison-2.40.102/fsmonitor/linux/lwt_inotify.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/lwt_inotify.ml 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,49 @@ +(* Unison file synchronizer: src/monitoring-linux/lwt_inotify.ml *) +(* Copyright 1999-2012, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +let (>>=) = Lwt.bind + +type t = + { fd : Unix.file_descr; + lwt_fd : Lwt_unix.file_descr; + q : Inotify.event Queue.t } + +let init () = + let fd = Inotify.init () in + { fd = fd; + lwt_fd = + Lwt_unix.of_unix_file_descr (*~blocking:false ~set_flags:true*) fd; + q = Queue.create () } + +let add_watch st path sel = +(* Lwt_unix.check_descriptor st.lwt_fd;*) + Inotify.add_watch st.fd path sel + +let rm_watch st wd = +(* Lwt_unix.check_descriptor st.lwt_fd;*) + Inotify.rm_watch st.fd wd + +let rec read st = + try + Lwt.return (Queue.take st.q) + with Queue.Empty -> + Lwt_unix.wait_read st.lwt_fd >>= fun () -> + let l = Inotify.read st.fd in + List.iter (fun ev -> Queue.push ev st.q) l; + read st + +let close st = Lwt_unix.close st.lwt_fd diff -Nru unison-2.40.102/fsmonitor/linux/lwt_inotify.mli unison-2.48.3/fsmonitor/linux/lwt_inotify.mli --- unison-2.40.102/fsmonitor/linux/lwt_inotify.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/lwt_inotify.mli 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,10 @@ +(* Unison file synchronizer: src/monitoring-linux/lwt_inotify.mli *) +(* Copyright 2012, Benjamin C. Pierce (see COPYING for details) *) + +type t + +val init : unit -> t +val add_watch : t -> string -> Inotify.select_event list -> Inotify.wd +val rm_watch : t -> Inotify.wd -> unit +val read : t -> Inotify.event Lwt.t +val close : t -> unit (*Lwt.t*) diff -Nru unison-2.40.102/fsmonitor/linux/Makefile unison-2.48.3/fsmonitor/linux/Makefile --- unison-2.40.102/fsmonitor/linux/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/Makefile 2012-09-18 16:10:59.000000000 +0000 @@ -0,0 +1,29 @@ + +FSMONITOR = $(NAME)-fsmonitor + +DIR=fsmonitor/linux +FSMOCAMLOBJS = \ + lwt/lwt.cmo lwt/pqueue.cmo lwt/generic/lwt_unix_impl.cmo lwt/lwt_unix.cmo \ + $(DIR)/inotify.cmo $(DIR)/lwt_inotify.cmo \ + fsmonitor/watchercommon.cmo $(DIR)/watcher.cmo +FSMCOBJS = \ + $(DIR)/inotify_stubs.o +FSMOCAMLLIBS=unix.cma + +ifeq ($(NATIVE), true) + FSMCAMLOBJS=$(subst .cmo,.cmx, $(FSMOCAMLOBJS)) + FSMCAMLLIBS=$(subst .cma,.cmxa, $(FSMOCAMLLIBS)) +else + FSMCAMLOBJS=$(FSMOCAMLOBJS) + FSMCAMLLIBS=$(FSMOCAMLLIBS) +endif + +buildexecutable:: $(FSMONITOR)$(EXEC_EXT) + +$(FSMONITOR)$(EXEC_EXT): $(FSMCAMLOBJS) $(FSMCOBJS) + @echo Linking $@ + $(CAMLC) -verbose $(CAMLFLAGS) -o $@ $(CFLAGS) $(FSMCAMLLIBS) $^ $(CLIBS) + +clean:: + rm -f $(DIR)/*.cm[iox] $(DIR)/*.o $(DIR)/*~ + rm -f $(FSMONITOR)$(EXEC_EXT) \ No newline at end of file diff -Nru unison-2.40.102/fsmonitor/linux/watcher.ml unison-2.48.3/fsmonitor/linux/watcher.ml --- unison-2.40.102/fsmonitor/linux/watcher.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/linux/watcher.ml 2012-11-20 11:01:22.000000000 +0000 @@ -0,0 +1,257 @@ +(* Unison file synchronizer: src/fsmonitoring/linux/watcher.ml *) +(* Copyright 2012, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +(* +LIMITATIONS +- we do not detect when a directory below a path is moved; +- same limitation for the directories containing symlinked files; +- do not watch chains of symlinks (only the first symlink and the + final target are watched) +- we do not watch non-existent roots + +POSSIBLE IMPROVEMENTS +- there could be a special case for directory attribute changes + +Maybe we should ignore Unison temporary files +*) + +let (>>=) = Lwt.bind + +module M = Watchercommon.F(struct type watch = Inotify.wd end) +include M + +(****) + +module Linux = struct + +let print_opt_path f p = + match p with + Some p -> Format.fprintf f " \"%s\"" p + | None -> () + +let print_event path_of_id (wd, evl, id, p) = + Format.eprintf "%02d %s%a" + (Inotify.int_of_wd wd) (path_of_id wd) print_opt_path p; + List.iter (fun ev -> Format.eprintf " %s" (Inotify.string_of_event ev)) evl; + if id <> 0l then Format.eprintf " %08lx" id; + Format.eprintf "@." + +let action_kind ev = + Inotify. + (match ev with + | Access -> `OTHER + | Attrib -> `MODIF + | Close_write -> `OTHER + | Close_nowrite -> `OTHER + | Create -> `CREAT + | Delete -> `DEL + | Delete_self -> `DEL + | Modify -> `MODIF + | Move_self -> `DEL + | Moved_from -> `DEL + | Moved_to -> `MODIF + | Open -> `OTHER + | Ignored -> `OTHER + | Isdir -> `OTHER + | Q_overflow -> `OTHER + | Unmount -> `DEL) + +let event_kind (_, evl, _, _) = + List.fold_left (fun k act -> if k = `OTHER then action_kind act else k) + `OTHER evl + +let is_change ev = + Inotify. + (match ev with + | Access -> false + | Attrib -> true + | Close_write -> false + | Close_nowrite -> false + | Create -> true + | Delete -> true + | Delete_self -> true + | Modify -> true + | Move_self -> true + | Moved_from -> true + | Moved_to -> true + | Open -> false + | Ignored -> false + | Isdir -> false + | Q_overflow -> false + | Unmount -> true) + +let is_creation ev = ev = Inotify.Create + +let is_deletion ev = + Inotify. + (match ev with + | Access -> false + | Attrib -> false + | Close_write -> false + | Close_nowrite -> false + | Create -> false + | Delete -> true + | Delete_self -> true + | Modify -> false + | Move_self -> true + | Moved_from -> true + | Moved_to -> false + | Open -> false + | Ignored -> false + | Isdir -> false + | Q_overflow -> false + | Unmount -> true) + +let is_immediate ev = + Inotify. + (match ev with + | Access -> false + | Attrib -> false + | Close_write -> false + | Close_nowrite -> false + | Create -> false + | Delete -> true + | Delete_self -> true + | Modify -> false + | Move_self -> true + | Moved_from -> true + | Moved_to -> true + | Open -> false + | Ignored -> false + | Isdir -> false + | Q_overflow -> false + | Unmount -> true) + +let event_is_change (_, evl, _, _) = List.exists is_change evl +let event_is_creation (_, evl, _, _) = List.exists is_creation evl +let event_is_deletion (_, evl, _, _) = List.exists is_deletion evl +let event_is_immediate (_, evl, _, _) = List.exists is_immediate evl + +let st = Lwt_inotify.init () + +module IntSet = + Set.Make + (struct type t = int let compare (x : int) (y : int) = compare x y end) + +let watcher_by_id = Hashtbl.create 16 + +let path_of_id id = + try + dir_path + (Hashtbl.find file_by_id (IntSet.choose (Hashtbl.find watcher_by_id id))) + "" + with Not_found -> + Format.sprintf "????" + +let previous_event = ref None +let time_ref = ref (ref 0.) + +let clear_event_memory () = previous_event := None + +let rec watch_rec () = + Lwt_inotify.read st >>= fun ((wd, evl, _, nm_opt) as ev) -> + let time = Unix.gettimeofday () in + if !previous_event <> Some ev then begin + previous_event := Some ev; + if !Watchercommon.debug then print_event path_of_id ev; + time_ref := ref time; + let kind = event_kind ev in + if kind <> `OTHER then begin + try + let files = Hashtbl.find watcher_by_id wd in + let event_time = if event_is_immediate ev then ref 0. else !time_ref in + IntSet.iter + (fun file -> + signal_change + event_time (Hashtbl.find file_by_id file) nm_opt kind) + files + with Not_found -> + () + end else if List.mem Inotify.Q_overflow evl then begin + if !Watchercommon.debug then Format.eprintf "OVERFLOW@."; + signal_overflow () + end + end else + !time_ref := time; + watch_rec () + +let watch () = + ignore + (Lwt.catch (fun () -> watch_rec ()) + (fun e -> + Watchercommon.error + ("error while handling events: " ^ Watchercommon.format_exc e))) + +let i = ref 0 + +let release_watch file = + match get_watch file with + None -> + () + | Some id -> + set_watch file None; + let s = IntSet.remove (get_id file) (Hashtbl.find watcher_by_id id) in + if IntSet.is_empty s then begin + incr i; if !i mod 32 = 0 then Lwt_unix.run (Lwt_unix.yield ()); + begin try + Lwt_inotify.rm_watch st id + (* Will fail with EINVAL if the file has been deleted... *) + with Inotify.Error (_, no) -> + () + end; + Hashtbl.remove watcher_by_id id + end else + Hashtbl.replace watcher_by_id id s + +let selected_events = + Inotify.([S_Attrib; S_Modify; S_Delete_self; S_Move_self; + S_Create; S_Delete; S_Modify; S_Moved_from; S_Moved_to]) + +let add_watch path file = + try + let id = Lwt_inotify.add_watch st path selected_events in + begin match get_watch file with + Some id' when id = id' -> + () + | _ -> + release_watch file; + let s = + try Hashtbl.find watcher_by_id id with Not_found -> IntSet.empty in + Hashtbl.replace watcher_by_id id (IntSet.add (get_id file) s); + set_watch file (Some id) + end + with Inotify.Error (_, no) -> + release_watch file; + match no with + 2 (* ENOENT *) -> + Watchercommon.error + (Format.sprintf "file '%s' does not exist" path) + | 28 (* ENOSPC *) -> + Watchercommon.error "cannot add a watcher: system limit reached" + | 13 (* EACCES *) | 20 (* ENOTDIR *) | 40 (* ELOOP *) -> + (* These errors should be well handled by Unison (they will + result in errors during update detection *) + () + | _ -> + Watchercommon.error + (Format.sprintf "unexpected error %d while adding a watcher" no) + +end + +(****) + +include F(Linux) diff -Nru unison-2.40.102/fsmonitor/watchercommon.ml unison-2.48.3/fsmonitor/watchercommon.ml --- unison-2.40.102/fsmonitor/watchercommon.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/watchercommon.ml 2012-09-24 11:44:38.000000000 +0000 @@ -0,0 +1,621 @@ +(* Unison file synchronizer: src/fsmonitoring/watchercommon.ml *) +(* Copyright 2012, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +let debug = ref false + +let _ = + if Sys.os_type = "Unix" then + ignore(Sys.set_signal Sys.sigpipe Sys.Signal_ignore) + +module StringMap = Map.Make(String) +(*FIX: temporary workaround, as there is no StringMap.filter function + in OCaml 3.11 *) +let stringmap_filter f m = + StringMap.fold (fun k v m' -> if f k v then StringMap.add k v m' else m') + m StringMap.empty +module StringSet = Set.Make(String) +module IntSet = + Set.Make + (struct type t = int let compare (x : int) (y : int) = compare x y end) + +let disallowed_char c = + match c with + 'A'..'Z' | 'a'..'z' | '0'..'9' | '-' | '_' | '.' | '~' + | '!' | '*' | '\'' | '(' | ')' | ';' | ':' | '@' | '&' + | '=' | '+' | '$' | ',' | '/' | '?' | '#' | '[' | ']' -> + false + | _ -> + true + +let quote s = + let l = String.length s in + let n = ref 0 in + for i = 0 to l - 1 do if disallowed_char s.[i] then incr n done; + if !n = 0 then s else begin + let q = String.create (l + 2 * !n) in + let j = ref 0 in + let hex = "0123456789ABCDEF" in + for i = 0 to l - 1 do + let c = s.[i] in + if disallowed_char s.[i] then begin + q.[!j] <- '%'; + q.[!j + 1] <- hex.[Char.code c lsr 4]; + q.[!j + 2] <- hex.[Char.code c land 15]; + j := !j + 3 + end else begin + q.[!j] <- c; + incr j + end + done; + q + end + +let unquote s = + let l = String.length s in + let n = ref 0 in + for i = 0 to l - 1 do if s.[i] = '%' then incr n done; + if !n = 0 then s else begin + let hex_char c = + match c with + '0'..'9' -> Char.code c - Char.code '0' + | 'a'..'f' -> Char.code c - Char.code 'a' + 10 + | 'A'..'F' -> Char.code c - Char.code 'A' + 10 + | _ -> invalid_arg "unquote" + in + let u = String.create (l - 2 * !n) in + let j = ref 0 in + for i = 0 to l - 2 * !n - 1 do + let c = s.[!j] in + if c = '%' then begin + u.[i] <- Char.chr ((hex_char s.[!j + 1]) lsl 4 + hex_char s.[!j + 2]); + j := !j + 3 + end else begin + u.[i] <- c; + incr j + end + done; + u + end + +let split_on_space s = + try + let i = String.index s ' ' in + (String.sub s 0 i, + String.sub s (i + 1) (String.length s - i - 1)) + with Not_found -> + (s, "") + +let (>>=) = Lwt.bind + +let rec really_write o s pos len = + Lwt_unix.write o s pos len >>= fun l -> + if l = len then + Lwt.return () + else + really_write o s (pos + l) (len - l) + +let format_exc e = + match e with + Unix.Unix_error (code, funct, arg) -> + Format.sprintf "%s [%s%s]%s@." + (Unix.error_message code) funct + (if String.length arg > 0 then "(" ^ arg ^ ")" else "") + (match code with + Unix.EUNKNOWNERR n -> Format.sprintf " (code %d)" n + | _ -> "") + | _ -> + Format.sprintf "uncaugth exception %s@." (Printexc.to_string e) + +(****) + +let _in = (*Lwt_unix.stdin*) Lwt_unix.of_unix_file_descr Unix.stdin +let _out = (*Lwt_unix.stdout*) Lwt_unix.of_unix_file_descr Unix.stdout + +let printf fmt = + Printf.ksprintf (fun s -> really_write _out s 0 (String.length s)) fmt + +let read_line = + let b = Buffer.create 160 in + let buf = String.create 160 in + let start = ref 0 in + let last = ref 0 in + let rec read_line () = + begin if !start = !last then begin + Lwt_unix.read _in buf 0 160 >>= fun l -> + if l = 0 then raise End_of_file; + start := 0; last := l; + Lwt.return () + end else + Lwt.return () + end >>= fun () -> + try + let i = String.index_from buf !start '\n' in + if i >= !last then raise Not_found; + Buffer.add_substring b buf !start (i - !start); + start := i + 1; + let s = Buffer.contents b in + Buffer.clear b; + Lwt.return s + with Not_found -> + Buffer.add_substring b buf !start (!last - !start); + start := 0; last := 0; + read_line () + in + read_line + +let error msg = + Lwt_unix.run (printf "ERROR %s\n" (quote msg)); + exit 1 + +(****) + +module F (M : sig type watch end) = struct +include M + +type status = Modified | Created + +type t = + { id : int; mutable gen : int; + mutable watch : watch option; + mutable subdirs : t StringMap.t; + parent : parent; + archive_hash : string; + mutable changed : bool; + mutable changed_children : (status * float ref) StringMap.t } + +and parent = Root of string * string | Parent of string * t + +let get_id file = file.id +let get_watch file = file.watch +let set_watch file watch = file.watch <- watch +let get_subdirs file = file.subdirs + +let current_gen = ref 0 + +let file_by_id = Hashtbl.create 16 +let roots = Hashtbl.create 16 + +let concat fspath path = + if path = "" then fspath else Filename.concat fspath path + +let is_root file = + match file.parent with + Root _ -> true + | Parent _ -> false + +let rec dir_path dir path = + match dir.parent with + Root (fspath, path') -> concat fspath (concat path' path) + | Parent (name, dir) -> dir_path dir (concat name path) + +(****) + +let delay = 0.5 + +let changes = ref StringMap.empty + +let waiting_for_changes = ref StringSet.empty +let active_wait = ref false + +let change_table hash = + try + StringMap.find hash !changes + with Not_found -> + let h = Hashtbl.create 1024 in + changes := StringMap.add hash h !changes; + h + +let signal_changes replicas_with_changes = + waiting_for_changes := StringSet.empty; + printf "CHANGES %s\n" + (String.concat " " + (List.map quote (StringSet.elements replicas_with_changes))) + +let signal_immediate_changes hash = + if StringSet.mem hash !waiting_for_changes then begin + waiting_for_changes := StringSet.empty; + printf "CHANGES %s\n" (quote hash) + end else + Lwt.return () + +let replicas_with_changes watched_replicas = + let time = Unix.gettimeofday () in + let changed = ref StringSet.empty in + Hashtbl.iter + (fun (hash', _, _) r -> + if + r.changed && + not (StringSet.mem hash' !changed) && + StringSet.mem hash' watched_replicas + then + changed := StringSet.add hash' !changed) + roots; + StringSet.iter + (fun hash -> + if not (StringSet.mem hash !changed) then + try + Hashtbl.iter + (fun _ time_ref -> if time -. !time_ref > delay then raise Exit) + (change_table hash) + with Exit -> + changed := StringSet.add hash !changed) + watched_replicas; + !changed + +let has_impending_changes watched_replicas = + try + StringSet.iter + (fun hash -> Hashtbl.iter (fun _ _ -> raise Exit) (change_table hash)) + watched_replicas; + false + with Exit -> + true + +let rec wait_for_changes watched_replicas = + if not (StringSet.is_empty watched_replicas) then begin + let changed = replicas_with_changes watched_replicas in + if not (StringSet.is_empty changed) then signal_changes changed else + if has_impending_changes watched_replicas then signal_impending_changes () + else Lwt.return () + end else + Lwt.return () + +and signal_impending_changes () = + if not (StringSet.is_empty !waiting_for_changes || !active_wait) then begin + active_wait := true; + Lwt_unix.sleep delay >>= fun () -> + active_wait := false; + wait_for_changes !waiting_for_changes + end else + Lwt.return () + +let wait hash = + waiting_for_changes := StringSet.add hash !waiting_for_changes; + ignore (wait_for_changes (StringSet.singleton hash)) + +let add_change dir nm time = + Hashtbl.replace (change_table dir.archive_hash) (dir.id, nm) time; + if !time = 0. then + ignore (signal_immediate_changes dir.archive_hash) + else + ignore (signal_impending_changes ()) +let remove_change dir nm = + Hashtbl.remove (change_table dir.archive_hash) (dir.id, nm) +let clear_change_table hash = + changes := StringMap.remove hash !changes + +let rec clear_changes hash time = + let rec clear_rec f = + f.changed_children <- + stringmap_filter + (fun nm (_, time_ref) -> + if time -. !time_ref <= delay then true else begin + remove_change f nm; + false + end) + f.changed_children; + StringMap.iter (fun _ f' -> clear_rec f') f.subdirs + in + Hashtbl.iter + (fun (hash', _, _) f -> + if hash' = hash then begin + f.changed <- false; + clear_rec f + end) + roots + +(****) + +let rec signal_change time dir nm_opt kind = + match nm_opt with + Some nm -> + begin try + let (st, _) = StringMap.find nm dir.changed_children in + if + st = Created && kind = `DEL && + not (StringMap.mem nm dir.subdirs) + then begin + if !debug then Format.eprintf "Deleted: %s@." (dir_path dir nm); + dir.changed_children <- StringMap.remove nm dir.changed_children; + remove_change dir nm + end else begin + dir.changed_children <- + StringMap.add nm (st, time) dir.changed_children; + add_change dir nm time + end + with Not_found -> + if kind = `CREAT && dir.gen <> !current_gen then begin + if !debug then Format.eprintf "Created: %s@." (dir_path dir nm); + dir.changed_children <- + StringMap.add nm (Created, time) dir.changed_children; + add_change dir nm time + end else begin + if !debug then Format.eprintf "Modified: %s@." (dir_path dir nm); + dir.changed_children <- + StringMap.add nm (Modified, time) dir.changed_children; + add_change dir nm time + end + end + | None -> + match dir.parent with + Root _ -> + dir.changed <- true; + ignore (signal_immediate_changes dir.archive_hash) + | Parent (nm, parent_dir) -> + signal_change time parent_dir (Some nm) kind + +let signal_overflow () = + Hashtbl.iter (fun _ r -> r.changed <- true) roots; + if not (StringSet.is_empty !waiting_for_changes) then + ignore (signal_changes !waiting_for_changes) + +(****) + +module type S = sig + val add_watch : string -> t -> unit + val release_watch : t -> unit + val watch : unit -> unit + val clear_event_memory : unit -> unit +end + +module F (M : S) = struct +include M + +let gather_changes hash time = + clear_event_memory (); + let rec gather_rec path r l = + let c = + stringmap_filter (fun _ (_, time_ref) -> time -. !time_ref > delay) + r.changed_children + in + let l = StringMap.fold (fun nm _ l -> concat path nm :: l) c l in + StringMap.fold + (fun nm r' l -> + if StringMap.mem nm c then l else + gather_rec (concat path nm) r' l) + r.subdirs l + in + List.rev + (Hashtbl.fold + (fun (hash', _, path) r l -> + if hash' <> hash then l else + (* If this path is not watched (presumably, it does not exist), + we report that it should be scanned again. On the other hand, + this is not reported as a change by the WAIT function, so that + Unison does not loop checking this path. *) + if r.changed && r.watch = None then path :: l else + gather_rec path r l) + roots []) + +let rec find_root hash fspath path = + if Hashtbl.mem roots (hash, fspath, path) then + Some (fspath, path) + else + try + let i = String.rindex path '/' in + find_root hash fspath (String.sub path 0 i) + with Not_found -> + if path = "" then + None + else + find_root hash fspath "" + +let last_file_id = ref 0 + +let new_file hash parent = + let f = + { id = !last_file_id; watch = None; gen = -1; + parent = parent; archive_hash = hash; subdirs = StringMap.empty; + changed = false; changed_children = StringMap.empty } + in + incr last_file_id; + Hashtbl.add file_by_id f.id f; + f + +let new_root hash fspath path = + if !debug then Format.eprintf "ROOT %s %s@." fspath path; + let r = new_file hash (Root (fspath, path)) in + Hashtbl.add roots (hash, fspath, path) r; + r + +let dir_child dir name = + try + StringMap.find name dir.subdirs + with Not_found -> + let d = new_file dir.archive_hash (Parent (name, dir)) in + dir.subdirs <- StringMap.add name d dir.subdirs; + d + +let rec follow_path dir path pos = + if path = "" then dir else + try + let i = String.index_from path pos '/' in + try + let dir = StringMap.find (String.sub path pos (i - pos)) dir.subdirs in + follow_path dir path (i + 1) + with Not_found -> + assert false + with Not_found -> + dir_child dir (String.sub path pos (String.length path - pos)) + +let rec follow_fspath hash fspath dir path pos = + if path = "" then dir else + try + let i = String.index_from path pos '/' in + try + let dir = StringMap.find (String.sub path pos (i - pos)) dir.subdirs in + follow_fspath hash fspath dir path (i + 1) + with Not_found -> + new_root hash fspath path + with Not_found -> + dir_child dir (String.sub path pos (String.length path - pos)) + +let find_start hash fspath path = + match find_root hash fspath path with + None -> + new_root hash fspath path + | Some (root_fspath, root_path) -> + let root = Hashtbl.find roots (hash, root_fspath, root_path) in + if fspath = root_fspath && path = root_path then + root + else + follow_fspath hash fspath root path + (if root_path = "" then 0 else String.length root_path + 1) + +let clear_file_changes file = + StringMap.iter (fun nm _ -> remove_change file nm) file.changed_children; + file.changed_children <- StringMap.empty; + file.changed <- false + +let rec remove_file file = + if !debug then Format.eprintf "REMOVING %s@." (dir_path file ""); + StringMap.iter (fun _ f -> remove_file f) file.subdirs; + Hashtbl.remove file_by_id file.id; + release_watch file; + match file.parent with + Root _ -> () + | Parent (nm, p) -> p.subdirs <- StringMap.remove nm p.subdirs + +let rec remove_old_files file = + if file.gen <> !current_gen then remove_file file else begin + StringMap.iter (fun _ f -> remove_old_files f) file.subdirs; + if + file.watch = None && StringMap.is_empty file.subdirs && + not (is_root file) + then + remove_file file + end + +let print_ack () = printf "OK\n" + +let start_watching hash fspath path = + let start_file = find_start hash fspath path in + clear_file_changes start_file; + start_file.gen <- !current_gen; + let fspath = concat fspath path in +(*Format.eprintf ">>> %s@." fspath;*) + if is_root start_file then add_watch fspath start_file; + print_ack () >>= fun () -> + let rec add_directories () = + read_line () >>= fun l -> + let (cmd, path) = split_on_space l in + let path = unquote path in + match cmd with + "DIR" -> +(*Format.eprintf "DIR %s@." path;*) + let fullpath = concat fspath path in + let file = follow_path start_file path 0 in + clear_file_changes file; + file.gen <- !current_gen; +(*Format.eprintf "%s@." fullpath;*) + add_watch fullpath file; + print_ack () >>= fun () -> + add_directories () + | "LINK" -> +(*Format.eprintf "LINK %s@." path;*) + let fullpath = concat fspath path in + let file = follow_path start_file path 0 in + clear_file_changes file; + file.gen <- !current_gen; +(*Format.eprintf "%s@." fullpath;*) + add_watch fullpath file; + print_ack () >>= fun () -> + add_directories () + | "DONE" -> + Lwt.return () + | _ -> + error (Format.sprintf "unknown command '%s'" cmd) + in + add_directories () >>= fun () -> + (* We remove any file which is not watched anymore, + as well as files which are not in fact watched. *) + remove_old_files start_file; + incr current_gen; + Lwt.return () + +(****) + +let reset hash = + let l = ref [] in + Hashtbl.iter + (fun ((hash', _, _) as key) f -> + if hash' = hash then begin + l := key :: !l; + remove_file f + end) + roots; + List.iter (fun key -> Hashtbl.remove roots key) !l; + clear_change_table hash + +(****) + +let rec lazy_fold_right f l accu = + match l with + [] -> accu () + | a::l -> f a (fun () -> lazy_fold_right f l accu) + +let output_changes hash = + let time = Unix.gettimeofday () in + let lst = gather_changes hash time in + clear_changes hash time; + lazy_fold_right (fun p cont -> printf "RECURSIVE %s\n" (quote p) >>= cont) + lst (fun () -> printf "DONE\n") + +let rec loop () = + read_line () >>= fun l -> + (* Cancel any wait when receiving a command *) + let (cmd, args) = split_on_space l in + if cmd <> "WAIT" then waiting_for_changes := StringSet.empty; + match cmd with + "VERSION" -> + loop () + | "DEBUG" -> + debug := true; + loop () + | "START" -> + let (hash, rem) = split_on_space args in + let (fspath, path) = split_on_space rem in + start_watching (unquote hash) (unquote fspath) (unquote path) + >>= fun () -> + loop () + | "WAIT" -> + wait (unquote args); + loop () + | "CHANGES" -> + output_changes (unquote args) >>= fun () -> + loop () + | "RESET" -> + reset (unquote args); + loop () + | _ -> + error (Format.sprintf "unknown command '%s'" cmd) + +let _ = +watch (); +Lwt_unix.run + (printf "VERSION 1\n" >>= fun () -> + Lwt.catch (fun () -> loop ()) + (fun e -> + match e with + End_of_file | Unix.Unix_error (Unix.EPIPE, _, _) -> + Lwt.return () + | _ -> + if !debug then Format.eprintf "%s@." (format_exc e); + error ("error while communicating with Unison: " ^ format_exc e))) + +end +end diff -Nru unison-2.40.102/fsmonitor/watchercommon.mli unison-2.48.3/fsmonitor/watchercommon.mli --- unison-2.40.102/fsmonitor/watchercommon.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/watchercommon.mli 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,35 @@ + +val debug : bool ref + +val error : string -> 'a +val format_exc : exn -> string + +module StringMap : Map.S with type key = string + +module F (M : sig type watch end) : sig + + type t + + val get_id : t -> int + val get_watch : t -> M.watch option + val set_watch : t -> M.watch option -> unit + val get_subdirs : t -> t StringMap.t + val is_root : t -> bool + + val file_by_id : (int, t) Hashtbl.t + val dir_path : t -> string -> string + + val signal_change : + float ref -> t -> string option -> [> `CREAT | `DEL ] -> unit + val signal_overflow : unit -> unit + + module type S = sig + val add_watch : string -> t -> unit + val release_watch : t -> unit + val watch : unit -> unit + val clear_event_memory : unit -> unit + end + + module F (M :S) : sig end + +end diff -Nru unison-2.40.102/fsmonitor/windows/Makefile unison-2.48.3/fsmonitor/windows/Makefile --- unison-2.40.102/fsmonitor/windows/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/windows/Makefile 2012-09-18 16:10:59.000000000 +0000 @@ -0,0 +1,32 @@ + +FSMONITOR = $(NAME)-fsmonitor + +DIR=fsmonitor/windows +FSMOCAMLOBJS = \ + ubase/rx.cmo unicode_tables.cmo unicode.cmo \ + system/system_generic.cmo system/system_win.cmo \ + system/win/system_impl.cmo \ + lwt/lwt.cmo lwt/pqueue.cmo lwt/win/lwt_unix_impl.cmo lwt/lwt_unix.cmo \ + lwt/win/lwt_win.cmo \ + $(DIR)/shortnames.cmo fsmonitor/watchercommon.cmo $(DIR)/watcher.cmo +FSMCOBJS = \ + system/system_win_stubs.o lwt/lwt_unix_stubs.o $(DIR)/shortnames_stubs.o +FSMOCAMLLIBS=bigarray.cma unix.cma + +ifeq ($(NATIVE), true) + FSMCAMLOBJS=$(subst .cmo,.cmx, $(FSMOCAMLOBJS)) + FSMCAMLLIBS=$(subst .cma,.cmxa, $(FSMOCAMLLIBS)) +else + FSMCAMLOBJS=$(FSMOCAMLOBJS) + FSMCAMLLIBS=$(FSMOCAMLLIBS) +endif + +buildexecutable:: $(FSMONITOR)$(EXEC_EXT) + +$(FSMONITOR)$(EXEC_EXT): $(FSMCAMLOBJS) $(FSMCOBJS) + @echo Linking $@ + $(CAMLC) -verbose $(CAMLFLAGS) -o $@ $(CFLAGS) $(FSMCAMLLIBS) $^ $(CLIBS) + +clean:: + rm -f $(DIR)/*.cm[iox] $(DIR)/*.o $(DIR)/*~ + rm -f $(FSMONITOR)$(EXEC_EXT) diff -Nru unison-2.40.102/fsmonitor/windows/shortnames.ml unison-2.48.3/fsmonitor/windows/shortnames.ml --- unison-2.40.102/fsmonitor/windows/shortnames.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/windows/shortnames.ml 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,50 @@ +(* Unison file synchronizer: src/monitoring-linux/lwt_inotify.ml *) +(* Copyright 2012, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +type handle + +external findnext_short : handle -> string * string = "win_findnext_short" +external findfirst_short : string -> (string * string) * handle = + "win_findfirst_short" +external findclose : handle -> unit = "win_findclosew" + +let epath = System_impl.Fs.W.epath +let path8 = System_impl.Fs.W.path8 + +let convert (l, s) = (path8 l, path8 s) + +let of_file f = + try + let (m, h) = findfirst_short (epath f) in + findclose h; + Some (convert m) + with End_of_file -> + None + +let in_directory d = + let l = ref [] in + try + let (first_entry, handle) = + findfirst_short (epath (Filename.concat d "*")) in + l := [convert first_entry]; + while true do + l := convert (findnext_short handle) :: !l + done; + assert false + with End_of_file -> + !l + diff -Nru unison-2.40.102/fsmonitor/windows/shortnames.mli unison-2.48.3/fsmonitor/windows/shortnames.mli --- unison-2.40.102/fsmonitor/windows/shortnames.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/windows/shortnames.mli 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,2 @@ +val of_file : string -> (string * string) option +val in_directory : string -> (string * string) list diff -Nru unison-2.40.102/fsmonitor/windows/shortnames_stubs.c unison-2.48.3/fsmonitor/windows/shortnames_stubs.c --- unison-2.40.102/fsmonitor/windows/shortnames_stubs.c 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/windows/shortnames_stubs.c 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,104 @@ +#define WINVER 0x0500 + +#include +#include +#include +#include + +#include +#include +#include + +//#include + +#define Nothing ((value) 0) + +extern void win32_maperr (DWORD errcode); +extern void uerror (char * cmdname, value arg); +extern value win_alloc_handle (HANDLE h); + +struct filedescr { + union { + HANDLE handle; + SOCKET socket; + } fd; + enum { KIND_HANDLE, KIND_SOCKET } kind; + int crt_fd; +}; +#define Handle_val(v) (((struct filedescr *) Data_custom_val(v))->fd.handle) + +static value copy_wstring(LPCWSTR s) +{ + int len; + value res; + + len = 2 * wcslen(s) + 2; /* NULL character included */ + res = caml_alloc_string(len); + memmove(String_val(res), s, len); + return res; +} + +CAMLprim value win_findnext_short(value valh) +{ + WIN32_FIND_DATAW fileinfo; + BOOL retcode; + + CAMLparam1(valh); + CAMLlocal1(valname); + + do { + retcode = FindNextFileW(Handle_val(valh), &fileinfo); + if (!retcode) { + DWORD err = GetLastError(); + if (err == ERROR_NO_MORE_FILES) { + if (! FindClose(Handle_val(valh))) { + win32_maperr(GetLastError()); + uerror("closedir", Nothing); + } + raise_end_of_file(); + } else { + win32_maperr(err); + uerror("readdir", Nothing); + } + } + // fwprintf (stderr, L"%d %s\n", fileinfo.cAlternateFileName[0], fileinfo.cAlternateFileName); + } while (fileinfo.cAlternateFileName[0] == 0); + + valname = caml_alloc_tuple (2); + Store_field (valname, 0, copy_wstring(fileinfo.cFileName)); + Store_field (valname, 1, copy_wstring(fileinfo.cAlternateFileName)); + + CAMLreturn (valname); +} + +CAMLprim value win_findfirst_short(value name) +{ + HANDLE h; + WIN32_FIND_DATAW fileinfo; + + CAMLparam1(name); + CAMLlocal3(v, valname, valh); + + h = FindFirstFileW((LPCWSTR) String_val(name),&fileinfo); + if (h == INVALID_HANDLE_VALUE) { + DWORD err = GetLastError(); + if ((err == ERROR_NO_MORE_FILES) || (err == ERROR_FILE_NOT_FOUND)) + raise_end_of_file(); + else { + win32_maperr(err); + uerror("opendir", Nothing); + } + } + valh = win_alloc_handle(h); + //fwprintf (stderr, L"%d %s\n", fileinfo.cAlternateFileName[0], fileinfo.cAlternateFileName); + if (fileinfo.cAlternateFileName[0] != 0) { + valname = caml_alloc_tuple (2); + Store_field (valname, 0, copy_wstring(fileinfo.cFileName)); + Store_field (valname, 1, copy_wstring(fileinfo.cAlternateFileName)); + } else + valname = win_findnext_short(valh); + v = caml_alloc_tuple(2); + Store_field(v,0,valname); + Store_field(v,1,valh); + CAMLreturn (v); +} diff -Nru unison-2.40.102/fsmonitor/windows/watcher.ml unison-2.48.3/fsmonitor/windows/watcher.ml --- unison-2.40.102/fsmonitor/windows/watcher.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor/windows/watcher.ml 2012-11-20 11:01:22.000000000 +0000 @@ -0,0 +1,223 @@ +(* Unison file synchronizer: src/monitoring/windows/watcher.ml *) +(* Copyright 2012, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +(* +LIMITATIONS +- we do not detect when a directory below a path is moved; +- we do not watch non-existent or non-directory roots + +REMARK +ReadDirectoryChangesW fails with ERROR_INVALID_PARAMETER when +we are not on a directory, and ERROR_ACCESS_DENIED when the directory +is removed. + +Maybe we should ignore Unison temporary files +*) + +let (>>=) = Lwt.bind + +module StringMap = Watchercommon.StringMap + +type watch_def = + { mutable handle : Lwt_win.directory_handle option; + mutable longname : string StringMap.t; + mutable shortname : string StringMap.t } + +module M = Watchercommon.F (struct type watch = watch_def end) +include M + +(****) + +module Windows = struct + +let print_event (nm, act) = + Format.eprintf "%s %d@." nm (Obj.magic act : int) + +let event_is_immediate (_, act) = + match act with + Lwt_win.FILE_ACTION_ADDED + | Lwt_win.FILE_ACTION_MODIFIED -> false + | Lwt_win.FILE_ACTION_REMOVED + | Lwt_win.FILE_ACTION_RENAMED_OLD_NAME + | Lwt_win.FILE_ACTION_RENAMED_NEW_NAME -> true + +let event_kind (_, act) = + match act with + Lwt_win.FILE_ACTION_ADDED -> `CREAT + | Lwt_win.FILE_ACTION_MODIFIED -> `MODIF + | Lwt_win.FILE_ACTION_RENAMED_NEW_NAME -> `MOVED + | Lwt_win.FILE_ACTION_REMOVED + | Lwt_win.FILE_ACTION_RENAMED_OLD_NAME -> `DEL + +let long_name dir nm = + match get_watch dir with + None -> nm + | Some w -> try StringMap.find nm w.longname with Not_found -> nm + +let rec follow_win_path dir path pos = + try + let i = String.index_from path pos '\\' in + let nm = String.sub path pos (i - pos) in + try + let dir = StringMap.find (long_name dir nm) (get_subdirs dir) in + follow_win_path dir path (i + 1) + with Not_found -> + if !Watchercommon.debug then + Format.eprintf "Ignored directory %s (%s) in path %s@." + nm (long_name dir nm) path; + None + with Not_found -> + Some (dir, String.sub path pos (String.length path - pos)) + +let previous_event = ref None +let time_ref = ref (ref 0.) + +let clear_event_memory () = previous_event := None + +let flags = + Lwt_win.([FILE_NOTIFY_CHANGE_FILE_NAME; FILE_NOTIFY_CHANGE_DIR_NAME; + FILE_NOTIFY_CHANGE_ATTRIBUTES; (*FILE_NOTIFY_CHANGE_SIZE;*) + FILE_NOTIFY_CHANGE_LAST_WRITE; FILE_NOTIFY_CHANGE_CREATION; + (*FILE_NOTIFY_CHANGE_SECURITY*)]) + +let watch_root_directory path dir = + let h = Lwt_win.open_directory path in + let rec loop () = + Lwt_win.readdirectorychanges h true flags >>= fun l -> + let time = Unix.gettimeofday () in + List.iter + (fun ((ev_path, _) as ev) -> + if !previous_event <> Some ev then begin + time_ref := ref time; + previous_event := Some ev; + if !Watchercommon.debug then print_event ev; + match follow_win_path dir ev_path 0 with + None -> + () + | Some (subdir, nm) -> + let event_time = + if event_is_immediate ev then ref 0. else !time_ref in + let kind = event_kind ev in + let nm = + match kind, get_watch subdir with + (`CREAT | `MOVED), Some w -> + begin try + match + Shortnames.of_file (Filename.concat path ev_path) + with + Some (l, s) -> + if !Watchercommon.debug then + Format.eprintf "New mapping: %s -> %s@." l s; + (* First remove a previous binding, if any *) + begin try + w.longname <- + StringMap.remove (StringMap.find l w.shortname) + w.longname + with Not_found -> () end; + begin try + w.shortname <- + StringMap.remove (StringMap.find s w.longname) + w.shortname + with Not_found -> () end; + w.shortname <- StringMap.add l s w.shortname; + w.longname <- StringMap.add s l w.longname; + l + | None -> + long_name subdir nm + with Unix.Unix_error _ as e -> + if !Watchercommon.debug then + Format.eprintf + "Error while getting file short name: %s@." + (Watchercommon.format_exc e); + long_name subdir nm + end + | `DEL, Some w -> + let l = long_name subdir nm in + begin try + let s = StringMap.find l w.shortname in + w.shortname <- StringMap.remove l w.shortname; + w.longname <- StringMap.remove s w.longname + with Not_found -> () end; + l + | _ -> + long_name subdir nm + in + if + not (kind = `MODIF && StringMap.mem nm (get_subdirs subdir)) + then + signal_change event_time subdir (Some nm) kind + end else + !time_ref := time) + l; + if l = [] then begin + if !Watchercommon.debug then Format.eprintf "OVERFLOW@."; + signal_overflow () + end; + loop () + in + ignore (Lwt.catch loop + (fun e -> + set_watch dir None; + begin try Lwt_win.close_dir h with Unix.Unix_error _ -> () end; + if !Watchercommon.debug then + Format.eprintf "Error while reading directory changes: %s@." + (Watchercommon.format_exc e); Lwt.return ())); + h + +let add_watch path file = + if get_watch file = None then begin + let watch_info = + { handle = None; + longname = StringMap.empty; shortname = StringMap.empty } in + set_watch file (Some watch_info); + if is_root file then begin + try + watch_info.handle <- Some (watch_root_directory path file) + with Unix.Unix_error _ as e -> + Watchercommon.error + (Format.sprintf + "Error while starting to watch for changes: %s@." + (Watchercommon.format_exc e)) + end; + let mapping = + try Shortnames.in_directory path with Unix.Unix_error _ -> [] in + watch_info.longname <- + List.fold_left + (fun m (l, s) -> + if !Watchercommon.debug then Format.eprintf "%s -> %s@." l s; + StringMap.add s l m) + StringMap.empty mapping; + watch_info.shortname <- + List.fold_left (fun m (l, s) -> StringMap.add l s m) + StringMap.empty mapping + end + +let release_watch file = + match get_watch file with + Some {handle = Some h} -> + set_watch file None; + begin try Lwt_win.close_dir h with Unix.Unix_error _ -> () end + | _ -> + set_watch file None + +let watch () = () (* No global loop under Windows... *) + +end + +(****) + +include F(Windows) diff -Nru unison-2.40.102/fsmonitor.py unison-2.48.3/fsmonitor.py --- unison-2.40.102/fsmonitor.py 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fsmonitor.py 2012-08-07 16:33:59.000000000 +0000 @@ -0,0 +1,679 @@ +#!/usr/bin/python + +# a small program to test the possibilities to monitor the file system and +# log changes on Windowsm Linux, and OSX +# +# Originally written by Christoph Gohle (2010) +# Modified by Gene Horodecki for Windows +# Further modified by Benjamin Pierce +# should be distributed under GPL + +import sys +import os +import stat +import threading +from optparse import OptionParser +from time import time, sleep + +def mydebug(fmt, *args, **kwds): + if not op.debug: + return + + if args: + fmt = fmt % args + + elif kwds: + fmt = fmt % kwds + + print >>sys.stderr, fmt + +def mymesg(fmt, *args, **kwds): + if not op.verbose: + return + + if args: + fmt = fmt % args + + elif kwds: + fmt = fmt % kwds + + print >>sys.stdout, fmt + +def timer_callback(timer, streamRef): + mydebug("CFAbsoluteTimeGetCurrent() => %.3f", CFAbsoluteTimeGetCurrent()) + mydebug("FSEventStreamFlushAsync(streamRef = %s)", streamRef) + FSEventStreamFlushAsync(streamRef) + +def update_changes(result): + mydebug('Update_changes: absresult = %s',result) + #print('absresult',result) + result = [mangle_filename(path) for path in result] + mydebug('Update_changes: mangled = %s',result) + #print('magnled', result) + result = [relpath(op.root,path) for path in result] + #print('relative to root',result) + mydebug('Update_changes: relative to root = %s',result) + + try: + f = open(op.absoutfile,'a') + for path in result: + f.write(path+'\n') + f.close() + except IOError: + mymesg('failed to open log file %s for writing',op.outfile) + +def update_changes_nomangle(result): + # In win32 there are no symlinks, therefore file mangling + # is not required + + # remove root from the path: + result = relpath(op.root,result) + + mydebug('Changed paths: %s\n',result) + try: + # Windows hack: open in binary mode + f = open(op.absoutfile,'ab') + f.write(result+'\n') + f.close() + except IOError: + mymesg('failed to open log file %s for writing',op.outfile) + +def mangle_filename(path): + """because the FSEvents system returns 'real' paths we have to figure out +if they have been aliased by a symlink and a 'follow' directive in the unison +configuration or from the command line. +This is done here for path. The return value is the path name using symlinks +""" + try: + op.symlinks + except AttributeError: + make_symlinks() + #now lets do it + result = path + for key in op.symlinks: + #print path, key + if path.startswith(key): + result = os.path.join(op.root,os.path.join(op.symlinks[key]+path[len(key):])) + #print 'Match!', result + + return result + +def make_symlinks(): + #lets create a dictionary of symlinks that are treated transparently here + op.symlinks = {} + fl = op.follow + try: + foll = [f.split(' ',1) for f in fl] + except TypeError: + foll = [] + for k,v in foll: + if not k=='Path': + mymesg('We don\'t support anything but path specifications in follow directives. Especially not %s',k) + else: + p = v.strip('{}') + if not p[-1]=='/': + p+='/' + op.symlinks[os.path.realpath(os.path.join(op.root,p))]=p + mydebug('make_symlinks: symlinks to follow %s',op.symlinks) + + +def relpath(root,path): + """returns the path relative to root (which should be absolute) + if it is not a path below root or if root is not absolute it returns None + """ + + if not os.path.isabs(root): + return None + + abspath = os.path.abspath(path) + mydebug('relpath: abspath(%s) = %s', path, abspath) + + # make sure the root and abspath both end with a '/' or '\' + if sys.platform == 'win32': + slash = '\\' + else: + slash = '/' + + if not root[-1]==slash: + root += slash + if not abspath[-1]==slash: + abspath += slash + + mydebug('relpath: root = %s', root) + + #print root, abspath + if not abspath[:len(root)]==root: + #print abspath[:len(root)], root + return None + mydebug('relpath: relpath = %s',abspath[len(root):]) + return abspath[len(root):] + +def my_abspath(path): + """expand path including shell variables and homedir +to the absolute path +""" + return os.path.abspath(os.path.expanduser(os.path.expandvars(path))) + +def update_follow(path): + """ tries to find a follow directive that matches path + and if path refers to a symbolic link the real path of the symbolic + link is returned. """ + try: + op.symlinks + except AttributeError: + make_symlinks() + rpath = relpath(op.root, path) + mydebug('update_follow: rpath %s', rpath) + result = None + foll = None + for k in op.symlinks: + v = op.symlinks[k] + if v==rpath: + result = os.path.realpath(os.path.abspath(path)) + foll = v + mydebug('update_follow: link %s, real %s',v,result) + break + if result: + op.symlinks[result] = foll + + return result, foll + +def conf_parser(conffilepath, delimiter = '=', dic = {}): + """parse the unison configuration file at conffilename and populate a dictionary +with configuration options from there. If dic is a dictionary, these options are added to this +one (can be used to recursively call this function for include statements).""" + try: + conffile = open(conffilepath,'r') + except IOError: + mydebug('could not open configuration file at %s',conffilepath) + return None + + res = dic + + for line in conffile: + line = line.strip() + if len(line)<1 or line[0]=='#': + continue + elif line.startswith('include'): + dn = os.path.dirname(conffilepath) + fn = line.split()[1].strip() + conf_parser(os.path.join(dn,fn), dic = res) + else: + k,v=[s.strip() for s in line.split('=',1)] + if res.has_key(k): + res[k].append(v) + else: + res[k]=[v] + return res + +################################################ +# Linux specific code here +################################################ +if sys.platform.startswith('linux'): + import pyinotify + + class HandleEvents(pyinotify.ProcessEvent): + wm = None + + #def process_IN_CREATE(self, event): + # print "Creating:", event.pathname + + #def process_IN_DELETE(self, event): + # print "Removing:", event.pathname + + #def process_IN_MODIFY(self, event): + # print "Modifying:", event.pathname + + # def process_IN_MOVED_TO(self, event): + # print "Moved to:", event.pathname + + # def process_IN_MOVED_FROM(self, event): + # print "Moved from:", event.pathname + + # def process_IN_ATTRIB(self, event): + # print "attributes:", event.pathname + + def process_default(self, event): + mydebug('process_default: event %s', event) +# code for adding dirs is obsolete since there is the auto_add option +# if event.dir: +# if event.mask&pyinotify.IN_CREATE: +# print 'create:', event.pathname , self.add_watch(event.pathname,rec=True) +# elif event.mask&pyinotify.IN_DELETE: +# print 'remove', event.pathname, self.remove_watch(event.pathname) +# pass +# elif event.mask&pyinotify.IN_MOVED_FROM: +# print 'move from', event.pathname, self.remove_watch(event.pathname, rec=True) +# pass +# elif event.mask&pyinotify.IN_MOVED_TO: +# print 'move to', event.pathname, self.add_watch(event.pathname,rec=True) +# else: +# pass + #handle creation of links that should be followed + if os.path.islink(event.pathname): + #special handling for links + mydebug('process_default: link %s created/changed. Checking for follows', event.pathname) + p, l = update_follow(event.pathname) + if p: + self.add_watch(p,rec=True,auto_add=True) + mydebug('process_default: follow link %s to %s',l,p) + #TODO: should handle deletion of links that are followed (delete the respective watches) + update_changes([event.pathname]) + + def remove_watch(self, pathname, **kwargs): + if self.watches.has_key(pathname): + return self.wm.rm_watch(self.watches.pop(pathname),**kwargs) + return None + + def add_watch(self, pathname, **kwargs): + neww = self.wm.add_watch(pathname, self.mask, **kwargs) + self.watches.update(neww) + return neww + + def init_watches(self, abspaths, follows): + self.watches = {} + for abspath in abspaths: + self.watches.update(self.wm.add_watch(abspath,self.mask,rec=True,auto_add=True)) + #we have to add watches for follow statements since pyinotify does + #not do recursion across symlinks + make_symlinks() + for link in op.symlinks: + mydebug('following symbolic link %s',link) + if not self.watches.has_key(link): + self.watches.update(self.wm.add_watch(link,self.mask,rec=True,auto_add=True)) + + mydebug('init_watches: added paths %s\n based on paths %s\n and follows %s',self.watches,op.abspaths, op.follow) + + + def linuxwatcher(): + p = HandleEvents() + wm = pyinotify.WatchManager() # Watch Manager + p.wm = wm + p.mask = pyinotify.IN_CREATE | pyinotify.IN_DELETE | pyinotify.IN_MODIFY | pyinotify.IN_ATTRIB | pyinotify.IN_MOVED_TO | pyinotify.IN_MOVED_FROM # watched events + + notifier = pyinotify.Notifier(wm, p) + p.init_watches(op.abspaths, op.follow) + notifier.loop() + + +################################################# +# END Linux specific code +################################################# + +################################################# +# MacOsX specific code +################################################# +if sys.platform == 'darwin': + from FSEvents import * + import objc + + def filelevel_approx(path): + """in order to avoid scanning the entire directory including sub + directories by unison, we have to say which files have changed. Because + this is a stupid program it only checks modification times within the + update interval. in case there are no files modified in this interval, + the entire directory is listed. + A deleted file can not be found like this. Therefore also deletes will + trigger a rescan of the directory (including subdirs) + + The impact of rescans could be limited if one could make + unison work nonrecursively. + """ + result = [] + #make a list of all files in question (all files in path w/o dirs) + try: + names = os.listdir(path) + except os.error, msg: + #path does not exist (anymore?). Add it to the results + mydebug("adding nonexisting path %s for sync",path) + result.append(path) + names = None + + if names: + for nm in names: + full_path = os.path.join(path,nm) + st = os.lstat(full_path) + #see if the dir it was modified recently + if st.st_mtime>time()-float(op.latency): + result.append(full_path) + + if result == []: + result.append(path) + + return result + + + def fsevents_callback(streamRef, clientInfo, numEvents, eventPaths, eventMasks, eventIDs): + mydebug("fsevents_callback(streamRef = %s, clientInfo = %s, numEvents = %s)", streamRef, clientInfo, numEvents) + mydebug("fsevents_callback: FSEventStreamGetLatestEventId(streamRef) => %s", FSEventStreamGetLatestEventId(streamRef)) + mydebug("fsevents_callback: eventpaths = %s",eventPaths) + + full_path = clientInfo + + result = [] + for i in range(numEvents): + path = eventPaths[i] + if path[-1] == '/': + path = path[:-1] + + if eventMasks[i] & kFSEventStreamEventFlagMustScanSubDirs: + recursive = True + + elif eventMasks[i] & kFSEventStreamEventFlagUserDropped: + mymesg("BAD NEWS! We dropped events.") + mymesg("Forcing a full rescan.") + recursive = 1 + path = full_path + + elif eventMasks[i] & kFSEventStreamEventFlagKernelDropped: + mymesg("REALLY BAD NEWS! The kernel dropped events.") + mymesg("Forcing a full rescan.") + recursive = 1 + path = full_path + + else: + recursive = False + + #now we should know what to do: build a file directory list + #I assume here, that unison takes a flag for recursive scans +#JV: commented out (not implemented by Unison) +# if recursive: +# #we have to check all subdirectories +# if isinstance(path,list): +# #we have to check all base paths +# allpathsrecursive = [p + '\tr'] +# result.extend(path) +# else: +# result.append(path+'\tr') +# else: + #just add the path + #result.append(path) + #try to find out what has changed + result.extend(filelevel_approx(path)) + + mydebug('Dirs sent: %s',eventPaths) + #TODO: handle creation/deletion of links that should be followed + update_changes(result) + + try: + f = open(op.absstatus,'w') + f.write('last_item = %d'%eventIDs[-1]) + f.close() + except IOError: + mymesg('failed to open status file %s', op.absstatus) + + def my_FSEventStreamCreate(paths): + mydebug('my_FSEventStreamCreate: selected paths are: %s',paths) + + if op.sinceWhen == 'now': + op.sinceWhen = kFSEventStreamEventIdSinceNow + + try: + op.symlinks + except AttributeError: + make_symlinks() + + for sl in op.symlinks: + #check if that path is already there + found=False + ln = op.symlinks[sl] + for path in paths: + if relpath(op.root,path)==ln: + found = True + break + if not found: + mydebug('my_FSEventStreamCreate: watch followed link %s',ln) + paths.append(os.path.join(op.root,ln)) + + streamRef = FSEventStreamCreate(kCFAllocatorDefault, + fsevents_callback, + paths, #will this pass properly through? yes it does. + paths, + int(op.sinceWhen), + float(op.latency), + int(op.flags)) + if streamRef is None: + mymesg("ERROR: FSEVentStreamCreate() => NULL") + return None + + if op.verbose: + FSEventStreamShow(streamRef) + + #print ('my_FSE', streamRef) + + return streamRef + + def macosxwatcher(): + #since when? if it is 'now' try to read state + if op.sinceWhen == 'now': + di = conf_parser(op.absstatus) + if di and di.has_key('last_item'): + #print di['last_item'][-1] + op.sinceWhen = di['last_item'][-1] + #print op.sinceWhen + + streamRef = my_FSEventStreamCreate(op.abspaths) + #print streamRef + if streamRef is None: + print('failed to get a Stream') + exit(1) + + FSEventStreamScheduleWithRunLoop(streamRef, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode) + + startedOK = FSEventStreamStart(streamRef) + if not startedOK: + print("failed to start the FSEventStream") + exit(1) + + if op.flush_seconds >= 0: + mydebug("CFAbsoluteTimeGetCurrent() => %.3f", CFAbsoluteTimeGetCurrent()) + + timer = CFRunLoopTimerCreate(None, + CFAbsoluteTimeGetCurrent() + float(op.flush_seconds), + float(op.flush_seconds), + 0, 0, timer_callback, streamRef) + CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, kCFRunLoopDefaultMode) + + try: + CFRunLoopRun() + except KeyboardInterrupt: + mydebug('stop called via Keyboard, cleaning up.') + #Stop / Invalidate / Release + FSEventStreamStop(streamRef) + FSEventStreamInvalidate(streamRef) + FSEventStreamRelease(streamRef) + mydebug('FSEventStream closed') + +################################################# +# END MacOsX specific code +################################################# + +################################################# +# Windows specific code +################################################# +if sys.platform == 'win32': + import win32file + import win32con + + FILE_LIST_DIRECTORY = 0x0001 + + def win32watcherThread(abspath,file_lock): + dirHandle = win32file.CreateFile ( + abspath, + FILE_LIST_DIRECTORY, + win32con.FILE_SHARE_READ | win32con.FILE_SHARE_WRITE, + None, + win32con.OPEN_EXISTING, + win32con.FILE_FLAG_BACKUP_SEMANTICS, + None + ) + while 1: + results = win32file.ReadDirectoryChangesW ( + dirHandle, + 1024, + True, + win32con.FILE_NOTIFY_CHANGE_FILE_NAME | + win32con.FILE_NOTIFY_CHANGE_DIR_NAME | + win32con.FILE_NOTIFY_CHANGE_ATTRIBUTES | + win32con.FILE_NOTIFY_CHANGE_SIZE | + win32con.FILE_NOTIFY_CHANGE_LAST_WRITE | + win32con.FILE_NOTIFY_CHANGE_SECURITY, + None, + None + ) + for action, file in results: + full_filename = os.path.join (abspath, file) + # This will return 'dir updated' for every file update within dir, but + # we don't want to send unison on a full dir sync in this situation. + if not (os.path.isdir(full_filename) and action == 3): + file_lock.acquire() + update_changes_nomangle(full_filename) + file_lock.release() + + def win32watcher(): + file_lock = threading.Lock() + threads = [ threading.Thread(target=win32watcherThread,args=(abspath,file_lock,)) for abspath in op.abspaths ] + for thread in threads: + thread.setDaemon(True) + thread.start() + + try: + while 1: + sleep(3600) + except KeyboardInterrupt: + print "Cleaning up." + +################################################# +# END Windows specific code +################################################# + +if __name__=='__main__': + global op + + usage = """usage: %prog [options] root [path] [path]... +This program monitors file system changes on all given (relative to root) paths +and dumps paths (relative to root) files to a file. When launched, this file is +recreated. While running new events are added. This can be read by UNISON +to trigger a sync on these files. If root is a valid unison profile, we attempt +to read all the settings from there.""" + + parser = OptionParser(usage=usage) + parser.add_option("-w", "--sinceWhen", dest="sinceWhen", + help="""starting point for filesystem updates to be captured + Defaults to 'now' in the first run + or the last caputured change""",default = 'now', metavar="SINCEWHEN") + parser.add_option("-l", "--latency", dest="latency", + help="set notification LATENCY in seconds. default 5",default = 5, metavar="LATENCY") + parser.add_option("-f", "--flags", dest="flags", + help="(macosx) set flags (who knows what they mean. defaults to 0",default = 0, metavar="FLAGS") + parser.add_option("-s", "--flushseconds", dest="flush_seconds", + help="(macosx) TIME interval in second until flush is forced. values < 0 turn it off. ",default = 1, metavar="TIME") + parser.add_option("-o", "--outfile", dest="outfile", + help="location of the output file. Defaults to UPATH/changes",default = 'changes', metavar="PATH") + parser.add_option("-t", "--statefile", dest="statefile", + help="(macosx) location of the state file (absolute or relative to UPATH). Defaults to UPATH/state",default = 'state', metavar="PATH") + parser.add_option("-u", "--unisonconfig", dest="uconfdir", + help='path to the unison config directory. default ~/.unison', + default = '~/.unison', metavar = 'UPATH') + parser.add_option("-z", "--follow", dest="follow", + help="define a FOLLOW directive. This is equivalent to the -follow option in unison \ + (except that for now only 'Paths' are supported). This option can appear multiple times. \ + if a unison configuration file is loaded, it takes precedence over this option", + action='append',metavar = 'FOLLOW') + parser.add_option("-q", "--quiet", + action="store_false", dest="verbose", default=True, + help="don't print status messages to stdout") + + parser.add_option("-d", "--debug", + action="store_true", dest="debug", default=False, + help="print debug messages to stderr") + + + (op, args) = parser.parse_args() + + + if len(args)<1: + parser.print_usage() + sys.exit() + + #other paths + op.absuconfdir = my_abspath(op.uconfdir) + op.absstatus = os.path.join(op.absuconfdir,op.statefile) + op.absoutfile = os.path.join(op.absuconfdir,op.outfile) + + + #figure out if the root argument is a valid configuration file name + p = args[0] + fn = '' + if os.path.exists(p) and not os.path.isdir(p): + fn = p + elif os.path.exists(os.path.join(op.absuconfdir,p)): + fn = os.path.join(op.absuconfdir,p) + op.unison_conf = conf_parser(fn) + + #now check for the relevant information + root = None + paths = None + if op.unison_conf and op.unison_conf.has_key('root'): + #find the local root + root = None + paths = None + for r in op.unison_conf['root']: + if r[0]=='/': + root = r + if op.unison_conf.has_key('path'): + paths = op.unison_conf['path'] + if op.unison_conf and op.unison_conf.has_key('follow'): + op.follow = op.unison_conf['follow'] + else: + #see if follows were defined + try: + op.follow + except AttributeError: + op.follow = [] + + if not root: + #no root up to here. get it from args + root = args[0] + + if not paths: + paths = args[1:] + + #absolute paths + op.root = my_abspath(root) + op.abspaths = [os.path.join(root,path) for path in paths] + if op.abspaths == []: + #no paths specified -> make root the path to observe + op.abspaths = [op.root] + #print op.root + #print op.abspaths + + mydebug('options: %s',op) + mydebug('arguments: %s',args) + + #cleaning up the change file + try: + f=open(op.absoutfile,'w') + f.close() + except IOError: + mymesg('failed to open output file. STOP.') + exit(1) + + #stop watching when stdin is closed + def exitThread(): + while sys.stdin.readline(): pass + os._exit(0) + t = threading.Thread(target=exitThread) + t.setDaemon(True) + t.start() + + if sys.platform=='darwin': + macosxwatcher() + elif sys.platform.startswith('linux'): + linuxwatcher() + elif sys.platform.startswith('win32'): + win32watcher() + else: + mymesg('unsupported platform %s',sys.platform) + + diff -Nru unison-2.40.102/fspath.ml unison-2.48.3/fspath.ml --- unison-2.40.102/fspath.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/fspath.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/fspath.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/fspath.mli unison-2.48.3/fspath.mli --- unison-2.40.102/fspath.mli 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/fspath.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,7 +1,7 @@ (* Unison file synchronizer: src/fspath.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) -(* Defines an abstract type of absolute filenames (fspaths) *) +(* Defines an abstract type of absolute filenames (fspaths) *) type t diff -Nru unison-2.40.102/fswatch.ml unison-2.48.3/fswatch.ml --- unison-2.40.102/fswatch.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fswatch.ml 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,465 @@ +(* Unison file synchronizer: src/fswatch.ml *) +(* Copyright 1999-2015, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +(* +Protocol description +==================== + + The file monitoring process receives commands from stdin and + responds to stdout. Commands and responds are single lines composed + of an identifier followed by a single space and a space separated + list of arguments. Arguments are percent-encoded. At the minimum, + spaces and newlines must be escaped. The two processes should accept + any other escaped character. + + Unison and the child process starts by indicating the protocol + version they support. At the moment, they should just output the + line 'VERSION 1'. + + Debugging is enabled by the 'DEBUG' command. + + At any time, the child process can signal an error by sending an + "ERROR msg" message. + + When Unison start scanning a part of the replica, it emits command: + 'START hash fspath path', thus indicating the archive hash (that + uniquely determines the replica) the replica's fspath and the path + where the scanning process starts. The child process should start + monitoring this location, then acknowledge the command by sending an + 'OK' response. + When Unison starts scanning a directory, it emits the command + 'DIR path1', where 'path1' is relative to the path given by the + START command (the location of the directory can be obtained by + concatenation of 'fspath', 'path', and 'path1'). The child process + should then start monitoring the directory, before sending an 'OK' + response. + When Unison encounters a followed link, it emits the command + 'LINK path1'. The child process is expected to start monitoring + the link target before replying by 'OK'. + Unison signals that it is done scanning the part of the replica + described by the START process by emitting the 'DONE' command. The + child process should not respond to this command. + + Unison can ask for a list of paths containing changes in a given + replica by sending the 'CHANGES hash' command. The child process + responds by a sequence of 'RECURSIVE path' responses, followed by a + 'DONE' response. These paths should be relative to the replica + 'fspath'. The child process will not have to report this changes any + more: it can consider that Unison has taken this information into + account once and for all. Thus, it is expected to thereafter report + only further changes. + + Unison can wait for changes in a replica by emitting a 'WAIT hash' + command. It can watch several replicas by sending a serie of these + commands. The child process is expected to respond once, by a + 'CHANGE hash1 ... hash2' response that lists the changed replicas + among those included in a 'WAIT' command, when changes are + available. It should cancel pending waits when any other command is + received. + + Finally, the command 'RESET hash' tells the child process to stop + watching the given replica. In particular, it can discard any + pending change information for this replica. +*) + +let debug = Util.debug "fswatch" +let debugverbose = Trace.debug "fswatch+" + +let (>>=) = Lwt.bind + +let rec really_write o s pos len = + Lwt_unix.write o s pos len >>= fun l -> + if l = len then + Lwt.return () + else + really_write o s (pos + l) (len - l) + +let split_on_space s = + try + let i = String.index s ' ' in + (String.sub s 0 i, + String.sub s (i + 1) (String.length s - i - 1)) + with Not_found -> + (s, "") + +let disallowed_char c = + match c with + 'A'..'Z' | 'a'..'z' | '0'..'9' | '-' | '_' | '.' | '~' + | '!' | '*' | '\'' | '(' | ')' | ';' | ':' | '@' | '&' + | '=' | '+' | '$' | ',' | '/' | '?' | '#' | '[' | ']' -> + false + | _ -> + true + +let quote s = + let l = String.length s in + let n = ref 0 in + for i = 0 to l - 1 do if disallowed_char s.[i] then incr n done; + if !n = 0 then s else begin + let q = String.create (l + 2 * !n) in + let j = ref 0 in + let hex = "0123456789ABCDEF" in + for i = 0 to l - 1 do + let c = s.[i] in + if disallowed_char s.[i] then begin + q.[!j] <- '%'; + q.[!j + 1] <- hex.[Char.code c lsr 4]; + q.[!j + 2] <- hex.[Char.code c land 15]; + j := !j + 3 + end else begin + q.[!j] <- c; + incr j + end + done; + q + end + +let unquote s = + let l = String.length s in + let n = ref 0 in + for i = 0 to l - 1 do if s.[i] = '%' then incr n done; + if !n = 0 then s else begin + let hex_char c = + match c with + '0'..'9' -> Char.code c - Char.code '0' + | 'a'..'f' -> Char.code c - Char.code 'a' + 10 + | 'A'..'F' -> Char.code c - Char.code 'A' + 10 + | _ -> invalid_arg "unquote" + in + let u = String.create (l - 2 * !n) in + let j = ref 0 in + for i = 0 to l - 2 * !n - 1 do + let c = s.[!j] in + if c = '%' then begin + u.[i] <- Char.chr ((hex_char s.[!j + 1]) lsl 4 + hex_char s.[!j + 2]); + j := !j + 3 + end else begin + u.[i] <- c; + incr j + end + done; + u + end + +module Cond = struct + type t = unit Lwt.t list ref + let make () = ref [] + let signal s = + let wl = !s in + s := []; + List.iter (fun w -> Lwt.wakeup w ()) wl + let wait s = + let t = Lwt.wait () in + s := t :: !s; + t +end + +(****) + +let useWatcher = + Prefs.createBool "watch" true + "!when set, use a file watcher process to detect changes" + "Unison uses a file watcher process, when available, to detect filesystem \ + changes; this is used to speed up update detection, and for continuous \ + synchronization (\\verb|-repeat watch| preference. Setting this flag to \ + false disable the use of this process." + +let printf o fmt = + Printf.ksprintf + (fun s -> + debugverbose (fun () -> Util.msg "<< %s" s); + Util.convertUnixErrorsToFatal + "sending command to filesystem watcher" + (fun () -> Lwt_unix.run (really_write o s 0 (String.length s)))) + fmt + +let read_line i = + let b = Buffer.create 160 in + let buf = String.create 160 in + let start = ref 0 in + let last = ref 0 in + let rec read () = + begin + if !start = !last then begin + Lwt_unix.read i buf 0 160 >>= fun l -> + if l = 0 then + raise (Util.Fatal "Filesystem watcher died unexpectively"); + start := 0; last := l; + Lwt.return () + end else + Lwt.return () + end >>= fun () -> + try + let i = String.index_from buf !start '\n' in + if i >= !last then raise Not_found; + Buffer.add_substring b buf !start (i - !start); + start := i + 1; + let s = Buffer.contents b in + Buffer.clear b; + debugverbose (fun() -> Util.msg ">> %s\n" s); + Lwt.return s + with Not_found -> + Buffer.add_substring b buf !start (!last - !start); + start := 0; last := 0; + read () + in + read + +(****) + +let path = + List.map System.fspathFromString + (try + Str.split (Str.regexp (if Util.osType = `Win32 then ";" else ":")) + (Sys.getenv "PATH") + with Not_found -> + []) + +let search_in_path ?(path = path) name = + System.fspathConcat + (List.find (fun dir -> System.file_exists (System.fspathConcat dir name)) + path) + name + +let exec_path = [System.fspathFromString Sys.executable_name] +(* + try + (* Linux *) + [System.fspathFromString (Unix.readlink "/proc/self/exe")] + with Unix.Unix_error _ | Invalid_argument _ -> + let name = (System.argv ()).(0) in + if not (Filename.is_relative name) then + [System.fspathFromString name] + else if Filename.is_implicit name then + try + [search_in_path name] + with Not_found -> + [] + else + [System.fspathConcat (System.getcwd ()) name] +*) + +let exec_dir = List.map System.fspathDirname exec_path + +let watcher = + lazy + (let suffix = if Util.osType = `Win32 then ".exe" else "" in + System.fspathToString + (try + search_in_path ~path:(exec_dir @ path) + ("unison-fsmonitor-" ^ Uutil.myMajorVersion ^ suffix) + with Not_found -> + search_in_path ~path:(exec_dir @ path) + ("unison-fsmonitor" ^ suffix))) + +type 'a exn_option = Value of 'a | Exn of exn | Nothing + +type conn = + { output : Lwt_unix.file_descr; + has_changes : Cond.t; + has_line : Cond.t; + line_read : Cond.t; + mutable last_line : string exn_option } + +let conn = ref None + +let rec reader conn read_line = + read_line () >>= fun l -> + Cond.signal conn.has_changes; + if fst (split_on_space l) = "CHANGES" then begin + reader conn read_line + end else begin + conn.last_line <- Value l; + Cond.signal conn.has_line; + Cond.wait conn.line_read >>= fun () -> + reader conn read_line + end + +let safeClose fd = try Lwt_unix.close fd with Unix.Unix_error _ -> () + +let currentConnection () = + match !conn with + Some c -> c + | None -> raise (Util.Fatal ("File monitoring helper program not running")) + +let closeConnection () = + match !conn with + Some c -> conn := None; safeClose c.output + | None -> () + +let connected () = !conn <> None + +let startProcess () = + try + let w = Lazy.force watcher in + let (i1,o1) = Lwt_unix.pipe_out () in + let (i2,o2) = Lwt_unix.pipe_in () in + Lwt_unix.set_close_on_exec i2; + Lwt_unix.set_close_on_exec o1; + Util.convertUnixErrorsToFatal "starting filesystem watcher" (fun () -> + ignore (System.create_process w [|w|] i1 o2 Unix.stderr)); + Unix.close i1; Unix.close o2; + let c = + { output = o1; + has_changes = Cond.make (); + has_line = Cond.make (); + line_read = Cond.make (); + last_line = Nothing } + in + ignore + (Lwt.catch (fun () -> reader c (read_line i2)) + (fun e -> + closeConnection (); safeClose i2; + Cond.signal c.has_changes; + c.last_line <- Exn e; Cond.signal c.has_line; + Lwt.return ())); + conn := Some c; + true + with Not_found -> + false + +let emitCmd fmt = + let c = currentConnection () in + try + printf c.output fmt + with e -> + closeConnection (); + raise e + +let rec readLine () = + let c = currentConnection () in + match c.last_line with + Nothing -> Lwt_unix.run (Cond.wait c.has_line); readLine () + | Value l -> c.last_line <- Nothing; Cond.signal c.line_read; l + | Exn e -> raise e + +let badResponse cmd args expected = + closeConnection (); + if cmd = "ERROR" then + raise (Util.Fatal ("Filesystem watcher error: " ^ (unquote args) ^ "\n\ + The watcher can be disabled by setting preference \ + 'watch' to false")) + else + raise + (Util.Fatal + (Format.sprintf + "Unexpected response '%s %s' from the filesystem watcher \ + (expected %s)" cmd args expected)) + +let readAck () = + let (cmd, args) = split_on_space (readLine ()) in + if cmd <> "OK" then badResponse cmd args "OK" + +let readVersion () = + let (cmd, args) = split_on_space (readLine ()) in + if cmd <> "VERSION" then badResponse cmd args "VERSION" + +let exchangeVersions () = + let res = startProcess () in + if res then begin + emitCmd "VERSION 1\n"; + debug (fun () -> Util.msg "debugging enabled\n"; emitCmd "DEBUG\n"); + readVersion () + end; + res + +(****) + +type archiveHash = string + +let scanning = ref false +let start_path = ref "" + +let relpath path = + let s2 = Path.toString path in + let l1 = String.length !start_path in + let l2 = String.length s2 in + if l1 = 0 then begin + s2 + end else if l1 = l2 then begin + assert (s2 = !start_path); + "" + end else begin + assert + ((l2 >= l1 + 1) && String.sub s2 0 l1 = !start_path && s2.[l1] = '/'); + String.sub s2 (l1 + 1) (l2 - l1 - 1) + end + +let startScanning hash fspath path = + if connected () then begin + emitCmd "START %s %s %s\n" + (quote hash) + (quote (Fspath.toString fspath)) (quote (Path.toString path)); + readAck (); + scanning := true; + start_path := Path.toString path + end + +let scanDirectory path = + if !scanning then begin + emitCmd "DIR %s\n" (quote (relpath path)); + readAck () + end + +let followLink path = + if !scanning then begin + emitCmd "LINK %s\n" (quote (relpath path)); + readAck () + end + +let stopScanning () = + if !scanning then begin + scanning := false; + emitCmd "DONE\n" + end + +let start hash = + if not (Prefs.read useWatcher) then + false + else if not (connected ()) then + exchangeVersions () + else begin + emitCmd "RESET %s\n" (quote hash); + true + end + +let wait hash = + let c = currentConnection () in + let res = Cond.wait c.has_changes in + emitCmd "WAIT %s\n" (quote hash); + res + +(****) + +let rec parseChanges l = + let (cmd, args) = split_on_space (readLine ()) in + match cmd with + "CHANGES" -> + parseChanges l + | "RECURSIVE" -> + parseChanges (Path.fromString (unquote args) :: l) + | "DONE" -> + List.rev l + | other -> + badResponse other args "RECURSIVE or DONE" + +let getChanges hash = + if connected () then begin + emitCmd "CHANGES %s\n" (quote hash); + parseChanges [] + end else + raise (Util.Fatal "No file monitoring helper program found") diff -Nru unison-2.40.102/fswatch.mli unison-2.48.3/fswatch.mli --- unison-2.40.102/fswatch.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fswatch.mli 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,18 @@ +(* Unison file synchronizer: src/fswatch.mli *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) + +type archiveHash = string + +val start : archiveHash -> bool + +val startScanning : archiveHash -> Fspath.t -> Path.local -> unit +val stopScanning : unit -> unit +val scanDirectory : Path.local -> unit +val followLink : Path.local -> unit + +val wait : archiveHash -> unit Lwt.t +val getChanges : archiveHash -> Path.t list + +(****) + +val useWatcher : bool Prefs.t diff -Nru unison-2.40.102/fswatchold.ml unison-2.48.3/fswatchold.ml --- unison-2.40.102/fswatchold.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fswatchold.ml 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,169 @@ +(* Unison file synchronizer: src/fswatcherold.ml *) +(* Copyright 1999-2015, Benjamin C. Pierce + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*) + +(* FIX: we should check that the child process has not died and + restart it if so... *) + +(* FIX: the names of the paths being watched should get included + in the name of the watcher's state file *) + +let debug = Util.debug "fswatch" + +let watchinterval = 5 + +let watcherTemp archHash n = Os.fileInUnisonDir (n ^ archHash) + +let watchercmd archHash root = + let fsmonfile = + Filename.concat (Filename.dirname Sys.executable_name) "fsmonitor.py" in + if not (Sys.file_exists fsmonfile) then + None + else begin + (* FIX: is the quoting of --follow parameters going to work on Win32? + (2/2012: tried adding Uutil.quotes -- maybe this is OK now?) *) + (* FIX -- need to find the program using watcherosx preference *) + let changefile = watcherTemp archHash "changes" in + let statefile = watcherTemp archHash "state" in + let paths = Safelist.map Path.toString (Prefs.read Globals.paths) in + let followpaths = Pred.extern Path.followPred in + let follow = Safelist.map + (fun s -> "--follow '" ^ Uutil.quotes s ^ "'") + followpaths in + (* BCP (per Josh Berdine, 5/2012): changed startup command from this... + let cmd = Printf.sprintf "fsmonitor.py %s --outfile %s --statefile %s %s %s\n" + ... to this: *) + let cmd = Printf.sprintf "python \"%s\" \"%s\" --outfile \"%s\" --statefile \"%s\" %s %s\n" + fsmonfile + root + (System.fspathToPrintString changefile) + (System.fspathToPrintString statefile) + (String.concat " " follow) + (String.concat " " paths) in + debug (fun() -> Util.msg "watchercmd = %s\n" cmd); + Some (changefile,cmd) + end + +module StringSet= Set.Make (String) +module RootMap = Map.Make (String) +type watcherinfo = {file: System.fspath; + mutable ch:Pervasives.in_channel option; + chars: Buffer.t; + mutable lines: string list} +let watchers : watcherinfo RootMap.t ref = ref RootMap.empty +let newWatchers = ref StringSet.empty + +let trim_duplicates l = + let rec loop l = match l with + [] -> l + | [s] -> l + | s1::s2::rest -> + if Util.startswith s1 s2 || Util.startswith s2 s1 then + loop (s2::rest) + else + s1 :: (loop (s2::rest)) in + loop (Safelist.sort String.compare l) + +let readAvailableLinesFromWatcher wi = + let ch = match wi.ch with Some(c) -> c | None -> assert false in + let rec loop () = + match try Some(input_char ch) with End_of_file -> None with + None -> + () + | Some(c) -> + if c = '\n' then begin + wi.lines <- Buffer.contents wi.chars :: wi.lines; + Buffer.clear wi.chars; + loop () + end else begin + Buffer.add_char wi.chars c; + loop () + end in + loop () + +let readChanges wi = + if wi.ch = None then + (* Watcher channel not built yet *) + if System.file_exists wi.file then begin + (* Build it and go *) + let c = System.open_in_bin wi.file in + wi.ch <- Some c; + readAvailableLinesFromWatcher wi; + end else begin + (* Wait for change file to be built *) + debug (fun() -> Util.msg + "Waiting for change file %s\n" + (System.fspathToPrintString wi.file)) + end + else + (* Watcher running and channel built: go ahead and read *) + readAvailableLinesFromWatcher wi + +let getChanges archHash = + if StringSet.mem archHash !newWatchers then + Fswatch.getChanges archHash + else begin + let wi = RootMap.find archHash !watchers in + readChanges wi; + let res = wi.lines in + wi.lines <- []; + List.map Path.fromString (trim_duplicates res) + end + +let start archHash fspath = + if not (Prefs.read Fswatch.useWatcher) then + false + else if Fswatch.start archHash then begin + newWatchers := StringSet.add archHash !newWatchers; + true + end else if not (RootMap.mem archHash !watchers) then begin + (* Watcher process not running *) + match watchercmd archHash (Fspath.toString fspath) with + Some (changefile,cmd) -> + debug (fun() -> Util.msg + "Starting watcher on fspath %s\n" + (Fspath.toDebugString fspath)); + let _ = System.open_process_out cmd in + let wi = {file = changefile; ch = None; + lines = []; chars = Buffer.create 80} in + watchers := RootMap.add archHash wi !watchers; + true + | None -> + false + end else begin + (* If already running, discard all pending changes *) + ignore (getChanges archHash); + true + end + +let wait archHash = + if StringSet.mem archHash !newWatchers then + Fswatch.wait archHash + else if not (RootMap.mem archHash !watchers) then + raise (Util.Fatal "No file monitoring helper program found") + else begin + let wi = RootMap.find archHash !watchers in + let rec loop () = + readChanges wi; + if wi.lines = [] then begin + debug (fun() -> Util.msg "Sleeping for %d seconds...\n" watchinterval); + Lwt.bind (Lwt_unix.sleep (float watchinterval)) (fun () -> + loop ()) + end else + Lwt.return () + in + loop () + end diff -Nru unison-2.40.102/fswatchold.mli unison-2.48.3/fswatchold.mli --- unison-2.40.102/fswatchold.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/fswatchold.mli 2012-08-09 14:06:21.000000000 +0000 @@ -0,0 +1,4 @@ + +val start : string -> Fspath.t -> bool +val getChanges : string -> Path.t list +val wait : string -> unit Lwt.t diff -Nru unison-2.40.102/globals.ml unison-2.48.3/globals.ml --- unison-2.40.102/globals.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/globals.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/globals.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -302,5 +302,5 @@ do not attempt to synchronize symbolic links ({\\tt links = false}); \ ignore inode number changes when detecting updates \ ({\\tt ignoreinodenumbers = true}). \ - Any of these change can be overridden by explicitely setting \ + Any of these change can be overridden by explicitly setting \ the corresponding preference in the profile.") diff -Nru unison-2.40.102/globals.mli unison-2.48.3/globals.mli --- unison-2.40.102/globals.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/globals.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/globals.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Global variables and functions needed by top-level modules and user *) (* interfaces *) @@ -61,17 +61,18 @@ (* Run a command on all hosts in roots and collect results *) val allHostsMap : (string -> 'a) -> 'a list -(* Make sure that the server has the same settings for its preferences as we *) -(* do locally. Should be called whenever the local preferences have *) -(* changed. (This isn't conceptually a part of this module, but it can't *) -(* live in the Prefs module because that would introduce a circular *) -(* dependency.) *) +(* Make sure that the server has the same settings for its preferences as we + do locally. Should be called whenever the local preferences have + changed. (This isn't conceptually a part of this module, but it can't + live in the Prefs module because that would introduce a circular + dependency.) *) val propagatePrefs : unit -> unit Lwt.t (* User preference: when true, don't ask any questions *) val batch : bool Prefs.t -(* User preference: ask for confirmation when propagating a deletion of a whole replica or top-level path *) +(* User preference: ask for confirmation when propagating a deletion of + a whole replica or top-level path *) val confirmBigDeletes : bool Prefs.t (* Predicates on paths *) @@ -80,8 +81,9 @@ val ignorePred : Pred.t val ignorenotPred : Pred.t -(* Be careful calling this to add new patterns to be ignored: Its value does NOT persist - when a new profile is loaded, so it has to be called again whenever this happens. *) +(* Be careful calling this to add new patterns to be ignored: Its + value does NOT persist when a new profile is loaded, so it has to + be called again whenever this happens. *) val addRegexpToIgnore : string -> unit (* Merging commands *) diff -Nru unison-2.40.102/INSTALL.win32-msvc unison-2.48.3/INSTALL.win32-msvc --- unison-2.40.102/INSTALL.win32-msvc 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/INSTALL.win32-msvc 2012-04-02 15:53:27.000000000 +0000 @@ -475,7 +475,7 @@ Appendix D - Windows icons - Here are some general informations on how to make your Windows + Here is some general information on how to make your Windows program have a nice icon. * What we mean by icon is a set of bitmaps that are displayed by diff -Nru unison-2.40.102/linkgtk2.ml unison-2.48.3/linkgtk2.ml --- unison-2.40.102/linkgtk2.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/linkgtk2.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/linkgtk2.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/linkgtk.ml unison-2.48.3/linkgtk.ml --- unison-2.40.102/linkgtk.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/linkgtk.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/linkgtk.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/linktext.ml unison-2.48.3/linktext.ml --- unison-2.40.102/linktext.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/linktext.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/linktext.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/lock.ml unison-2.48.3/lock.ml --- unison-2.40.102/lock.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lock.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/lock.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/lock.mli unison-2.48.3/lock.mli --- unison-2.40.102/lock.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lock.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/lock.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* A simple utility module for setting and releasing inter-process locks using entries in the filesystem. *) diff -Nru unison-2.40.102/lwt/depend unison-2.48.3/lwt/depend --- unison-2.40.102/lwt/depend 2011-04-16 20:35:38.000000000 +0000 +++ unison-2.48.3/lwt/depend 2014-07-05 21:55:19.000000000 +0000 @@ -1,12 +1,12 @@ -lwt.cmo: lwt.cmi -lwt.cmx: lwt.cmi -lwt_unix.cmo: lwt_unix.cmi -lwt_unix.cmx: lwt_unix.cmi -lwt_util.cmo: lwt.cmi lwt_util.cmi -lwt_util.cmx: lwt.cmx lwt_util.cmi -pqueue.cmo: pqueue.cmi -pqueue.cmx: pqueue.cmi -lwt.cmi: -lwt_unix.cmi: lwt.cmi -lwt_util.cmi: lwt.cmi -pqueue.cmi: +lwt.cmo : lwt.cmi +lwt.cmx : lwt.cmi +lwt_unix.cmo : lwt_unix.cmi +lwt_unix.cmx : lwt_unix.cmi +lwt_util.cmo : lwt.cmi lwt_util.cmi +lwt_util.cmx : lwt.cmx lwt_util.cmi +pqueue.cmo : pqueue.cmi +pqueue.cmx : pqueue.cmi +lwt.cmi : +lwt_unix.cmi : lwt.cmi +lwt_util.cmi : lwt.cmi +pqueue.cmi : diff -Nru unison-2.40.102/lwt/generic/lwt_unix_impl.ml unison-2.48.3/lwt/generic/lwt_unix_impl.ml --- unison-2.40.102/lwt/generic/lwt_unix_impl.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lwt/generic/lwt_unix_impl.ml 2012-08-07 16:24:45.000000000 +0000 @@ -128,8 +128,10 @@ ([], [], []) else try - let res = Unix.select infds outfds [] delay in - if delay > 0. && !now <> -1. then now := !now +. delay; + let (readers, writers, _) as res = + Unix.select infds outfds [] delay in + if delay > 0. && !now <> -1. && readers = [] && writers = [] then + now := !now +. delay; res with Unix.Unix_error (Unix.EINTR, _, _) -> diff -Nru unison-2.40.102/lwt/lwt_unix_stubs.c unison-2.48.3/lwt/lwt_unix_stubs.c --- unison-2.40.102/lwt/lwt_unix_stubs.c 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lwt/lwt_unix_stubs.c 2012-08-09 14:30:22.000000000 +0000 @@ -69,9 +69,10 @@ #define WRITE 1 #define READ_OVERLAPPED 2 #define WRITE_OVERLAPPED 3 - -static char * action_name[4] = { - "read", "write", "read(overlapped)", "write(overlapped)" +#define READDIRECTORYCHANGES 4 +static char * action_name[5] = { + "read", "write", "read(overlapped)", "write(overlapped)", + "ReadDirectoryChangesW" }; static value completionCallback; @@ -145,6 +146,7 @@ static DWORD CALLBACK helper_thread (void * param) { D(printf("Helper thread created\n")); while (1) SleepEx(INFINITE, TRUE); + return 0; } static VOID CALLBACK exit_thread(ULONG_PTR param) { @@ -596,3 +598,90 @@ CAMLreturn (Val_unit); } */ + +static int notify_filter_flags[8] = { + FILE_NOTIFY_CHANGE_FILE_NAME, FILE_NOTIFY_CHANGE_DIR_NAME, + FILE_NOTIFY_CHANGE_ATTRIBUTES, FILE_NOTIFY_CHANGE_SIZE, + FILE_NOTIFY_CHANGE_LAST_WRITE, FILE_NOTIFY_CHANGE_LAST_ACCESS, + FILE_NOTIFY_CHANGE_CREATION, FILE_NOTIFY_CHANGE_SECURITY +}; + +CAMLprim value win_readdirtorychanges +(value fd_val, value buf_val, value recursive, value flags, value id_val) { + CAMLparam5(fd_val, buf_val, recursive, flags, id_val); + struct caml_bigarray *buf_arr = Bigarray_val(buf_val); + long id = Long_val(id_val); + HANDLE fd = Handle_val(fd_val); + char * buf = Array_data (buf_arr, 0); + long len = buf_arr->dim[0]; + long action = READDIRECTORYCHANGES; + BOOL res; + long err; + int notify_filter = convert_flag_list(flags, notify_filter_flags); + completionData * d = GlobalAlloc(GPTR, sizeof(completionData)); + if (d == NULL) { + errno = ENOMEM; + uerror(action_name[action], Nothing); + } + d->id = id; + d->action = action; + + D(printf("Starting %s: id %ld, len %ld\n", action_name[action], id, len)); + + res = ReadDirectoryChangesW (fd, buf, len, Bool_val(recursive), + notify_filter, NULL, &(d->overlapped), + overlapped_completion); + + if (!res) { + err = GetLastError (); + if (err != ERROR_IO_PENDING) { + win32_maperr (err); + D(printf("Action %s failed: id %ld -> err %d (errCode %ld)\n", + action_name[action], id, errno, err)); + uerror("ReadDirectoryChangesW", Nothing); + } + } + CAMLreturn (Val_unit); +} + +CAMLprim value win_parse_directory_changes (value buf_val) { + CAMLparam1(buf_val); + CAMLlocal4(lst, tmp, elt, filename); + struct caml_bigarray *buf_arr = Bigarray_val(buf_val); + char * pos = Array_data (buf_arr, 0); + FILE_NOTIFY_INFORMATION * entry; + + lst = Val_long(0); + while (1) { + entry = (FILE_NOTIFY_INFORMATION *)pos; + elt = caml_alloc_tuple(2); + filename = caml_alloc_string(entry->FileNameLength); + memmove(String_val(filename), entry->FileName, entry->FileNameLength); + Store_field (elt, 0, filename); + Store_field (elt, 1, Val_long(entry->Action - 1)); + tmp = caml_alloc_tuple(2); + Store_field (tmp, 0, elt); + Store_field (tmp, 1, lst); + lst = tmp; + if (entry->NextEntryOffset == 0) break; + pos += entry->NextEntryOffset; + } + CAMLreturn(lst); +} + +CAMLprim value win_open_directory (value path, value wpath) { + CAMLparam2 (path, wpath); + HANDLE h; + h = CreateFileW((LPCWSTR) String_val(wpath), + FILE_LIST_DIRECTORY, + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, + NULL, + OPEN_EXISTING, + FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, + NULL); + if (h == INVALID_HANDLE_VALUE) { + win32_maperr (GetLastError ()); + uerror("open", path); + } + CAMLreturn(win_alloc_handle(h)); +} diff -Nru unison-2.40.102/lwt/pqueue.ml unison-2.48.3/lwt/pqueue.ml --- unison-2.40.102/lwt/pqueue.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lwt/pqueue.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/lwt/pqueue.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/lwt/pqueue.mli unison-2.48.3/lwt/pqueue.mli --- unison-2.40.102/lwt/pqueue.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lwt/pqueue.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/lwt/pqueue.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) module type OrderedType = sig diff -Nru unison-2.40.102/lwt/win/lwt_unix_impl.ml unison-2.48.3/lwt/win/lwt_unix_impl.ml --- unison-2.40.102/lwt/win/lwt_unix_impl.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/lwt/win/lwt_unix_impl.ml 2012-09-17 12:45:30.000000000 +0000 @@ -160,6 +160,7 @@ begin match action with `Write -> () | `Read (s, pos) -> if len > 0 then blit_buffer_to_string buf 0 s pos len + | `Readdirectorychanges -> () end; IntTbl.remove ioInFlight id; release_id id; @@ -229,7 +230,9 @@ let i = try win_wait (truncate (ceil (delay *. 1000.))) !event_count - with e -> assert false + with + Sys.Break as e -> raise e + | _ -> assert false in if !d then Format.eprintf "^^^@."; if i = -1 then now := !now +. delay; @@ -643,3 +646,46 @@ type lwt_in_channel let input_line _ = assert false (*XXXXX*) let intern_in_channel _ = assert false (*XXXXX*) + +(***) + +type directory_handle = Unix.file_descr + +external open_dir : string -> string -> directory_handle = "win_open_directory" +let open_directory f = open_dir f (System_impl.Fs.W.epath f) + +type notify_filter_flag = + FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME + | FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE + | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_LAST_ACCESS + | FILE_NOTIFY_CHANGE_CREATION | FILE_NOTIFY_CHANGE_SECURITY + +external start_read_dir_changes : + directory_handle -> buffer -> bool -> notify_filter_flag list -> int -> unit = + "win_readdirtorychanges" + +type file_action = + FILE_ACTION_ADDED | FILE_ACTION_REMOVED + | FILE_ACTION_MODIFIED | FILE_ACTION_RENAMED_OLD_NAME + | FILE_ACTION_RENAMED_NEW_NAME + +external parse_directory_changes : buffer -> (string * file_action) list + = "win_parse_directory_changes" + +let readdirectorychanges ch recursive flags = +if !d then Format.eprintf "Start reading directory changes@."; + let id = acquire_id () in + let buf = acquire_buffer () in + let res = Lwt.wait () in + IntTbl.add ioInFlight id (`Readdirectorychanges, buf, res); + start_read_dir_changes ch buf recursive flags id; +if !d then Format.eprintf "Reading started@."; + Lwt.bind res (fun len -> + if len = 0 then + Lwt.return [] + else + Lwt.return (List.rev_map (fun (nm, act) -> + (System_impl.Fs.W.path8 nm, act)) + (parse_directory_changes buf))) + +let close_dir = Unix.close diff -Nru unison-2.40.102/lwt/win/lwt_win.ml unison-2.48.3/lwt/win/lwt_win.ml --- unison-2.40.102/lwt/win/lwt_win.ml 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/lwt/win/lwt_win.ml 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1 @@ +include Lwt_unix_impl diff -Nru unison-2.40.102/lwt/win/lwt_win.mli unison-2.48.3/lwt/win/lwt_win.mli --- unison-2.40.102/lwt/win/lwt_win.mli 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/lwt/win/lwt_win.mli 2012-08-09 14:30:22.000000000 +0000 @@ -0,0 +1,20 @@ +type notify_filter_flag = + FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME + | FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE + | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_LAST_ACCESS + | FILE_NOTIFY_CHANGE_CREATION | FILE_NOTIFY_CHANGE_SECURITY + +type file_action = + FILE_ACTION_ADDED | FILE_ACTION_REMOVED + | FILE_ACTION_MODIFIED | FILE_ACTION_RENAMED_OLD_NAME + | FILE_ACTION_RENAMED_NEW_NAME + +type directory_handle + +(* Returns an empty list in case of overflow. *) +val readdirectorychanges : + directory_handle -> bool -> notify_filter_flag list -> + (string * file_action) list Lwt.t + +val open_directory : string -> directory_handle +val close_dir : directory_handle -> unit diff -Nru unison-2.40.102/main.ml unison-2.48.3/main.ml --- unison-2.40.102/main.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/main.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/main.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -125,14 +125,21 @@ (function Uicommon.Text -> ["text"] | Uicommon.Graphic -> ["graphic"]);; -let init() = begin +let catch_all f = + try + (* Util.msg "Starting catch_all...\n"; *) + f (); + (* Util.msg "Done catch_all...\n"; *) + with e -> + Util.msg "Unison failed: %s\n" (Uicommon.exn2string e); exit 1;; + +let init () = begin ignore (Gc.set {(Gc.get ()) with Gc.max_overhead = 150}); + (* Make sure exception descriptions include backtraces *) + Printexc.record_backtrace true; let argv = Prefs.scanCmdLine Uicommon.usageMsg in - let catch_all f = - (try f () with e -> Util.msg "%s\n" (Uicommon.exn2string e); exit 1) in - (* Print version if requested *) if Util.StringMap.mem versionPrefName argv then begin Printf.printf "%s version %s\n" Uutil.myName Uutil.myVersion; @@ -183,7 +190,7 @@ with Not_found -> () end; (* Install an appropriate function for finding preference files. (We put - this in Util just because the Prefs module lives below the Os module in the + this here just because the Prefs module lives below the Os module in the dependency hierarchy, so Prefs can't call Os directly.) *) Util.supplyFileInUnisonDirFn (fun n -> Os.fileInUnisonDir(n)); @@ -216,7 +223,7 @@ end (* non-GUI startup for Mac GUI version *) -let nonGuiStartup() = begin +let nonGuiStartup () = begin let argv = init() in (* might not return *) (* if it returns start a UI *) (try @@ -228,7 +235,7 @@ () end -module Body = functor(Ui : Uicommon.UI) -> struct +module Body = functor (Ui : Uicommon.UI) -> struct let argv = init() in (* might not return *) (* if it returns start a UI *) Ui.start diff -Nru unison-2.40.102/Makefile unison-2.48.3/Makefile --- unison-2.40.102/Makefile 2011-04-16 20:35:38.000000000 +0000 +++ unison-2.48.3/Makefile 2013-07-18 09:37:09.000000000 +0000 @@ -62,8 +62,6 @@ Makefile.ProjectInfo: mkProjectInfo $(wildcard ../.bzr/branch/last-revision) ./mkProjectInfo > $@ -# BCP (4/11): simplified from this: -# ocaml str.cma unix.cma ./mkProjectInfo.ml > $@ mkProjectInfo: mkProjectInfo.ml ocamlc -o $@ unix.cma str.cma $^ @@ -368,7 +366,7 @@ $(MAKE) -C ubase clean $(MAKE) -C lwt clean -ifeq (${OSARCH},osx) +ifneq ($(strip $(UIMACDIR)),) clean:: -(cd $(UIMACDIR); xcodebuild clean) -(cd $(UIMACDIR); $(RM) -r build ExternalSettings.xcconfig) diff -Nru unison-2.40.102/Makefile.OCaml unison-2.48.3/Makefile.OCaml --- unison-2.40.102/Makefile.OCaml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/Makefile.OCaml 2014-09-28 16:48:05.000000000 +0000 @@ -5,11 +5,6 @@ #################################################################### ### Try to automatically guess OS -ifeq (${OSCOMP},cross) # Cross-compilation under Linux - OSARCH=win32gnuc - PATH := /usr/i586-mingw32msvc/bin:$(PATH) -endif - ifeq (${OSCOMP},cygwingnuc) # Define this if compiling with Cygwin GNU C OSARCH=win32gnuc ETAGS=/bin/etags @@ -38,6 +33,9 @@ ifeq ($(shell uname),NetBSD) OSARCH=NetBSD endif +ifeq ($(shell uname),Linux) + OSARCH=Linux +endif endif endif endif @@ -46,20 +44,26 @@ endif endif +ifeq (${OSCOMP},cross) # Cross-compilation under Linux + OSARCH=win32gnuc + EXEC_PREFIX=i686-w64-mingw32- +endif + # The OCaml lib dir is used by all versions # It is extracted from 'ocamlc -v' and Windows '\' separators are turned # to Unix '/' separators, and extraneous control-M's are deleted. # Unfortunately there is a literal control-M buried in this, I'd rather # get rid of it... # OCAMLLIBDIR=$(shell ocamlc -v | tail -1 | sed -e 's/.* //g' | sed -e 's/\\/\//g' | sed -e 's///g') -# BCP (6/05) an alternative, but not quite working, version -# suggested by Nick Montfort: -# OCAMLLIBDIR=$(shell ocamlc -v | sed -n '$p' | sed -e 's/^Standard library directory: //' | sed -e 's/\\/\//g' | sed -e 's/\r//g') # Better(?) version, June 2005: # OCAMLLIBDIR=$(shell ocamlc -v | tail -1 | sed -e 's/.* //g' | sed -e 's/\\/\//g' | tr -d '\r') # Another try, Feb 2011, suggested by Ron Isaacson OCAMLLIBDIR=$(shell ocamlc -v | tail -1 | sed -e 's/.* //g' | tr '\\' '/' | tr -d '\r') +## BCP (6/05) an alternative, but not quite working, version +## suggested by Nick Montfort: +# OCAMLLIBDIR=$(shell ocamlc -v | sed -n '$p' | sed -e 's/^Standard library directory: //' | sed -e 's/\\/\//g' | sed -e 's/\r//g') + # User interface style: # Legal values are # UISTYLE=text @@ -67,7 +71,7 @@ # UISTYLE=gtk2 # UISTYLE=mac (old and limited, but working) # UISTYLE=macnew (spiffier) -# UISTYLE=macnew09 (even spiffier, but not yet extensively tested) +# UISTYLE=mac14 (even spiffier, but not yet extensively tested) # # This should be set to an appropriate value automatically, depending # on whether the lablgtk library is available @@ -76,7 +80,7 @@ ##BCP [3/2007]: Removed temporarily, since the OSX UI is not working well ## at the moment and we don't want to confuse people by building it by default ifeq ($(OSARCH),osx) - UISTYLE=macnew + UISTYLE=mac14 else ifeq ($(wildcard $(LABLGTK2LIB)),$(LABLGTK2LIB)) UISTYLE=gtk2 @@ -90,6 +94,9 @@ #################################################################### ### Default parameters +# Generate backtrace information for exceptions +CAMLFLAGS+=-g + INCLFLAGS=-I lwt -I ubase -I system CAMLFLAGS+=$(INCLFLAGS) CAMLFLAGS+=-I system/$(SYSTEM) -I lwt/$(SYSTEM) @@ -171,9 +178,9 @@ buildexecutable:: macexecutable UIMACDIR=uimacnew else -ifeq ($(UISTYLE),macnew09) +ifeq ($(UISTYLE),mac14) buildexecutable:: macexecutable - UIMACDIR=uimacnew09 + UIMACDIR=uimac14 else buildexecutable:: $(NAME)$(EXEC_EXT) endif @@ -211,7 +218,7 @@ system.cmo \ \ ubase/projectInfo.cmo ubase/myMap.cmo ubase/safelist.cmo \ - ubase/uprintf.cmo ubase/util.cmo ubase/uarg.cmo \ + ubase/util.cmo ubase/uarg.cmo \ ubase/prefs.cmo ubase/trace.cmo ubase/proplist.cmo \ \ lwt/pqueue.cmo lwt/lwt.cmo lwt/lwt_util.cmo \ @@ -219,10 +226,10 @@ \ uutil.cmo case.cmo pred.cmo \ fileutil.cmo name.cmo path.cmo fspath.cmo fs.cmo fingerprint.cmo \ - abort.cmo osx.cmo external.cmo \ + abort.cmo osx.cmo external.cmo fswatch.cmo \ props.cmo fileinfo.cmo os.cmo lock.cmo clroot.cmo common.cmo \ tree.cmo checksum.cmo terminal.cmo \ - transfer.cmo xferhint.cmo remote.cmo globals.cmo \ + transfer.cmo xferhint.cmo remote.cmo globals.cmo fswatchold.cmo \ fpcache.cmo update.cmo copy.cmo stasher.cmo \ files.cmo sortri.cmo recon.cmo transport.cmo \ strings.cmo uicommon.cmo uitext.cmo test.cmo @@ -256,8 +263,8 @@ INCLFLAGS+=-thread endif -## New Mac UI, 2009 version -ifeq ($(UISTYLE),macnew09) +## New Mac UI, 2014 version +ifeq ($(UISTYLE),mac14) OCAMLOBJS+=uimacbridgenew.cmo THREADS=true OCAMLLIBS+=threads.cma @@ -297,6 +304,19 @@ OCAMLLIBS+=lablgtk.cma endif +######################################################################## +### Filesystem monitoring + +ifeq ($(OSARCH),Linux) +-include fsmonitor/linux/Makefile src/fsmonitor/linux/Makefile +endif + +ifeq ($(OSARCH),win32gnuc) +-include fsmonitor/windows/Makefile src/fsmonitor/windows/Makefile +endif + +INCLFLAGS+=-I fsmonitor -I fsmonitor/linux -I fsmonitor/windows + #################################################################### ### Static build setup @@ -360,11 +380,11 @@ endif ifeq ($(PROFILING), true) - OCAMLC=ocamlcp + OCAMLC=$(EXEC_PREFIX)ocamlcp else - OCAMLC=ocamlc + OCAMLC=$(EXEC_PREFIX)ocamlc endif -OCAMLOPT=ocamlopt +OCAMLOPT=$(EXEC_PREFIX)ocamlopt ifeq ($(NATIVE), true) ## Set up for native code compilation @@ -452,6 +472,7 @@ -$(RM) system/*.cm[iox] system/*.{o,obj} system/win/*~ -$(RM) system/generic/*.cm[iox] system/generic/*.{o,obj} system/generic/*~ -$(RM) system/win/*.cm[iox] system/win/*.{o,obj} system/win/*~ + -$(RM) fsmonitor/*.cm[iox] fsmonitor/*.{o,obj} .PHONY: paths paths: diff -Nru unison-2.40.102/mkProjectInfo.ml unison-2.48.3/mkProjectInfo.ml --- unison-2.40.102/mkProjectInfo.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/mkProjectInfo.ml 2014-12-29 18:34:45.000000000 +0000 @@ -5,8 +5,8 @@ let projectName = "unison" let majorVersion = 2 -let minorVersion = 40 -let pointVersionOrigin = 409 (* Revision that corresponds to point version 0 *) +let minorVersion = 48 +let pointVersionOrigin = 533 (* Revision that corresponds to point version 0 *) (* Documentation: This is a program to construct a version of the form Major.Minor.Point, @@ -42,53 +42,7 @@ (* ---------------------------------------------------------------------- *) (* You shouldn't need to edit below. *) -let revisionString = "$Rev: 511 $";; - -(* BCP (1/10): This bit was added to help with getting Unison via bazaar, but it - was never used much and I'm not confident it's working. I'll comment it out - for now, but if it hasn't been needed or fixed in a few months, the next - person that edits this file should delete it... - - (* extract a substring using a regular expression *) - let extract_str re str = - let _ = Str.search_forward (Str.regexp re) str 0 in - Str.matched_group 1 str;; - let extract_int re str = int_of_string (extract_str re str);; - - (* run the bzr tool to get version information for bzr branches *) - exception BzrException of Unix.process_status;; - let bzr args = - let bzr = (try Sys.getenv "BZR" with Not_found -> "bzr") in - let cmd = bzr ^ " " ^ args in - let inc = Unix.open_process_in cmd in - let buf = Buffer.create 16 in - (try - while true do - Buffer.add_channel buf inc 1 - done - with End_of_file -> ()); - let status = Unix.close_process_in inc in - match status with - Unix.WEXITED 0 -> Buffer.contents buf - | _ -> raise (BzrException status);; - - let pointVersion = if String.length revisionString > 5 - then Scanf.sscanf revisionString "$Rev: %d " (fun x -> x) - pointVersionOrigin - else (* Determining the pointVersionOrigin in bzr is kind of tricky: - - The mentioned revision number might not be part of this branch - - The mentioned revision number might be rhs of some merge - - The bzr-svn plugin might be outdated or not installed at all - - On the whole, getting this to work seems too much effort for now. - So we'll simply use the revno as is as the point version, - and revisit offsetting them if unison should ever move its trunk to bzr. - - let pvo = extract_int "^revno:[ \t]*\\([0-9]+\\)[ \t]*$" - (bzr ("log -r svn:" ^ - string_of_int pointVersionOrigin)) in - *) - extract_int "^\\([0-9]+\\)$" (bzr "revno") (* - pvo *);; -*) +let revisionString = "$Rev: 536 $";; let pointVersion = Scanf.sscanf revisionString "$Rev: %d " (fun x -> x) - pointVersionOrigin;; @@ -99,4 +53,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -Nru unison-2.40.102/name.ml unison-2.48.3/name.ml --- unison-2.40.102/name.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/name.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/name.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/name.mli unison-2.48.3/name.mli --- unison-2.40.102/name.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/name.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/name.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type t diff -Nru unison-2.40.102/NEWS unison-2.48.3/NEWS --- unison-2.40.102/NEWS 2012-11-12 15:11:40.000000000 +0000 +++ unison-2.48.3/NEWS 2015-02-12 15:22:54.000000000 +0000 @@ -1,2 +1,1758 @@ -Documentation topic news not recognized: -Type "unison -doc topics" for a list + +Changes in Version 2.48.3 + + Changes since 2.45: + * Incorporated a patch from Christopher Zimmermann to replace the + Uprintf module (which doesn't work with OCaml 4.02, causing Unison + to crash) with equivalent functionality from the standard library. + * Incorporated a refresh of the OSX GUI, contributed by Alan Shutko. + * Added a maxsizethreshold option, which prevents the transfer of + files larger than the size specified (in Kb). + * Added a "copyonconflict" preference, to make a copy of files that + would otherwise be overwritten or deleted in case of conflicting + changes. (This makes it possible to automatically resolve conflicts + in a fairly safe way when synchronizing continuously, in + combination with the "repeat = watch" and "prefer = newer" + preferences. + * File system monitoring: + + The file watcher now fails when unable to watch a directory, + rather than silently ignoring the issue. + + File system monitoring: more robust communication with the + helper program (in socket mode, the unison server will still + work properly despite unexpected unison client + disconnections). + + A bytecode version of unison-fsmonitor is now produced by + "make NATIVE=false" + + Improved search for unison-fsmonitor + + Detect when the helper process exits. + + More robust file watching helper programs for Windows and + Linux. They communicate with Unison through pipes (Unison + redirects stdin and stdout), using a race-free protocol. + + Retries paths with failures using an exponential backoff + algorithm. + + The information returned by the file watchers are used + independently for each replica; thus, when only one replica + has changes, Unison will only rescan this replica. + + When available, used by the graphical UIs to speed up + rescanning (can be disabled by setting the new watch + preference to + + Small fix to the way fsmonitor.py gets invoked when using the + file watching functionality, suggested by Josh Berdine. Unison + will now look for fsmonitor.py in the same directory where the + Unison executable itself lives. + * Minor: + + Fixed a bug in export procedure that was messing up + documentation strings. + + Incorporated a patch from Irnyossy Knoblauch Artr to make + temp file names fit within 143 characters (to make eCryptFS + happy). + + Added a string to the Conflict direction to document the + reason of the conflict. + + Log conflicts and problems in the text UI even if nothing is + propagated. + + Use hash function from OCaml 3.x for comparing archives, even + when compiled with OCaml 4.x. + + Do not restart Unison in case of uncaught exception when the + repeat preference is set. This seems safer. And it does not + work, for instance, in case of lost connection. + + Fix Unix.readlink invalid argument error under Windows + + Fix a crash when the output of the diff program is too large. + + Fixed Makefile for cross-compiling towards Windows (updated to + MinGW-w64) + + Changes since 2.40.63: + * New preference fastercheckUNSAFE, which can be used (with care!) to + achieve much faster update detection when all the common files in + the two replicas are known to be identical. See the manual for more + information. + This feature should still be considered experimental, but it's + ready for other people to try out. + * Added option clientHostName. If specified, it will be used to as + the client host name, overriding UNISONLOCALHOSTNAME and the actual + host name. + * OS X GUI: + + fix crash under Lion, because of problems with the toolbar, + using the fix suggested in + http://blitzbasic.com/Community/posts.php?topic=95778. + + uimacnew09 is now the standard graphical interface on OSX + + A small improvement to the uimacnew09 interface from Alan + Schmitt and Steve Kalkwarf: when Unison is run with the -batch + flag, the interface will now automatically propagate changes + and terminate, without waiting for user interaction. + + Show a modal warning window if there is no archive for the + hosts. The user can then choose to exit or proceed (proceed is + the default). The window is not shown if the batch preference + is true. + + file details panel selectable + * GTK GUI: + + New version of uigtk2.ml from Matt Zagrabelny that reorganizes + the icons in a slightly more intuitive way. + * Minor fixes: + + Setting the prefer preference to older or newer now propagates + deletions when there is no conflict. + + Correctly quote the path when running merge commands. + + Add quotes to paths when calling external file watcher + utility. + + Incorporate a patch to fsmonitor.py (the external filewatcher + utility) from Tomasz Zernicki to make it work better under + Windows. + + Incorporated new version of fsmonitor.py from Christophe Gohle + + Fixed incompatibility with OpenSSH 5.6. + + Fixed fingerprint cache: do not cache file properties + + Some spelling corrections in documentation and comments from + Stephane Glondu + + Fixed O_APPEND mode for open under Windows + + Fixed String.sub invalid argument error when an AppleDouble + file does not contain a finder information field + + Trim duplicate paths when using "-repeat watch" + + Unison now passes path arguments and -follow directives to + fsmonitor.py. This seems to work except for one small issue + with how fsmonitor.py treats -follow directives for + directories that don't exist (or maybe this is an issue with + how it treats any kind of monitoring when the thing being + monitored doesn't exist?). If we create a symlink to a + nonexistant directory, give Unison (hence fsmonitor.py) a + 'follow' directive for the symlink, start unison, and then + create the directory, fsmonitor.py misses the change. + + Lines added in profile files by unison always start at a new + line + + Changes since 2.40.1: + * Added "BelowPath" patterns, that match a path as well as all paths + below (convenient to use with nodeletion,update,creationpartial + preferences) + * Added a "fat" preference that makes Unison use the right options + when one of the replica is on a FAT filesystem. + * Allow "prefer/force=newer" even when not synchronizing modification + times. (The reconciler will not be aware of the modification time + of unchanged files, so the synchronization choices of Unison can be + different from when "times=true", but the behavior remains sane: + changed files with the most recent modification time will be + propagated.) + * Minor fixes and improvements: + + Compare filenames up to decomposition in case sensitive mode + when one host is running MacOSX and the unicode preference is + set to true. + + Rsync: somewhat faster compressor + + Make Unicode the default on all architectures (it was only the + default when a Mac OS X or Windows machine was involved). + + Changes since 2.32: + * Major enhancement: Unicode support. + + Unison should now handle unicode filenames correctly on all + platforms. + + This functionality is controlled by a new preference unicode. + + Unicode mode is now the default when one of the hosts is under + Windows or MacOS. This may make upgrades a bit more painful + (the archives cannot be reused), but this is a much saner + default. + * Partial transfer of directories. If an error occurs while + transferring a directory, the part transferred so far is copied + into place (and the archives are updated accordingly). The + "maxerrors" preference controls how many transfer error Unison will + accept before stopping the transfer of a directory (by default, + only one). This makes it possible to transfer most of a directory + even if there are some errors. Currently, only the first error is + reported by the GUIs. + Also, allow partial transfer of a directory when there was an error + deep inside this directory during update detection. At the moment, + this is only activated with the text and GTK UIs, which have been + modified so that they show that the transfer is going to be partial + and so that they can display all errors. + * Improvement to the code for resuming directory transfers: + + if a file was not correctly transferred (or the source has + been modified since, with unchanged size), Unison performs a + new transfer rather than failing + + spurious files are deleted (this can happen if a file is + deleted on the source replica before resuming the transfer; + not deleting the file would result in it reappearing on the + target replica) + * Experimental streaming protocol for transferring file contents (can + be disabled by setting the directive "stream" to false): file + contents is transfered asynchronously (without waiting for a + response from the destination after each chunk sent) rather than + using the synchronous RPC mechanism. As a consequence: + + Unison now transfers the contents of a single file at a time + (Unison used to transfer several contents simultaneously in + order to hide the connection latency.) + + the transfer of large files uses the full available bandwidth + and is not slowed done due to the connection latency anymore + + we get performance improvement for small files as well by + scheduling many files simultaneously (as scheduling a file for + transfer consume little ressource: it does not mean allocating + a large buffer anymore) + * Changes to the internal implementation of the rsync algorithm: + + use longer blocks for large files (the size of a block is the + square root of the size of the file for large files); + + transmit less checksum information per block (we still have + less than one chance in a hundred million of transferring a + file incorrectly, and Unison will catch any transfer error + when fingerprinting the whole file) + + avoid transfer overhead (which was 4 bytes per block) + For a 1G file, the first optimization saves a factor 50 on the + amount of data transferred from the target to the source (blocks + are 32768 bytes rather than just 700 bytes). The two other + optimizations save another factor of 2 (from 24 bytes per block + down to 10). + * Implemented an on-disk file fingerprint cache to speed-up update + detection after a crash: this way, Unison does not have do + recompute all the file fingerprints from scratch. + + When Unison detects that the archive case-sensitivity mode + does not match the current settings, it populates the + fingerprint cache using the archive contents. This way, + changing the case-sensitivity mode should be reasonably fast. + * New preferences "noupdate=root", "nodeletion=root", + "nocreation=root" that prevent Unison from performing files + updates, deletions or creations on the given root. Also 'partial' + versions of 'noupdate', 'nodeletion' and 'nocreation' + * Limit the number of simultaneous external copy program ("copymax" + preference) + * New "links" preference. When set to false, Unison will report an + error on symlinks during update detection. (This is the default + when one host is running Windows but not Cygwin.) This is better + than failing during propagation. + * Added a preference "halfduplex" to force half-duplex communication + with the server. This may be useful on unreliable links (as a more + efficient alternative to "maxthreads = 1"). + * Renamed preference "pretendwin" to "ignoreinodenumbers" (an alias + is kept for backwards compatibility). + * Ignore one-second differences when synchronizing modification time. + (Technically, this is an incompatible archive format change, but it + is backward compatible. To trigger a problem, a user would have to + synchronize modification times on a filesystem with a two-second + granularity and then downgrade to a previous version of Unison, + which does not work well in such a case. Thus, it does not seem + worthwhile to increment the archive format number, which would + impact all users.) + * Do not keep many files simultaneously opened anymore when the rsync + algorithm is in use. + * Add "ignorearchives" preference to ignore existing archives (to + avoid forcing users to delete them manually, in situations where + one archive has gotten deleted or corrupted). + * Mac OS + + fixed rsync bug which could result in an "index out of bounds" + error when transferring resource forks. + + Fixed bug which made Unison ignore finder information and + resource fork when compiled to 64bit on Mac OSX. + + should now be 64 bit clean (the Growl framework is not up to + date, though) + + Made the bridge between Objective C and Ocaml code GC friendly + (it was allocating ML values and putting them in an array + which was not registered with the GC) + + use darker grey arrows (patch contributed by Eric Y. Kow) + * GTK user interface + + assistant for creating profiles + + profile editor + + pop up a summary window when the replicas are not fully + synchronized after transport + + display estimated remaining time and transfer rate on the + progress bar + + allow simultaneous selection of several items + + Do not reload the preference file before a new update + detection if it is unchanged + + disabled scrolling to the first unfinished item during + transport. It goes way too fast when lot of small files are + synchronized, and it makes it impossible to browse the file + list during transport. + + take into account the "height" preference again + + the internal list of selected reconciler item was not always + in sync with what was displayed (GTK bug?); workaround + implemented + + Do not display "Looking for change" messages during + propagation (when checking the targe is unchanged) but only + during update detection + + Apply patch to fix some crashes in the OSX GUI, thanks to Onne + Gorter. + * Text UI + + During update detection, display status by updating a single + line rather than generating a new line of output every so + often. Should be less confusing. + * Windows + + Fastcheck is now the default under Windows. People mostly use + NTFS nowadays and the Unicode API provides an equivalent to + inode numbers for this filesystem. + + Only use long UNC path for accessing replicas (as '..' is not + handled with this format of paths, but can be useful) + + Windows text UI: now put the console into UTF-8 output mode. + This is the right thing to do when in Unicode mode, and is no + worse than what we had previously otherwise (the console use + some esoteric encoding by default). This only works when using + a Unicode font instead of the default raster font. + + Don't get the home directory from environment variable HOME + under Windows (except for Cygwin binaries): we don't want the + behavior of Unison to depends on whether it is run from a + Cygwin shell (where HOME is set) or in any other way (where + HOME is usually not set). + * Miscellaneous fixes and improvements + + Made a server waiting on a socket more resilient to unexpected + lost connections from the client. + + Small patch to property setting code suggested by Ulrich + Gernkow. + + Several fixes to the change transfer functions (both the + internal ones and external transfers using rsync). In + particular, limit the number of simultaneous transfer using an + rsync (as the rsync algorithm can use a large amount of memory + when processing huge files) + + Keep track of which file contents are being transferred, and + delay the transfer of a file when another file with the same + contents is currently being transferred. This way, the second + transfer can be skipped and replaced by a local copy. + + Experimental update detection optimization: do not read the + contents of unchanged directories + + When a file transfer fails, turn off fastcheck for this file + on the next sync. + + Fixed bug with case insensitive mode on a case sensitive + filesystem: + o if file "a/a" is created on one replica and directory "A" + is created on the other, the file failed to be + synchronized the first time Unison is run afterwards, as + Unison uses the wrong path "a/a" (if Unison is run again, + the directories are in the archive, so the right path is + used); + o if file "a" appears on one replica and file "A" appears + on the other with different contents, Unison was unable + to synchronize them. + + Improved error reporting when the destination is updated + during synchronization: Unison now tells which file has been + updated, and how. + + Limit the length of temporary file names + + Case sensitivity information put in the archive (in a backward + compatible way) and checked when the archive is loaded + + Got rid of the 16mb marshalling limit by marshalling to a + bigarray. + + Resume copy of partially transferred files. + + Changes since 2.31: + * Small user interface changes + + Small change to text UI "scanning..." messages, to print just + directories (hopefully making it clearer that individual files + are not necessarily being fingerprinted). + * Minor fixes and improvements: + + Ignore one hour differences when deciding whether a file may + have been updated. This avoids slow update detection after + daylight saving time changes under Windows. This makes Unison + slightly more likely to miss an update, but it should be safe + enough. + + Fix a small bug that was affecting mainly windows users. We + need to commit the archives at the end of the sync even if + there are no updates to propagate because some files (in fact, + if we've just switched to DST on windows, a LOT of files) + might have new modtimes in the archive. (Changed the text UI + only. It's less clear where to change the GUI.) + + Don't delete the temp file when a transfer fails due to a + fingerprint mismatch (so that we can have a look and see why!) + We've also added more debugging code togive more informative + error messages when we encounter the dreaded and longstanding + "assert failed during file transfer" bug + + Incorrect paths ("path" directive) now result in an error + update item rather than a fatal error. + + Create parent directories (with correct permissions) during + transport for paths which point to non-existent locations in + the destination replica. + + Changes since 2.27: + * If Unison is interrupted during a directory transfer, it will now + leave the partially transferred directory intact in a temporary + location. (This maintains the invariant that new files/directories + are transferred either completely or not at all.) The next time + Unison is run, it will continue filling in this temporary + directory, skipping transferring files that it finds are already + there. + * We've added experimental support for invoking an external file + transfer tool for whole-file copies instead of Unison's built-in + transfer protocol. Three new preferences have been added: + + copyprog is a string giving the name (and command-line + switches, if needed) of an external program that can be used + to copy large files efficiently. By default, rsync is invoked, + but other tools such as scp can be used instead by changing + the value of this preference. (Although this is not its + primary purpose, rsync is actually a pretty fast way of + copying files that don't already exist on the receiving host.) + For files that do already exist on (but that have been changed + in one replica), Unison will always use its built-in + implementation of the rsync algorithm. + + Added a "copyprogrest" preference, so that we can give + different command lines for invoking the external copy utility + depending on whether a partially transferred file already + exists or not. (Rsync doesn't seem to care about this, but + other utilities may.) + + copythreshold is an integer (-1 by default), indicating above + what filesize (in megabytes) Unison should use the external + copying utility specified by copyprog. Specifying 0 will cause + ALL copies to use the external program; a negative number will + prevent any files from using it. (Default is -1.) + Thanks to Alan Schmitt for a huge amount of hacking and to an + anonymous sponsor for suggesting and underwriting this extension. + * Small improvements: + + Added a new preference, dontchmod. By default, Unison uses the + chmod system call to set the permission bits of files after it + has copied them. But in some circumstances (and under some + operating systems), the chmod call always fails. Setting this + preference completely prevents Unison from ever calling chmod. + + Don't ignore files that look like backup files if the + backuplocation preference is set to central + + Shortened the names of several preferences. The old names are + also still supported, for backwards compatibility, but they do + not appear in the documentation. + + Lots of little documentation tidying. (In particular, + preferences are separated into Basic and Advanced! This should + hopefully make Unison a little more approachable for new + users. + + Unison can sometimes fail to transfer a file, giving the + unhelpful message "Destination updated during synchronization" + even though the file has not been changed. This can be caused + by programs that change either the file's contents or the + file's extended attributes without changing its modification + time. It's not clear what is the best fix for this - it is not + Unison's fault, but it makes Unison's behavior puzzling - but + at least Unison can be more helpful about suggesting a + workaround (running once with fastcheck set to false). The + failure message has been changed to give this advice. + + Further improvements to the OS X GUI (thanks to Alan Schmitt + and Craig Federighi). + * Very preliminary support for triggering Unison from an external + filesystem-watching utility. The current implementation is very + simple, not efficient, and almost completely untested--not ready + for real users. But if someone wants to help improve it (e.g., by + writing a filesystem watcher for your favorite OS), please make + yourself known! + On the Unison side, the new behavior is very simple: + + use the text UI + + start Unison with the command-line flag "-repeat FOO", where + FOO is name of a file where Unison should look for + notifications of changes + + when it starts up, Unison will read the whole contents of this + file (on both hosts), which should be a newline-separated list + of paths (relative to the root of the synchronization) and + synchronize just these paths, as if it had been started with + the "-path=xxx" option for each one of them + + when it finishes, it will sleep for a few seconds and then + examine the watchfile again; if anything has been added, it + will read the new paths, synchronize them, and go back to + sleep + + that's it! + To use this to drive Unison "incrementally," just start it in this + mode and start up a tool (on each host) to watch for new changes to + the filesystem and append the appropriate paths to the watchfile. + Hopefully such tools should not be too hard to write. + * Bug fixes: + + Fixed a bug that was causing new files to be created with + permissions 0x600 instead of using a reasonable default (like + 0x644), if the 'perms' flag was set to 0. (Bug reported by Ben + Crowell.) + + Follow maxthreads preference when transferring directories. + + Changes since 2.17: + * Major rewrite and cleanup of the whole Mac OS X graphical user + interface by Craig Federighi. Thanks, Craig!!! + * Small fix to ctime (non-)handling in update detection under windows + with fastcheck. + * Several small fixes to the GTK2 UI to make it work better under + Windows [thanks to Karl M for these]. + * The backup functionality has been completely rewritten. The + external interface has not changed, but numerous bugs, irregular + behaviors, and cross-platform inconsistencies have been corrected. + * The Unison project now accepts donations via PayPal. If you'd like + to donate, you can find a link to the donation page on the Unison + home page (http://www.cis.upenn.edu/ bcpierce/unison/lists.html). + * Some important safety improvements: + + Added a new mountpoint preference, which can be used to + specify a path that must exist in both replicas at the end of + update detection (otherwise Unison aborts). This can be used + to avoid potentially dangerous situations when Unison is used + with removable media such as external hard drives and compact + flash cards. + + The confirmation of "big deletes" is now controlled by a + boolean preference confirmbigdeletes. Default is true, which + gives the same behavior as previously. (This functionality is + at least partly superceded by the mountpoint preference, but + it has been left in place in case it is useful to some + people.) + + If Unison is asked to "follow" a symbolic link but there is + nothing at the other end of the link, it will now flag this + path as an error, rather than treating the symlink itself as + missing or deleted. This avoids a potentially dangerous + situation where a followed symlink points to an external + filesystem that might be offline when Unison is run (whereupon + Unison would cheerfully delete the corresponding files in the + other replica!). + * Smaller changes: + + Added forcepartial and preferpartial preferences, which behave + like force and prefer but can be specified on a per-path + basis. [Thanks to Alan Schmitt for this.] + + A bare-bones self test feature was added, which runs unison + through some of its paces and checks that the results are as + expected. The coverage of the tests is still very limited, but + the facility has already been very useful in debugging the new + backup functionality (especially in exposing some subtle + cross-platform issues). + + Refined debugging code so that the verbosity of individual + modules can be controlled separately. Instead of just putting + '-debug verbose' on the command line, you can put '-debug + update+', which causes all the extra messages in the Update + module, but not other modules, to be printed. Putting '-debug + verbose' causes all modules to print with maximum verbosity. + + Removed mergebatch preference. (It never seemed very useful, + and its semantics were confusing.) + + Rewrote some of the merging functionality, for better + cooperation with external Harmony instances. + + Changed the temp file prefix from .# to .unison. + + Compressed the output from the text user interface + (particularly when run with the -terse flag) to make it easier + to interpret the results when Unison is run several times in + succession from a script. + + Diff and merge functions now work under Windows. + + Changed the order of arguments to the default diff command (so + that the + and - annotations in diff's output are reversed). + + Added .mpp files to the "never fastcheck" list (like .xls + files). + * Many small bugfixes, including: + + Fixed a longstanding bug regarding fastcheck and daylight + saving time under Windows when Unison is set up to synchronize + modification times. (Modification times cannot be updated in + the archive in this case, so we have to ignore one hour + differences.) + + Fixed a bug that would occasionally cause the archives to be + left in non-identical states on the two hosts after + synchronization. + + Fixed a bug that prevented Unison from communicating correctly + between 32- and 64-bit architectures. + + On windows, file creation times are no longer used as a proxy + for inode numbers. (This is unfortunate, as it makes fastcheck + a little less safe. But it turns out that file creation times + are not reliable under Windows: if a file is removed and a new + file is created in its place, the new one will sometimes be + given the same creation date as the old one!) + + Set read-only file to R/W on OSX before attempting to change + other attributes. + + Fixed bug resulting in spurious "Aborted" errors during + transport (thanks to Jerome Vouillon) + + Enable diff if file contents have changed in one replica, but + only properties in the other. + + Removed misleading documentation for 'repeat' preference. + + Fixed a bug in merging code where Unison could sometimes + deadlock with the external merge program, if the latter + produced large amounts of output. + + Workaround for a bug compiling gtk2 user interface against + current versions of gtk2+ libraries. + + Added a better error message for "ambiguous paths". + + Squashed a longstanding bug that would cause file transfer to + fail with the message "Failed: Error in readWrite: Is a + directory." + + Replaced symlinks with copies of their targets in the Growl + framework in src/uimac. This should make the sources easier to + check out from the svn repository on WinXP systems. + + Added a workaround (suggested by Karl M.) for the problem + discussed on the unison users mailing list where, on the + Windows platform, the server would hang when transferring + files. I conjecture that the problem has to do with the RPC + mechanism, which was used to make a call back from the server + to the client (inside the Trace.log function) so that the log + message would be appended to the log file on the client. The + workaround is to dump these messages (about when xferbycopying + shortcuts are applied and whether they succeed) just to the + standard output of the Unison process, not to the log file. + + Changes since 2.13.0: + * The features for performing backups and for invoking external merge + programs have been completely rewritten by Stephane Lescuyer + (thanks, Stephane!). The user-visible functionality should not + change, but the internals have been rationalized and there are a + number of new features. See the manual (in particular, the + description of the backupXXX preferences) for details. + * Incorporated patches for ipv6 support, contributed by Samuel + Thibault. (Note that, due to a bug in the released OCaml 3.08.3 + compiler, this code will not actually work with ipv6 unless + compiled with the CVS version of the OCaml compiler, where the bug + has been fixed; however, ipv4 should continue to work normally.) + * OSX interface: + + Incorporated Ben Willmore's cool new icon for the Mac UI. + * Small fixes: + + Fixed off by one error in month numbers (in printed dates) + reported by Bob Burger + + Changes since 2.12.0: + * New convention for release numbering: Releases will continue to be + given numbers of the form X.Y.Z, but, from now on, just the major + version number (X.Y) will be considered significant when checking + compatibility between client and server versions. The third + component of the version number will be used only to identify + "patch levels" of releases. + This change goes hand in hand with a change to the procedure for + making new releases. Candidate releases will initially be given + "beta release" status when they are announced for public + consumption. Any bugs that are discovered will be fixed in a + separate branch of the source repository (without changing the + major version number) and new tarballs re-released as needed. When + this process converges, the patched beta version will be dubbed + stable. + * Warning (failure in batch mode) when one path is completely + emptied. This prevents Unison from deleting everything on one + replica when the other disappear. + * Fix diff bug (where no difference is shown the first time the diff + command is given). + * User interface changes: + + Improved workaround for button focus problem (GTK2 UI) + + Put leading zeroes in date fields + + More robust handling of character encodings in GTK2 UI + + Changed format of modification time displays, from modified at + hh:mm:ss on dd MMM, yyyy to modified on yyyy-mm-dd hh:mm:ss + + Changed time display to include seconds (so that people on FAT + filesystems will not be confused when Unison tries to update a + file time to an odd number of seconds and the filesystem + truncates it to an even number!) + + Use the diff "-u" option by default when showing differences + between files (the output is more readable) + + In text mode, pipe the diff output to a pager if the + environment variable PAGER is set + + Bug fixes and cleanups in ssh password prompting. Now works + with the GTK2 UI under Linux. (Hopefully the Mac OS X one is + not broken!) + + Include profile name in the GTK2 window name + + Added bindings ',' (same as '<') and '.' (same as '>') in the + GTK2 UI + * Mac GUI: + + actions like < and > scroll to the next item as necessary. + + Restart has a menu item and keyboard shortcut (command-R). + + Added a command-line tool for Mac OS X. It can be installed + from the Unison menu. + + New icon. + + Handle the "help" command-line argument properly. + + Handle profiles given on the command line properly. + + When a profile has been selected, the profile dialog is + replaced by a "connecting" message while the connection is + being made. This gives better feedback. + + Size of left and right columns is now large enough so that + "PropsChanged" is not cut off. + * Minor changes: + + Disable multi-threading when both roots are local + + Improved error handling code. In particular, make sure all + files are closed in case of a transient failure + + Under Windows, use $UNISON for home directory as a last resort + (it was wrongly moved before $HOME and $USERPROFILE in Unison + 2.12.0) + + Reopen the logfile if its name changes (profile change) + + Double-check that permissions and modification times have been + properly set: there are some combination of OS and filesystem + on which setting them can fail in a silent way. + + Check for bad Windows filenames for pure Windows + synchronization also (not just cross architecture + synchronization). This way, filenames containing backslashes, + which are not correctly handled by unison, are rejected right + away. + + Attempt to resolve issues with synchronizing modification + times of read-only files under Windows + + Ignore chmod failures when deleting files + + Ignore trailing dots in filenames in case insensitive mode + + Proper quoting of paths, files and extensions ignored using + the UI + + The strings CURRENT1 and CURRENT2 are now correctly substitued + when they occur in the diff preference + + Improvements to syncing resource forks between Macs via a + non-Mac system. + + Changes since 2.10.2: + * INCOMPATIBLE CHANGE: Archive format has changed. + * Source code availability: The Unison sources are now managed using + Subversion. One nice side-effect is that anonymous checkout is now + possible, like this: + svn co https://cvs.cis.upenn.edu:3690/svnroot/unison/ + + We will also continue to export a "developer tarball" of the + current (modulo one day) sources in the web export directory. To + receive commit logs for changes to the sources, subscribe to the + unison-hackers list + (http://www.cis.upenn.edu/ bcpierce/unison/lists.html). + * Text user interface: + + Substantial reworking of the internal logic of the text UI to + make it a bit easier to modify. + + The dumbtty flag in the text UI is automatically set to true + if the client is running on a Unix system and the EMACS + environment variable is set to anything other than the empty + string. + * Native OS X gui: + + Added a synchronize menu item with keyboard shortcut + + Added a merge menu item, still needs to be debugged + + Fixes to compile for Panther + + Miscellaneous improvements and bugfixes + * Small changes: + + Changed the filename checking code to apply to Windows only, + instead of OS X as well. + + Finder flags now synchronized + + Fallback in copy.ml for filesystem that do not support O_EXCL + + Changed buffer size for local file copy (was highly + inefficient with synchronous writes) + + Ignore chmod failure when deleting a directory + + Fixed assertion failure when resolving a conflict content + change / permission changes in favor of the content change. + + Workaround for transferring large files using rsync. + + Use buffered I/O for files (this is the only way to open files + in binary mode under Cygwin). + + On non-Cygwin Windows systems, the UNISON environment variable + is now checked first to determine where to look for Unison's + archive and preference files, followed by HOME and USERPROFILE + in that order. On Unix and Cygwin systems, HOME is used. + + Generalized diff preference so that it can be given either as + just the command name to be used for calculating diffs or else + a whole command line, containing the strings CURRENT1 and + CURRENT2, which will be replaced by the names of the files to + be diff'ed before the command is called. + + Recognize password prompts in some newer versions of ssh. + + Changes since 2.9.20: + * INCOMPATIBLE CHANGE: Archive format has changed. + * Major functionality changes: + + Major tidying and enhancement of 'merge' functionality. The + main user-visible change is that the external merge program + may either write the merged output to a single new file, as + before, or it may modify one or both of its input files, or it + may write two new files. In the latter cases, its + modifications will be copied back into place on both the local + and the remote host, and (if the two files are now equal) the + archive will be updated appropriately. More information can be + found in the user manual. Thanks to Malo Denielou and Alan + Schmitt for these improvements. + Warning: the new merging functionality is not completely + compatible with old versions! Check the manual for details. + + Files larger than 2Gb are now supported. + + Added preliminary (and still somewhat experimental) support + for the Apple OS X operating system. + o Resource forks should be transferred correctly. (See the + manual for details of how this works when synchronizing + HFS with non-HFS volumes.) Synchronization of file type + and creator information is also supported. + o On OSX systems, the name of the directory for storing + Unison's archives, preference files, etc., is now + determined as follows: + # if ~/.unison exists, use it + # otherwise, use ~/Library/Application Support/Unison, + creating it if necessary. + o A preliminary native-Cocoa user interface is under + construction. This still needs some work, and some users + experience unpredictable crashes, so it is only for + hackers for now. Run make with UISTYLE=mac to build this + interface. + * Minor functionality changes: + + Added an ignorelocks preference, which forces Unison to + override left-over archive locks. (Setting this preference is + dangerous! Use it only if you are positive you know what you + are doing.) + + Added a new preference assumeContentsAreImmutable. If a + directory matches one of the patterns set in this preference, + then update detection is skipped for files in this directory. + (The purpose is to speed update detection for cases like Mail + folders, which contain lots and lots of immutable files.) Also + a preference assumeContentsAreImmutableNot, which overrides + the first, similarly to ignorenot. (Later amendment: these + preferences are now called immutable and immutablenot.) + + The ignorecase flag has been changed from a boolean to a + three-valued preference. The default setting, called default, + checks the operating systems running on the client and server + and ignores filename case if either of them is OSX or Windows. + Setting ignorecase to true or false overrides this behavior. + If you have been setting ignorecase on the command line using + -ignorecase=true or -ignorecase=false, you will need to change + to -ignorecase true or -ignorecase false. + + a new preference, 'repeat', for the text user interface + (only). If 'repeat' is set to a number, then, after it + finishes synchronizing, Unison will wait for that many seconds + and then start over, continuing this way until it is killed + from outside. Setting repeat to true will automatically set + the batch preference to true. + + Excel files are now handled specially, so that the fastcheck + optimization is skipped even if the fastcheck flag is set. + (Excel does some naughty things with modtimes, making this + optimization unreliable and leading to failures during change + propagation.) + + The ignorecase flag has been changed from a boolean to a + three-valued preference. The default setting, called + 'default', checks the operating systems running on the client + and server and ignores filename case if either of them is OSX + or Windows. Setting ignorecase to 'true' or 'false' overrides + this behavior. + + Added a new preference, 'repeat', for the text user interface + (only, at the moment). If 'repeat' is set to a number, then, + after it finishes synchronizing, Unison will wait for that + many seconds and then start over, continuing this way until it + is killed from outside. Setting repeat to true will + automatically set the batch preference to true. + + The 'rshargs' preference has been split into 'rshargs' and + 'sshargs' (mainly to make the documentation clearer). In fact, + 'rshargs' is no longer mentioned in the documentation at all, + since pretty much everybody uses ssh now anyway. + * Documentation + + The web pages have been completely redesigned and reorganized. + (Thanks to Alan Schmitt for help with this.) + * User interface improvements + + Added a GTK2 user interface, capable (among other things) of + displaying filenames in any locale encoding. Kudos to Stephen + Tse for contributing this code! + + The text UI now prints a list of failed and skipped transfers + at the end of synchronization. + + Restarting update detection from the graphical UI will reload + the current profile (which in particular will reset the -path + preference, in case it has been narrowed by using the "Recheck + unsynchronized items" command). + + Several small improvements to the text user interface, + including a progress display. + * Bug fixes (too numerous to count, actually, but here are some): + + The maxthreads preference works now. + + Fixed bug where warning message about uname returning an + unrecognized result was preventing connection to server. (The + warning is no longer printed, and all systems where 'uname' + returns anything other than 'Darwin' are assumed not to be + running OS X.) + + Fixed a problem on OS X that caused some valid file names + (e.g., those including colons) to be considered invalid. + + Patched Path.followLink to follow links under cygwin in + addition to Unix (suggested by Matt Swift). + + Small change to the storeRootsName function, suggested by + bliviero at ichips.intel.com, to fix a problem in unison with + the `rootalias' option, which allows you to tell unison that + two roots contain the same files. Rootalias was being applied + after the hosts were sorted, so it wouldn't work properly in + all cases. + + Incorporated a fix by Dmitry Bely for setting utimes of + read-only files on Win32 systems. + * Installation / portability: + + Unison now compiles with OCaml version 3.07 and later out of + the box. + + Makefile.OCaml fixed to compile out of the box under OpenBSD. + + a few additional ports (e.g. OpenBSD, Zaurus/IPAQ) are now + mentioned in the documentation + + Unison can now be installed easily on OSX systems using the + Fink package manager + + Changes since 2.9.1: + * Added a preference maxthreads that can be used to limit the number + of simultaneous file transfers. + * Added a backupdir preference, which controls where backup files are + stored. + * Basic support added for OSX. In particular, Unison now recognizes + when one of the hosts being synchronized is running OSX and + switches to a case-insensitive treatment of filenames (i.e., 'foo' + and 'FOO' are considered to be the same file). (OSX is not yet + fully working, however: in particular, files with resource forks + will not be synchronized correctly.) + * The same hash used to form the archive name is now also added to + the names of the temp files created during file transfer. The + reason for this is that, during update detection, we are going to + silently delete any old temp files that we find along the way, and + we want to prevent ourselves from deleting temp files belonging to + other instances of Unison that may be running in parallel, e.g. + synchronizing with a different host. Thanks to Ruslan Ermilov for + this suggestion. + * Several small user interface improvements + * Documentation + + FAQ and bug reporting instructions have been split out as + separate HTML pages, accessible directly from the unison web + page. + + Additions to FAQ, in particular suggestions about performance + tuning. + * Makefile + + Makefile.OCaml now sets UISTYLE=text or UISTYLE=gtk + automatically, depending on whether it finds lablgtk installed + + Unison should now compile "out of the box" under OSX + + Changes since 2.8.1: + * Changing profile works again under Windows + * File movement optimization: Unison now tries to use local copy + instead of transfer for moved or copied files. It is controled by a + boolean option "xferbycopying". + * Network statistics window (transfer rate, amount of data + transferred). [NB: not available in Windows-Cygwin version.] + * symlinks work under the cygwin version (which is dynamically + linked). + * Fixed potential deadlock when synchronizing between Windows and + Unix + * Small improvements: + + If neither the USERPROFILE nor the HOME environment variables + are set, then Unison will put its temporary commit log (called + DANGER.README) into the directory named by the UNISON + environment variable, if any; otherwise it will use C:. + + alternative set of values for fastcheck: yes = true; no = + false; default = auto. + + -silent implies -contactquietly + * Source code: + + Code reorganization and tidying. (Started breaking up some of + the basic utility modules so that the non-unison-specific + stuff can be made available for other projects.) + + several Makefile and docs changes (for release); + + further comments in "update.ml"; + + connection information is not stored in global variables + anymore. + + Changes since 2.7.78: + * Small bugfix to textual user interface under Unix (to avoid leaving + the terminal in a bad state where it would not echo inputs after + Unison exited). + + Changes since 2.7.39: + * Improvements to the main web page (stable and beta version docs are + now both accessible). + * User manual revised. + * Added some new preferences: + + "sshcmd" and "rshcmd" for specifying paths to ssh and rsh + programs. + + "contactquietly" for suppressing the "contacting server" + message during Unison startup (under the graphical UI). + * Bug fixes: + + Fixed small bug in UI that neglected to change the displayed + column headers if loading a new profile caused the roots to + change. + + Fixed a bug that would put the text UI into an infinite loop + if it encountered a conflict when run in batch mode. + + Added some code to try to fix the display of non-Ascii + characters in filenames on Windows systems in the GTK UI. + (This code is currently untested--if you're one of the people + that had reported problems with display of non-ascii + filenames, we'd appreciate knowing if this actually fixes + things.) + + `-prefer/-force newer' works properly now. (The bug was + reported by Sebastian Urbaniak and Sean Fulton.) + * User interface and Unison behavior: + + Renamed `Proceed' to `Go' in the graphical UI. + + Added exit status for the textual user interface. + + Paths that are not synchronized because of conflicts or errors + during update detection are now noted in the log file. + + [END] messages in log now use a briefer format + + Changed the text UI startup sequence so that ./unison -ui text + will use the default profile instead of failing. + + Made some improvements to the error messages. + + Added some debugging messages to remote.ml. + + Changes since 2.7.7: + * Incorporated, once again, a multi-threaded transport sub-system. It + transfers several files at the same time, thereby making much more + effective use of available network bandwidth. Unlike the earlier + attempt, this time we do not rely on the native thread library of + OCaml. Instead, we implement a light-weight, non-preemptive + multi-thread library in OCaml directly. This version appears + stable. + Some adjustments to unison are made to accommodate the + multi-threaded version. These include, in particular, changes to + the user interface and logging, for example: + + Two log entries for each transferring task, one for the + beginning, one for the end. + + Suppressed warning messages against removing temp files left + by a previous unison run, because warning does not work nicely + under multi-threading. The temp file names are made less + likely to coincide with the name of a file created by the + user. They take the form + .#..unison.tmp. [N.b. This was later changed + to .unison...unison.tmp.] + * Added a new command to the GTK user interface: pressing 'f' causes + Unison to start a new update detection phase, using as paths just + those paths that have been detected as changed and not yet marked + as successfully completed. Use this command to quickly restart + Unison on just the set of paths still needing attention after a + previous run. + * Made the ignorecase preference user-visible, and changed the + initialization code so that it can be manually set to true, even if + neither host is running Windows. (This may be useful, e.g., when + using Unison running on a Unix system with a FAT volume mounted.) + * Small improvements and bug fixes: + + Errors in preference files now generate fatal errors rather + than warnings at startup time. (I.e., you can't go on from + them.) Also, we fixed a bug that was preventing these warnings + from appearing in the text UI, so some users who have been + running (unsuspectingly) with garbage in their prefs files may + now get error reports. + + Error reporting for preference files now provides file name + and line number. + + More intelligible message in the case of identical change to + the same files: "Nothing to do: replicas have been changed + only in identical ways since last sync." + + Files with prefix '.#' excluded when scanning for preference + files. + + Rsync instructions are send directly instead of first + marshaled. + + Won't try forever to get the fingerprint of a continuously + changing file: unison will give up after certain number of + retries. + + Other bug fixes, including the one reported by Peter Selinger + (force=older preference not working). + * Compilation: + + Upgraded to the new OCaml 3.04 compiler, with the LablGtk + 1.2.3 library (patched version used for compiling under + Windows). + + Added the option to compile unison on the Windows platform + with Cygwin GNU C compiler. This option only supports building + dynamically linked unison executables. + + Changes since 2.7.4: + * Fixed a silly (but debilitating) bug in the client startup + sequence. + + Changes since 2.7.1: + * Added addprefsto preference, which (when set) controls which + preference file new preferences (e.g. new ignore patterns) are + added to. + * Bug fix: read the initial connection header one byte at a time, so + that we don't block if the header is shorter than expected. (This + bug did not affect normal operation -- it just made it hard to tell + when you were trying to use Unison incorrectly with an old version + of the server, since it would hang instead of giving an error + message.) + + Changes since 2.6.59: + * Changed fastcheck from a boolean to a string preference. Its legal + values are yes (for a fast check), no (for a safe check), or + default (for a fast check--which also happens to be safe--when + running on Unix and a safe check when on Windows). The default is + default. + * Several preferences have been renamed for consistency. All + preference names are now spelled out in lowercase. For backward + compatibility, the old names still work, but they are not mentioned + in the manual any more. + * The temp files created by the 'diff' and 'merge' commands are now + named by prepending a new prefix to the file name, rather than + appending a suffix. This should avoid confusing diff/merge programs + that depend on the suffix to guess the type of the file contents. + * We now set the keepalive option on the server socket, to make sure + that the server times out if the communication link is unexpectedly + broken. + * Bug fixes: + + When updating small files, Unison now closes the destination + file. + + File permissions are properly updated when the file is behind + a followed link. + + Several other small fixes. + + Changes since 2.6.38: + * Major Windows performance improvement! + We've added a preference fastcheck that makes Unison look only at a + file's creation time and last-modified time to check whether it has + changed. This should result in a huge speedup when checking for + updates in large replicas. + When this switch is set, Unison will use file creation times as + 'pseudo inode numbers' when scanning Windows replicas for updates, + instead of reading the full contents of every file. This may cause + Unison to miss propagating an update if the create time, + modification time, and length of the file are all unchanged by the + update (this is not easy to achieve, but it can be done). However, + Unison will never overwrite such an update with a change from the + other replica, since it always does a safe check for updates just + before propagating a change. Thus, it is reasonable to use this + switch most of the time and occasionally run Unison once with + fastcheck set to false, if you are worried that Unison may have + overlooked an update. + Warning: This change is has not yet been thoroughly field-tested. + If you set the fastcheck preference, pay careful attention to what + Unison is doing. + * New functionality: centralized backups and merging + + This version incorporates two pieces of major new + functionality, implemented by Sylvain Roy during a summer + internship at Penn: a centralized backup facility that keeps a + full backup of (selected files in) each replica, and a merging + feature that allows Unison to invoke an external file-merging + tool to resolve conflicting changes to individual files. + + Centralized backups: + o Unison now maintains full backups of the + last-synchronized versions of (some of) the files in each + replica; these function both as backups in the usual + sense and as the "common version" when invoking external + merge programs. + o The backed up files are stored in a directory + /.unison/backup on each host. (The name of this directory + can be changed by setting the environment variable + UNISONBACKUPDIR.) + o The predicate backup controls which files are actually + backed up: giving the preference 'backup = Path *' causes + backing up of all files. + o Files are added to the backup directory whenever unison + updates its archive. This means that + # When unison reconstructs its archive from scratch + (e.g., because of an upgrade, or because the archive + files have been manually deleted), all files will be + backed up. + # Otherwise, each file will be backed up the first + time unison propagates an update for it. + o The preference backupversions controls how many previous + versions of each file are kept. The default is 2 (i.e., + the last synchronized version plus one backup). + o For backward compatibility, the backups preference is + also still supported, but backup is now preferred. + o It is OK to manually delete files from the backup + directory (or to throw away the directory itself). Before + unison uses any of these files for anything important, it + checks that its fingerprint matches the one that it + expects. + + Merging: + o Both user interfaces offer a new 'merge' command, invoked + by pressing 'm' (with a changed file selected). + o The actual merging is performed by an external program. + The preferences merge and merge2 control how this program + is invoked. If a backup exists for this file (see the + backup preference), then the merge preference is used for + this purpose; otherwise merge2 is used. In both cases, + the value of the preference should be a string + representing the command that should be passed to a shell + to invoke the merge program. Within this string, the + special substrings CURRENT1, CURRENT2, NEW, and OLD may + appear at any point. Unison will substitute these as + follows before invoking the command: + # CURRENT1 is replaced by the name of the local copy + of the file; + # CURRENT2 is replaced by the name of a temporary + file, into which the contents of the remote copy of + the file have been transferred by Unison prior to + performing the merge; + # NEW is replaced by the name of a temporary file that + Unison expects to be written by the merge program + when it finishes, giving the desired new contents of + the file; and + # OLD is replaced by the name of the backed up copy of + the original version of the file (i.e., its state at + the end of the last successful run of Unison), if + one exists (applies only to merge, not merge2). + For example, on Unix systems setting the merge preference + to + merge = diff3 -m CURRENT1 OLD CURRENT2 > NEW + + will tell Unison to use the external diff3 program for + merging. + A large number of external merging programs are + available. For example, emacs users may find the + following convenient: + merge2 = emacs -q --eval '(ediff-merge-files "CURRENT1" "CURRENT2" + nil "NEW")' + merge = emacs -q --eval '(ediff-merge-files-with-ancestor + "CURRENT1" "CURRENT2" "OLD" nil "NEW")' + + (These commands are displayed here on two lines to avoid + running off the edge of the page. In your preference + file, each should be written on a single line.) + o If the external program exits without leaving any file at + the path NEW, Unison considers the merge to have failed. + If the merge program writes a file called NEW but exits + with a non-zero status code, then Unison considers the + merge to have succeeded but to have generated conflicts. + In this case, it attempts to invoke an external editor so + that the user can resolve the conflicts. The value of the + editor preference controls what editor is invoked by + Unison. The default is emacs. + o Please send us suggestions for other useful values of the + merge2 and merge preferences - we'd like to give several + examples in the manual. + * Smaller changes: + + When one preference file includes another, unison no longer + adds the suffix '.prf' to the included file by default. If a + file with precisely the given name exists in the .unison + directory, it will be used; otherwise Unison will add .prf, as + it did before. (This change means that included preference + files can be named blah.include instead of blah.prf, so that + unison will not offer them in its 'choose a preference file' + dialog.) + + For Linux systems, we now offer both a statically linked and a + dynamically linked executable. The static one is larger, but + will probably run on more systems, since it doesn't depend on + the same versions of dynamically linked library modules being + available. + + Fixed the force and prefer preferences, which were getting the + propagation direction exactly backwards. + + Fixed a bug in the startup code that would cause unison to + crash when the default profile (~/.unison/default.prf) does + not exist. + + Fixed a bug where, on the run when a profile is first created, + Unison would confusingly display the roots in reverse order in + the user interface. + * For developers: + + We've added a module dependency diagram to the source + distribution, in src/DEPENDENCIES.ps, to help new prospective + developers with navigating the code. + + Changes since 2.6.11: + * INCOMPATIBLE CHANGE: Archive format has changed. + * INCOMPATIBLE CHANGE: The startup sequence has been completely + rewritten and greatly simplified. The main user-visible change is + that the defaultpath preference has been removed. Its effect can be + approximated by using multiple profiles, with include directives to + incorporate common settings. All uses of defaultpath in existing + profiles should be changed to path. + Another change in startup behavior that will affect some users is + that it is no longer possible to specify roots both in the profile + and on the command line. + You can achieve a similar effect, though, by breaking your profile + into two: + + default.prf = + root = blah + root = foo + include common + + common.prf = + + + Now do + unison common root1 root2 + + when you want to specify roots explicitly. + * The -prefer and -force options have been extended to allow users to + specify that files with more recent modtimes should be propagated, + writing either -prefer newer or -force newer. (For symmetry, Unison + will also accept -prefer older or -force older.) The -force + older/newer options can only be used when -times is also set. + The graphical user interface provides access to these facilities on + a one-off basis via the Actions menu. + * Names of roots can now be "aliased" to allow replicas to be + relocated without changing the name of the archive file where + Unison stores information between runs. (This feature is for + experts only. See the "Archive Files" section of the manual for + more information.) + * Graphical user-interface: + + A new command is provided in the Synchronization menu for + switching to a new profile without restarting Unison from + scratch. + + The GUI also supports one-key shortcuts for commonly used + profiles. If a profile contains a preference of the form 'key + = n', where n is a single digit, then pressing this key will + cause Unison to immediately switch to this profile and begin + synchronization again from scratch. (Any actions that may have + been selected for a set of changes currently being displayed + will be discarded.) + + Each profile may include a preference 'label = ' + giving a descriptive string that described the options + selected in this profile. The string is listed along with the + profile name in the profile selection dialog, and displayed in + the top-right corner of the main Unison window. + * Minor: + + Fixed a bug that would sometimes cause the 'diff' display to + order the files backwards relative to the main user interface. + (Thanks to Pascal Brisset for this fix.) + + On Unix systems, the graphical version of Unison will check + the DISPLAY variable and, if it is not set, automatically fall + back to the textual user interface. + + Synchronization paths (path preferences) are now matched + against the ignore preferences. So if a path is both specified + in a path preference and ignored, it will be skipped. + + Numerous other bugfixes and small improvements. + + Changes since 2.6.1: + * The synchronization of modification times has been disabled for + directories. + * Preference files may now include lines of the form include , + which will cause name.prf to be read at that point. + * The synchronization of permission between Windows and Unix now + works properly. + * A binding CYGWIN=binmode in now added to the environment so that + the Cygwin port of OpenSSH works properly in a non-Cygwin context. + * The servercmd and addversionno preferences can now be used + together: -addversionno appends an appropriate -NNN to the server + command, which is found by using the value of the -servercmd + preference if there is one, or else just unison. + * Both '-pref=val' and '-pref val' are now allowed for boolean + values. (The former can be used to set a preference to false.) + * Lot of small bugs fixed. + + Changes since 2.5.31: + * The log preference is now set to true by default, since the log + file seems useful for most users. + * Several miscellaneous bugfixes (most involving symlinks). + + Changes since 2.5.25: + * INCOMPATIBLE CHANGE: Archive format has changed (again). + * Several significant bugs introduced in 2.5.25 have been fixed. + + Changes since 2.5.1: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * New functionality: + + Unison now synchronizes file modtimes, user-ids, and + group-ids. + These new features are controlled by a set of new preferences, + all of which are currently false by default. + o When the times preference is set to true, file + modification times are propaged. (Because the + representations of time may not have the same granularity + on both replicas, Unison may not always be able to make + the modtimes precisely equal, but it will get them as + close as the operating systems involved allow.) + o When the owner preference is set to true, file ownership + information is synchronized. + o When the group preference is set to true, group + information is synchronized. + o When the numericIds preference is set to true, owner and + group information is synchronized numerically. By + default, owner and group numbers are converted to names + on each replica and these names are synchronized. (The + special user id 0 and the special group 0 are never + mapped via user/group names even if this preference is + not set.) + + Added an integer-valued preference perms that can be used to + control the propagation of permission bits. The value of this + preference is a mask indicating which permission bits should + be synchronized. It is set by default to 0o1777: all bits but + the set-uid and set-gid bits are synchronised (synchronizing + theses latter bits can be a security hazard). If you want to + synchronize all bits, you can set the value of this preference + to -1. + + Added a log preference (default false), which makes Unison + keep a complete record of the changes it makes to the + replicas. By default, this record is written to a file called + unison.log in the user's home directory (the value of the HOME + environment variable). If you want it someplace else, set the + logfile preference to the full pathname you want Unison to + use. + + Added an ignorenot preference that maintains a set of patterns + for paths that should definitely not be ignored, whether or + not they match an ignore pattern. (That is, a path will now be + ignored iff it matches an ignore pattern and does not match + any ignorenot patterns.) + * User-interface improvements: + + Roots are now displayed in the user interface in the same + order as they were given on the command line or in the + preferences file. + + When the batch preference is set, the graphical user interface + no longer waits for user confirmation when it displays a + warning message: it simply pops up an advisory window with a + Dismiss button at the bottom and keeps on going. + + Added a new preference for controlling how many status + messages are printed during update detection: statusdepth + controls the maximum depth for paths on the local machine + (longer paths are not displayed, nor are non-directory paths). + The value should be an integer; default is 1. + + Removed the trace and silent preferences. They did not seem + very useful, and there were too many preferences for + controlling output in various ways. + + The text UI now displays just the default command (the one + that will be used if the user just types ) instead of + all available commands. Typing ? will print the full list of + possibilities. + + The function that finds the canonical hostname of the local + host (which is used, for example, in calculating the name of + the archive file used to remember which files have been + synchronized) normally uses the gethostname operating system + call. However, if the environment variable UNISONLOCALHOSTNAME + is set, its value will now be used instead. This makes it + easier to use Unison in situations where a machine's name + changes frequently (e.g., because it is a laptop and gets + moved around a lot). + + File owner and group are now displayed in the "detail window" + at the bottom of the screen, when unison is configured to + synchronize them. + * For hackers: + + Updated to Jacques Garrigue's new version of lablgtk, which + means we can throw away our local patched version. + If you're compiling the GTK version of unison from sources, + you'll need to update your copy of lablgtk to the developers + release. (Warning: installing lablgtk under Windows is + currently a bit challenging.) + + The TODO.txt file (in the source distribution) has been + cleaned up and reorganized. The list of pending tasks should + be much easier to make sense of, for people that may want to + contribute their programming energies. There is also a + separate file BUGS.txt for open bugs. + + The Tk user interface has been removed (it was not being + maintained and no longer compiles). + + The debug preference now prints quite a bit of additional + information that should be useful for identifying sources of + problems. + + The version number of the remote server is now checked right + away during the connection setup handshake, rather than later. + (Somebody sent a bug report of a server crash that turned out + to come from using inconsistent versions: better to check this + earlier and in a way that can't crash either client or + server.) + + Unison now runs correctly on 64-bit architectures (e.g. Alpha + linux). We will not be distributing binaries for these + architectures ourselves (at least for a while) but if someone + would like to make them available, we'll be glad to provide a + link to them. + * Bug fixes: + + Pattern matching (e.g. for ignore) is now case-insensitive + when Unison is in case-insensitive mode (i.e., when one of the + replicas is on a windows machine). + + Some people had trouble with mysterious failures during + propagation of updates, where files would be falsely reported + as having changed during synchronization. This should be + fixed. + + Numerous smaller fixes. + + Changes since 2.4.1: + * Added a number of 'sorting modes' for the user interface. By + default, conflicting changes are displayed at the top, and the rest + of the entries are sorted in alphabetical order. This behavior can + be changed in the following ways: + + Setting the sortnewfirst preference to true causes newly + created files to be displayed before changed files. + + Setting sortbysize causes files to be displayed in increasing + order of size. + + Giving the preference sortfirst= (where is + a path descriptor in the same format as 'ignore' and 'follow' + patterns, causes paths matching this pattern to be displayed + first. + + Similarly, giving the preference sortlast= causes + paths matching this pattern to be displayed last. + The sorting preferences are described in more detail in the user + manual. The sortnewfirst and sortbysize flags can also be accessed + from the 'Sort' menu in the grpahical user interface. + * Added two new preferences that can be used to change unison's + fundamental behavior to make it more like a mirroring tool instead + of a synchronizer. + + Giving the preference prefer with argument (by adding + -prefer to the command line or prefer=) to your + profile) means that, if there is a conflict, the contents of + should be propagated to the other replica (with no + questions asked). Non-conflicting changes are treated as + usual. + + Giving the preference force with argument will make + unison resolve all differences in favor of the given root, + even if it was the other replica that was changed. + These options should be used with care! (More information is + available in the manual.) + * Small changes: + + Changed default answer to 'Yes' in all two-button dialogs in + the graphical interface (this seems more intuitive). + + The rsync preference has been removed (it was used to activate + rsync compression for file transfers, but rsync compression is + now enabled by default). + + In the text user interface, the arrows indicating which + direction changes are being propagated are printed differently + when the user has overridded Unison's default recommendation + (====> instead of ---->). This matches the behavior of the + graphical interface, which displays such arrows in a different + color. + + Carriage returns (Control-M's) are ignored at the ends of + lines in profiles, for Windows compatibility. + + All preferences are now fully documented in the user manual. + + Changes since 2.3.12: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * New/improved functionality: + + A new preference -sortbysize controls the order in which + changes are displayed to the user: when it is set to true, the + smallest changed files are displayed first. (The default + setting is false.) + + A new preference -sortnewfirst causes newly created files to + be listed before other updates in the user interface. + + We now allow the ssh protocol to specify a port. + + Incompatible change: The unison: protocol is deprecated, and + we added file: and socket:. You may have to modify your + profiles in the .unison directory. If a replica is specified + without an explicit protocol, we now assume it refers to a + file. (Previously "//saul/foo" meant to use SSH to connect to + saul, then access the foo directory. Now it means to access + saul via a remote file mechanism such as samba; the old effect + is now achieved by writing ssh://saul/foo.) + + Changed the startup sequence for the case where roots are + given but no profile is given on the command line. The new + behavior is to use the default profile (creating it if it does + not exist), and temporarily override its roots. The manual + claimed that this case would work by reading no profile at + all, but AFAIK this was never true. + + In all user interfaces, files with conflicts are always listed + first + + A new preference 'sshversion' can be used to control which + version of ssh should be used to connect to the server. Legal + values are 1 and 2. (Default is empty, which will make unison + use whatever version of ssh is installed as the default 'ssh' + command.) + + The situation when the permissions of a file was updated the + same on both side is now handled correctly (we used to report + a spurious conflict) + * Improvements for the Windows version: + + The fact that filenames are treated case-insensitively under + Windows should now be handled correctly. The exact behavior is + described in the cross-platform section of the manual. + + It should be possible to synchronize with Windows shares, + e.g., //host/drive/path. + + Workarounds to the bug in syncing root directories in Windows. + The most difficult thing to fix is an ocaml bug: Unix.opendir + fails on c: in some versions of Windows. + * Improvements to the GTK user interface (the Tk interface is no + longer being maintained): + + The UI now displays actions differently (in blue) when they + have been explicitly changed by the user from Unison's default + recommendation. + + More colorful appearance. + + The initial profile selection window works better. + + If any transfers failed, a message to this effect is displayed + along with 'Synchronization complete' at the end of the + transfer phase (in case they may have scrolled off the top). + + Added a global progress meter, displaying the percentage of + total bytes that have been transferred so far. + * Improvements to the text user interface: + + The file details will be displayed automatically when a + conflict is been detected. + + when a warning is generated (e.g. for a temporary file left + over from a previous run of unison) Unison will no longer wait + for a response if it is running in -batch mode. + + The UI now displays a short list of possible inputs each time + it waits for user interaction. + + The UI now quits immediately (rather than looping back and + starting the interaction again) if the user presses 'q' when + asked whether to propagate changes. + + Pressing 'g' in the text user interface will proceed + immediately with propagating updates, without asking any more + questions. + * Documentation and installation changes: + + The manual now includes a FAQ, plus sections on common + problems and on tricks contributed by users. + + Both the download page and the download directory explicitly + say what are the current stable and beta-test version numbers. + + The OCaml sources for the up-to-the-minute developers' version + (not guaranteed to be stable, or even to compile, at any given + time!) are now available from the download page. + + Added a subsection to the manual describing cross-platform + issues (case conflicts, illegal filenames) + * Many small bug fixes and random improvements. + + Changes since 2.3.1: + * Several bug fixes. The most important is a bug in the rsync module + that would occasionally cause change propagation to fail with a + 'rename' error. + + Changes since 2.2: + * The multi-threaded transport system is now disabled by default. (It + is not stable enough yet.) + * Various bug fixes. + * A new experimental feature: + The final component of a -path argument may now be the wildcard + specifier *. When Unison sees such a path, it expands this path on + the client into into the corresponding list of paths by listing the + contents of that directory. + Note that if you use wildcard paths from the command line, you will + probably need to use quotes or a backslash to prevent the * from + being interpreted by your shell. + If both roots are local, the contents of the first one will be used + for expanding wildcard paths. (Nb: this is the first one after the + canonization step - i.e., the one that is listed first in the user + interface - not the one listed first on the command line or in the + preferences file.) + + Changes since 2.1: + * The transport subsystem now includes an implementation by Sylvain + Gommier and Norman Ramsey of Tridgell and Mackerras's rsync + protocol. This protocol achieves much faster transfers when only a + small part of a large file has been changed by sending just diffs. + This feature is mainly helpful for transfers over slow links--on + fast local area networks it can actually degrade performance--so we + have left it off by default. Start unison with the -rsync option + (or put rsync=true in your preferences file) to turn it on. + * "Progress bars" are now diplayed during remote file transfers, + showing what percentage of each file has been transferred so far. + * The version numbering scheme has changed. New releases will now be + have numbers like 2.2.30, where the second component is incremented + on every significant public release and the third component is the + "patch level." + * Miscellaneous improvements to the GTK-based user interface. + * The manual is now available in PDF format. + * We are experimenting with using a multi-threaded transport + subsystem to transfer several files at the same time, making much + more effective use of available network bandwidth. This feature is + not completely stable yet, so by default it is disabled in the + release version of Unison. + If you want to play with the multi-threaded version, you'll need to + recompile Unison from sources (as described in the documentation), + setting the THREADS flag in Makefile.OCaml to true. Make sure that + your OCaml compiler has been installed with the -with-pthreads + configuration option. (You can verify this by checking whether the + file threads/threads.cma in the OCaml standard library directory + contains the string -lpthread near the end.) + + Changes since 1.292: + * Reduced memory footprint (this is especially important during the + first run of unison, where it has to gather information about all + the files in both repositories). + * Fixed a bug that would cause the socket server under NT to fail + after the client exits. + * Added a SHIFT modifier to the Ignore menu shortcut keys in GTK + interface (to avoid hitting them accidentally). + + Changes since 1.231: + * Tunneling over ssh is now supported in the Windows version. See the + installation section of the manual for detailed instructions. + * The transport subsystem now includes an implementation of the rsync + protocol, built by Sylvain Gommier and Norman Ramsey. This protocol + achieves much faster transfers when only a small part of a large + file has been changed by sending just diffs. The rsync feature is + off by default in the current version. Use the -rsync switch to + turn it on. (Nb. We still have a lot of tuning to do: you may not + notice much speedup yet.) + * We're experimenting with a multi-threaded transport subsystem, + written by Jerome Vouillon. The downloadable binaries are still + single-threaded: if you want to try the multi-threaded version, + you'll need to recompile from sources. (Say make THREADS=true.) + Native thread support from the compiler is required. Use the option + -threads N to select the maximal number of concurrent threads + (default is 5). Multi-threaded and single-threaded clients/servers + can interoperate. + * A new GTK-based user interface is now available, thanks to Jacques + Garrigue. The Tk user interface still works, but we'll be shifting + development effort to the GTK interface from now on. + * OCaml 3.00 is now required for compiling Unison from sources. The + modules uitk and myfileselect have been changed to use labltk + instead of camltk. To compile the Tk interface in Windows, you must + have ocaml-3.00 and tk8.3. When installing tk8.3, put it in c:\Tcl + rather than the suggested c:\Program Files\Tcl, and be sure to + install the headers and libraries (which are not installed by + default). + * Added a new -addversionno switch, which causes unison to use + unison- instead of just unison as the remote + server command. This allows multiple versions of unison to coexist + conveniently on the same server: whichever version is run on the + client, the same version will be selected on the server. + + Changes since 1.219: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * This version fixes several annoying bugs, including: + + Some cases where propagation of file permissions was not + working. + + umask is now ignored when creating directories + + directories are create writable, so that a read-only directory + and its contents can be propagated. + + Handling of warnings generated by the server. + + Synchronizing a path whose parent is not a directory on both + sides is now flagged as erroneous. + + Fixed some bugs related to symnbolic links and nonexistant + roots. + o When a change (deletion or new contents) is propagated + onto a 'follow'ed symlink, the file pointed to by the + link is now changed. (We used to change the link itself, + which doesn't fit our assertion that 'follow' means the + link is completely invisible) + o When one root did not exist, propagating the other root + on top of it used to fail, becuase unison could not + calculate the working directory into which to write + changes. This should be fixed. + * A human-readable timestamp has been added to Unison's archive + files. + * The semantics of Path and Name regular expressions now correspond + better. + * Some minor improvements to the text UI (e.g. a command for going + back to previous items) + * The organization of the export directory has changed -- should be + easier to find / download things now. + + Changes since 1.200: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * This version has not been tested extensively on Windows. + * Major internal changes designed to make unison safer to run at the + same time as the replicas are being changed by the user. + * Internal performance improvements. + + Changes since 1.190: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * A number of internal functions have been changed to reduce the + amount of memory allocation, especially during the first + synchronization. This should help power users with very big + replicas. + * Reimplementation of low-level remote procedure call stuff, in + preparation for adding rsync-like smart file transfer in a later + release. + * Miscellaneous bug fixes. + + Changes since 1.180: + * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you + synchronize your replicas before upgrading, to avoid spurious + conflicts. The first sync after upgrading will be slow. + * Fixed some small bugs in the interpretation of ignore patterns. + * Fixed some problems that were preventing the Windows version from + working correctly when click-started. + * Fixes to treatment of file permissions under Windows, which were + causing spurious reports of different permissions when + synchronizing between windows and unix systems. + * Fixed one more non-tail-recursive list processing function, which + was causing stack overflows when synchronizing very large replicas. + + Changes since 1.169: + * The text user interface now provides commands for ignoring files. + * We found and fixed some more non-tail-recursive list processing + functions. Some power users have reported success with very large + replicas. + * INCOMPATIBLE CHANGE: Files ending in .tmp are no longer ignored + automatically. If you want to ignore such files, put an appropriate + ignore pattern in your profile. + * INCOMPATIBLE CHANGE: The syntax of ignore and follow patterns has + changed. Instead of putting a line of the form + ignore = + + in your profile (.unison/default.prf), you should put: + ignore = Regex + + Moreover, two other styles of pattern are also recognized: + ignore = Name + + matches any path in which one component matches , while + ignore = Path + + matches exactly the path . + Standard "globbing" conventions can be used in and : + + a ? matches any single character except / + + a * matches any sequence of characters not including / + + [xyz] matches any character from the set {x, y, z } + + {a,bb,ccc} matches any one of a, bb, or ccc. + See the user manual for some examples. + + Changes since 1.146: + * Some users were reporting stack overflows when synchronizing huge + directories. We found and fixed some non-tail-recursive list + processing functions, which we hope will solve the problem. Please + give it a try and let us know. + * Major additions to the documentation. + + Changes since 1.142: + * Major internal tidying and many small bugfixes. + * Major additions to the user manual. + * Unison can now be started with no arguments - it will prompt + automatically for the name of a profile file containing the roots + to be synchronized. This makes it possible to start the graphical + UI from a desktop icon. + * Fixed a small bug where the text UI on NT was raising a 'no such + signal' exception. + + Changes since 1.139: + * The precompiled windows binary in the last release was compiled + with an old OCaml compiler, causing propagation of permissions not + to work (and perhaps leading to some other strange behaviors we've + heard reports about). This has been corrected. If you're using + precompiled binaries on Windows, please upgrade. + * Added a -debug command line flag, which controls debugging of + various modules. Say -debug XXX to enable debug tracing for module + XXX, or -debug all to turn on absolutely everything. + * Fixed a small bug where the text UI on NT was raising a 'no such + signal' exception. + + Changes since 1.111: + * INCOMPATIBLE CHANGE: The names and formats of the preference files + in the .unison directory have changed. In particular: + + the file "prefs" should be renamed to default.prf + + the contents of the file "ignore" should be merged into + default.prf. Each line of the form REGEXP in ignore should + become a line of the form ignore = REGEXP in default.prf. + * Unison now handles permission bits and symbolic links. See the + manual for details. + * You can now have different preference files in your .unison + directory. If you start unison like this + unison profilename + + (i.e. with just one "anonymous" command-line argument), then the + file ~/.unison/profilename.prf will be loaded instead of + default.prf. + * Some improvements to terminal handling in the text user interface + * Added a switch -killServer that terminates the remote server + process when the unison client is shutting down, even when using + sockets for communication. (By default, a remote server created + using ssh/rsh is terminated automatically, while a socket server is + left running.) + * When started in 'socket server' mode, unison prints 'server + started' on stderr when it is ready to accept connections. (This + may be useful for scripts that want to tell when a socket-mode + server has finished initalization.) + * We now make a nightly mirror of our current internal development + tree, in case anyone wants an up-to-the-minute version to hack + around with. + * Added a file CONTRIB with some suggestions for how to help us make + Unison better. + + diff -Nru unison-2.40.102/os.ml unison-2.48.3/os.ml --- unison-2.40.102/os.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/os.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/os.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,10 +21,24 @@ let debug = Util.debug "os" -let myCanonicalHostName = +(* Assumption: Prefs are not loaded on server, so clientHostName is always *) +(* set to myCanonicalHostName. *) + +let localCanonicalHostName = try System.getenv "UNISONLOCALHOSTNAME" with Not_found -> Unix.gethostname() +let clientHostName : string Prefs.t = + Prefs.createString "clientHostName" localCanonicalHostName + "!set host name of client" + ("When specified, the host name of the client will not be guessed" ^ + "and the provided host name will be used to find the archive.") + +let serverHostName = localCanonicalHostName + +let myCanonicalHostName () = + if !Trace.runningasserver then serverHostName else Prefs.read clientHostName + let tempFilePrefix = ".unison." let tempFileSuffixFixed = ".unison.tmp" let tempFileSuffix = ref tempFileSuffixFixed @@ -36,6 +50,10 @@ if s = "" then tempFileSuffixFixed else "." ^ s ^ tempFileSuffixFixed +let isTempFile file = + Util.endswith file tempFileSuffixFixed && + Util.startswith file tempFilePrefix + (*****************************************************************************) (* QUERYING THE FILESYSTEM *) (*****************************************************************************) @@ -110,10 +128,7 @@ (* removeBackupIfUnwanted fspath newPath; *) (* false *) (* end *) - else if - Util.endswith file tempFileSuffixFixed && - Util.startswith file tempFilePrefix - then begin + else if isTempFile file then begin if Util.endswith file !tempFileSuffix then begin let p = Path.child path filename in let i = Fileinfo.get false fspath p in @@ -224,46 +239,52 @@ (Fingerprint.file fspath path, Osx.ressFingerprint fspath path info.Fileinfo.osX) +let pseudoFingerprint path size = + (Fingerprint.pseudo path size, Fingerprint.dummy) + +let isPseudoFingerprint (fp,rfp) = + Fingerprint.ispseudo fp + (* FIX: not completely safe under Unix *) (* (with networked file system such as NFS) *) -let safeFingerprint fspath path info optDig = - let rec retryLoop count info optDig optRessDig = - if count = 0 then - raise (Util.Transient - (Printf.sprintf - "Failed to fingerprint file \"%s\": \ - the file keeps on changing" - (Fspath.toPrintString (Fspath.concat fspath path)))) - else - let dig = - match optDig with - None -> Fingerprint.file fspath path - | Some dig -> dig - in - let ressDig = - match optRessDig with - None -> Osx.ressFingerprint fspath path info.Fileinfo.osX - | Some ress -> ress - in - let (info', dataUnchanged, ressUnchanged) = - Fileinfo.unchanged fspath path info in - if dataUnchanged && ressUnchanged then - (info', (dig, ressDig)) +let safeFingerprint fspath path info optFp = + let rec retryLoop count info optFp optRessFp = + if count = 0 then + raise (Util.Transient + (Printf.sprintf + "Failed to fingerprint file \"%s\": \ + the file keeps on changing" + (Fspath.toPrintString (Fspath.concat fspath path)))) else - retryLoop (count - 1) info' - (if dataUnchanged then Some dig else None) - (if ressUnchanged then Some ressDig else None) - in - retryLoop 10 info (* Maximum retries: 10 times *) - (match optDig with None -> None | Some (d, _) -> Some d) - None + let fp = + match optFp with + None -> Fingerprint.file fspath path + | Some fp -> fp + in + let ressFp = + match optRessFp with + None -> Osx.ressFingerprint fspath path info.Fileinfo.osX + | Some ress -> ress + in + let (info', dataUnchanged, ressUnchanged) = + Fileinfo.unchanged fspath path info in + if dataUnchanged && ressUnchanged then + (info', (fp, ressFp)) + else + retryLoop (count - 1) info' + (if dataUnchanged then Some fp else None) + (if ressUnchanged then Some ressFp else None) + in + retryLoop 10 info (* Maximum retries: 10 times *) + (match optFp with None -> None | Some (d, _) -> Some d) + None let fullfingerprint_to_string (fp,rfp) = Printf.sprintf "(%s,%s)" (Fingerprint.toString fp) (Fingerprint.toString rfp) -let reasonForFingerprintMismatch (digdata,digress) (digdata',digress') = - if digdata = digdata' then "resource fork" - else if digress = digress' then "file contents" +let reasonForFingerprintMismatch (fpdata,fpress) (fpdata',fpress') = + if fpdata = fpdata' then "resource fork" + else if fpress = fpress' then "file contents" else "both file contents and resource fork" let fullfingerprint_dummy = (Fingerprint.dummy,Fingerprint.dummy) @@ -274,6 +295,7 @@ let fullfingerprintEqual (fp, rfp) (fp', rfp') = Fingerprint.equal fp fp' && Fingerprint.equal rfp rfp' + (*****************************************************************************) (* UNISON DIRECTORY *) (*****************************************************************************) @@ -316,6 +338,11 @@ else String.sub s 0 l +(* We need to be careful not to use longer temp-file names than the + file system permits. eCryptfs has the lowest file name length + limit we know of, at 143 bytes. *) +let maxFileNameLength = 143 + (* Generates an unused fspath for a temporary file. *) let genTempPath fresh fspath path prefix suffix = let rec f i = @@ -328,12 +355,17 @@ assert false | Some (name, parentPath) -> let name = Name.toString name in - let len = String.length name in - let maxlen = 64 in + let nameLen = String.length name in + let prefixLen = String.length prefix in + let suffixLen = String.length s in + let maxLen = maxFileNameLength - prefixLen - suffixLen in let name = - if len <= maxlen then name else - (truncate_filename name maxlen ^ - Digest.to_hex (Digest.string name)) + if nameLen <= maxLen then name else + let nameDigest = Digest.to_hex (Digest.string name) in + let nameDigestLen = String.length nameDigest in + let maxLen = maxLen - nameDigestLen in + assert (maxLen>0); + (truncate_filename name maxLen ^ nameDigest) in Path.child parentPath (Name.fromString (prefix ^ name ^ s)) in diff -Nru unison-2.40.102/os.mli unison-2.48.3/os.mli --- unison-2.40.102/os.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/os.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,10 +1,11 @@ (* Unison file synchronizer: src/os.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) -val myCanonicalHostName : string +val myCanonicalHostName : unit -> string val tempPath : ?fresh:bool -> Fspath.t -> Path.local -> Path.local val tempFilePrefix : string +val isTempFile : string -> bool val includeInTempNames : string -> unit val exists : Fspath.t -> Path.local -> bool @@ -45,3 +46,12 @@ Fspath.t -> Path.local -> (* coordinates of file to fingerprint *) Fileinfo.t -> (* old fileinfo *) fullfingerprint (* current fingerprint *) + +val pseudoFingerprint : + Path.local -> (* path of file to "fingerprint" *) + Uutil.Filesize.t -> (* size of file to "fingerprint" *) + fullfingerprint (* pseudo-fingerprint of this file (containing just + the file's length and path) *) + +val isPseudoFingerprint : + fullfingerprint -> bool diff -Nru unison-2.40.102/osx.ml unison-2.48.3/osx.ml --- unison-2.40.102/osx.ml 2010-10-08 15:44:59.000000000 +0000 +++ unison-2.48.3/osx.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/osx.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -58,15 +58,15 @@ let doubleMagic = "\000\005\022\007" let doubleVersion = "\000\002\000\000" let doubleFiller = String.make 16 '\000' -let ressource_fork_empty_tag = "This resource fork intentionally left blank " +let resource_fork_empty_tag = "This resource fork intentionally left blank " let finfoLength = 32L let emptyFinderInfo () = String.make 32 '\000' -let empty_ressource_fork = +let empty_resource_fork = "\000\000\001\000" ^ "\000\000\001\000" ^ "\000\000\000\000" ^ "\000\000\000\030" ^ - ressource_fork_empty_tag ^ + resource_fork_empty_tag ^ String.make (66+128) '\000' ^ "\000\000\001\000" ^ "\000\000\001\000" ^ @@ -206,7 +206,8 @@ | `DIRECTORY -> { ressInfo = NoRess; finfo = "D" } | _ -> { ressInfo = NoRess; finfo = "" } -let noTypeCreator = String.make 10 '\000' +(* BCP: dead code + let noTypeCreator = String.make 10 '\000' *) (* Remove trailing zeroes *) let trim s = @@ -239,7 +240,7 @@ if not (Prefs.read rsrc) then defaultInfos typ else match typ with (`FILE | `DIRECTORY) as typ -> - Util.convertUnixErrorsToTransient "getting file informations" (fun () -> + Util.convertUnixErrorsToTransient "getting file information" (fun () -> try let (fInfo, rsrcLength) = getFileInfosInternal @@ -260,15 +261,15 @@ let (rsrcOffset, rsrcLength) = try let (offset, len) = Safelist.assoc `RSRC entries in - (* We need to check that the ressource fork is not a + (* We need to check that the resource fork is not a dummy one included for compatibility reasons *) if len = 286L && protect (fun () -> LargeFile.seek_in inch (Int64.add offset 16L); - let len = String.length ressource_fork_empty_tag in + let len = String.length resource_fork_empty_tag in let buf = String.create len in really_input inch buf 0 len; - buf = ressource_fork_empty_tag) + buf = resource_fork_empty_tag) (fun () -> close_in_noerr inch) then (0L, 0L) @@ -279,7 +280,7 @@ in debug (fun () -> Util.msg - "AppleDouble for file %s / %s: ressource fork length: %d\n" + "AppleDouble for file %s / %s: resource fork length: %d\n" (Fspath.toDebugString dataFspath) (Path.toString dataPath) (Int64.to_int rsrcLength)); let finfo = @@ -339,7 +340,7 @@ let setFileInfos dataFspath dataPath finfo = assert (finfo <> ""); - Util.convertUnixErrorsToTransient "setting file informations" (fun () -> + Util.convertUnixErrorsToTransient "setting file information" (fun () -> try let p = Fspath.toSysPath (Fspath.concat dataFspath dataPath) in let (fullFinfo, _) = getFileInfosInternal p false in @@ -391,7 +392,7 @@ in (* Apparently, for compatibility with various old versions of Mac OS X that did not follow the AppleDouble specification, - we have to include a dummy ressource fork... + we have to include a dummy resource fork... We also put an empty extended attribute section at the end of the finder info section, mimicking the Mac OS X kernel behavior. *) @@ -403,13 +404,13 @@ output_string outch "\000\000\000\009"; (* Finder info *) output_string outch "\000\000\000\050"; (* offset *) output_string outch "\000\000\014\176"; (* length *) - output_string outch "\000\000\000\002"; (* Ressource fork *) + output_string outch "\000\000\000\002"; (* Resource fork *) output_string outch "\000\000\014\226"; (* offset *) output_string outch "\000\000\001\030"; (* length *) output_string outch (insertInfo (emptyFinderInfo ()) finfo); output_string outch (empty_attribute_chunk ()); (* extended attributes *) - output_string outch empty_ressource_fork; + output_string outch empty_resource_fork; close_out outch) (fun () -> close_out_noerr outch) end @@ -458,7 +459,7 @@ Fingerprint.file fspath (ressPath path) | AppleDoubleRess (_, _, _, len, (path, offset)) -> debug (fun () -> - Util.msg "ressource fork fingerprint: path %s, offset %d, len %d" + Util.msg "resource fork fingerprint: path %s, offset %d, len %d" (Fspath.toString path) (Int64.to_int offset) (Uutil.Filesize.toInt len)); Fingerprint.subfile path offset len diff -Nru unison-2.40.102/osx.mli unison-2.48.3/osx.mli --- unison-2.40.102/osx.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/osx.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/osx.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) val init : bool -> unit val isMacOSX : bool diff -Nru unison-2.40.102/path.ml unison-2.48.3/path.ml --- unison-2.40.102/path.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/path.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/path.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -188,6 +188,14 @@ let addSuffixToFinalName path suffix = path ^ suffix +let addToFinalName path suffix = + let l = String.length path in + assert (l > 0); + let i = try String.rindex path '/' with Not_found -> -1 in + let j = try String.rindex path '.' with Not_found -> -1 in + let j = if j <= i then l else j in + String.sub path 0 j ^ suffix ^ String.sub path j (l - j) + let addPrefixToFinalName path prefix = try let i = String.rindex path pathSeparatorChar + 1 in diff -Nru unison-2.40.102/path.mli unison-2.48.3/path.mli --- unison-2.40.102/path.mli 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/path.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/path.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Abstract type of relative pathnames *) type 'a path @@ -29,6 +29,8 @@ val addSuffixToFinalName : local -> string -> local val addPrefixToFinalName : local -> string -> local +val addToFinalName : local -> string -> local + (* Add to the final name, but before any file extension. *) val compare : t -> t -> int diff -Nru unison-2.40.102/pixmaps.ml unison-2.48.3/pixmaps.ml --- unison-2.40.102/pixmaps.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/pixmaps.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/pixmaps.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/pred.ml unison-2.48.3/pred.ml --- unison-2.40.102/pred.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/pred.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/pred.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/pred.mli unison-2.48.3/pred.mli --- unison-2.40.102/pred.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/pred.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/pred.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Predicates over paths. diff -Nru unison-2.40.102/props.ml unison-2.48.3/props.ml --- unison-2.40.102/props.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/props.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/props.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/props.mli unison-2.48.3/props.mli --- unison-2.40.102/props.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/props.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/props.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* File properties: time, permission, length, etc. *) diff -Nru unison-2.40.102/README unison-2.48.3/README --- unison-2.40.102/README 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/README 2010-05-30 14:03:33.000000000 +0000 @@ -4,7 +4,7 @@ This directory is the source distribution for the unison file synchronizer. -Installation instructions are in the file INSTALL. +Installation instructions are in the file INSTALLATION section of the user manual. License and copying information can be found in the file COPYING diff -Nru unison-2.40.102/recon.ml unison-2.48.3/recon.ml --- unison-2.40.102/recon.ml 2010-10-08 15:44:59.000000000 +0000 +++ unison-2.48.3/recon.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/recon.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ match ri.replicas with Different ({rc1 = rc1; rc2 = rc2; direction = d; default_direction = default } as diff) - when force=`Force || default=Conflict -> + when force=`Force || isConflict default -> if dir=`Replica1ToReplica2 then diff.direction <- Replica1ToReplica2 else if dir=`Replica2ToReplica1 then @@ -37,10 +37,10 @@ end else begin (* dir = `Older or dir = `Newer *) match rc1.status, rc2.status with `Deleted, _ -> - if default=Conflict then + if isConflict default then diff.direction <- Replica2ToReplica1 | _, `Deleted -> - if default=Conflict then + if isConflict default then diff.direction <- Replica1ToReplica2 | _ -> let comp = Props.time rc1.desc -. Props.time rc2.desc in @@ -211,6 +211,15 @@ It is recommended to use {\\tt BelowPath} \ patterns when selecting a directory and all its contents.") +let maxSizeThreshold = + Prefs.createInt "maxsizethreshold" (-1) + "!prevent transfer of files bigger than this (if >=0, in Kb)" + ("A number indicating above what filesize (in kilobytes) Unison should " + ^ "flag a conflict instead of transferring the file. " + ^ "This conflict remains even in the presence of force or prefer options. " + ^ "A negative number will allow every transfer independently of the size. " + ^ "The default is -1. ") + let partialCancelPref actionKind = match actionKind with `DELETION -> noDeletionPartial @@ -236,26 +245,41 @@ || List.mem root2 (Pred.assoc_all (partialCancelPref kind) path) in + let testSize rc = + Prefs.read maxSizeThreshold >= 0 + && Props.length rc.desc >= + Uutil.Filesize.ofInt64 + (Int64.mul (Int64.of_int 1000) + (Int64.of_int (Prefs.read maxSizeThreshold))) + in match actionKind rc1 rc2 with - `UPDATE -> test `UPDATE - | `DELETION -> test `UPDATE || test `DELETION - | `CREATION -> test `CREATION + `UPDATE -> + if test `UPDATE then true, "would update a file with noupdate or noupdatepartial set" + else testSize rc1, "would transfer a file of size greater than maxsizethreshold" + | `DELETION -> + if test `UPDATE then true, "would update a file with noupdate or noupdatepartial set" + else test `DELETION, "would delete a file with nodeletion or nodeletionpartial set" + | `CREATION -> + if test `CREATION then true, "would create a file with nocreation or nocreationpartial set" + else testSize rc1, "would transfer a file of size greater than maxsizethreshold" let filterRi root1 root2 ri = match ri.replicas with Problem _ -> () | Different diff -> - if - match diff.direction with - Replica1ToReplica2 -> - shouldCancel (Path.toString ri.path1) diff.rc1 diff.rc2 root2 - | Replica2ToReplica1 -> - shouldCancel (Path.toString ri.path1) diff.rc2 diff.rc1 root1 - | Conflict | Merge -> - false - then - diff.direction <- Conflict + let cancel,reason = + match diff.direction with + Replica1ToReplica2 -> + shouldCancel (Path.toString ri.path1) diff.rc1 diff.rc2 root2 + | Replica2ToReplica1 -> + shouldCancel (Path.toString ri.path1) diff.rc2 diff.rc1 root1 + | Conflict _ | Merge -> + false,"" + in + if cancel + then + diff.direction <- Conflict reason let filterRis ris = let (root1, root2) = Globals.rawRootPair () in @@ -518,7 +542,7 @@ (* -- *) let rec reconcile allowPartial path ui1 props1 ui2 props2 counter equals unequals = - let different uc1 uc2 oldType equals unequals = + let different uc1 uc2 reason oldType equals unequals = (equals, Tree.add unequals (propagateErrors allowPartial @@ -526,7 +550,8 @@ path true ui1 props1 uc1 oldType; rc2 = update2replicaContent path true ui2 props2 uc2 oldType; - direction = Conflict; default_direction = Conflict; + direction = Conflict reason; + default_direction = Conflict reason; errors1 = []; errors2 = []}))) in let toBeMerged uc1 uc2 oldType equals unequals = (equals, @@ -567,7 +592,7 @@ let action = if propsChanged1 = PropsSame then Replica2ToReplica1 else if propsChanged2 = PropsSame then Replica1ToReplica2 - else Conflict in + else Conflict "properties changed on both sides" in (equals, Tree.add unequals (Different @@ -602,23 +627,27 @@ (* expect this.) *) let uc1' = File(desc1,ContentsSame) in let uc2' = File(desc2,ContentsSame) in - different uc1' uc2' (oldType prev) equals unequals + different uc1' uc2' "properties changed on both sides" + (oldType prev) equals unequals | ContentsSame, ContentsSame when Props.similar desc1 desc2 -> (add_equal counter equals (uc1, uc2), unequals) | ContentsUpdated _, ContentsUpdated _ when Globals.shouldMerge path -> toBeMerged uc1 uc2 (oldType prev) equals unequals | _ -> - different uc1 uc2 (oldType prev) equals unequals + different uc1 uc2 "contents changed on both sides" + (oldType prev) equals unequals end | (Updates (Symlink(l1) as uc1, prev), Updates (Symlink(l2) as uc2, _)) -> if l1 = l2 then (add_equal counter equals (uc1, uc2), unequals) else - different uc1 uc2 (oldType prev) equals unequals + different uc1 uc2 "symbolic links changed on both sides" + (oldType prev) equals unequals | (Updates (uc1, prev), Updates (uc2, _)) -> - different uc1 uc2 (oldType prev) equals unequals + different uc1 uc2 "conflicting updates" + (oldType prev) equals unequals (* Sorts the paths so that they will be displayed in order *) let sortPaths pathUpdatesList = diff -Nru unison-2.40.102/recon.mli unison-2.48.3/recon.mli --- unison-2.40.102/recon.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/recon.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/recon.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) val reconcileAll : ?allowPartial:bool (* whether we allow partial synchronization diff -Nru unison-2.40.102/remote.ml unison-2.48.3/remote.ml --- unison-2.40.102/remote.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/remote.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/remote.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -896,7 +896,10 @@ Lwt_util.run_in_region streamReg 1 (fun () -> sender (fun v -> client conn id v))) (fun v -> ping conn id >>= fun () -> Lwt.return v) - (fun e -> ping conn id >>= fun () -> Lwt.fail e) + (fun e -> + debugE (fun () -> + Util.msg "Pinging remote end after streaming error\n"); + ping conn id >>= fun () -> Lwt.fail e) end let commandAvailable = @@ -1168,7 +1171,7 @@ let canonizeOnServer = registerServerCmd "canonizeOnServer" (fun _ (s, unicode) -> - Lwt.return (Os.myCanonicalHostName, canonizeLocally s unicode)) + Lwt.return (Os.myCanonicalHostName (), canonizeLocally s unicode)) let canonize clroot = (* connection for clroot must have been set up already *) match clroot with diff -Nru unison-2.40.102/remote.mli unison-2.48.3/remote.mli --- unison-2.40.102/remote.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/remote.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/remote.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) module Thread : sig val unwindProtect : (unit -> 'a Lwt.t) -> (exn -> unit Lwt.t) -> 'a Lwt.t diff -Nru unison-2.40.102/sortri.ml unison-2.48.3/sortri.ml --- unison-2.40.102/sortri.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/sortri.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/sortri.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/sortri.mli unison-2.48.3/sortri.mli --- unison-2.40.102/sortri.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/sortri.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/sortri.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Sort a list of recon items according to the current setting of various preferences (defined in sort.ml, and accessible from the diff -Nru unison-2.40.102/stasher.ml unison-2.48.3/stasher.ml --- unison-2.40.102/stasher.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/stasher.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,6 +1,6 @@ (* Unison file synchronizer: src/stasher.ml *) (* $I2: Last modified by lescuyer *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -382,32 +382,7 @@ (Fspath.toDebugString fspath) (Path.toString path) (Path.toString backPath) (Fspath.toDebugString backRoot)); let byCopying() = - let rec copy p backp = - let info = Fileinfo.get true fspath p in - match info.Fileinfo.typ with - | `SYMLINK -> - debug (fun () -> Util.msg " Copying link %s / %s to %s / %s\n" - (Fspath.toDebugString fspath) (Path.toString p) - (Fspath.toDebugString backRoot) (Path.toString backp)); - Os.symlink backRoot backp (Os.readLink fspath p) - | `FILE -> - debug (fun () -> Util.msg " Copying file %s / %s to %s / %s\n" - (Fspath.toDebugString fspath) (Path.toString p) - (Fspath.toDebugString backRoot) (Path.toString backp)); - Copy.localFile fspath p backRoot backp backp - `Copy info.Fileinfo.desc - (Osx.ressLength info.Fileinfo.osX.Osx.ressInfo) None - | `DIRECTORY -> - debug (fun () -> Util.msg " Copying directory %s / %s to %s / %s\n" - (Fspath.toDebugString fspath) (Path.toString p) - (Fspath.toDebugString backRoot) (Path.toString backp)); - Os.createDir backRoot backp info.Fileinfo.desc; - let ch = Os.childrenOf fspath p in - Safelist.iter (fun n -> copy (Path.child p n) (Path.child backp n)) ch - | `ABSENT -> assert false in - copy path backPath; - debug (fun () -> Util.msg " Finished copying; deleting %s / %s\n" - (Fspath.toDebugString fspath) (Path.toString path)); + Copy.recursively fspath path backRoot backPath; disposeIfNeeded() in begin if finalDisposition = `AndRemove then try @@ -484,6 +459,9 @@ let rec aux_find i = let path = makeBackupName path i in if Os.exists dir path && + (* FIX: should check that the existing file has the same size, to + avoid computing the fingerprint if it is obviously going to be + different... *) (let dig = Os.fingerprint dir path (Fileinfo.get false dir path) in dig = fingerprint) then begin diff -Nru unison-2.40.102/strings.ml unison-2.48.3/strings.ml --- unison-2.40.102/strings.ml 2012-11-12 15:11:39.000000000 +0000 +++ unison-2.48.3/strings.ml 2015-02-12 15:22:45.000000000 +0000 @@ -1,2 +1,4547 @@ -(* Dummy strings.ml *) -let docs = [] +(* DO NOT MODIFY. + This file has been automatically generated, see docs.ml. *) + +let docs = + ("about", ("About Unison", + "Unison File Synchronizer\n\ + Version 2.48.3\n\ + \n\ + ")) +:: + ("", ("Overview", + "Overview\n\ + \n\ + \032 Unison is a file-synchronization tool for Unix and Windows. It allows\n\ + \032 two replicas of a collection of files and directories to be stored on\n\ + \032 different hosts (or different disks on the same host), modified\n\ + \032 separately, and then brought up to date by propagating the changes in\n\ + \032 each replica to the other.\n\ + \n\ + \032 Unison shares a number of features with tools such as configuration\n\ + \032 management packages (CVS (http://www.cyclic.com/), PRCS\n\ + \032 (http://www.XCF.Berkeley.EDU/~jmacd/prcs.html), etc.), distributed\n\ + \032 filesystems (Coda (http://www.coda.cs.cmu.edu/), etc.), uni-directional\n\ + \032 mirroring utilities (rsync (http://samba.anu.edu.au/rsync/), etc.), and\n\ + \032 other synchronizers (Intellisync (http://www.pumatech.com), Reconcile\n\ + \032 (http://www.merl.com/reports/TR99-14/), etc). However, there are\n\ + \032 several points where it differs:\n\ + \032 * Unison runs on both Windows (95, 98, NT, 2k, and XP) and Unix (OSX,\n\ + \032 Solaris, Linux, etc.) systems. Moreover, Unison works across\n\ + \032 platforms, allowing you to synchronize a Windows laptop with a Unix\n\ + \032 server, for example.\n\ + \032 * Unlike a distributed filesystem, Unison is a user-level program:\n\ + \032 there is no need to modify the kernel or to have superuser\n\ + \032 privileges on either host.\n\ + \032 * Unlike simple mirroring or backup utilities, Unison can deal with\n\ + \032 updates to both replicas of a distributed directory structure.\n\ + \032 Updates that do not conflict are propagated automatically.\n\ + \032 Conflicting updates are detected and displayed.\n\ + \032 * Unison works between any pair of machines connected to the\n\ + \032 internet, communicating over either a direct socket link or\n\ + \032 tunneling over an encrypted ssh connection. It is careful with\n\ + \032 network bandwidth, and runs well over slow links such as PPP\n\ + \032 connections. Transfers of small updates to large files are\n\ + \032 optimized using a compression protocol similar to rsync.\n\ + \032 * Unison has a clear and precise specification, described below.\n\ + \032 * Unison is resilient to failure. It is careful to leave the replicas\n\ + \032 and its own private structures in a sensible state at all times,\n\ + \032 even in case of abnormal termination or communication failures.\n\ + \032 * Unison is free; full source code is available under the GNU Public\n\ + \032 License.\n\ + \n\ + ")) +:: + ("", ("Preface", + "Preface\n\ + \n\ + ")) +:: + ("people", ("People", + "People\n\ + \n\ + \032 Benjamin Pierce (http://www.cis.upenn.edu/~bcpierce/) leads the Unison\n\ + \032 project. The current version of Unison was designed and implemented by\n\ + \032 Trevor Jim (http://www.research.att.com/~trevor/), Benjamin Pierce\n\ + \032 (http://www.cis.upenn.edu/~bcpierce/), and J\233r\244me Vouillon\n\ + \032 (http://www.pps.jussieu.fr/~vouillon/), with Alan Schmitt\n\ + \032 (http://alan.petitepomme.net/), Malo Denielou, Zhe Yang\n\ + \032 (http://www.brics.dk/~zheyang/), Sylvain Gommier, and Matthieu Goulay.\n\ + \032 The Mac user interface was started by Trevor Jim and enormously\n\ + \032 improved by Ben Willmore. Our implementation of the rsync\n\ + \032 (http://samba.org/rsync/) protocol was built by Norman Ramsey\n\ + \032 (http://www.eecs.harvard.edu/~nr/) and Sylvain Gommier. It is based on\n\ + \032 Andrew Tridgell (http://samba.anu.edu.au/~tridge/)'s thesis work\n\ + \032 (http://samba.anu.edu.au/~tridge/phd_thesis.pdf) and inspired by his\n\ + \032 rsync (http://samba.org/rsync/) utility. The mirroring and merging\n\ + \032 functionality was implemented by Sylvain Roy, improved by Malo\n\ + \032 Denielou, and improved yet further by St\233phane Lescuyer. Jacques\n\ + \032 Garrigue (http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/) contributed\n\ + \032 the original Gtk version of the user interface; the Gtk2 version was\n\ + \032 built by Stephen Tse. Sundar Balasubramaniam helped build a prototype\n\ + \032 implementation of an earlier synchronizer in Java. Insik Shin\n\ + \032 (http://www.cis.upenn.edu/~ishin/) and Insup Lee\n\ + \032 (http://www.cis.upenn.edu/~lee/) contributed design ideas to this\n\ + \032 implementation. Cedric Fournet\n\ + \032 (http://research.microsoft.com/~fournet/) contributed to an even\n\ + \032 earlier prototype.\n\ + \n\ + ")) +:: + ("lists", ("Mailing Lists and Bug Reporting", + "Mailing Lists and Bug Reporting\n\ + \n\ + Mailing Lists:\n\ + \n\ + \032 Moderated mailing lists are available for bug reporting, announcements\n\ + \032 of new versions, discussions among users, and discussions among\n\ + \032 developers. See\n\ + \n\ + \032 http://www.cis.upenn.edu/~bcpierce/unison/lists.html\n\ + \n\ + \032 for more information.\n\ + \n\ + ")) +:: + ("status", ("Development Status", + "Development Status\n\ + \n\ + \032 Unison is no longer under active development as a research project.\n\ + \032 (Our research efforts are now focused on a follow-on project called\n\ + \032 Harmony, described at http://www.cis.upenn.edu/~bcpierce/harmony.) At\n\ + \032 this point, there is no one whose job it is to maintain Unison, fix\n\ + \032 bugs, or answer questions.\n\ + \n\ + \032 However, the original developers are all still using Unison daily. It\n\ + \032 will continue to be maintained and supported for the foreseeable\n\ + \032 future, and we will occasionally release new versions with bug fixes,\n\ + \032 small improvements, and contributed patches.\n\ + \n\ + \032 Reports of bugs affecting correctness or safety are of interest to many\n\ + \032 people and will generally get high priority. Other bug reports will be\n\ + \032 looked at as time permits. Bugs should be reported to the users list at\n\ + \032 unison-users@yahoogroups.com (mailto:unison-users@yahoogroups.com).\n\ + \n\ + \032 Feature requests are welcome, but will probably just be added to the\n\ + \032 ever-growing todo list. They should also be sent to\n\ + \032 unison-users@yahoogroups.com (mailto:unison-users@yahoogroups.com).\n\ + \n\ + \032 Patches are even more welcome. They should be sent to\n\ + \032 unison-hackers@lists.seas.upenn.edu\n\ + \032 (mailto:unison-hackers@lists.seas.upenn.edu). (Since safety and\n\ + \032 robustness are Unison's most important properties, patches will be held\n\ + \032 to high standards of clear design and clean coding.) If you want to\n\ + \032 contribute to Unison, start by downloading the developer tarball from\n\ + \032 the download page. For some details on how the code is organized, etc.,\n\ + \032 see the file CONTRIB.\n\ + \n\ + ")) +:: + ("copying", ("Copying", + "Copying\n\ + \n\ + \032 This file is part of Unison.\n\ + \n\ + \032 Unison is free software: you can redistribute it and/or modify it under\n\ + \032 the terms of the GNU General Public License as published by the Free\n\ + \032 Software Foundation, either version 3 of the License, or (at your\n\ + \032 option) any later version.\n\ + \n\ + \032 Unison is distributed in the hope that it will be useful, but WITHOUT\n\ + \032 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\ + \032 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n\ + \032 for more details.\n\ + \n\ + \032 The GNU Public License can be found at http://www.gnu.org/licenses. A\n\ + \032 copy is also included in the Unison source distribution in the file\n\ + \032 COPYING.\n\ + \n\ + ")) +:: + ("ack", ("Acknowledgements", + "Acknowledgements\n\ + \n\ + \032 Work on Unison has been supported by the National Science Foundation\n\ + \032 under grants CCR-9701826 and ITR-0113226, Principles and Practice of\n\ + \032 Synchronization, and by University of Pennsylvania's Institute for\n\ + \032 Research in Cognitive Science (IRCS).\n\ + \n\ + ")) +:: + ("install", ("Installation", + "Installation\n\ + \n\ + \032 Unison is designed to be easy to install. The following sequence of\n\ + \032 steps should get you a fully working installation in a few minutes. If\n\ + \032 you run into trouble, you may find the suggestions on the Frequently\n\ + \032 Asked Questions page\n\ + \032 (http://www.cis.upenn.edu/~bcpierce/unison/faq.html) helpful. Pre-built\n\ + \032 binaries are available for a variety of platforms.\n\ + \n\ + \032 Unison can be used with either of two user interfaces:\n\ + \032 1. a simple textual interface, suitable for dumb terminals (and\n\ + \032 running from scripts), and\n\ + \032 2. a more sophisticated grapical interface, based on Gtk2 (on\n\ + \032 Linux/Windows) or the native UI framework (on OSX).\n\ + \n\ + \032 You will need to install a copy of Unison on every machine that you\n\ + \032 want to synchronize. However, you only need the version with a\n\ + \032 graphical user interface (if you want a GUI at all) on the machine\n\ + \032 where you're actually going to display the interface (the CLIENT\n\ + \032 machine). Other machines that you synchronize with can get along just\n\ + \032 fine with the textual version.\n\ + \n\ + Downloading Unison\n\ + \n\ + \032 The Unison download site lives under\n\ + \032 http://www.cis.upenn.edu/~bcpierce/unison.\n\ + \n\ + \032 If a pre-built binary of Unison is available for the client machine's\n\ + \032 architecture, just download it and put it somewhere in your search path\n\ + \032 (if you're going to invoke it from the command line) or on your desktop\n\ + \032 (if you'll be click-starting it).\n\ + \n\ + \032 The executable file for the graphical version (with a name including\n\ + \032 gtkui) actually provides both interfaces: the graphical one appears by\n\ + \032 default, while the textual interface can be selected by including -ui\n\ + \032 text on the command line. The textui executable provides just the\n\ + \032 textual interface.\n\ + \n\ + \032 If you don't see a pre-built executable for your architecture, you'll\n\ + \032 need to build it yourself. See the section \"Building Unison\" . There\n\ + \032 are also a small number of contributed ports to other architectures\n\ + \032 that are not maintained by us. See the Contributed Ports page\n\ + \032 (http://www.cis.upenn.edu/~bcpierce/unison/download.html) to check\n\ + \032 what's available.\n\ + \n\ + \032 Check to make sure that what you have downloaded is really executable.\n\ + \032 Either click-start it, or type \"unison -version\" at the command line.\n\ + \n\ + \032 Unison can be used in three different modes: with different directories\n\ + \032 on a single machine, with a remote machine over a direct socket\n\ + \032 connection, or with a remote machine using ssh for authentication and\n\ + \032 secure transfer. If you intend to use the last option, you may need to\n\ + \032 install ssh; see the section \"Installing Ssh\" .\n\ + \n\ + Running Unison\n\ + \n\ + \032 Once you've got Unison installed on at least one system, read the\n\ + \032 section \"Tutorial\" of the user manual (or type \"unison -doc tutorial\")\n\ + \032 for instructions on how to get started.\n\ + \n\ + Upgrading\n\ + \n\ + \032 Upgrading to a new version of Unison is as simple as throwing away the\n\ + \032 old binary and installing the new one.\n\ + \n\ + \032 Before upgrading, it is a good idea to run the old version one last\n\ + \032 time, to make sure all your replicas are completely synchronized. A new\n\ + \032 version of Unison will sometimes introduce a different format for the\n\ + \032 archive files used to remember information about the previous state of\n\ + \032 the replicas. In this case, the old archive will be ignored (not\n\ + \032 deleted -- if you roll back to the previous version of Unison, you will\n\ + \032 find the old archives intact), which means that any differences between\n\ + \032 the replicas will show up as conflicts that need to be resolved\n\ + \032 manually.\n\ + \n\ + Building Unison from Scratch\n\ + \n\ + \032 If a pre-built image is not available, you will need to compile it from\n\ + \032 scratch; the sources are available from the same place as the binaries.\n\ + \n\ + \032 In principle, Unison should work on any platform to which OCaml has\n\ + \032 been ported and on which the Unix module is fully implemented. It has\n\ + \032 been tested on many flavors of Windows (98, NT, 2000, XP) and Unix (OS\n\ + \032 X, Solaris, Linux, FreeBSD), and on both 32- and 64-bit architectures.\n\ + \n\ + Unix\n\ + \n\ + \032 Unison can be built with or without a graphical user interface (GUI).\n\ + \032 The build system will decide automatically depending on the libraries\n\ + \032 installed on your system, but you can also type make UISTYLE=text to\n\ + \032 build Unison without GUI.\n\ + \n\ + \032 You'll need the Objective Caml compiler, available from\n\ + \032 http://caml.inria.fr. OCaml is available from most package managers\n\ + \032 Building and installing OCaml on Unix systems is very straightforward;\n\ + \032 just follow the instructions in the distribution. You'll probably want\n\ + \032 to build the native-code compiler in addition to the bytecode compiler,\n\ + \032 as Unison runs much faster when compiled to native code, but this is\n\ + \032 not absolutely necessary. (Quick start: on many systems, the following\n\ + \032 sequence of commands will get you a working and installed compiler:\n\ + \032 first do make world opt, then su to root and do make install.)\n\ + \n\ + \032 You'll also need the GNU make utility, standard on many Unix systems.\n\ + \032 (Type \"make -version\" to check that you've got the GNU version.)\n\ + \032 Unison's build system is not parallelizable, so don't use make flags\n\ + \032 which cause it to start processes in parallel, e.g. -j for GNU make.\n\ + \n\ + \032 Once you've got OCaml installed, grab a copy of the Unison sources,\n\ + \032 unzip and untar them, change to the new \"unison\" directory, and type\n\ + \032 \"make UISTYLE=text\". The result should be an executable file called\n\ + \032 \"unison\". Type \"./unison\" to make sure the program is executable. You\n\ + \032 should get back a usage message.\n\ + \n\ + \032 If you want to build the graphical user interface, you will need to\n\ + \032 install some additional things:\n\ + \032 * The Gtk2 development libraries (package libgtk2.0-dev on debian\n\ + \032 based systems).\n\ + \032 * OCaml bindings for Gtk2. Install them from your software\n\ + \032 repositories (package liblablgtk2-ocaml on debian based systems).\n\ + \032 Also available from\n\ + \032 http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html.\n\ + \032 * Pango, a text rendering library and a part of Gtk2. On some systems\n\ + \032 (e.g. Ubuntu) the bindings between Pango and OCaml need to be\n\ + \032 installed explicitly (package liblablgtk-extras-ocaml-dev on\n\ + \032 Ubuntu).\n\ + \n\ + \032 Type make to build Unison. If Gtk2 is available on the system, Unison\n\ + \032 with a GUI will be built automatically.\n\ + \n\ + \032 Put the unison executable somewhere in your search path, either by\n\ + \032 adding the Unison directory to your PATH variable or by copying the\n\ + \032 executable to some standard directory where executables are stored. Or\n\ + \032 just type make install to install Unison to $HOME/bin/unison.\n\ + \n\ + Mac OS X\n\ + \n\ + \032 To build the text-only user interface, follow the instructions above\n\ + \032 for building on Unix systems. You should do this first, even if you are\n\ + \032 also planning on building the GUI, just to make sure it works.\n\ + \n\ + \032 To build the basic GUI version, you'll first need to download and\n\ + \032 install the XCode developer tools from Apple. Once this is done, just\n\ + \032 type make UISTYLE=macnew in the src directory, and if things go well\n\ + \032 you should get an application that you can move from\n\ + \032 uimacnew/build/Default/Unison.app to wherever you want it.\n\ + \n\ + \032 There is also an experimental GUI with a somewhat smoother look and\n\ + \032 feel. To compile this one (once you've got the basic one working),\n\ + \032 proceed as follows:\n\ + \032 1. Go to the uimacnew09 directory and double-click the file\n\ + \032 BWToolkit.ibplugin.\n\ + \032 2. Go back up to the src directory and type make UISTYLE=macnew09.\n\ + \032 3. You should get an application built for you at\n\ + \032 uimacnew09/build/Default/Unison.app.\n\ + \n\ + Windows\n\ + \n\ + \032 Although the binary distribution should work on any version of Windows,\n\ + \032 some people may want to build Unison from scratch on those systems too.\n\ + \n\ + Bytecode version:\n\ + \n\ + \032 The simpler but slower compilation option to build a Unison executable\n\ + \032 is to build a bytecode version. You need first install Windows version\n\ + \032 of the OCaml compiler (version 3.07 or later, available from\n\ + \032 http://caml.inria.fr). Then grab a copy of Unison sources and type\n\ + \032 make NATIVE=false\n\ + \n\ + \032 to compile the bytecode. The result should be an executable file called\n\ + \032 unison.exe.\n\ + \n\ + Native version:\n\ + \n\ + \032 Building a more efficient, native version of Unison on Windows requires\n\ + \032 a little more work. See the file INSTALL.win32 in the source code\n\ + \032 distribution.\n\ + \n\ + Installation Options\n\ + \n\ + \032 The Makefile in the distribution includes several switches that can be\n\ + \032 used to control how Unison is built. Here are the most useful ones:\n\ + \032 * Building with NATIVE=true uses the native-code OCaml compiler,\n\ + \032 yielding an executable that will run quite a bit faster. We use\n\ + \032 this for building distribution versions.\n\ + \032 * Building with make DEBUGGING=true generates debugging symbols.\n\ + \032 * Building with make STATIC=true generates a (mostly) statically\n\ + \032 linked executable. We use this for building distribution versions,\n\ + \032 for portability.\n\ + \n\ + ")) +:: + ("tutorial", ("Tutorial", + "Tutorial\n\ + \n\ + Preliminaries\n\ + \n\ + \032 Unison can be used with either of two user interfaces:\n\ + \032 1. a straightforward textual interface and\n\ + \032 2. a more sophisticated graphical interface\n\ + \n\ + \032 The textual interface is more convenient for running from scripts and\n\ + \032 works on dumb terminals; the graphical interface is better for most\n\ + \032 interactive use. For this tutorial, you can use either. If you are\n\ + \032 running Unison from the command line, just typing unison will select\n\ + \032 either the text or the graphical interface, depending on which has been\n\ + \032 selected as default when the executable you are running was built. You\n\ + \032 can force the text interface even if graphical is the default by adding\n\ + \032 -ui text. The other command-line arguments to both versions are\n\ + \032 identical.\n\ + \n\ + \032 The graphical version can also be run directly by clicking on its icon,\n\ + \032 but this may require a little set-up (see the section \"Click-starting\n\ + \032 Unison\" ). For this tutorial, we assume that you're starting it from\n\ + \032 the command line.\n\ + \n\ + \032 Unison can synchronize files and directories on a single machine, or\n\ + \032 between two machines on a network. (The same program runs on both\n\ + \032 machines; the only difference is which one is responsible for\n\ + \032 displaying the user interface.) If you're only interested in a\n\ + \032 single-machine setup, then let's call that machine the CLIENT . If\n\ + \032 you're synchronizing two machines, let's call them CLIENT and SERVER .\n\ + \n\ + Local Usage\n\ + \n\ + \032 Let's get the client machine set up first and see how to synchronize\n\ + \032 two directories on a single machine.\n\ + \n\ + \032 Follow the instructions in the section \"Installation\" to either\n\ + \032 download or build an executable version of Unison, and install it\n\ + \032 somewhere on your search path. (If you just want to use the textual\n\ + \032 user interface, download the appropriate textui binary. If you just\n\ + \032 want to the graphical interface--or if you will use both interfaces\n\ + \032 [the gtkui binary actually has both compiled in]--then download the\n\ + \032 gtkui binary.)\n\ + \n\ + \032 Create a small test directory a.tmp containing a couple of files and/or\n\ + \032 subdirectories, e.g.,\n\ + \032 mkdir a.tmp\n\ + \032 touch a.tmp/a a.tmp/b\n\ + \032 mkdir a.tmp/d\n\ + \032 touch a.tmp/d/f\n\ + \n\ + \032 Copy this directory to b.tmp:\n\ + \032 cp -r a.tmp b.tmp\n\ + \n\ + \032 Now try synchronizing a.tmp and b.tmp. (Since they are identical,\n\ + \032 synchronizing them won't propagate any changes, but Unison will\n\ + \032 remember the current state of both directories so that it will be able\n\ + \032 to tell next time what has changed.) Type:\n\ + \032 unison a.tmp b.tmp\n\ + \n\ + \032 (You may need to add -ui text, depending how your unison binary was\n\ + \032 built.)\n\ + \n\ + \032 Textual Interface:\n\ + \032 * You should see a message notifying you that all the files are\n\ + \032 actually equal and then get returned to the command line.\n\ + \n\ + \032 Graphical Interface:\n\ + \032 * You should get a big empty window with a message at the bottom\n\ + \032 notifying you that all files are identical. Choose the Exit item\n\ + \032 from the File menu to get back to the command line.\n\ + \n\ + \032 Next, make some changes in a.tmp and/or b.tmp. For example:\n\ + \032 rm a.tmp/a\n\ + \032 echo \"Hello\" > a.tmp/b\n\ + \032 echo \"Hello\" > b.tmp/b\n\ + \032 date > b.tmp/c\n\ + \032 echo \"Hi there\" > a.tmp/d/h\n\ + \032 echo \"Hello there\" > b.tmp/d/h\n\ + \n\ + \032 Run Unison again:\n\ + \032 unison a.tmp b.tmp\n\ + \n\ + \032 This time, the user interface will display only the files that have\n\ + \032 changed. If a file has been modified in just one replica, then it will\n\ + \032 be displayed with an arrow indicating the direction that the change\n\ + \032 needs to be propagated. For example,\n\ + \032 <--- new file c [f]\n\ + \n\ + \032 indicates that the file c has been modified only in the second replica,\n\ + \032 and that the default action is therefore to propagate the new version\n\ + \032 to the first replica. To follow Unison's recommendation, press the \"f\"\n\ + \032 at the prompt.\n\ + \n\ + \032 If both replicas are modified and their contents are different, then\n\ + \032 the changes are in conflict: <-?-> is displayed to indicate that Unison\n\ + \032 needs guidance on which replica should override the other.\n\ + \032 new file <-?-> new file d/h []\n\ + \n\ + \032 By default, neither version will be propagated and both replicas will\n\ + \032 remain as they are.\n\ + \n\ + \032 If both replicas have been modified but their new contents are the same\n\ + \032 (as with the file b), then no propagation is necessary and nothing is\n\ + \032 shown. Unison simply notes that the file is up to date.\n\ + \n\ + \032 These display conventions are used by both versions of the user\n\ + \032 interface. The only difference lies in the way in which Unison's\n\ + \032 default actions are either accepted or overridden by the user.\n\ + \n\ + \032 Textual Interface:\n\ + \032 * The status of each modified file is displayed, in turn. When the\n\ + \032 copies of a file in the two replicas are not identical, the user\n\ + \032 interface will ask for instructions as to how to propagate the\n\ + \032 change. If some default action is indicated (by an arrow), you can\n\ + \032 simply press Return to go on to the next changed file. If you want\n\ + \032 to do something different with this file, press \"<\" or \">\" to force\n\ + \032 the change to be propagated from right to left or from left to\n\ + \032 right, or else press \"/\" to skip this file and leave both replicas\n\ + \032 alone. When it reaches the end of the list of modified files,\n\ + \032 Unison will ask you one more time whether it should proceed with\n\ + \032 the updates that have been selected.\n\ + \032 When Unison stops to wait for input from the user, pressing \"?\"\n\ + \032 will always give a list of possible responses and their meanings.\n\ + \n\ + \032 Graphical Interface:\n\ + \032 * The main window shows all the files that have been modified in\n\ + \032 either a.tmp or b.tmp. To override a default action (or to select\n\ + \032 an action in the case when there is no default), first select the\n\ + \032 file, either by clicking on its name or by using the up- and\n\ + \032 down-arrow keys. Then press either the left-arrow or \"<\" key (to\n\ + \032 cause the version in b.tmp to propagate to a.tmp) or the\n\ + \032 right-arrow or \">\" key (which makes the a.tmp version override\n\ + \032 b.tmp).\n\ + \032 Every keyboard command can also be invoked from the menus at the\n\ + \032 top of the user interface. (Conversely, each menu item is annotated\n\ + \032 with its keyboard equivalent, if it has one.)\n\ + \032 When you are satisfied with the directions for the propagation of\n\ + \032 changes as shown in the main window, click the \"Go\" button to set\n\ + \032 them in motion. A check sign will be displayed next to each\n\ + \032 filename when the file has been dealt with.\n\ + \n\ + Remote Usage\n\ + \n\ + \032 Next, we'll get Unison set up to synchronize replicas on two different\n\ + \032 machines.\n\ + \n\ + \032 Follow the instructions in the Installation section to download or\n\ + \032 build an executable version of Unison on the server machine, and\n\ + \032 install it somewhere on your search path. (It doesn't matter whether\n\ + \032 you install the textual or graphical version, since the copy of Unison\n\ + \032 on the server doesn't need to display any user interface at all.)\n\ + \n\ + \032 It is important that the version of Unison installed on the server\n\ + \032 machine is the same as the version of Unison on the client machine. But\n\ + \032 some flexibility on the version of Unison at the client side can be\n\ + \032 achieved by using the -addversionno option; see the section\n\ + \032 \"Preferences\" .\n\ + \n\ + \032 Now there is a decision to be made. Unison provides two methods for\n\ + \032 communicating between the client and the server:\n\ + \032 * Remote shell method: To use this method, you must have some way of\n\ + \032 invoking remote commands on the server from the client's command\n\ + \032 line, using a facility such as ssh. This method is more convenient\n\ + \032 (since there is no need to manually start a \"unison server\" process\n\ + \032 on the server) and also more secure (especially if you use ssh).\n\ + \032 * Socket method: This method requires only that you can get TCP\n\ + \032 packets from the client to the server and back. A draconian\n\ + \032 firewall can prevent this, but otherwise it should work anywhere.\n\ + \n\ + \032 Decide which of these you want to try, and continue with the section\n\ + \032 \"Remote Shell Method\" or the section \"Socket Method\" , as appropriate.\n\ + \n\ + Remote Shell Method\n\ + \n\ + \032 The standard remote shell facility on Unix systems is ssh, which\n\ + \032 provides the same functionality as the older rsh but much better\n\ + \032 security. Ssh is available from http://www.openssh.org. See\n\ + \032 section [1]A.2 for installation instructions for the Windows version.\n\ + \n\ + \032 Running ssh requires some coordination between the client and server\n\ + \032 machines to establish that the client is allowed to invoke commands on\n\ + \032 the server; please refer to the ssh documentation for information on\n\ + \032 how to set this up. The examples in this section use ssh, but you can\n\ + \032 substitute rsh for ssh if you wish.\n\ + \n\ + \032 First, test that we can invoke Unison on the server from the client.\n\ + \032 Typing\n\ + \032 ssh remotehostname unison -version\n\ + \n\ + \032 should print the same version information as running\n\ + \032 unison -version\n\ + \n\ + \032 locally on the client. If remote execution fails, then either something\n\ + \032 is wrong with your ssh setup (e.g., \"permission denied\") or else the\n\ + \032 search path that's being used when executing commands on the server\n\ + \032 doesn't contain the unison executable (e.g., \"command not found\").\n\ + \n\ + \032 Create a test directory a.tmp in your home directory on the client\n\ + \032 machine.\n\ + \n\ + \032 Test that the local unison client can start and connect to the remote\n\ + \032 server. Type\n\ + \032 unison -testServer a.tmp ssh://remotehostname/a.tmp\n\ + \n\ + \032 Now cd to your home directory and type:\n\ + \032 unison a.tmp ssh://remotehostname/a.tmp\n\ + \n\ + \032 The result should be that the entire directory a.tmp is propagated from\n\ + \032 the client to your home directory on the server.\n\ + \n\ + \032 After finishing the first synchronization, change a few files and try\n\ + \032 synchronizing again. You should see similar results as in the local\n\ + \032 case.\n\ + \n\ + \032 If your user name on the server is not the same as on the client, you\n\ + \032 need to specify it on the command line:\n\ + \032 unison a.tmp ssh://username@remotehostname/a.tmp\n\ + \n\ + \032 Notes:\n\ + \032 * If you want to put a.tmp some place other than your home directory\n\ + \032 on the remote host, you can give an absolute path for it by adding\n\ + \032 an extra slash between remotehostname and the beginning of the\n\ + \032 path:\n\ + \032 unison a.tmp ssh://remotehostname//absolute/path/to/a.tmp\n\ + \n\ + \032 * You can give an explicit path for the unison executable on the\n\ + \032 server by using the command-line option \"-servercmd\n\ + \032 /full/path/name/of/unison\" or adding\n\ + \032 \"servercmd=/full/path/name/of/unison\" to your profile (see the\n\ + \032 section \"Profile\" ). Similarly, you can specify a explicit path for\n\ + \032 the ssh program using the \"-sshcmd\" option. Extra arguments can be\n\ + \032 passed to ssh by setting the -sshargs preference.\n\ + \n\ + Socket Method\n\ + \n\ + \032 Warning: The socket method is insecure: not only are the texts of\n\ + \032 your changes transmitted over the network in unprotected form, it is\n\ + \032 also possible for anyone in the world to connect to the server\n\ + \032 process and read out the contents of your filesystem! (Of course, to\n\ + \032 do this they must understand the protocol that Unison uses to\n\ + \032 communicate between client and server, but all they need for this is\n\ + \032 a copy of the Unison sources.) The socket method is provided only\n\ + \032 for expert users with specific needs; everyone else should use the\n\ + \032 ssh method.\n\ + \n\ + \032 To run Unison over a socket connection, you must start a Unison daemon\n\ + \032 process on the server. This process runs continuously, waiting for\n\ + \032 connections over a given socket from client machines running Unison and\n\ + \032 processing their requests in turn.\n\ + \n\ + \032 To start the daemon, type\n\ + \032 unison -socket NNNN\n\ + \n\ + \032 on the server machine, where NNNN is the socket number that the daemon\n\ + \032 should listen on for connections from clients. (NNNN can be any large\n\ + \032 number that is not being used by some other program; if NNNN is already\n\ + \032 in use, Unison will exit with an error message.) Note that paths\n\ + \032 specified by the client will be interpreted relative to the directory\n\ + \032 in which you start the server process; this behavior is different from\n\ + \032 the ssh case, where the path is relative to your home directory on the\n\ + \032 server.\n\ + \n\ + \032 Create a test directory a.tmp in your home directory on the client\n\ + \032 machine. Now type:\n\ + \032 unison a.tmp socket://remotehostname:NNNN/a.tmp\n\ + \n\ + \032 The result should be that the entire directory a.tmp is propagated from\n\ + \032 the client to the server (a.tmp will be created on the server in the\n\ + \032 directory that the server was started from). After finishing the first\n\ + \032 synchronization, change a few files and try synchronizing again. You\n\ + \032 should see similar results as in the local case.\n\ + \n\ + \032 Since the socket method is not used by many people, its functionality\n\ + \032 is rather limited. For example, the server can only deal with one\n\ + \032 client at a time.\n\ + \n\ + Using Unison for All Your Files\n\ + \n\ + \032 Once you are comfortable with the basic operation of Unison, you may\n\ + \032 find yourself wanting to use it regularly to synchronize your commonly\n\ + \032 used files. There are several possible ways of going about this:\n\ + \032 1. Synchronize your whole home directory, using the Ignore facility\n\ + \032 (see the section \"Ignore\" ) to avoid synchronizing temporary files\n\ + \032 and things that only belong on one host.\n\ + \032 2. Create a subdirectory called shared (or current, or whatever) in\n\ + \032 your home directory on each host, and put all the files you want to\n\ + \032 synchronize into this directory.\n\ + \032 3. Create a subdirectory called shared (or current, or whatever) in\n\ + \032 your home directory on each host, and put links to all the files\n\ + \032 you want to synchronize into this directory. Use the follow\n\ + \032 preference (see the section \"Symbolic Links\" ) to make Unison treat\n\ + \032 these links as transparent.\n\ + \032 4. Make your home directory the root of the synchronization, but tell\n\ + \032 Unison to synchronize only some of the files and subdirectories\n\ + \032 within it on any given run. This can be accomplished by using the\n\ + \032 -path switch on the command line:\n\ + \032 unison /home/username ssh://remotehost//home/username -path shared\n\ + \n\ + \032 The -path option can be used as many times as needed, to\n\ + \032 synchronize several files or subdirectories:\n\ + \032 unison /home/username ssh://remotehost//home/username \\\n\ + \032 -path shared \\\n\ + \032 -path pub \\\n\ + \032 -path .netscape/bookmarks.html\n\ + \n\ + \032 These -path arguments can also be put in your preference file. See\n\ + \032 the section \"Preferences\" for an example.\n\ + \n\ + \032 Most people find that they only need to maintain a profile (or\n\ + \032 profiles) on one of the hosts that they synchronize, since Unison is\n\ + \032 always initiated from this host. (For example, if you're synchronizing\n\ + \032 a laptop with a fileserver, you'll probably always run Unison on the\n\ + \032 laptop.) This is a bit different from the usual situation with\n\ + \032 asymmetric mirroring programs like rdist, where the mirroring operation\n\ + \032 typically needs to be initiated from the machine with the most recent\n\ + \032 changes. the section \"Profile\" covers the syntax of Unison profiles,\n\ + \032 together with some sample profiles.\n\ + \n\ + \032 Some tips on improving Unison's performance can be found on the\n\ + \032 Frequently Asked Questions page\n\ + \032 (http://www.cis.upenn.edu/~bcpierce/unison/faq.html).\n\ + \n\ + Using Unison to Synchronize More Than Two Machines\n\ + \n\ + \032 Unison is designed for synchronizing pairs of replicas. However, it is\n\ + \032 possible to use it to keep larger groups of machines in sync by\n\ + \032 performing multiple pairwise synchronizations.\n\ + \n\ + \032 If you need to do this, the most reliable way to set things up is to\n\ + \032 organize the machines into a \"star topology,\" with one machine\n\ + \032 designated as the \"hub\" and the rest as \"spokes,\" and with each spoke\n\ + \032 machine synchronizing only with the hub. The big advantage of the star\n\ + \032 topology is that it eliminates the possibility of confusing \"spurious\n\ + \032 conflicts\" arising from the fact that a separate archive is maintained\n\ + \032 by Unison for every pair of hosts that it synchronizes.\n\ + \n\ + Going Further\n\ + \n\ + \032 On-line documentation for the various features of Unison can be\n\ + \032 obtained either by typing\n\ + \032 unison -doc topics\n\ + \n\ + \032 at the command line, or by selecting the Help menu in the graphical\n\ + \032 user interface. The same information is also available in a typeset\n\ + \032 User's Manual (HTML or PostScript format) through\n\ + \032 http://www.cis.upenn.edu/~bcpierce/unison.\n\ + \n\ + \032 If you use Unison regularly, you should subscribe to one of the mailing\n\ + \032 lists, to receive announcements of new versions. See the section\n\ + \032 \"Mailing Lists\" .\n\ + \n\ + ")) +:: + ("basics", ("Basic Concepts", + "Basic Concepts\n\ + \n\ + \032 To understand how Unison works, it is necessary to discuss a few\n\ + \032 straightforward concepts. These concepts are developed more rigorously\n\ + \032 and at more length in a number of papers, available at\n\ + \032 http://www.cis.upenn.edu/~bcpierce/papers. But the informal\n\ + \032 presentation here should be enough for most users.\n\ + \n\ + Roots\n\ + \n\ + \032 A replica's root tells Unison where to find a set of files to be\n\ + \032 synchronized, either on the local machine or on a remote host. For\n\ + \032 example,\n\ + \032 relative/path/of/root\n\ + \n\ + \032 specifies a local root relative to the directory where Unison is\n\ + \032 started, while\n\ + \032 /absolute/path/of/root\n\ + \n\ + \032 specifies a root relative to the top of the local filesystem,\n\ + \032 independent of where Unison is running. Remote roots can begin with\n\ + \032 ssh://, rsh:// to indicate that the remote server should be started\n\ + \032 with rsh or ssh:\n\ + \032 ssh://remotehost//absolute/path/of/root\n\ + \032 rsh://user@remotehost/relative/path/of/root\n\ + \n\ + \032 If the remote server is already running (in the socket mode), then the\n\ + \032 syntax\n\ + \032 socket://remotehost:portnum//absolute/path/of/root\n\ + \032 socket://remotehost:portnum/relative/path/of/root\n\ + \n\ + \032 is used to specify the hostname and the port that the client Unison\n\ + \032 should use to contact it.\n\ + \n\ + \032 The syntax for roots is based on that of URIs (described in RFC 2396).\n\ + \032 The full grammar is:\n\ + \032 replica ::= [protocol:]//[user@][host][:port][/path]\n\ + \032 | path\n\ + \n\ + \032 protocol ::= file\n\ + \032 | socket\n\ + \032 | ssh\n\ + \032 | rsh\n\ + \n\ + \032 user ::= [-_a-zA-Z0-9]+\n\ + \n\ + \032 host ::= [-_a-zA-Z0-9.]+\n\ + \n\ + \032 port ::= [0-9]+\n\ + \n\ + \032 When path is given without any protocol prefix, the protocol is assumed\n\ + \032 to be file:. Under Windows, it is possible to synchronize with a remote\n\ + \032 directory using the file: protocol over the Windows Network\n\ + \032 Neighborhood. For example,\n\ + \032 unison foo //host/drive/bar\n\ + \n\ + \032 synchronizes the local directory foo with the directory drive:\\bar on\n\ + \032 the machine host, provided that host is accessible via Network\n\ + \032 Neighborhood. When the file: protocol is used in this way, there is no\n\ + \032 need for a Unison server to be running on the remote host. However,\n\ + \032 running Unison this way is only a good idea if the remote host is\n\ + \032 reached by a very fast network connection, since the full contents of\n\ + \032 every file in the remote replica will have to be transferred to the\n\ + \032 local machine to detect updates.\n\ + \n\ + \032 The names of roots are canonized by Unison before it uses them to\n\ + \032 compute the names of the corresponding archive files, so\n\ + \032 //saul//home/bcpierce/common and //saul.cis.upenn.edu/common will be\n\ + \032 recognized as the same replica under different names.\n\ + \n\ + Paths\n\ + \n\ + \032 A path refers to a point within a set of files being synchronized; it\n\ + \032 is specified relative to the root of the replica.\n\ + \n\ + \032 Formally, a path is just a sequence of names, separated by /. Note that\n\ + \032 the path separator character is always a forward slash, no matter what\n\ + \032 operating system Unison is running on. Forward slashes are converted to\n\ + \032 backslashes as necessary when paths are converted to filenames in the\n\ + \032 local filesystem on a particular host. (For example, suppose that we\n\ + \032 run Unison on a Windows system, synchronizing the local root c:\\pierce\n\ + \032 with the root ssh://saul.cis.upenn.edu/home/bcpierce on a Unix server.\n\ + \032 Then the path current/todo.txt refers to the file\n\ + \032 c:\\pierce\\current\\todo.txt on the client and\n\ + \032 /home/bcpierce/current/todo.txt on the server.)\n\ + \n\ + \032 The empty path (i.e., the empty sequence of names) denotes the whole\n\ + \032 replica. Unison displays the empty path as \"[root].\"\n\ + \n\ + \032 If p is a path and q is a path beginning with p, then q is said to be a\n\ + \032 descendant of p. (Each path is also a descendant of itself.)\n\ + \n\ + What is an Update?\n\ + \n\ + \032 The contents of a path p in a particular replica could be a file, a\n\ + \032 directory, a symbolic link, or absent (if p does not refer to anything\n\ + \032 at all in that replica). More specifically:\n\ + \032 * If p refers to an ordinary file, then the contents of p are the\n\ + \032 actual contents of this file (a string of bytes) plus the current\n\ + \032 permission bits of the file.\n\ + \032 * If p refers to a symbolic link, then the contents of p are just the\n\ + \032 string specifying where the link points.\n\ + \032 * If p refers to a directory, then the contents of p are just the\n\ + \032 token \"DIRECTORY\" plus the current permission bits of the\n\ + \032 directory.\n\ + \032 * If p does not refer to anything in this replica, then the contents\n\ + \032 of p are the token \"ABSENT.\"\n\ + \n\ + \032 Unison keeps a record of the contents of each path after each\n\ + \032 successful synchronization of that path (i.e., it remembers the\n\ + \032 contents at the last moment when they were the same in the two\n\ + \032 replicas).\n\ + \n\ + \032 We say that a path is updated (in some replica) if its current contents\n\ + \032 are different from its contents the last time it was successfully\n\ + \032 synchronized. Note that whether a path is updated has nothing to do\n\ + \032 with its last modification time--Unison considers only the contents\n\ + \032 when determining whether an update has occurred. This means that\n\ + \032 touching a file without changing its contents will not be recognized as\n\ + \032 an update. A file can even be changed several times and then changed\n\ + \032 back to its original contents; as long as Unison is only run at the end\n\ + \032 of this process, no update will be recognized.\n\ + \n\ + \032 What Unison actually calculates is a close approximation to this\n\ + \032 definition; see the section \"Caveats and Shortcomings\" .\n\ + \n\ + What is a Conflict?\n\ + \n\ + \032 A path is said to be conflicting if the following conditions all hold:\n\ + \032 1. it has been updated in one replica,\n\ + \032 2. it or any of its descendants has been updated in the other replica,\n\ + \032 and\n\ + \032 3. its contents in the two replicas are not identical.\n\ + \n\ + Reconciliation\n\ + \n\ + \032 Unison operates in several distinct stages:\n\ + \032 1. On each host, it compares its archive file (which records the state\n\ + \032 of each path in the replica when it was last synchronized) with the\n\ + \032 current contents of the replica, to determine which paths have been\n\ + \032 updated.\n\ + \032 2. It checks for \"false conflicts\" -- paths that have been updated on\n\ + \032 both replicas, but whose current values are identical. These paths\n\ + \032 are silently marked as synchronized in the archive files in both\n\ + \032 replicas.\n\ + \032 3. It displays all the updated paths to the user. For updates that do\n\ + \032 not conflict, it suggests a default action (propagating the new\n\ + \032 contents from the updated replica to the other). Conflicting\n\ + \032 updates are just displayed. The user is given an opportunity to\n\ + \032 examine the current state of affairs, change the default actions\n\ + \032 for nonconflicting updates, and choose actions for conflicting\n\ + \032 updates.\n\ + \032 4. It performs the selected actions, one at a time. Each action is\n\ + \032 performed by first transferring the new contents to a temporary\n\ + \032 file on the receiving host, then atomically moving them into place.\n\ + \032 5. It updates its archive files to reflect the new state of the\n\ + \032 replicas.\n\ + \n\ + ")) +:: + ("failures", ("Invariants", + "Invariants\n\ + \n\ + \032 Given the importance and delicacy of the job that it performs, it is\n\ + \032 important to understand both what a synchronizer does under normal\n\ + \032 conditions and what can happen under unusual conditions such as system\n\ + \032 crashes and communication failures.\n\ + \n\ + \032 Unison is careful to protect both its internal state and the state of\n\ + \032 the replicas at every point in this process. Specifically, the\n\ + \032 following guarantees are enforced:\n\ + \032 * At every moment, each path in each replica has either (1) its\n\ + \032 original contents (i.e., no change at all has been made to this\n\ + \032 path), or (2) its correct final contents (i.e., the value that the\n\ + \032 user expected to be propagated from the other replica).\n\ + \032 * At every moment, the information stored on disk about Unison's\n\ + \032 private state can be either (1) unchanged, or (2) updated to\n\ + \032 reflect those paths that have been successfully synchronized.\n\ + \n\ + \032 The upshot is that it is safe to interrupt Unison at any time, either\n\ + \032 manually or accidentally. [Caveat: the above is almost true there are\n\ + \032 occasionally brief periods where it is not (and, because of shortcoming\n\ + \032 of the Posix filesystem API, cannot be); in particular, when it is\n\ + \032 copying a file onto a directory or vice versa, it must first move the\n\ + \032 original contents out of the way. If Unison gets interrupted during one\n\ + \032 of these periods, some manual cleanup may be required. In this case, a\n\ + \032 file called DANGER.README will be left in your home directory,\n\ + \032 containing information about the operation that was interrupted. The\n\ + \032 next time you try to run Unison, it will notice this file and warn you\n\ + \032 about it.]\n\ + \n\ + \032 If an interruption happens while it is propagating updates, then there\n\ + \032 may be some paths for which an update has been propagated but which\n\ + \032 have not been marked as synchronized in Unison's archives. This is no\n\ + \032 problem: the next time Unison runs, it will detect changes to these\n\ + \032 paths in both replicas, notice that the contents are now equal, and\n\ + \032 mark the paths as successfully updated when it writes back its private\n\ + \032 state at the end of this run.\n\ + \n\ + \032 If Unison is interrupted, it may sometimes leave temporary working\n\ + \032 files (with suffix .tmp) in the replicas. It is safe to delete these\n\ + \032 files. Also, if the backups flag is set, Unison will leave around old\n\ + \032 versions of files that it overwrites, with names like\n\ + \032 file.0.unison.bak. These can be deleted safely when they are no longer\n\ + \032 wanted.\n\ + \n\ + \032 Unison is not bothered by clock skew between the different hosts on\n\ + \032 which it is running. It only performs comparisons between timestamps\n\ + \032 obtained from the same host, and the only assumption it makes about\n\ + \032 them is that the clock on each system always runs forward.\n\ + \n\ + \032 If Unison finds that its archive files have been deleted (or that the\n\ + \032 archive format has changed and they cannot be read, or that they don't\n\ + \032 exist because this is the first run of Unison on these particular\n\ + \032 roots), it takes a conservative approach: it behaves as though the\n\ + \032 replicas had both been completely empty at the point of the last\n\ + \032 synchronization. The effect of this is that, on the first run, files\n\ + \032 that exist in only one replica will be propagated to the other, while\n\ + \032 files that exist in both replicas but are unequal will be marked as\n\ + \032 conflicting.\n\ + \n\ + \032 Touching a file without changing its contents should never affect\n\ + \032 whether or not Unison does an update. (When running with the fastcheck\n\ + \032 preference set to true--the default on Unix systems--Unison uses file\n\ + \032 modtimes for a quick first pass to tell which files have definitely not\n\ + \032 changed; then, for each file that might have changed, it computes a\n\ + \032 fingerprint of the file's contents and compares it against the\n\ + \032 last-synchronized contents. Also, the -times option allows you to\n\ + \032 synchronize file times, but it does not cause identical files to be\n\ + \032 changed; Unison will only modify the file times.)\n\ + \n\ + \032 It is safe to \"brainwash\" Unison by deleting its archive files on both\n\ + \032 replicas. The next time it runs, it will assume that all the files it\n\ + \032 sees in the replicas are new.\n\ + \n\ + \032 It is safe to modify files while Unison is working. If Unison discovers\n\ + \032 that it has propagated an out-of-date change, or that the file it is\n\ + \032 updating has changed on the target replica, it will signal a failure\n\ + \032 for that file. Run Unison again to propagate the latest change.\n\ + \n\ + \032 Changes to the ignore patterns from the user interface (e.g., using the\n\ + \032 `i' key) are immediately reflected in the current profile.\n\ + \n\ + Caveats and Shortcomings\n\ + \n\ + \032 Here are some things to be careful of when using Unison.\n\ + \032 * In the interests of speed, the update detection algorithm may\n\ + \032 (depending on which OS architecture that you run Unison on)\n\ + \032 actually use an approximation to the definition given in the\n\ + \032 section \"What is an Update?\" .\n\ + \032 In particular, the Unix implementation does not compare the actual\n\ + \032 contents of files to their previous contents, but simply looks at\n\ + \032 each file's inode number and modtime; if neither of these have\n\ + \032 changed, then it concludes that the file has not been changed.\n\ + \032 Under normal circumstances, this approximation is safe, in the\n\ + \032 sense that it may sometimes detect \"false updates\" but will never\n\ + \032 miss a real one. However, it is possible to fool it, for example by\n\ + \032 using retouch to change a file's modtime back to a time in the\n\ + \032 past.\n\ + \032 * If you synchronize between a single-user filesystem and a shared\n\ + \032 Unix server, you should pay attention to your permission bits: by\n\ + \032 default, Unison will synchronize permissions verbatim, which may\n\ + \032 leave group-writable files on the server that could be written over\n\ + \032 by a lot of people.\n\ + \032 You can control this by setting your umask on both computers to\n\ + \032 something like 022, masking out the \"world write\" and \"group write\"\n\ + \032 permission bits.\n\ + \032 Unison does not synchronize the setuid and setgid bits, for\n\ + \032 security.\n\ + \032 * The graphical user interface is single-threaded. This means that if\n\ + \032 Unison is performing some long-running operation, the display will\n\ + \032 not be repainted until it finishes. We recommend not trying to do\n\ + \032 anything with the user interface while Unison is in the middle of\n\ + \032 detecting changes or propagating files.\n\ + \032 * Unison does not understand hard links.\n\ + \032 * It is important to be a little careful when renaming directories\n\ + \032 containing ignored files.\n\ + \032 For example, suppose Unison is synchronizing directory A between\n\ + \032 the two machines called the \"local\" and the \"remote\" machine;\n\ + \032 suppose directory A contains a subdirectory D; and suppose D on the\n\ + \032 local machine contains a file or subdirectory P that matches an\n\ + \032 ignore directive in the profile used to synchronize. Thus path\n\ + \032 A/D/P exists on the local machine but not on the remote machine.\n\ + \032 If D is renamed to D' on the remote machine, and this change is\n\ + \032 propagated to the local machine, all such files or subdirectories P\n\ + \032 will be deleted. This is because Unison sees the rename as a delete\n\ + \032 and a separate create: it deletes the old directory (including the\n\ + \032 ignored files) and creates a new one (not including the ignored\n\ + \032 files, since they are completely invisible to it).\n\ + \n\ + ")) +:: + ("", ("Reference Guide", + "Reference Guide\n\ + \n\ + \032 This section covers the features of Unison in detail.\n\ + \n\ + ")) +:: + ("running", ("Running Unison", + "Running Unison\n\ + \n\ + \032 There are several ways to start Unison.\n\ + \032 * Typing \"unison profile\" on the command line. Unison will look for a\n\ + \032 file profile.prf in the .unison directory. If this file does not\n\ + \032 specify a pair of roots, Unison will prompt for them and add them\n\ + \032 to the information specified by the profile.\n\ + \032 * Typing \"unison profile root1 root2\" on the command line. In this\n\ + \032 case, Unison will use profile, which should not contain any root\n\ + \032 directives.\n\ + \032 * Typing \"unison root1 root2\" on the command line. This has the same\n\ + \032 effect as typing \"unison default root1 root2.\"\n\ + \032 * Typing just \"unison\" (or invoking Unison by clicking on a desktop\n\ + \032 icon). In this case, Unison will ask for the profile to use for\n\ + \032 synchronization (or create a new one, if necessary).\n\ + \n\ + The .unison Directory\n\ + \n\ + \032 Unison stores a variety of information in a private directory on each\n\ + \032 host. If the environment variable UNISON is defined, then its value\n\ + \032 will be used as the name of this directory. If UNISON is not defined,\n\ + \032 then the name of the directory depends on which operating system you\n\ + \032 are using. In Unix, the default is to use $HOME/.unison. In Windows, if\n\ + \032 the environment variable USERPROFILE is defined, then the directory\n\ + \032 will be $USERPROFILE\\.unison; otherwise if HOME is defined, it will be\n\ + \032 $HOME\\.unison; otherwise, it will be c:\\.unison.\n\ + \n\ + \032 The archive file for each replica is found in the .unison directory on\n\ + \032 that replica's host. Profiles (described below) are always taken from\n\ + \032 the .unison directory on the client host.\n\ + \n\ + \032 Note that Unison maintains a completely different set of archive files\n\ + \032 for each pair of roots.\n\ + \n\ + \032 We do not recommend synchronizing the whole .unison directory, as this\n\ + \032 will involve frequent propagation of large archive files. It should be\n\ + \032 safe to do it, though, if you really want to. Synchronizing just the\n\ + \032 profile files in the .unison directory is definitely OK.\n\ + \n\ + Archive Files\n\ + \n\ + \032 The name of the archive file on each replica is calculated from\n\ + \032 * the canonical names of all the hosts (short names like saul are\n\ + \032 converted into full addresses like saul.cis.upenn.edu),\n\ + \032 * the paths to the replicas on all the hosts (again, relative\n\ + \032 pathnames, symbolic links, etc. are converted into full, absolute\n\ + \032 paths), and\n\ + \032 * an internal version number that is changed whenever a new Unison\n\ + \032 release changes the format of the information stored in the\n\ + \032 archive.\n\ + \n\ + \032 This method should work well for most users. However, it is\n\ + \032 occasionally useful to change the way archive names are generated.\n\ + \032 Unison provides two ways of doing this.\n\ + \n\ + \032 The function that finds the canonical hostname of the local host (which\n\ + \032 is used, for example, in calculating the name of the archive file used\n\ + \032 to remember which files have been synchronized) normally uses the\n\ + \032 gethostname operating system call. However, if the environment variable\n\ + \032 UNISONLOCALHOSTNAME is set, its value will be used instead. This makes\n\ + \032 it easier to use Unison in situations where a machine's name changes\n\ + \032 frequently (e.g., because it is a laptop and gets moved around a lot).\n\ + \n\ + \032 A more powerful way of changing archive names is provided by the\n\ + \032 rootalias preference. The preference file may contain any number of\n\ + \032 lines of the form:\n\ + \032 rootalias = //hostnameA//path-to-replicaA -> //hostnameB/path-to-replicaB\n\ + \n\ + \032 When calculating the name of the archive files for a given pair of\n\ + \032 roots, Unison replaces any root that matches the left-hand side of any\n\ + \032 rootalias rule by the corresponding right-hand side.\n\ + \n\ + \032 So, if you need to relocate a root on one of the hosts, you can add a\n\ + \032 rule of the form:\n\ + \032 rootalias = //new-hostname//new-path -> //old-hostname/old-path\n\ + \n\ + \032 Note that root aliases are case-sensitive, even on case-insensitive\n\ + \032 file systems.\n\ + \n\ + \032 Warning: The rootalias option is dangerous and should only be used if\n\ + \032 you are sure you know what you're doing. In particular, it should only\n\ + \032 be used if you are positive that either (1) both the original root and\n\ + \032 the new alias refer to the same set of files, or (2) the files have\n\ + \032 been relocated so that the original name is now invalid and will never\n\ + \032 be used again. (If the original root and the alias refer to different\n\ + \032 sets of files, Unison's update detector could get confused.) After\n\ + \032 introducing a new rootalias, it is a good idea to run Unison a few\n\ + \032 times interactively (with the batch flag off, etc.) and carefully check\n\ + \032 that things look reasonable--in particular, that update detection is\n\ + \032 working as expected.\n\ + \n\ + Preferences\n\ + \n\ + \032 Many details of Unison's behavior are configurable by user-settable\n\ + \032 \"preferences.\"\n\ + \n\ + \032 Some preferences are boolean-valued; these are often called flags.\n\ + \032 Others take numeric or string arguments, indicated in the preferences\n\ + \032 list by n or xxx. Most of the string preferences can be given several\n\ + \032 times; the arguments are accumulated into a list internally.\n\ + \n\ + \032 There are two ways to set the values of preferences: temporarily, by\n\ + \032 providing command-line arguments to a particular run of Unison, or\n\ + \032 permanently, by adding commands to a profile in the .unison directory\n\ + \032 on the client host. The order of preferences (either on the command\n\ + \032 line or in preference files) is not significant. On the command line,\n\ + \032 preferences and other arguments (the profile name and roots) can be\n\ + \032 intermixed in any order.\n\ + \n\ + \032 To set the value of a preference p from the command line, add an\n\ + \032 argument -p (for a boolean flag) or -p n or -p xxx (for a numeric or\n\ + \032 string preference) anywhere on the command line. To set a boolean flag\n\ + \032 to false on the command line, use -p=false.\n\ + \n\ + \032 Here are all the preferences supported by Unison. This list can be\n\ + \032 obtained by typing unison -help.\n\ + \n\ + Usage: unison [options]\n\ + \032 or unison root1 root2 [options]\n\ + \032 or unison profilename [options]\n\ + \n\ + Basic options:\n\ + \032-auto automatically accept default (nonconflicting) actions\n\ + \032-batch batch mode: ask no questions at all\n\ + \032-doc xxx show documentation ('-doc topics' lists topics)\n\ + \032-fat use appropriate options for FAT filesystems\n\ + \032-group synchronize group attributes\n\ + \032-ignore xxx add a pattern to the ignore list\n\ + \032-ignorenot xxx add a pattern to the ignorenot list\n\ + \032-nocreation xxx prevent file creations on one replica\n\ + \032-nodeletion xxx prevent file deletions on one replica\n\ + \032-noupdate xxx prevent file updates and deletions on one replica\n\ + \032-owner synchronize owner\n\ + \032-path xxx path to synchronize\n\ + \032-perms n part of the permissions which is synchronized\n\ + \032-root xxx root of a replica (should be used exactly twice)\n\ + \032-silent print nothing except error messages\n\ + \032-terse suppress status messages\n\ + \032-testserver exit immediately after the connection to the server\n\ + \032-times synchronize modification times\n\ + \032-version print version and exit\n\ + \n\ + Advanced options:\n\ + \032-addprefsto xxx file to add new prefs to\n\ + \032-addversionno add version number to name of unison on server\n\ + \032-backup xxx add a pattern to the backup list\n\ + \032-backupcurr xxx add a pattern to the backupcurr list\n\ + \032-backupcurrnot xxx add a pattern to the backupcurrnot list\n\ + \032-backupdir xxx directory for storing centralized backups\n\ + \032-backuploc xxx where backups are stored ('local' or 'central')\n\ + \032-backupnot xxx add a pattern to the backupnot list\n\ + \032-backupprefix xxx prefix for the names of backup files\n\ + \032-backups keep backup copies of all files (see also 'backup')\n\ + \032-backupsuffix xxx a suffix to be added to names of backup files\n\ + \032-clientHostName xxx set host name of client\n\ + \032-confirmbigdel ask about whole-replica (or path) deletes (default true)\n\ + \032-confirmmerge ask for confirmation before committing results of a merge\n\ + \032-contactquietly suppress the 'contacting server' message during startup\n\ + \032-copymax n maximum number of simultaneous copyprog transfers\n\ + \032-copyonconflict keep copies of conflicting files\n\ + \032-copyprog xxx external program for copying large files\n\ + \032-copyprogrest xxx variant of copyprog for resuming partial transfers\n\ + \032-copyquoterem xxx add quotes to remote file name for copyprog (true/false/defa\n\ + ult)\n\ + \032-copythreshold n use copyprog on files bigger than this (if >=0, in Kb)\n\ + \032-debug xxx debug module xxx ('all' -> everything, 'verbose' -> more)\n\ + \032-diff xxx set command for showing differences between files\n\ + \032-dontchmod when set, never use the chmod system call\n\ + \032-dumbtty do not change terminal settings in text UI (default true)\n\ + \032-fastcheck xxx do fast update detection (true/false/default)\n\ + \032-fastercheckUNSAFE skip computing fingerprints for new files (experts only!)\n\ + \032-follow xxx add a pattern to the follow list\n\ + \032-force xxx force changes from this replica to the other\n\ + \032-forcepartial xxx add a pattern to the forcepartial list\n\ + \032-halfduplex force half-duplex communication with the server\n\ + \032-height n height (in lines) of main window in graphical interface\n\ + \032-host xxx bind the socket to this host name in server socket mode\n\ + \032-ignorearchives ignore existing archive files\n\ + \032-ignorecase xxx identify upper/lowercase filenames (true/false/default)\n\ + \032-ignoreinodenumbers ignore inode number changes when detecting updates\n\ + \032-ignorelocks ignore locks left over from previous run (dangerous!)\n\ + \032-immutable xxx add a pattern to the immutable list\n\ + \032-immutablenot xxx add a pattern to the immutablenot list\n\ + \032-key xxx define a keyboard shortcut for this profile (in some UIs)\n\ + \032-killserver kill server when done (even when using sockets)\n\ + \032-label xxx provide a descriptive string label for this profile\n\ + \032-links xxx allow the synchronization of symbolic links (true/false/defa\n\ + ult)\n\ + \032-log record actions in logfile (default true)\n\ + \032-logfile xxx logfile name\n\ + \032-maxbackups n number of backed up versions of a file\n\ + \032-maxerrors n maximum number of errors before a directory transfer is abor\n\ + ted\n\ + \032-maxsizethreshold n prevent transfer of files bigger than this (if >=0, in Kb)\n\ + \032-maxthreads n maximum number of simultaneous file transfers\n\ + \032-merge xxx add a pattern to the merge list\n\ + \032-mountpoint xxx abort if this path does not exist\n\ + \032-nocreationpartial xxx add a pattern to the nocreationpartial list\n\ + \032-nodeletionpartial xxx add a pattern to the nodeletionpartial list\n\ + \032-noupdatepartial xxx add a pattern to the noupdatepartial list\n\ + \032-numericids don't map uid/gid values by user/group names\n\ + \032-prefer xxx choose this replica's version for conflicting changes\n\ + \032-preferpartial xxx add a pattern to the preferpartial list\n\ + \032-repeat xxx synchronize repeatedly (text interface only)\n\ + \032-retry n re-try failed synchronizations N times (text ui only)\n\ + \032-rootalias xxx register alias for canonical root names\n\ + \032-rsrc xxx synchronize resource forks (true/false/default)\n\ + \032-rsync activate the rsync transfer mode (default true)\n\ + \032-selftest run internal tests and exit\n\ + \032-servercmd xxx name of unison executable on remote server\n\ + \032-showarchive show 'true names' (for rootalias) of roots and archive\n\ + \032-socket xxx act as a server on a socket\n\ + \032-sortbysize list changed files by size, not name\n\ + \032-sortfirst xxx add a pattern to the sortfirst list\n\ + \032-sortlast xxx add a pattern to the sortlast list\n\ + \032-sortnewfirst list new before changed files\n\ + \032-sshargs xxx other arguments (if any) for remote shell command\n\ + \032-sshcmd xxx path to the ssh executable\n\ + \032-stream use a streaming protocol for transferring file contents (def\n\ + ault true)\n\ + \032-ui xxx select UI ('text' or 'graphic'); command-line only\n\ + \032-unicode xxx assume Unicode encoding in case insensitive mode\n\ + \032-watch when set, use a file watcher process to detect changes (defa\n\ + ult true)\n\ + \032-xferbycopying optimize transfers using local copies (default true)\n\ + \n\ + \n\ + \032 Here, in more detail, is what they do. Many are discussed in greater\n\ + \032 detail in other sections of the manual.\n\ + \032 addprefsto xxx\n\ + \032 By default, new preferences added by Unison (e.g., new ignore\n\ + \032 clauses) will be appended to whatever preference file Unison was\n\ + \032 told to load at the beginning of the run. Setting the preference\n\ + \032 addprefsto filename makes Unison add new preferences to the file\n\ + \032 named filename instead.\n\ + \032 addversionno\n\ + \032 When this flag is set to true, Unison will use\n\ + \032 unison-currentversionnumber instead of just unison as the remote\n\ + \032 server command. This allows multiple binaries for different\n\ + \032 versions of unison to coexist conveniently on the same server:\n\ + \032 whichever version is run on the client, the same version will be\n\ + \032 selected on the server.\n\ + \032 auto\n\ + \032 When set to true, this flag causes the user interface to skip\n\ + \032 asking for confirmations on non-conflicting changes. (More\n\ + \032 precisely, when the user interface is done setting the\n\ + \032 propagation direction for one entry and is about to move to the\n\ + \032 next, it will skip over all non-conflicting entries and go\n\ + \032 directly to the next conflict.)\n\ + \032 backup xxx\n\ + \032 Including the preference -backup pathspec causes Unison to keep\n\ + \032 backup files for each path that matches pathspec. These backup\n\ + \032 files are kept in the directory specified by the backuplocation\n\ + \032 preference. The backups are named according to the backupprefix\n\ + \032 and backupsuffix preferences. The number of versions that are\n\ + \032 kept is determined by the maxbackups preference.\n\ + \032 The syntax of pathspec is described in the section \"Path\n\ + \032 Specification\" .\n\ + \032 backupcurr xxx\n\ + \032 Including the preference -backupcurr pathspec causes Unison to\n\ + \032 keep a backup of the current version of every file matching\n\ + \032 pathspec. This file will be saved as a backup with version\n\ + \032 number 000. Such backups can be used as inputs to external\n\ + \032 merging programs, for instance. See the documentatation for the\n\ + \032 merge preference. For more details, see the section \"Merging\n\ + \032 Conflicting Versions\" .\n\ + \032 The syntax of pathspec is described in the section \"Path\n\ + \032 Specification\" .\n\ + \032 backupcurrnot xxx\n\ + \032 Exceptions to backupcurr, like the ignorenot preference.\n\ + \032 backupdir xxx\n\ + \032 If this preference is set, Unison will use it as the name of the\n\ + \032 directory used to store backup files specified by the backup\n\ + \032 preference, when backuplocation is set to central. It is checked\n\ + \032 after the UNISONBACKUPDIR environment variable.\n\ + \032 backuploc xxx\n\ + \032 This preference determines whether backups should be kept\n\ + \032 locally, near the original files, or in a central directory\n\ + \032 specified by the backupdir preference. If set to local, backups\n\ + \032 will be kept in the same directory as the original files, and if\n\ + \032 set to central, backupdir will be used instead.\n\ + \032 backupnot xxx\n\ + \032 The values of this preference specify paths or individual files\n\ + \032 or regular expressions that should not be backed up, even if the\n\ + \032 backup preference selects them--i.e., it selectively overrides\n\ + \032 backup. The same caveats apply here as with ignore and\n\ + \032 ignorenot.\n\ + \032 backupprefix xxx\n\ + \032 When a backup for a file NAME is created, it is stored in a\n\ + \032 directory specified by backuplocation, in a file called\n\ + \032 backupprefixNAMEbackupsuffix. backupprefix can include a\n\ + \032 directory name (causing Unison to keep all backup files for a\n\ + \032 given directory in a subdirectory with this name), and both\n\ + \032 backupprefix and backupsuffix can contain the string$VERSION,\n\ + \032 which will be replaced by the age of the backup (1 for the most\n\ + \032 recent, 2 for the second most recent, and so on...). This\n\ + \032 keyword is ignored if it appears in a directory name in the\n\ + \032 prefix; if it does not appear anywhere in the prefix or the\n\ + \032 suffix, it will be automatically placed at the beginning of the\n\ + \032 suffix.\n\ + \032 One thing to be careful of: If the backuploc preference is set\n\ + \032 to local, Unison will automatically ignore all files whose\n\ + \032 prefix and suffix match backupprefix and backupsuffix. So be\n\ + \032 careful to choose values for these preferences that are\n\ + \032 sufficiently different from the names of your real files.\n\ + \032 backups\n\ + \032 Setting this flag to true is equivalent to setting\n\ + \032 backuplocation to local and backup to Name *.\n\ + \032 backupsuffix xxx\n\ + \032 See backupprefix for full documentation.\n\ + \032 batch\n\ + \032 When this is set to true, the user interface will ask no\n\ + \032 questions at all. Non-conflicting changes will be propagated;\n\ + \032 conflicts will be skipped.\n\ + \032 clientHostName xxx\n\ + \032 When specified, the host name of the client will not be\n\ + \032 guessedand the provided host name will be used to find the\n\ + \032 archive.\n\ + \032 confirmbigdel\n\ + \032 When this is set to true, Unison will request an extra\n\ + \032 confirmation if it appears that the entire replica has been\n\ + \032 deleted, before propagating the change. If the batch flag is\n\ + \032 also set, synchronization will be aborted. When the path\n\ + \032 preference is used, the same confirmation will be requested for\n\ + \032 top-level paths. (At the moment, this flag only affects the text\n\ + \032 user interface.) See also the mountpoint preference.\n\ + \032 confirmmerge\n\ + \032 Setting this preference causes both the text and graphical\n\ + \032 interfaces to ask the user if the results of a merge command may\n\ + \032 be committed to the replica or not. Since the merge command\n\ + \032 works on temporary files, the user can then cancel all the\n\ + \032 effects of applying the merge if it turns out that the result is\n\ + \032 not satisfactory. In batch-mode, this preference has no effect.\n\ + \032 Default is false.\n\ + \032 contactquietly\n\ + \032 If this flag is set, Unison will skip displaying the `Contacting\n\ + \032 server' message (which some users find annoying) during startup.\n\ + \032 copymax n\n\ + \032 A number indicating how many instances of the external copying\n\ + \032 utility Unison is allowed to run simultaneously (default to 1).\n\ + \032 copyonconflict\n\ + \032 When this flag is set, Unison will make a copy of files that\n\ + \032 would otherwise be overwritten or deleted in case of conflicting\n\ + \032 changes, and more generally whenever the default behavior is\n\ + \032 overriden. This makes it possible to automatically resolve\n\ + \032 conflicts in a fairly safe way when synchronizing continuously,\n\ + \032 in combination with the -repeat watch and -prefer newer\n\ + \032 preferences.\n\ + \032 copyprog xxx\n\ + \032 A string giving the name of an external program that can be used\n\ + \032 to copy large files efficiently (plus command-line switches\n\ + \032 telling it to copy files in-place). The default setting invokes\n\ + \032 rsync with appropriate options--most users should not need to\n\ + \032 change it.\n\ + \032 copyprogrest xxx\n\ + \032 A variant of copyprog that names an external program that should\n\ + \032 be used to continue the transfer of a large file that has\n\ + \032 already been partially transferred. Typically, copyprogrest will\n\ + \032 just be copyprog with one extra option (e.g., -partial, for\n\ + \032 rsync). The default setting invokes rsync with appropriate\n\ + \032 options--most users should not need to change it.\n\ + \032 copyquoterem xxx\n\ + \032 When set to true, this flag causes Unison to add an extra layer\n\ + \032 of quotes to the remote path passed to the external copy\n\ + \032 program. This is needed by rsync, for example, which internally\n\ + \032 uses an ssh connection requiring an extra level of quoting for\n\ + \032 paths containing spaces. When this flag is set to default, extra\n\ + \032 quotes are added if the value of copyprog contains the string\n\ + \032 rsync.\n\ + \032 copythreshold n\n\ + \032 A number indicating above what filesize (in kilobytes) Unison\n\ + \032 should use the external copying utility specified by copyprog.\n\ + \032 Specifying 0 will cause all copies to use the external program;\n\ + \032 a negative number will prevent any files from using it. The\n\ + \032 default is -1. See the section \"Making Unison Faster on Large\n\ + \032 Files\" for more information.\n\ + \032 debug xxx\n\ + \032 This preference is used to make Unison print various sorts of\n\ + \032 information about what it is doing internally on the standard\n\ + \032 error stream. It can be used many times, each time with the name\n\ + \032 of a module for which debugging information should be printed.\n\ + \032 Possible arguments for debug can be found by looking for calls\n\ + \032 to Util.debug in the sources (using, e.g., grep). Setting -debug\n\ + \032 all causes information from all modules to be printed (this mode\n\ + \032 of usage is the first one to try, if you are trying to\n\ + \032 understand something that Unison seems to be doing wrong);\n\ + \032 -debug verbose turns on some additional debugging output from\n\ + \032 some modules (e.g., it will show exactly what bytes are being\n\ + \032 sent across the network).\n\ + \032 diff xxx\n\ + \032 This preference can be used to control the name and command-line\n\ + \032 arguments of the system utility used to generate displays of\n\ + \032 file differences. The default is `diff -u CURRENT2 CURRENT1'. If\n\ + \032 the value of this preference contains the substrings CURRENT1\n\ + \032 and CURRENT2, these will be replaced by the names of the files\n\ + \032 to be diffed. If not, the two filenames will be appended to the\n\ + \032 command. In both cases, the filenames are suitably quoted.\n\ + \032 doc xxx\n\ + \032 The command-line argument -doc secname causes unison to display\n\ + \032 section secname of the manual on the standard output and then\n\ + \032 exit. Use -doc all to display the whole manual, which includes\n\ + \032 exactly the same information as the printed and HTML manuals,\n\ + \032 modulo formatting. Use -doc topics to obtain a list of the names\n\ + \032 of the various sections that can be printed.\n\ + \032 dontchmod\n\ + \032 By default, Unison uses the 'chmod' system call to set the\n\ + \032 permission bits of files after it has copied them. But in some\n\ + \032 circumstances (and under some operating systems), the chmod call\n\ + \032 always fails. Setting this preference completely prevents Unison\n\ + \032 from ever calling chmod.\n\ + \032 dumbtty\n\ + \032 When set to true, this flag makes the text mode user interface\n\ + \032 avoid trying to change any of the terminal settings. (Normally,\n\ + \032 Unison puts the terminal in `raw mode', so that it can do things\n\ + \032 like overwriting the current line.) This is useful, for example,\n\ + \032 when Unison runs in a shell inside of Emacs.\n\ + \032 When dumbtty is set, commands to the user interface need to be\n\ + \032 followed by a carriage return before Unison will execute them.\n\ + \032 (When it is off, Unison recognizes keystrokes as soon as they\n\ + \032 are typed.)\n\ + \032 This preference has no effect on the graphical user interface.\n\ + \032 dumparchives\n\ + \032 When this preference is set, Unison will create a file\n\ + \032 unison.dump on each host, containing a text summary of the\n\ + \032 archive, immediately after loading it.\n\ + \032 fastcheck xxx\n\ + \032 When this preference is set to true, Unison will use the\n\ + \032 modification time and length of a file as a `pseudo inode\n\ + \032 number' when scanning replicas for updates, instead of reading\n\ + \032 the full contents of every file. (This does not apply to the\n\ + \032 very first run, when Unison will always scan all files regarless\n\ + \032 of this switch). Under Windows, this may cause Unison to miss\n\ + \032 propagating an update if the modification time and length of the\n\ + \032 file are both unchanged by the update. However, Unison will\n\ + \032 never overwrite such an update with a change from the other\n\ + \032 replica, since it always does a safe check for updates just\n\ + \032 before propagating a change. Thus, it is reasonable to use this\n\ + \032 switch under Windows most of the time and occasionally run\n\ + \032 Unison once with fastcheck set to false, if you are worried that\n\ + \032 Unison may have overlooked an update. For backward\n\ + \032 compatibility, yes, no, and default can be used in place of\n\ + \032 true, false, and auto. See the section \"Fast Checking\" for more\n\ + \032 information.\n\ + \032 fastercheckUNSAFE\n\ + \032 THIS FEATURE IS STILL EXPERIMENTAL AND SHOULD BE USED WITH\n\ + \032 EXTREME CAUTION.\n\ + \032 When this flag is set to true, Unison will compute a\n\ + \032 'pseudo-fingerprint' the first time it sees a file (either\n\ + \032 because the file is new or because Unison is running for the\n\ + \032 first time). This enormously speeds update detection, but it\n\ + \032 must be used with care, as it can cause Unison to miss\n\ + \032 conflicts: If a given path in the filesystem contains files on\n\ + \032 both sides that Unison has not yet seen, and if those files have\n\ + \032 the same length but different contents, then Unison will not\n\ + \032 notice the presence of a conflict. If, later, one of the files\n\ + \032 is changed, the changed file will be propagated, overwriting the\n\ + \032 other.\n\ + \032 Moreover, even when the files are initially identical, setting\n\ + \032 this flag can lead to potentially confusing behavior: if a newly\n\ + \032 created file is later touched without being modified, Unison\n\ + \032 will treat this conservatively as a potential change (since it\n\ + \032 has no record of the earlier contents) and show it as needing to\n\ + \032 be propagated to the other replica.\n\ + \032 Most users should leave this flag off - the small time savings\n\ + \032 of not fingerprinting new files is not worth the cost in terms\n\ + \032 of safety. However, it can be very useful for power users with\n\ + \032 huge replicas that are known to be already synchronized (e.g.,\n\ + \032 because one replica is a newly created duplicate of the other,\n\ + \032 or because they have previously been synchronized with Unison\n\ + \032 but Unison's archives need to be rebuilt). In such situations,\n\ + \032 it is recommended that this flag be set only for the initial run\n\ + \032 of Unison, so that new archives can be created quickly, and then\n\ + \032 turned off for normal use.\n\ + \032 fat\n\ + \032 When this is set to true, Unison will use appropriate options to\n\ + \032 synchronize efficiently and without error a replica located on a\n\ + \032 FAT filesystem on a non-Windows machine: do not synchronize\n\ + \032 permissions (perms = 0); never use chmod ( t dontchmod = true);\n\ + \032 treat filenames as case insensitive (ignorecase = true); do not\n\ + \032 attempt to synchronize symbolic links (links = false); ignore\n\ + \032 inode number changes when detecting updates (ignoreinodenumbers\n\ + \032 = true). Any of these change can be overridden by explicitly\n\ + \032 setting the corresponding preference in the profile.\n\ + \032 follow xxx\n\ + \032 Including the preference -follow pathspec causes Unison to treat\n\ + \032 symbolic links matching pathspec as `invisible' and behave as if\n\ + \032 the object pointed to by the link had appeared literally at this\n\ + \032 position in the replica. See the section \"Symbolic Links\" for\n\ + \032 more details. The syntax of pathspec is described in the section\n\ + \032 \"Path Specification\" .\n\ + \032 force xxx\n\ + \032 Including the preference -force root causes Unison to resolve\n\ + \032 all differences (even non-conflicting changes) in favor of root.\n\ + \032 This effectively changes Unison from a synchronizer into a\n\ + \032 mirroring utility.\n\ + \032 You can also specify -force newer (or -force older) to force\n\ + \032 Unison to choose the file with the later (earlier) modtime. In\n\ + \032 this case, the -times preference must also be enabled.\n\ + \032 This preference is overridden by the forcepartial preference.\n\ + \032 This preference should be used only if you are sure you know\n\ + \032 what you are doing!\n\ + \032 forcepartial xxx\n\ + \032 Including the preference forcepartial = PATHSPEC -> root causes\n\ + \032 Unison to resolve all differences (even non-conflicting changes)\n\ + \032 in favor of root for the files in PATHSPEC (see the section\n\ + \032 \"Path Specification\" for more information). This effectively\n\ + \032 changes Unison from a synchronizer into a mirroring utility.\n\ + \032 You can also specify forcepartial PATHSPEC -> newer (or\n\ + \032 forcepartial PATHSPEC older) to force Unison to choose the file\n\ + \032 with the later (earlier) modtime. In this case, the -times\n\ + \032 preference must also be enabled.\n\ + \032 This preference should be used only if you are sure you know\n\ + \032 what you are doing!\n\ + \032 group\n\ + \032 When this flag is set to true, the group attributes of the files\n\ + \032 are synchronized. Whether the group names or the group\n\ + \032 identifiers are synchronized depends on the preference numerids.\n\ + \032 halfduplex\n\ + \032 When this flag is set to true, Unison network communication is\n\ + \032 forced to be half duplex (the client and the server never\n\ + \032 simultaneously emit data). If you experience unstabilities with\n\ + \032 your network link, this may help. The communication is always\n\ + \032 half-duplex when synchronizing with a Windows machine due to a\n\ + \032 limitation of Unison current implementation that could result in\n\ + \032 a deadlock.\n\ + \032 height n\n\ + \032 Used to set the height (in lines) of the main window in the\n\ + \032 graphical user interface.\n\ + \032 ignore xxx\n\ + \032 Including the preference -ignore pathspec causes Unison to\n\ + \032 completely ignore paths that match pathspec (as well as their\n\ + \032 children). This is useful for avoiding synchronizing temporary\n\ + \032 files, object files, etc. The syntax of pathspec is described in\n\ + \032 the section \"Path Specification\" , and further details on\n\ + \032 ignoring paths is found in the section \"Ignoring Paths\" .\n\ + \032 ignorearchives\n\ + \032 When this preference is set, Unison will ignore any existing\n\ + \032 archive files and behave as though it were being run for the\n\ + \032 first time on these replicas. It is not a good idea to set this\n\ + \032 option in a profile: it is intended for command-line use.\n\ + \032 ignorecase xxx\n\ + \032 When set to true, this flag causes Unison to treat filenames as\n\ + \032 case insensitive--i.e., files in the two replicas whose names\n\ + \032 differ in (upper- and lower-case) `spelling' are treated as the\n\ + \032 same file. When the flag is set to false, Unison will treat all\n\ + \032 filenames as case sensitive. Ordinarily, when the flag is set to\n\ + \032 default, filenames are automatically taken to be\n\ + \032 case-insensitive if either host is running Windows or OSX. In\n\ + \032 rare circumstances it may be useful to set the flag manually.\n\ + \032 ignoreinodenumbers\n\ + \032 When set to true, this preference makes Unison not take\n\ + \032 advantage of inode numbers during fast update detection. This\n\ + \032 switch should be used with care, as it is less safe than the\n\ + \032 standard update detection method, but it can be useful with\n\ + \032 filesystems which do not support inode numbers.\n\ + \032 ignorelocks\n\ + \032 When this preference is set, Unison will ignore any lock files\n\ + \032 that may have been left over from a previous run of Unison that\n\ + \032 was interrupted while reading or writing archive files; by\n\ + \032 default, when Unison sees these lock files it will stop and\n\ + \032 request manual intervention. This option should be set only if\n\ + \032 you are positive that no other instance of Unison might be\n\ + \032 concurrently accessing the same archive files (e.g., because\n\ + \032 there was only one instance of unison running and it has just\n\ + \032 crashed or you have just killed it). It is probably not a good\n\ + \032 idea to set this option in a profile: it is intended for\n\ + \032 command-line use.\n\ + \032 ignorenot xxx\n\ + \032 This preference overrides the preference ignore. It gives a list\n\ + \032 of patterns (in the same format as ignore) for paths that should\n\ + \032 definitely not be ignored, whether or not they happen to match\n\ + \032 one of the ignore patterns.\n\ + \032 Note that the semantics of ignore and ignorenot is a little\n\ + \032 counter-intuitive. When detecting updates, Unison examines paths\n\ + \032 in depth-first order, starting from the roots of the replicas\n\ + \032 and working downwards. Before examining each path, it checks\n\ + \032 whether it matches ignore and does not match ignorenot; in this\n\ + \032 case it skips this path and all its descendants. This means\n\ + \032 that, if some parent of a given path matches an ignore pattern,\n\ + \032 then it will be skipped even if the path itself matches an\n\ + \032 ignorenot pattern. In particular, putting ignore = Path * in\n\ + \032 your profile and then using ignorenot to select particular paths\n\ + \032 to be synchronized will not work. Instead, you should use the\n\ + \032 path preference to choose particular paths to synchronize.\n\ + \032 immutable xxx\n\ + \032 This preference specifies paths for directories whose immediate\n\ + \032 children are all immutable files -- i.e., once a file has been\n\ + \032 created, its contents never changes. When scanning for updates,\n\ + \032 Unison does not check whether these files have been modified;\n\ + \032 this can speed update detection significantly (in particular,\n\ + \032 for mail directories).\n\ + \032 immutablenot xxx\n\ + \032 This preference overrides immutable.\n\ + \032 key xxx\n\ + \032 Used in a profile to define a numeric key (0-9) that can be used\n\ + \032 in the graphical user interface to switch immediately to this\n\ + \032 profile.\n\ + \032 killserver\n\ + \032 When set to true, this flag causes Unison to kill the remote\n\ + \032 server process when the synchronization is finished. This\n\ + \032 behavior is the default for ssh connections, so this preference\n\ + \032 is not normally needed when running over ssh; it is provided so\n\ + \032 that socket-mode servers can be killed off after a single run of\n\ + \032 Unison, rather than waiting to accept future connections. (Some\n\ + \032 users prefer to start a remote socket server for each run of\n\ + \032 Unison, rather than leaving one running all the time.)\n\ + \032 label xxx\n\ + \032 Used in a profile to provide a descriptive string documenting\n\ + \032 its settings. (This is useful for users that switch between\n\ + \032 several profiles, especially using the `fast switch' feature of\n\ + \032 the graphical user interface.)\n\ + \032 links xxx\n\ + \032 When set to true, this flag causes Unison to synchronize\n\ + \032 symbolic links. When the flag is set to false, symbolic links\n\ + \032 will result in an error during update detection. Ordinarily,\n\ + \032 when the flag is set to default, symbolic links are synchronized\n\ + \032 except when one of the hosts is running Windows. In rare\n\ + \032 circumstances it may be useful to set the flag manually.\n\ + \032 log\n\ + \032 When this flag is set, Unison will log all changes to the\n\ + \032 filesystems on a file.\n\ + \032 logfile xxx\n\ + \032 By default, logging messages will be appended to the file\n\ + \032 unison.log in your HOME directory. Set this preference if you\n\ + \032 prefer another file.\n\ + \032 maxbackups n\n\ + \032 This preference specifies the number of backup versions that\n\ + \032 will be kept by unison, for each path that matches the predicate\n\ + \032 backup. The default is 2.\n\ + \032 maxerrors n\n\ + \032 This preference controls after how many errors Unison aborts a\n\ + \032 directory transfer. Setting it to a large number allows Unison\n\ + \032 to transfer most of a directory even when some files fail to be\n\ + \032 copied. The default is 1. If the preference is set too high,\n\ + \032 Unison may take a long time to abort in case of repeated\n\ + \032 failures (for instance, when the disk is full).\n\ + \032 maxsizethreshold n\n\ + \032 A number indicating above what filesize (in kilobytes) Unison\n\ + \032 should flag a conflict instead of transferring the file. This\n\ + \032 conflict remains even in the presence of force or prefer\n\ + \032 options. A negative number will allow every transfer\n\ + \032 independently of the size. The default is -1.\n\ + \032 maxthreads n\n\ + \032 This preference controls how much concurrency is allowed during\n\ + \032 the transport phase. Normally, it should be set reasonably high\n\ + \032 to maximize performance, but when Unison is used over a\n\ + \032 low-bandwidth link it may be helpful to set it lower (e.g. to 1)\n\ + \032 so that Unison doesn't soak up all the available bandwidth. The\n\ + \032 default is the special value 0, which mean 20 threads when file\n\ + \032 content streaming is desactivated and 1000 threads when it is\n\ + \032 activated.\n\ + \032 merge xxx\n\ + \032 This preference can be used to run a merge program which will\n\ + \032 create a new version for each of the files and the backup, with\n\ + \032 the last backup and the both replicas. Setting the merge\n\ + \032 preference for a path will also cause this path to be backed up,\n\ + \032 just like t backup. The syntax of pathspec>cmd is described in\n\ + \032 the section \"Path Specification\" , and further details on\n\ + \032 Merging functions are present in the section \"Merging files\" .\n\ + \032 mountpoint xxx\n\ + \032 Including the preference -mountpoint PATH causes Unison to\n\ + \032 double-check, at the end of update detection, that PATH exists\n\ + \032 and abort if it does not. This is useful when Unison is used to\n\ + \032 synchronize removable media. This preference can be given more\n\ + \032 than once. See the section \"Mount Points\" .\n\ + \032 nocreation xxx\n\ + \032 Including the preference -nocreation root prevents Unison from\n\ + \032 performing any file creation on root root.\n\ + \032 This preference can be included twice, once for each root, if\n\ + \032 you want to prevent any creation.\n\ + \032 nocreationpartial xxx\n\ + \032 Including the preference nocreationpartial = PATHSPEC -> root\n\ + \032 prevents Unison from performing any file creation in PATHSPEC on\n\ + \032 root root (see the section \"Path Specification\" for more\n\ + \032 information). It is recommended to use BelowPath patterns when\n\ + \032 selecting a directory and all its contents.\n\ + \032 nodeletion xxx\n\ + \032 Including the preference -nodeletion root prevents Unison from\n\ + \032 performing any file deletion on root root.\n\ + \032 This preference can be included twice, once for each root, if\n\ + \032 you want to prevent any deletion.\n\ + \032 nodeletionpartial xxx\n\ + \032 Including the preference nodeletionpartial = PATHSPEC -> root\n\ + \032 prevents Unison from performing any file deletion in PATHSPEC on\n\ + \032 root root (see the section \"Path Specification\" for more\n\ + \032 information). It is recommended to use BelowPath patterns when\n\ + \032 selecting a directory and all its contents.\n\ + \032 noupdate xxx\n\ + \032 Including the preference -noupdate root prevents Unison from\n\ + \032 performing any file update or deletion on root root.\n\ + \032 This preference can be included twice, once for each root, if\n\ + \032 you want to prevent any update.\n\ + \032 noupdatepartial xxx\n\ + \032 Including the preference noupdatepartial = PATHSPEC -> root\n\ + \032 prevents Unison from performing any file update or deletion in\n\ + \032 PATHSPEC on root root (see the section \"Path Specification\" for\n\ + \032 more information). It is recommended to use BelowPath patterns\n\ + \032 when selecting a directory and all its contents.\n\ + \032 numericids\n\ + \032 When this flag is set to true, groups and users are synchronized\n\ + \032 numerically, rather than by name.\n\ + \032 The special uid 0 and the special group 0 are never mapped via\n\ + \032 user/group names even if this preference is not set.\n\ + \032 owner\n\ + \032 When this flag is set to true, the owner attributes of the files\n\ + \032 are synchronized. Whether the owner names or the owner\n\ + \032 identifiers are synchronizeddepends on the preference numerids.\n\ + \032 path xxx\n\ + \032 When no path preference is given, Unison will simply synchronize\n\ + \032 the two entire replicas, beginning from the given pair of roots.\n\ + \032 If one or more path preferences are given, then Unison will\n\ + \032 synchronize only these paths and their children. (This is useful\n\ + \032 for doing a fast sync of just one directory, for example.) Note\n\ + \032 that path preferences are intepreted literally--they are not\n\ + \032 regular expressions.\n\ + \032 perms n\n\ + \032 The integer value of this preference is a mask indicating which\n\ + \032 permission bits should be synchronized. It is set by default to\n\ + \032 0o1777: all bits but the set-uid and set-gid bits are\n\ + \032 synchronised (synchronizing theses latter bits can be a security\n\ + \032 hazard). If you want to synchronize all bits, you can set the\n\ + \032 value of this preference to -1. If one of the replica is on a\n\ + \032 FAT [Windows] filesystem, you should consider using the t fat\n\ + \032 preference instead of this preference. If you need Unison not to\n\ + \032 set permissions at all, set the value of this preference to 0\n\ + \032 and set the preference t dontchmod to t true.\n\ + \032 prefer xxx\n\ + \032 Including the preference -prefer root causes Unison always to\n\ + \032 resolve conflicts in favor of root, rather than asking for\n\ + \032 guidance from the user. (The syntax of root is the same as for\n\ + \032 the root preference, plus the special values newer and older.)\n\ + \032 This preference is overridden by the preferpartial preference.\n\ + \032 This preference should be used only if you are sure you know\n\ + \032 what you are doing!\n\ + \032 preferpartial xxx\n\ + \032 Including the preference preferpartial = PATHSPEC -> root causes\n\ + \032 Unison always to resolve conflicts in favor of root, rather than\n\ + \032 asking for guidance from the user, for the files in PATHSPEC\n\ + \032 (see the section \"Path Specification\" for more information).\n\ + \032 (The syntax of root is the same as for the root preference, plus\n\ + \032 the special values newer and older.)\n\ + \032 This preference should be used only if you are sure you know\n\ + \032 what you are doing!\n\ + \032 repeat xxx\n\ + \032 Setting this preference causes the text-mode interface to\n\ + \032 synchronize repeatedly, rather than doing it just once and\n\ + \032 stopping. If the argument is a number, Unison will pause for\n\ + \032 that many seconds before beginning again. When the argument is\n\ + \032 watch, Unison relies on an external file monitoring process to\n\ + \032 synchronize whenever a change happens.\n\ + \032 retry n\n\ + \032 Setting this preference causes the text-mode interface to try\n\ + \032 again to synchronize updated paths where synchronization fails.\n\ + \032 Each such path will be tried N times.\n\ + \032 root xxx\n\ + \032 Each use of this preference names the root of one of the\n\ + \032 replicas for Unison to synchronize. Exactly two roots are\n\ + \032 needed, so normal modes of usage are either to give two values\n\ + \032 for root in the profile, or to give no values in the profile and\n\ + \032 provide two on the command line. Details of the syntax of roots\n\ + \032 can be found in the section \"Roots\" .\n\ + \032 The two roots can be given in either order; Unison will sort\n\ + \032 them into a canonical order before doing anything else. It also\n\ + \032 tries to `canonize' the machine names and paths that appear in\n\ + \032 the roots, so that, if Unison is invoked later with a slightly\n\ + \032 different name for the same root, it will be able to locate the\n\ + \032 correct archives.\n\ + \032 rootalias xxx\n\ + \032 When calculating the name of the archive files for a given pair\n\ + \032 of roots, Unison replaces any roots matching the left-hand side\n\ + \032 of any rootalias rule by the corresponding right-hand side.\n\ + \032 rshargs xxx\n\ + \032 The string value of this preference will be passed as additional\n\ + \032 arguments (besides the host name and the name of the Unison\n\ + \032 executable on the remote system) to the rsh command used to\n\ + \032 invoke the remote server.\n\ + \032 rshcmd xxx\n\ + \032 This preference can be used to explicitly set the name of the\n\ + \032 rsh executable (e.g., giving a full path name), if necessary.\n\ + \032 rsrc xxx\n\ + \032 When set to true, this flag causes Unison to synchronize\n\ + \032 resource forks and HFS meta-data. On filesystems that do not\n\ + \032 natively support resource forks, this data is stored in\n\ + \032 Carbon-compatible ._ AppleDouble files. When the flag is set to\n\ + \032 false, Unison will not synchronize these data. Ordinarily, the\n\ + \032 flag is set to default, and these data are automatically\n\ + \032 synchronized if either host is running OSX. In rare\n\ + \032 circumstances it is useful to set the flag manually.\n\ + \032 rsync\n\ + \032 Unison uses the 'rsync algorithm' for 'diffs-only' transfer of\n\ + \032 updates to large files. Setting this flag to false makes Unison\n\ + \032 use whole-file transfers instead. Under normal circumstances,\n\ + \032 there is no reason to do this, but if you are having trouble\n\ + \032 with repeated 'rsync failure' errors, setting it to false should\n\ + \032 permit you to synchronize the offending files.\n\ + \032 selftest\n\ + \032 Run internal tests and exit. This option is mostly for\n\ + \032 developers and must be used carefully: in particular, it will\n\ + \032 delete the contents of both roots, so that it can install its\n\ + \032 own files for testing. This flag only makes sense on the command\n\ + \032 line. When it is provided, no preference file is read: all\n\ + \032 preferences must be specified on thecommand line. Also, since\n\ + \032 the self-test procedure involves overwriting the roots and\n\ + \032 backup directory, the names of the roots and of the backupdir\n\ + \032 preference must include the string \"test\" or else the tests will\n\ + \032 be aborted. (If these are not given on the command line, dummy\n\ + \032 subdirectories in the current directory will be created\n\ + \032 automatically.)\n\ + \032 servercmd xxx\n\ + \032 This preference can be used to explicitly set the name of the\n\ + \032 Unison executable on the remote server (e.g., giving a full path\n\ + \032 name), if necessary.\n\ + \032 showarchive\n\ + \032 When this preference is set, Unison will print out the 'true\n\ + \032 names'of the roots, in the same form as is expected by the\n\ + \032 rootaliaspreference.\n\ + \032 silent\n\ + \032 When this preference is set to true, the textual user interface\n\ + \032 will print nothing at all, except in the case of errors. Setting\n\ + \032 silent to true automatically sets the batch preference to true.\n\ + \032 sortbysize\n\ + \032 When this flag is set, the user interface will list changed\n\ + \032 files by size (smallest first) rather than by name. This is\n\ + \032 useful, for example, for synchronizing over slow links, since it\n\ + \032 puts very large files at the end of the list where they will not\n\ + \032 prevent smaller files from being transferred quickly.\n\ + \032 This preference (as well as the other sorting flags, but not the\n\ + \032 sorting preferences that require patterns as arguments) can be\n\ + \032 set interactively and temporarily using the 'Sort' menu in the\n\ + \032 graphical user interface.\n\ + \032 sortfirst xxx\n\ + \032 Each argument to sortfirst is a pattern pathspec, which\n\ + \032 describes a set of paths. Files matching any of these patterns\n\ + \032 will be listed first in the user interface. The syntax of\n\ + \032 pathspec is described in the section \"Path Specification\" .\n\ + \032 sortlast xxx\n\ + \032 Similar to sortfirst, except that files matching one of these\n\ + \032 patterns will be listed at the very end.\n\ + \032 sortnewfirst\n\ + \032 When this flag is set, the user interface will list newly\n\ + \032 created files before all others. This is useful, for example,\n\ + \032 for checking that newly created files are not `junk', i.e., ones\n\ + \032 that should be ignored or deleted rather than synchronized.\n\ + \032 sshargs xxx\n\ + \032 The string value of this preference will be passed as additional\n\ + \032 arguments (besides the host name and the name of the Unison\n\ + \032 executable on the remote system) to the ssh command used to\n\ + \032 invoke the remote server.\n\ + \032 sshcmd xxx\n\ + \032 This preference can be used to explicitly set the name of the\n\ + \032 ssh executable (e.g., giving a full path name), if necessary.\n\ + \032 sshversion xxx\n\ + \032 This preference can be used to control which version of ssh\n\ + \032 should be used to connect to the server. Legal values are 1 and\n\ + \032 2, which will cause unison to try to use ssh1 orssh2 instead of\n\ + \032 just ssh to invoke ssh. The default value is empty, which will\n\ + \032 make unison use whatever version of ssh is installed as the\n\ + \032 default `ssh' command.\n\ + \032 stream\n\ + \032 When this preference is set, Unison will use an experimental\n\ + \032 streaming protocol for transferring file contents more\n\ + \032 efficiently. The default value is true.\n\ + \032 terse\n\ + \032 When this preference is set to true, the user interface will not\n\ + \032 print status messages.\n\ + \032 testserver\n\ + \032 Setting this flag on the command line causes Unison to attempt\n\ + \032 to connect to the remote server and, if successful, print a\n\ + \032 message and immediately exit. Useful for debugging installation\n\ + \032 problems. Should not be set in preference files.\n\ + \032 times\n\ + \032 When this flag is set to true, file modification times (but not\n\ + \032 directory modtimes) are propagated.\n\ + \032 ui xxx\n\ + \032 This preference selects either the graphical or the textual user\n\ + \032 interface. Legal values are graphic or text.\n\ + \032 Because this option is processed specially during Unison's\n\ + \032 start-up sequence, it can only be used on the command line. In\n\ + \032 preference files it has no effect.\n\ + \032 If the Unison executable was compiled with only a textual\n\ + \032 interface, this option has no effect. (The pre-compiled binaries\n\ + \032 are all compiled with both interfaces available.)\n\ + \032 unicode xxx\n\ + \032 When set to true, this flag causes Unison to perform case\n\ + \032 insensitive file comparisons assuming Unicode encoding. This is\n\ + \032 the default. When the flag is set to false, a Latin 1 encoding\n\ + \032 is assumed. When Unison runs in case sensitive mode, this flag\n\ + \032 only makes a difference if one host is running Windows or Mac OS\n\ + \032 X. Under Windows, the flag selects between using the Unicode or\n\ + \032 8bit Windows API for accessing the filesystem. Under Mac OS X,\n\ + \032 it selects whether comparing the filenames up to decomposition,\n\ + \032 or byte-for-byte.\n\ + \032 version\n\ + \032 Print the current version number and exit. (This option only\n\ + \032 makes sense on the command line.)\n\ + \032 watch\n\ + \032 Unison uses a file watcher process, when available, to detect\n\ + \032 filesystem changes; this is used to speed up update detection,\n\ + \032 and for continuous synchronization (-repeat watch preference.\n\ + \032 Setting this flag to false disable the use of this process.\n\ + \032 xferbycopying\n\ + \032 When this preference is set, Unison will try to avoid\n\ + \032 transferring file contents across the network by recognizing\n\ + \032 when a file with the required contents already exists in the\n\ + \032 target replica. This usually allows file moves to be propagated\n\ + \032 very quickly. The default value istrue.\n\ + \n\ + Profiles\n\ + \n\ + \032 A profile is a text file that specifies permanent settings for roots,\n\ + \032 paths, ignore patterns, and other preferences, so that they do not need\n\ + \032 to be typed at the command line every time Unison is run. Profiles\n\ + \032 should reside in the .unison directory on the client machine. If Unison\n\ + \032 is started with just one argument name on the command line, it looks\n\ + \032 for a profile called name.prf in the .unison directory. If it is\n\ + \032 started with no arguments, it scans the .unison directory for files\n\ + \032 whose names end in .prf and offers a menu (provided that the Unison\n\ + \032 executable is compiled with the graphical user interface). If a file\n\ + \032 named default.prf is found, its settings will be offered as the default\n\ + \032 choices.\n\ + \n\ + \032 To set the value of a preference p permanently, add to the appropriate\n\ + \032 profile a line of the form\n\ + \032 p = true\n\ + \n\ + \032 for a boolean flag or\n\ + \032 p = \n\ + \n\ + \032 for a preference of any other type.\n\ + \n\ + \032 Whitespaces around p and xxx are ignored. A profile may also include\n\ + \032 blank lines and lines beginning with #; both are ignored.\n\ + \n\ + \032 When Unison starts, it first reads the profile and then the command\n\ + \032 line, so command-line options will override settings from the profile.\n\ + \n\ + \032 Profiles may also include lines of the form include name, which will\n\ + \032 cause the file name (or name.prf, if name does not exist in the .unison\n\ + \032 directory) to be read at the point, and included as if its contents,\n\ + \032 instead of the include line, was part of the profile. Include lines\n\ + \032 allows settings common to several profiles to be stored in one place.\n\ + \n\ + \032 A profile may include a preference `label = desc' to provide a\n\ + \032 description of the options selected in this profile. The string desc is\n\ + \032 listed along with the profile name in the profile selection dialog, and\n\ + \032 displayed in the top-right corner of the main Unison window in the\n\ + \032 graphical user interface.\n\ + \n\ + \032 The graphical user-interface also supports one-key shortcuts for\n\ + \032 commonly used profiles. If a profile contains a preference of the form\n\ + \032 `key = n', where n is a single digit, then pressing this digit key will\n\ + \032 cause Unison to immediately switch to this profile and begin\n\ + \032 synchronization again from scratch. In this case, all actions that have\n\ + \032 been selected for a set of changes currently being displayed will be\n\ + \032 discarded.\n\ + \n\ + Sample Profiles\n\ + \n\ + A Minimal Profile\n\ + \n\ + \032 Here is a very minimal profile file, such as might be found in\n\ + \032 .unison/default.prf:\n\ + \032 # Roots of the synchronization\n\ + \032 root = /home/bcpierce\n\ + \032 root = ssh://saul//home/bcpierce\n\ + \n\ + \032 # Paths to synchronize\n\ + \032 path = current\n\ + \032 path = common\n\ + \032 path = .netscape/bookmarks.html\n\ + \n\ + A Basic Profile\n\ + \n\ + \032 Here is a more sophisticated profile, illustrating some other useful\n\ + \032 features.\n\ + \032 # Roots of the synchronization\n\ + \032 root = /home/bcpierce\n\ + \032 root = ssh://saul//home/bcpierce\n\ + \n\ + \032 # Paths to synchronize\n\ + \032 path = current\n\ + \032 path = common\n\ + \032 path = .netscape/bookmarks.html\n\ + \n\ + \032 # Some regexps specifying names and paths to ignore\n\ + \032 ignore = Name temp.*\n\ + \032 ignore = Name *~\n\ + \032 ignore = Name .*~\n\ + \032 ignore = Path */pilot/backup/Archive_*\n\ + \032 ignore = Name *.o\n\ + \032 ignore = Name *.tmp\n\ + \n\ + \032 # Window height\n\ + \032 height = 37\n\ + \n\ + \032 # Keep a backup copy of every file in a central location\n\ + \032 backuplocation = central\n\ + \032 backupdir = /home/bcpierce/backups\n\ + \032 backup = Name *\n\ + \032 backupprefix = $VERSION.\n\ + \032 backupsuffix =\n\ + \n\ + \032 # Use this command for displaying diffs\n\ + \032 diff = diff -y -W 79 --suppress-common-lines\n\ + \n\ + \032 # Log actions to the terminal\n\ + \032 log = true\n\ + \n\ + A Power-User Profile\n\ + \n\ + \032 When Unison is used with large replicas, it is often convenient to be\n\ + \032 able to synchronize just a part of the replicas on a given run (this\n\ + \032 saves the time of detecting updates in the other parts). This can be\n\ + \032 accomplished by splitting up the profile into several parts -- a common\n\ + \032 part containing most of the preference settings, plus one \"top-level\"\n\ + \032 file for each set of paths that need to be synchronized. (The include\n\ + \032 mechanism can also be used to allow the same set of preference settings\n\ + \032 to be used with different roots.)\n\ + \n\ + \032 The collection of profiles implementing this scheme might look as\n\ + \032 follows. The file default.prf is empty except for an include directive:\n\ + \032 # Include the contents of the file common\n\ + \032 include common\n\ + \n\ + \032 Note that the name of the common file is common, not common.prf; this\n\ + \032 prevents Unison from offering common as one of the list of profiles in\n\ + \032 the opening dialog (in the graphical UI).\n\ + \n\ + \032 The file common contains the real preferences:\n\ + \032 # Roots of the synchronization\n\ + \032 root = /home/bcpierce\n\ + \032 root = ssh://saul//home/bcpierce\n\ + \n\ + \032 # (... other preferences ...)\n\ + \n\ + \032 # If any new preferences are added by Unison (e.g. 'ignore'\n\ + \032 # preferences added via the graphical UI), then store them in the\n\ + \032 # file 'common' rathen than in the top-level preference file\n\ + \032 addprefsto = common\n\ + \n\ + \032 # Names and paths to ignore:\n\ + \032 ignore = Name temp.*\n\ + \032 ignore = Name *~\n\ + \032 ignore = Name .*~\n\ + \032 ignore = Path */pilot/backup/Archive_*\n\ + \032 ignore = Name *.o\n\ + \032 ignore = Name *.tmp\n\ + \n\ + \032 Note that there are no path preferences in common. This means that,\n\ + \032 when we invoke Unison with the default profile (e.g., by typing 'unison\n\ + \032 default' or just 'unison' on the command line), the whole replicas will\n\ + \032 be synchronized. (If we never want to synchronize the whole replicas,\n\ + \032 then default.prf would instead include settings for all the paths that\n\ + \032 are usually synchronized.)\n\ + \n\ + \032 To synchronize just part of the replicas, Unison is invoked with an\n\ + \032 alternate preference file--e.g., doing 'unison workingset', where the\n\ + \032 preference file workingset.prf contains\n\ + \032 path = current/papers\n\ + \032 path = Mail/inbox\n\ + \032 path = Mail/drafts\n\ + \032 include common\n\ + \n\ + \032 causes Unison to synchronize just the listed subdirectories.\n\ + \n\ + \032 The key preference can be used in combination with the graphical UI to\n\ + \032 quickly switch between different sets of paths. For example, if the\n\ + \032 file mail.prf contains\n\ + \032 path = Mail\n\ + \032 batch = true\n\ + \032 key = 2\n\ + \032 include common\n\ + \n\ + \032 then pressing 2 will cause Unison to look for updates in the Mail\n\ + \032 subdirectory and (because the batch flag is set) immediately propagate\n\ + \032 any that it finds.\n\ + \n\ + Keeping Backups\n\ + \n\ + \032 When Unison overwrites a file or directory by propagating a new version\n\ + \032 from the other replica, it can keep the old version around as a backup.\n\ + \032 There are several preferences that control precisely where these\n\ + \032 backups are stored and how they are named.\n\ + \n\ + \032 To enable backups, you must give one or more backup preferences. Each\n\ + \032 of these has the form\n\ + \032 backup = \n\ + \n\ + \032 where has the same form as for the ignore preference. For\n\ + \032 example,\n\ + \032 backup = Name *\n\ + \n\ + \032 causes Unison to keep backups of all files and directories. The\n\ + \032 backupnot preference can be used to give a few exceptions: it specifies\n\ + \032 which files and directories should not be backed up, even if they match\n\ + \032 the backup pathspec.\n\ + \n\ + \032 It is important to note that the pathspec is matched against the path\n\ + \032 that is being updated by Unison, not its descendants. For example, if\n\ + \032 you set backup = Name *.txt and then delete a whole directory named foo\n\ + \032 containing some text files, these files will not be backed up because\n\ + \032 Unison will just check that foo does not match *.txt. Similarly, if the\n\ + \032 directory itself happened to be called foo.txt, then the whole\n\ + \032 directory and all the files in it will be backed up, regardless of\n\ + \032 their names.\n\ + \n\ + \032 Backup files can be stored either centrally or locally. This behavior\n\ + \032 is controlled by the preference backuplocation, whose value must be\n\ + \032 either central or local. (The default is central.)\n\ + \n\ + \032 When backups are stored locally, they are kept in the same directory as\n\ + \032 the original.\n\ + \n\ + \032 When backups are stored centrally, the directory used to hold them is\n\ + \032 controlled by the preference backupdir and the environment variable\n\ + \032 UNISONBACKUPDIR. (The environment variable is checked first.) If\n\ + \032 neither of these are set, then the directory .unison/backup in the\n\ + \032 user's home directory is used.\n\ + \n\ + \032 The preference maxbackups controls how many previous versions of each\n\ + \032 file are kept (including the current version).\n\ + \n\ + \032 By default, backup files are named .bak.VERSION.FILENAME, where\n\ + \032 FILENAME is the original filename and VERSION is the backup number (1\n\ + \032 for the most recent, 2 for the next most recent, etc.). This can be\n\ + \032 changed by setting the preferences backupprefix and/or backupsuffix. If\n\ + \032 desired, backupprefix may include a directory prefix; this can be used\n\ + \032 with backuplocation = local to put all backup files for each directory\n\ + \032 into a single subdirectory. For example, setting\n\ + \032 backuplocation = local\n\ + \032 backupprefix = .unison/$VERSION.\n\ + \032 backupsuffix =\n\ + \n\ + \032 will put all backups in a local subdirectory named .unison. Also, note\n\ + \032 that the string $VERSION in either backupprefix or backupsuffix (it\n\ + \032 must appear in one or the other) is replaced by the version number.\n\ + \032 This can be used, for example, to ensure that backup files retain the\n\ + \032 same extension as the originals.\n\ + \n\ + \032 For backward compatibility, the backups preference is also supported.\n\ + \032 It simply means backup = Name * and backuplocation = local.\n\ + \n\ + Merging Conflicting Versions\n\ + \n\ + \032 Unison can invoke external programs to merge conflicting versions of a\n\ + \032 file. The preference merge controls this process.\n\ + \n\ + \032 The merge preference may be given once or several times in a preference\n\ + \032 file (it can also be given on the command line, of course, but this\n\ + \032 tends to be awkward because of the spaces and special characters\n\ + \032 involved). Each instance of the preference looks like this:\n\ + \032 merge = -> \n\ + \n\ + \032 The here has exactly the same format as for the ignore\n\ + \032 preference (see the section \"Path specification\" ). For example, using\n\ + \032 \"Name *.txt\" as the tells Unison that this command should be\n\ + \032 used whenever a file with extension .txt needs to be merged.\n\ + \n\ + \032 Many external merging programs require as inputs not just the two files\n\ + \032 that need to be merged, but also a file containing the last\n\ + \032 synchronized version. You can ask Unison to keep a copy of the last\n\ + \032 synchronized version for some files using the backupcurrent preference.\n\ + \032 This preference is used in exactly the same way as backup and its\n\ + \032 meaning is similar, except that it causes backups to be kept of the\n\ + \032 current contents of each file after it has been synchronized by Unison,\n\ + \032 rather than the previous contents that Unison overwrote. These backups\n\ + \032 are kept on both replicas in the same place as ordinary backup\n\ + \032 files--i.e. according to the backuplocation and backupdir preferences.\n\ + \032 They are named like the original files if backupslocation is set to\n\ + \032 'central' and otherwise, Unison uses the backupprefix and backupsuffix\n\ + \032 preferences and assumes a version number 000 for these backups.\n\ + \n\ + \032 The part of the preference specifies what external command\n\ + \032 should be invoked to merge files at paths matching the .\n\ + \032 Within this string, several special substrings are recognized; these\n\ + \032 will be substituted with appropriate values before invoking a sub-shell\n\ + \032 to execute the command.\n\ + \032 * CURRENT1 is replaced by the name of (a temporary copy of) the local\n\ + \032 variant of the file.\n\ + \032 * CURRENT2 is replaced by the name of a temporary file, into which\n\ + \032 the contents of the remote variant of the file have been\n\ + \032 transferred by Unison prior to performing the merge.\n\ + \032 * CURRENTARCH is replaced by the name of the backed up copy of the\n\ + \032 original version of the file (i.e., the file saved by Unison if the\n\ + \032 current filename matches the path specifications for the\n\ + \032 backupcurrent preference, as explained above), if one exists. If no\n\ + \032 archive exists and CURRENTARCH appears in the merge command, then\n\ + \032 an error is signalled.\n\ + \032 * CURRENTARCHOPT is replaced by the name of the backed up copy of the\n\ + \032 original version of the file (i.e., its state at the end of the\n\ + \032 last successful run of Unison), if one exists, or the empty string\n\ + \032 if no archive exists.\n\ + \032 * NEW is replaced by the name of a temporary file that Unison expects\n\ + \032 to be written by the merge program when it finishes, giving the\n\ + \032 desired new contents of the file.\n\ + \032 * PATH is replaced by the path (relative to the roots of the\n\ + \032 replicas) of the file being merged.\n\ + \032 * NEW1 and NEW2 are replaced by the names of temporary files that\n\ + \032 Unison expects to be written by the merge program when it is only\n\ + \032 able to partially merge the originals; in this case, NEW1 will be\n\ + \032 written back to the local replica and NEW2 to the remote replica;\n\ + \032 NEWARCH, if present, will be used as the \"last common state\" of the\n\ + \032 replicas. (These three options are provided for later compatibility\n\ + \032 with the Harmony data synchronizer.)\n\ + \n\ + \032 To accommodate the wide variety of programs that users might want to\n\ + \032 use for merging, Unison checks for several possible situations when the\n\ + \032 merge program exits:\n\ + \032 * If the merge program exits with a non-zero status, then merge is\n\ + \032 considered to have failed and the replicas are not changed.\n\ + \032 * If the file NEW has been created, it is written back to both\n\ + \032 replicas (and stored in the backup directory). Similarly, if just\n\ + \032 the file NEW1 has been created, it is written back to both\n\ + \032 replicas.\n\ + \032 * If neither NEW nor NEW1 have been created, then Unison examines the\n\ + \032 temporary files CURRENT1 and CURRENT2 that were given as inputs to\n\ + \032 the merge program. If either has been changed (or both have been\n\ + \032 changed in identical ways), then its new contents are written back\n\ + \032 to both replicas. If either CURRENT1 or CURRENT2 has been deleted,\n\ + \032 then the contents of the other are written back to both replicas.\n\ + \032 * If the files NEW1, NEW2, and NEWARCH have all been created, they\n\ + \032 are written back to the local replica, remote replica, and backup\n\ + \032 directory, respectively. If the files NEW1, NEW2 have been created,\n\ + \032 but NEWARCH has not, then these files are written back to the local\n\ + \032 replica and remote replica, respectively. Also, if NEW1 and NEW2\n\ + \032 have identical contents, then the same contents are stored as a\n\ + \032 backup (if the backupcurrent preference is set for this path) to\n\ + \032 reflect the fact that the path is currently in sync.\n\ + \032 * If NEW1 and NEW2 (resp. CURRENT1 and CURRENT2) are created (resp.\n\ + \032 overwritten) with different contents but the merge command did not\n\ + \032 fail (i.e., it exited with status code 0), then we copy NEW1 (resp.\n\ + \032 CURRENT1) to the other replica and to the archive.\n\ + \032 This behavior is a design choice made to handle the case where a\n\ + \032 merge command only synchronizes some specific contents between two\n\ + \032 files, skipping some irrelevant information (order between entries,\n\ + \032 for instance). We assume that, if the merge command exits normally,\n\ + \032 then the two resulting files are \"as good as equal.\" (The reason we\n\ + \032 copy one on top of the other is to avoid Unison detecting that the\n\ + \032 files are unequal the next time it is run and trying again to merge\n\ + \032 them when, in fact, the merge program has already made them as\n\ + \032 similar as it is able to.)\n\ + \n\ + \032 If the confirmmerge preference is set and Unison is not run in batch\n\ + \032 mode, then Unison will always ask for confirmation before actually\n\ + \032 committing the results of the merge to the replicas.\n\ + \n\ + \032 A large number of external merging programs are available. For example,\n\ + \032 on Unix systems setting the merge preference to\n\ + \032 merge = Name *.txt -> diff3 -m CURRENT1 CURRENTARCH CURRENT2\n\ + \032 > NEW || echo \"differences detected\"\n\ + \n\ + \032 will tell Unison to use the external diff3 program for merging.\n\ + \032 Alternatively, users of emacs may find the following settings\n\ + \032 convenient:\n\ + \032 merge = Name *.txt -> emacs -q --eval '(ediff-merge-files-with-ancestor\n\ + \032 \"CURRENT1\" \"CURRENT2\" \"CURRENTARCH\" nil \"NEW\")'\n\ + \n\ + \032 (These commands are displayed here on two lines to avoid running off\n\ + \032 the edge of the page. In your preference file, each command should be\n\ + \032 written on a single line.)\n\ + \n\ + \032 Users running emacs under windows may find something like this useful:\n\ + \032 merge = Name * -> C:\\Progra~1\\Emacs\\emacs\\bin\\emacs.exe -q --eval\n\ + \032 \"(ediff-files \"\"\"CURRENT1\"\"\" \"\"\"CURRENT2\"\"\")\"\n\ + \n\ + \032 Users running Mac OS X (you may need the Developer Tools installed to\n\ + \032 get the opendiff utility) may prefer\n\ + \032 merge = Name *.txt -> opendiff CURRENT1 CURRENT2 -ancestor CURRENTARCH -merg\n\ + e NEW\n\ + \n\ + \032 Here is a slightly more involved hack. The opendiff program can operate\n\ + \032 either with or without an archive file. A merge command of this form\n\ + \032 merge = Name *.txt ->\n\ + \032 if [ CURRENTARCHOPTx = x ];\n\ + \032 then opendiff CURRENT1 CURRENT2 -merge NEW;\n\ + \032 else opendiff CURRENT1 CURRENT2 -ancestor CURRENTARCHOPT -merge NE\n\ + W;\n\ + \032 fi\n\ + \n\ + \032 (still all on one line in the preference file!) will test whether an\n\ + \032 archive file exists and use the appropriate variant of the arguments to\n\ + \032 opendiff.\n\ + \n\ + \032 Linux users may enjoy this variant:\n\ + \032 merge = Name * -> kdiff3 -o NEW CURRENTARCHOPT CURRENT1 CURRENT2\n\ + \n\ + \032 Ordinarily, external merge programs are only invoked when Unison is not\n\ + \032 running in batch mode. To specify an external merge program that should\n\ + \032 be used no matter the setting of the batch flag, use the mergebatch\n\ + \032 preference instead of merge.\n\ + \n\ + \032 Please post suggestions for other useful values of the merge\n\ + \032 preference to the unison-users mailing list--we'd like to give\n\ + \032 several examples here.\n\ + \n\ + The User Interface\n\ + \n\ + \032 Both the textual and the graphical user interfaces are intended to be\n\ + \032 mostly self-explanatory. Here are just a few tricks:\n\ + \032 * By default, when running on Unix the textual user interface will\n\ + \032 try to put the terminal into the \"raw mode\" so that it reads the\n\ + \032 input a character at a time rather than a line at a time. (This\n\ + \032 means you can type just the single keystroke \">\" to tell Unison to\n\ + \032 propagate a file from left to right, rather than \"> Enter.\")\n\ + \032 There are some situations, though, where this will not work -- for\n\ + \032 example, when Unison is running in a shell window inside Emacs.\n\ + \032 Setting the dumbtty preference will force Unison to leave the\n\ + \032 terminal alone and process input a line at a time.\n\ + \n\ + Exit code\n\ + \n\ + \032 When running in the textual mode, Unison returns an exit status, which\n\ + \032 describes whether, and at which level, the synchronization was\n\ + \032 successful. The exit status could be useful when Unison is invoked from\n\ + \032 a script. Currently, there are four possible values for the exit\n\ + \032 status:\n\ + \032 * 0: successful synchronization; everything is up-to-date now.\n\ + \032 * 1: some files were skipped, but all file transfers were successful.\n\ + \032 * 2: non-fatal failures occurred during file transfer.\n\ + \032 * 3: a fatal error occurred, or the execution was interrupted.\n\ + \n\ + \032 The graphical interface does not return any useful information through\n\ + \032 the exit status.\n\ + \n\ + Path specification\n\ + \n\ + \032 Several Unison preferences (e.g., ignore/ignorenot, follow,\n\ + \032 sortfirst/sortlast, backup, merge, etc.) specify individual paths or\n\ + \032 sets of paths. These preferences share a common syntax based on\n\ + \032 regular-expressions. Each preference is associated with a list of path\n\ + \032 patterns; the paths specified are those that match any one of the path\n\ + \032 pattern.\n\ + \032 * Pattern preferences can be given on the command line, or, more\n\ + \032 often, stored in profiles, using the same syntax as other\n\ + \032 preferences. For example, a profile line of the form\n\ + \032 ignore = pattern\n\ + \n\ + \032 adds pattern to the list of patterns to be ignored.\n\ + \032 * Each pattern can have one of three forms. The most general form is\n\ + \032 a Posix extended regular expression introduced by the keyword\n\ + \032 Regex. (The collating sequences and character classes of full Posix\n\ + \032 regexps are not currently supported).\n\ + \032 Regex regexp\n\ + \n\ + \032 For convenience, three other styles of pattern are also recognized:\n\ + \032 Name name\n\ + \n\ + \032 matches any path in which the last component matches name,\n\ + \032 Path path\n\ + \n\ + \032 matches exactly the path path, and\n\ + \032 BelowPath path\n\ + \n\ + \032 matches the path path and any path below. The name and path\n\ + \032 arguments of the latter forms of patterns are not regular\n\ + \032 expressions. Instead, standard \"globbing\" conventions can be used\n\ + \032 in name and path:\n\ + \032 + a * matches any sequence of characters not including / (and\n\ + \032 not beginning with ., when used at the beginning of a name)\n\ + \032 + a ? matches any single character except / (and leading .)\n\ + \032 + [xyz] matches any character from the set {x, y, z }\n\ + \032 + {a,bb,ccc} matches any one of a, bb, or ccc. (Be careful not\n\ + \032 to put extra spaces after the commas: these will be\n\ + \032 interpreted literally as part of the strings to be matched!)\n\ + \032 * The path separator in path patterns is always the forward-slash\n\ + \032 character \"/\" -- even when the client or server is running under\n\ + \032 Windows, where the normal separator character is a backslash. This\n\ + \032 makes it possible to use the same set of path patterns for both\n\ + \032 Unix and Windows file systems.\n\ + \n\ + \032 Some examples of path patterns appear in the section \"Ignoring Paths\" .\n\ + \n\ + Ignoring Paths\n\ + \n\ + \032 Most users of Unison will find that their replicas contain lots of\n\ + \032 files that they don't ever want to synchronize -- temporary files, very\n\ + \032 large files, old stuff, architecture-specific binaries, etc. They can\n\ + \032 instruct Unison to ignore these paths using patterns introduced in the\n\ + \032 section \"Path Patterns\" .\n\ + \n\ + \032 For example, the following pattern will make Unison ignore any path\n\ + \032 containing the name CVS or a name ending in .cmo:\n\ + \032 ignore = Name {CVS,*.cmo}\n\ + \n\ + \032 The next pattern makes Unison ignore the path a/b:\n\ + \032 ignore = Path a/b\n\ + \n\ + \032 Path patterns do not skip filesnames beginning with . (as Name patterns\n\ + \032 do). For example,\n\ + \032 ignore = Path */tmp\n\ + \n\ + \032 will include .foo/tmp in the set of ignore directories, as it is a\n\ + \032 path, not a name, that is ignored.\n\ + \n\ + \032 The following pattern makes Unison ignore any path beginning with a/b\n\ + \032 and ending with a name ending by .ml.\n\ + \032 ignore = Regex a/b/.*\\.ml\n\ + \n\ + \032 Note that regular expression patterns are \"anchored\": they must match\n\ + \032 the whole path, not just a substring of the path.\n\ + \n\ + \032 Here are a few extra points regarding the ignore preference.\n\ + \032 * If a directory is ignored, all its descendents will be too.\n\ + \032 * The user interface provides some convenient commands for adding new\n\ + \032 patterns to be ignored. To ignore a particular file, select it and\n\ + \032 press \"i\". To ignore all files with the same extension, select it\n\ + \032 and press \"E\" (with the shift key). To ignore all files with the\n\ + \032 same name, no matter what directory they appear in, select it and\n\ + \032 press \"N\". These new patterns become permanent: they are\n\ + \032 immediately added to the current profile on disk.\n\ + \032 * If you use the include directive to include a common collection of\n\ + \032 preferences in several top-level preference files, you will\n\ + \032 probably also want to set the addprefsto preference to the name of\n\ + \032 this file. This will cause any new ignore patterns that you add\n\ + \032 from inside Unison to be appended to this file, instead of\n\ + \032 whichever top-level preference file you started Unison with.\n\ + \032 * Ignore patterns can also be specified on the command line, if you\n\ + \032 like (this is probably not very useful), using an option like\n\ + \032 -ignore 'Name temp.txt'.\n\ + \032 * Be careful about renaming directories containing ignored files.\n\ + \032 Because Unison understands the rename as a delete plus a create,\n\ + \032 any ignored files in the directory will be lost (since they are\n\ + \032 invisible to Unison and therefore they do not get recreated in the\n\ + \032 new version of the directory).\n\ + \032 * There is also an ignorenot preference, which specifies a set of\n\ + \032 patterns for paths that should not be ignored, even if they match\n\ + \032 an ignore pattern. However, the interaction of these two sets of\n\ + \032 patterns can be a little tricky. Here is exactly how it works:\n\ + \032 + Unison starts detecting updates from the root of the\n\ + \032 replicas--i.e., from the empty path. If the empty path matches\n\ + \032 an ignore pattern and does not match an ignorenot pattern,\n\ + \032 then the whole replica will be ignored. (For this reason, it\n\ + \032 is not a good idea to include Name * as an ignore pattern. If\n\ + \032 you want to ignore everything except a certain set of files,\n\ + \032 use Name ?*.)\n\ + \032 + If the root is a directory, Unison continues looking for\n\ + \032 updates in all the immediate children of the root. Again, if\n\ + \032 the name of some child matches an ignore pattern and does not\n\ + \032 match an ignorenot pattern, then this whole path including\n\ + \032 everything below it will be ignored.\n\ + \032 + If any of the non-ignored children are directories, then the\n\ + \032 process continues recursively.\n\ + \n\ + Symbolic Links\n\ + \n\ + \032 Ordinarily, Unison treats symbolic links in Unix replicas as \"opaque\":\n\ + \032 it considers the contents of the link to be just the string specifying\n\ + \032 where the link points, and it will propagate changes in this string to\n\ + \032 the other replica.\n\ + \n\ + \032 It is sometimes useful to treat a symbolic link \"transparently,\" acting\n\ + \032 as though whatever it points to were physically in the replica at the\n\ + \032 point where the symbolic link appears. To tell Unison to treat a link\n\ + \032 in this manner, add a line of the form\n\ + \032 follow = pathspec\n\ + \n\ + \032 to the profile, where pathspec is a path pattern as described in the\n\ + \032 section \"Path Patterns\" .\n\ + \n\ + \032 Windows file systems do not support symbolic links; Unison will refuse\n\ + \032 to propagate an opaque symbolic link from Unix to Windows and flag the\n\ + \032 path as erroneous. When a Unix replica is to be synchronized with a\n\ + \032 Windows system, all symbolic links should match either an ignore\n\ + \032 pattern or a follow pattern.\n\ + \n\ + Permissions\n\ + \n\ + \032 Synchronizing the permission bits of files is slightly tricky when two\n\ + \032 different filesytems are involved (e.g., when synchronizing a Windows\n\ + \032 client and a Unix server). In detail, here's how it works:\n\ + \032 * When the permission bits of an existing file or directory are\n\ + \032 changed, the values of those bits that make sense on both operating\n\ + \032 systems will be propagated to the other replica. The other bits\n\ + \032 will not be changed.\n\ + \032 * When a newly created file is propagated to a remote replica, the\n\ + \032 permission bits that make sense in both operating systems are also\n\ + \032 propagated. The values of the other bits are set to default values\n\ + \032 (they are taken from the current umask, if the receiving host is a\n\ + \032 Unix system).\n\ + \032 * For security reasons, the Unix setuid and setgid bits are not\n\ + \032 propagated.\n\ + \032 * The Unix owner and group ids are not propagated. (What would this\n\ + \032 mean, in general?) All files are created with the owner and group\n\ + \032 of the server process.\n\ + \n\ + Cross-Platform Synchronization\n\ + \n\ + \032 If you use Unison to synchronize files between Windows and Unix\n\ + \032 systems, there are a few special issues to be aware of.\n\ + \n\ + \032 Case conflicts. In Unix, filenames are case sensitive: foo and FOO can\n\ + \032 refer to different files. In Windows, on the other hand, filenames are\n\ + \032 not case sensitive: foo and FOO can only refer to the same file. This\n\ + \032 means that a Unix foo and FOO cannot be synchronized onto a Windows\n\ + \032 system -- Windows won't allow two different files to have the \"same\"\n\ + \032 name. Unison detects this situation for you, and reports that it cannot\n\ + \032 synchronize the files.\n\ + \n\ + \032 You can deal with a case conflict in a couple of ways. If you need to\n\ + \032 have both files on the Windows system, your only choice is to rename\n\ + \032 one of the Unix files to avoid the case conflict, and re-synchronize.\n\ + \032 If you don't need the files on the Windows system, you can simply\n\ + \032 disregard Unison's warning message, and go ahead with the\n\ + \032 synchronization; Unison won't touch those files. If you don't want to\n\ + \032 see the warning on each synchronization, you can tell Unison to ignore\n\ + \032 the files (see the section \"Ignore\" ).\n\ + \n\ + \032 Illegal filenames. Unix allows some filenames that are illegal in\n\ + \032 Windows. For example, colons (`:') are not allowed in Windows\n\ + \032 filenames, but they are legal in Unix filenames. This means that a Unix\n\ + \032 file foo:bar can't be synchronized to a Windows system. As with case\n\ + \032 conflicts, Unison detects this situation for you, and you have the same\n\ + \032 options: you can either rename the Unix file and re-synchronize, or you\n\ + \032 can ignore it.\n\ + \n\ + Slow Links\n\ + \n\ + \032 Unison is built to run well even over relatively slow links such as\n\ + \032 modems and DSL connections.\n\ + \n\ + \032 Unison uses the \"rsync protocol\" designed by Andrew Tridgell and Paul\n\ + \032 Mackerras to greatly speed up transfers of large files in which only\n\ + \032 small changes have been made. More information about the rsync protocol\n\ + \032 can be found at the rsync web site (http://samba.anu.edu.au/rsync/).\n\ + \n\ + \032 If you are using Unison with ssh, you may get some speed improvement by\n\ + \032 enabling ssh's compression feature. Do this by adding the option\n\ + \032 \"-sshargs -C\" to the command line or \"sshargs = -C\" to your profile.\n\ + \n\ + Making Unison Faster on Large Files\n\ + \n\ + \032 Unison's built-in implementation of the rsync algorithm makes\n\ + \032 transferring updates to existing files pretty fast. However, for\n\ + \032 whole-file copies of newly created files, the built-in transfer method\n\ + \032 is not highly optimized. Also, if Unison is interrupted in the middle\n\ + \032 of transferring a large file, it will attempt to retransfer the whole\n\ + \032 thing on the next run.\n\ + \n\ + \032 These shortcomings can be addressed with a little extra work by telling\n\ + \032 Unison to use an external file copying utility for whole-file\n\ + \032 transfers. The recommended one is the standalone rsync tool, which is\n\ + \032 available by default on most Unix systems and can easily be installed\n\ + \032 on Windows systems using Cygwin.\n\ + \n\ + \032 If you have rsync installed on both hosts, you can make Unison use it\n\ + \032 simply by setting the copythreshold flag to something non-negative. If\n\ + \032 you set it to 0, Unison will use the external copy utility for all\n\ + \032 whole-file transfers. (This is probably slower than letting Unison copy\n\ + \032 small files by itself, but can be useful for testing.) If you set it to\n\ + \032 a larger value, Unison will use the external utility for all files\n\ + \032 larger than this size (which is given in kilobytes, so setting it to\n\ + \032 1000 will cause the external tool to be used for all transfers larger\n\ + \032 than a megabyte).\n\ + \n\ + \032 If you want to use a different external copy utility, set both the\n\ + \032 copyprog and copyprogpartial preferences--the former is used for the\n\ + \032 first transfer of a file, while the latter is used when Unison sees a\n\ + \032 partially transferred temp file on the receiving host. Be careful here:\n\ + \032 Your external tool needs to be instructed to copy files in place\n\ + \032 (otherwise if the transfer is interrupted Unison will not notice that\n\ + \032 some of the data has already been transferred, the next time it tries).\n\ + \032 The default values are:\n\ + \032 copyprog = rsync --inplace --compress\n\ + \032 copyprogrest = rsync --partial --inplace --compress\n\ + \n\ + \032 You may also need to set the copyquoterem preference. When it is set to\n\ + \032 true, this causes Unison to add an extra layer of quotes to the remote\n\ + \032 path passed to the external copy program. This is is needed by rsync,\n\ + \032 for example, which internally uses an ssh connection, requiring an\n\ + \032 extra level of quoting for paths containing spaces. When this flag is\n\ + \032 set to default, extra quotes are added if the value of copyprog\n\ + \032 contains the string rsync. The default value is default, naturally.\n\ + \n\ + \032 If a directory transfer is interrupted, the next run of Unison will\n\ + \032 automatically skip any files that were completely transferred before\n\ + \032 the interruption. (This behavior is always on: it does not depend on\n\ + \032 the setting of the copythreshold preference.) Note, though, that the\n\ + \032 new directory will not appear in the destination filesystem until\n\ + \032 everything has been transferred--partially transferred directories are\n\ + \032 kept in a temporary location (with names like .unison.DIRNAME....)\n\ + \032 until the transfer is complete.\n\ + \n\ + Fast Update Detection\n\ + \n\ + \032 If your replicas are large and at least one of them is on a Windows\n\ + \032 system, you may find that Unison's default method for detecting changes\n\ + \032 (which involves scanning the full contents of every file on every\n\ + \032 sync--the only completely safe way to do it under Windows) is too slow.\n\ + \032 Unison provides a preference fastcheck that, when set to true, causes\n\ + \032 it to use file creation times as 'pseudo inode numbers' when scanning\n\ + \032 replicas for updates, instead of reading the full contents of every\n\ + \032 file.\n\ + \n\ + \032 When fastcheck is set to no, Unison will perform slow\n\ + \032 checking--re-scanning the contents of each file on each\n\ + \032 synchronization--on all replicas. When fastcheck is set to default\n\ + \032 (which, naturally, is the default), Unison will use fast checks on Unix\n\ + \032 replicas and slow checks on Windows replicas.\n\ + \n\ + \032 This strategy may cause Unison to miss propagating an update if the\n\ + \032 modification time and length of the file are both unchanged by the\n\ + \032 update. However, Unison will never overwrite such an update with a\n\ + \032 change from the other replica, since it always does a safe check for\n\ + \032 updates just before propagating a change. Thus, it is reasonable to use\n\ + \032 this switch most of the time and occasionally run Unison once with\n\ + \032 fastcheck set to no, if you are worried that Unison may have overlooked\n\ + \032 an update.\n\ + \n\ + \032 Fastcheck is (always) automatically disabled for files with extension\n\ + \032 .xls or .mpp, to prevent Unison from being confused by the habits of\n\ + \032 certain programs (Excel, in particular) of updating files without\n\ + \032 changing their modification times.\n\ + \n\ + Mount Points and Removable Media\n\ + \n\ + \032 Using Unison removable media such as USB drives can be dangerous unless\n\ + \032 you are careful. If you synchronize a directory that is stored on\n\ + \032 removable media when the media is not present, it will look to Unison\n\ + \032 as though the whole directory has been deleted, and it will proceed to\n\ + \032 delete the directory from the other replica--probably not what you\n\ + \032 want!\n\ + \n\ + \032 To prevent accidents, Unison provides a preference called mountpoint.\n\ + \032 Including a line like\n\ + \032 mountpoint = foo\n\ + \n\ + \032 in your preference file will cause Unison to check, after it finishes\n\ + \032 detecting updates, that something actually exists at the path foo on\n\ + \032 both replicas; if it does not, the Unison run will abort.\n\ + \n\ + Click-starting Unison\n\ + \n\ + \032 On Windows NT/2k/XP systems, the graphical version of Unison can be\n\ + \032 invoked directly by clicking on its icon. On Windows 95/98 systems,\n\ + \032 click-starting also works, as long as you are not using ssh. Due to an\n\ + \032 incompatibility with ocaml and Windows 95/98 that is not under our\n\ + \032 control, you must start Unison from a DOS window in Windows 95/98 if\n\ + \032 you want to use ssh.\n\ + \n\ + \032 When you click on the Unison icon, two windows will be created:\n\ + \032 Unison's regular window, plus a console window, which is used only for\n\ + \032 giving your password to ssh (if you do not use ssh to connect, you can\n\ + \032 ignore this window). When your password is requested, you'll need to\n\ + \032 activate the console window (e.g., by clicking in it) before typing. If\n\ + \032 you start Unison from a DOS window, Unison's regular window will appear\n\ + \032 and you will type your password in the DOS window you were using.\n\ + \n\ + \032 To use Unison in this mode, you must first create a profile (see the\n\ + \032 section \"Profile\" ). Use your favorite editor for this.\n\ + \n\ + ")) +:: + ("ssh", ("Installing Ssh", + "Installing Ssh\n\ + \n\ + \032 Warning: These instructions may be out of date. More current\n\ + \032 information can be found the Unison Wiki\n\ + \032 (http://alliance.seas.upenn.edu/ bcpierce/wiki/index.php?n=Main.UnisonF\n\ + \032 AQOSSpecific).\n\ + \n\ + \032 Your local host will need just an ssh client; the remote host needs an\n\ + \032 ssh server (or daemon), which is available on Unix systems. Unison is\n\ + \032 known to work with ssh version 1.2.27 (Unix) and version 1.2.14\n\ + \032 (Windows); other versions may or may not work.\n\ + \n\ + Unix\n\ + \n\ + \032 Most modern Unix installations come with ssh pre-installed.\n\ + \n\ + Windows\n\ + \n\ + \032 Many Windows implementations of ssh only provide graphical interfaces,\n\ + \032 but Unison requires an ssh client that it can invoke with a\n\ + \032 command-line interface. A suitable version of ssh can be installed as\n\ + \032 follows.\n\ + \032 1. Download an ssh executable.\n\ + \032 Warning: there are many implementations and ports of ssh for\n\ + \032 Windows, and not all of them will work with Unison. We have gotten\n\ + \032 Unison to work with Cygwin's port of openssh, and we suggest you\n\ + \032 try that one first. Here's how to install it:\n\ + \032 a. First, create a new folder on your desktop to hold temporary\n\ + \032 installation files. It can have any name you like, but in\n\ + \032 these instructions we'll assume that you call it Foo.\n\ + \032 b. Direct your web browser to www.cygwin.com, and click on the\n\ + \032 \"Install now!\" link. This will download a file, setup.exe;\n\ + \032 save it in the directory Foo. The file setup.exe is a small\n\ + \032 program that will download the actual install files from the\n\ + \032 Internet when you run it.\n\ + \032 c. Start setup.exe (by double-clicking). This brings up a series\n\ + \032 of dialogs that you will have to go through. Select \"Install\n\ + \032 from Internet.\" For \"Local Package Directory\" select the\n\ + \032 directory Foo. For \"Select install root directory\" we\n\ + \032 recommend that you use the default, C:\\cygwin. The next dialog\n\ + \032 asks you to select the way that you want to connect to the\n\ + \032 network to download the installation files; we have used \"Use\n\ + \032 IE5 Settings\" successfully, but you may need to make a\n\ + \032 different selection depending on your networking setup. The\n\ + \032 next dialog gives a list of mirrors; select one close to you.\n\ + \032 Next you are asked to select which packages to install. The\n\ + \032 default settings in this dialog download a lot of packages\n\ + \032 that are not strictly necessary to run Unison with ssh. If you\n\ + \032 don't want to install a package, click on it until \"skip\" is\n\ + \032 shown. For a minimum installation, select only the packages\n\ + \032 \"cygwin\" and \"openssh,\" which come to about 1900KB; the full\n\ + \032 installation is much larger.\n\ + \n\ + \032 Note that you are plan to build unison using the free CygWin GNU C\n\ + \032 compiler, you need to install essential development packages such as\n\ + \032 \"gcc\", \"make\", \"fileutil\", etc; we refer to the file\n\ + \032 \"INSTALL.win32-cygwin-gnuc\" in the source distribution for further\n\ + \032 details.\n\ + \032 After the packages are downloaded and installed, the next\n\ + \032 dialog allows you to choose whether to \"Create Desktop Icon\"\n\ + \032 and \"Add to Start Menu.\" You make the call.\n\ + \032 d. You can now delete the directory Foo and its contents.\n\ + \032 Some people have reported problems using Cygwin's ssh with Unison.\n\ + \032 If you have trouble, you might try other ones instead:\n\ + \032 http://linuxmafia.com/ssh/win32.html\n\ + \n\ + \032 2. You must set the environment variables HOME and PATH. Ssh will\n\ + \032 create a directory .ssh in the directory given by HOME, so that it\n\ + \032 has a place to keep data like your public and private keys. PATH\n\ + \032 must be set to include the Cygwin bin directory, so that Unison can\n\ + \032 find the ssh executable.\n\ + \032 + On Windows 95/98, add the lines\n\ + \032 set PATH=%PATH%;\n\ + \032 set HOME=\n\ + \n\ + \032 to the file C:\\AUTOEXEC.BAT, where is the directory\n\ + \032 where you want ssh to create its .ssh directory, and \n\ + \032 is the directory where the executable ssh.exe is stored; if\n\ + \032 you've installed Cygwin in the default location, this is\n\ + \032 C:\\cygwin\\bin. You will have to reboot your computer to take\n\ + \032 the changes into account.\n\ + \032 + On Windows NT/2k/XP, open the environment variables dialog\n\ + \032 box:\n\ + \032 o Windows NT: My Computer/Properties/Environment\n\ + \032 o Windows 2k: My Computer/Properties/Advanced/Environment\n\ + \032 variables\n\ + \032 then select Path and edit its value by appending ; to\n\ + \032 it, where is the full name of the directory that\n\ + \032 includes the ssh executable; if you've installed Cygwin in the\n\ + \032 default location, this is C:\\cygwin\\bin.\n\ + \032 3. Test ssh from a DOS shell by typing\n\ + \032 ssh -l \n\ + \n\ + \032 You should get a prompt for your password on ,\n\ + \032 followed by a working connection.\n\ + \032 4. Note that ssh-keygen may not work (fails with \"gethostname: no such\n\ + \032 file or directory\") on some systems. This is OK: you can use ssh\n\ + \032 with your regular password for the remote system.\n\ + \032 5. You should now be able to use Unison with an ssh connection. If you\n\ + \032 are logged in with a different user name on the local and remote\n\ + \032 hosts, provide your remote user name when providing the remote root\n\ + \032 (i.e., //username@host/path...).\n\ + \n\ + ")) +:: + ("news", ("Changes in Version 2.48.3", + "Changes in Version 2.48.3\n\ + \n\ + \032 Changes since 2.45:\n\ + \032 * Incorporated a patch from Christopher Zimmermann to replace the\n\ + \032 Uprintf module (which doesn't work with OCaml 4.02, causing Unison\n\ + \032 to crash) with equivalent functionality from the standard library.\n\ + \032 * Incorporated a refresh of the OSX GUI, contributed by Alan Shutko.\n\ + \032 * Added a maxsizethreshold option, which prevents the transfer of\n\ + \032 files larger than the size specified (in Kb).\n\ + \032 * Added a \"copyonconflict\" preference, to make a copy of files that\n\ + \032 would otherwise be overwritten or deleted in case of conflicting\n\ + \032 changes. (This makes it possible to automatically resolve conflicts\n\ + \032 in a fairly safe way when synchronizing continuously, in\n\ + \032 combination with the \"repeat = watch\" and \"prefer = newer\"\n\ + \032 preferences.\n\ + \032 * File system monitoring:\n\ + \032 + The file watcher now fails when unable to watch a directory,\n\ + \032 rather than silently ignoring the issue.\n\ + \032 + File system monitoring: more robust communication with the\n\ + \032 helper program (in socket mode, the unison server will still\n\ + \032 work properly despite unexpected unison client\n\ + \032 disconnections).\n\ + \032 + A bytecode version of unison-fsmonitor is now produced by\n\ + \032 \"make NATIVE=false\"\n\ + \032 + Improved search for unison-fsmonitor\n\ + \032 + Detect when the helper process exits.\n\ + \032 + More robust file watching helper programs for Windows and\n\ + \032 Linux. They communicate with Unison through pipes (Unison\n\ + \032 redirects stdin and stdout), using a race-free protocol.\n\ + \032 + Retries paths with failures using an exponential backoff\n\ + \032 algorithm.\n\ + \032 + The information returned by the file watchers are used\n\ + \032 independently for each replica; thus, when only one replica\n\ + \032 has changes, Unison will only rescan this replica.\n\ + \032 + When available, used by the graphical UIs to speed up\n\ + \032 rescanning (can be disabled by setting the new watch\n\ + \032 preference to\n\ + \032 + Small fix to the way fsmonitor.py gets invoked when using the\n\ + \032 file watching functionality, suggested by Josh Berdine. Unison\n\ + \032 will now look for fsmonitor.py in the same directory where the\n\ + \032 Unison executable itself lives.\n\ + \032 * Minor:\n\ + \032 + Fixed a bug in export procedure that was messing up\n\ + \032 documentation strings.\n\ + \032 + Incorporated a patch from Ir\225nyossy Knoblauch Art\250r to make\n\ + \032 temp file names fit within 143 characters (to make eCryptFS\n\ + \032 happy).\n\ + \032 + Added a string to the Conflict direction to document the\n\ + \032 reason of the conflict.\n\ + \032 + Log conflicts and problems in the text UI even if nothing is\n\ + \032 propagated.\n\ + \032 + Use hash function from OCaml 3.x for comparing archives, even\n\ + \032 when compiled with OCaml 4.x.\n\ + \032 + Do not restart Unison in case of uncaught exception when the\n\ + \032 repeat preference is set. This seems safer. And it does not\n\ + \032 work, for instance, in case of lost connection.\n\ + \032 + Fix Unix.readlink invalid argument error under Windows\n\ + \032 + Fix a crash when the output of the diff program is too large.\n\ + \032 + Fixed Makefile for cross-compiling towards Windows (updated to\n\ + \032 MinGW-w64)\n\ + \n\ + \032 Changes since 2.40.63:\n\ + \032 * New preference fastercheckUNSAFE, which can be used (with care!) to\n\ + \032 achieve much faster update detection when all the common files in\n\ + \032 the two replicas are known to be identical. See the manual for more\n\ + \032 information.\n\ + \032 This feature should still be considered experimental, but it's\n\ + \032 ready for other people to try out.\n\ + \032 * Added option clientHostName. If specified, it will be used to as\n\ + \032 the client host name, overriding UNISONLOCALHOSTNAME and the actual\n\ + \032 host name.\n\ + \032 * OS X GUI:\n\ + \032 + fix crash under Lion, because of problems with the toolbar,\n\ + \032 using the fix suggested in\n\ + \032 http://blitzbasic.com/Community/posts.php?topic=95778.\n\ + \032 + uimacnew09 is now the standard graphical interface on OSX\n\ + \032 + A small improvement to the uimacnew09 interface from Alan\n\ + \032 Schmitt and Steve Kalkwarf: when Unison is run with the -batch\n\ + \032 flag, the interface will now automatically propagate changes\n\ + \032 and terminate, without waiting for user interaction.\n\ + \032 + Show a modal warning window if there is no archive for the\n\ + \032 hosts. The user can then choose to exit or proceed (proceed is\n\ + \032 the default). The window is not shown if the batch preference\n\ + \032 is true.\n\ + \032 + file details panel selectable\n\ + \032 * GTK GUI:\n\ + \032 + New version of uigtk2.ml from Matt Zagrabelny that reorganizes\n\ + \032 the icons in a slightly more intuitive way.\n\ + \032 * Minor fixes:\n\ + \032 + Setting the prefer preference to older or newer now propagates\n\ + \032 deletions when there is no conflict.\n\ + \032 + Correctly quote the path when running merge commands.\n\ + \032 + Add quotes to paths when calling external file watcher\n\ + \032 utility.\n\ + \032 + Incorporate a patch to fsmonitor.py (the external filewatcher\n\ + \032 utility) from Tomasz Zernicki to make it work better under\n\ + \032 Windows.\n\ + \032 + Incorporated new version of fsmonitor.py from Christophe Gohle\n\ + \032 + Fixed incompatibility with OpenSSH 5.6.\n\ + \032 + Fixed fingerprint cache: do not cache file properties\n\ + \032 + Some spelling corrections in documentation and comments from\n\ + \032 Stephane Glondu\n\ + \032 + Fixed O_APPEND mode for open under Windows\n\ + \032 + Fixed String.sub invalid argument error when an AppleDouble\n\ + \032 file does not contain a finder information field\n\ + \032 + Trim duplicate paths when using \"-repeat watch\"\n\ + \032 + Unison now passes path arguments and -follow directives to\n\ + \032 fsmonitor.py. This seems to work except for one small issue\n\ + \032 with how fsmonitor.py treats -follow directives for\n\ + \032 directories that don't exist (or maybe this is an issue with\n\ + \032 how it treats any kind of monitoring when the thing being\n\ + \032 monitored doesn't exist?). If we create a symlink to a\n\ + \032 nonexistant directory, give Unison (hence fsmonitor.py) a\n\ + \032 'follow' directive for the symlink, start unison, and then\n\ + \032 create the directory, fsmonitor.py misses the change.\n\ + \032 + Lines added in profile files by unison always start at a new\n\ + \032 line\n\ + \n\ + \032 Changes since 2.40.1:\n\ + \032 * Added \"BelowPath\" patterns, that match a path as well as all paths\n\ + \032 below (convenient to use with nodeletion,update,creationpartial\n\ + \032 preferences)\n\ + \032 * Added a \"fat\" preference that makes Unison use the right options\n\ + \032 when one of the replica is on a FAT filesystem.\n\ + \032 * Allow \"prefer/force=newer\" even when not synchronizing modification\n\ + \032 times. (The reconciler will not be aware of the modification time\n\ + \032 of unchanged files, so the synchronization choices of Unison can be\n\ + \032 different from when \"times=true\", but the behavior remains sane:\n\ + \032 changed files with the most recent modification time will be\n\ + \032 propagated.)\n\ + \032 * Minor fixes and improvements:\n\ + \032 + Compare filenames up to decomposition in case sensitive mode\n\ + \032 when one host is running MacOSX and the unicode preference is\n\ + \032 set to true.\n\ + \032 + Rsync: somewhat faster compressor\n\ + \032 + Make Unicode the default on all architectures (it was only the\n\ + \032 default when a Mac OS X or Windows machine was involved).\n\ + \n\ + \032 Changes since 2.32:\n\ + \032 * Major enhancement: Unicode support.\n\ + \032 + Unison should now handle unicode filenames correctly on all\n\ + \032 platforms.\n\ + \032 + This functionality is controlled by a new preference unicode.\n\ + \032 + Unicode mode is now the default when one of the hosts is under\n\ + \032 Windows or MacOS. This may make upgrades a bit more painful\n\ + \032 (the archives cannot be reused), but this is a much saner\n\ + \032 default.\n\ + \032 * Partial transfer of directories. If an error occurs while\n\ + \032 transferring a directory, the part transferred so far is copied\n\ + \032 into place (and the archives are updated accordingly). The\n\ + \032 \"maxerrors\" preference controls how many transfer error Unison will\n\ + \032 accept before stopping the transfer of a directory (by default,\n\ + \032 only one). This makes it possible to transfer most of a directory\n\ + \032 even if there are some errors. Currently, only the first error is\n\ + \032 reported by the GUIs.\n\ + \032 Also, allow partial transfer of a directory when there was an error\n\ + \032 deep inside this directory during update detection. At the moment,\n\ + \032 this is only activated with the text and GTK UIs, which have been\n\ + \032 modified so that they show that the transfer is going to be partial\n\ + \032 and so that they can display all errors.\n\ + \032 * Improvement to the code for resuming directory transfers:\n\ + \032 + if a file was not correctly transferred (or the source has\n\ + \032 been modified since, with unchanged size), Unison performs a\n\ + \032 new transfer rather than failing\n\ + \032 + spurious files are deleted (this can happen if a file is\n\ + \032 deleted on the source replica before resuming the transfer;\n\ + \032 not deleting the file would result in it reappearing on the\n\ + \032 target replica)\n\ + \032 * Experimental streaming protocol for transferring file contents (can\n\ + \032 be disabled by setting the directive \"stream\" to false): file\n\ + \032 contents is transfered asynchronously (without waiting for a\n\ + \032 response from the destination after each chunk sent) rather than\n\ + \032 using the synchronous RPC mechanism. As a consequence:\n\ + \032 + Unison now transfers the contents of a single file at a time\n\ + \032 (Unison used to transfer several contents simultaneously in\n\ + \032 order to hide the connection latency.)\n\ + \032 + the transfer of large files uses the full available bandwidth\n\ + \032 and is not slowed done due to the connection latency anymore\n\ + \032 + we get performance improvement for small files as well by\n\ + \032 scheduling many files simultaneously (as scheduling a file for\n\ + \032 transfer consume little ressource: it does not mean allocating\n\ + \032 a large buffer anymore)\n\ + \032 * Changes to the internal implementation of the rsync algorithm:\n\ + \032 + use longer blocks for large files (the size of a block is the\n\ + \032 square root of the size of the file for large files);\n\ + \032 + transmit less checksum information per block (we still have\n\ + \032 less than one chance in a hundred million of transferring a\n\ + \032 file incorrectly, and Unison will catch any transfer error\n\ + \032 when fingerprinting the whole file)\n\ + \032 + avoid transfer overhead (which was 4 bytes per block)\n\ + \032 For a 1G file, the first optimization saves a factor 50 on the\n\ + \032 amount of data transferred from the target to the source (blocks\n\ + \032 are 32768 bytes rather than just 700 bytes). The two other\n\ + \032 optimizations save another factor of 2 (from 24 bytes per block\n\ + \032 down to 10).\n\ + \032 * Implemented an on-disk file fingerprint cache to speed-up update\n\ + \032 detection after a crash: this way, Unison does not have do\n\ + \032 recompute all the file fingerprints from scratch.\n\ + \032 + When Unison detects that the archive case-sensitivity mode\n\ + \032 does not match the current settings, it populates the\n\ + \032 fingerprint cache using the archive contents. This way,\n\ + \032 changing the case-sensitivity mode should be reasonably fast.\n\ + \032 * New preferences \"noupdate=root\", \"nodeletion=root\",\n\ + \032 \"nocreation=root\" that prevent Unison from performing files\n\ + \032 updates, deletions or creations on the given root. Also 'partial'\n\ + \032 versions of 'noupdate', 'nodeletion' and 'nocreation'\n\ + \032 * Limit the number of simultaneous external copy program (\"copymax\"\n\ + \032 preference)\n\ + \032 * New \"links\" preference. When set to false, Unison will report an\n\ + \032 error on symlinks during update detection. (This is the default\n\ + \032 when one host is running Windows but not Cygwin.) This is better\n\ + \032 than failing during propagation.\n\ + \032 * Added a preference \"halfduplex\" to force half-duplex communication\n\ + \032 with the server. This may be useful on unreliable links (as a more\n\ + \032 efficient alternative to \"maxthreads = 1\").\n\ + \032 * Renamed preference \"pretendwin\" to \"ignoreinodenumbers\" (an alias\n\ + \032 is kept for backwards compatibility).\n\ + \032 * Ignore one-second differences when synchronizing modification time.\n\ + \032 (Technically, this is an incompatible archive format change, but it\n\ + \032 is backward compatible. To trigger a problem, a user would have to\n\ + \032 synchronize modification times on a filesystem with a two-second\n\ + \032 granularity and then downgrade to a previous version of Unison,\n\ + \032 which does not work well in such a case. Thus, it does not seem\n\ + \032 worthwhile to increment the archive format number, which would\n\ + \032 impact all users.)\n\ + \032 * Do not keep many files simultaneously opened anymore when the rsync\n\ + \032 algorithm is in use.\n\ + \032 * Add \"ignorearchives\" preference to ignore existing archives (to\n\ + \032 avoid forcing users to delete them manually, in situations where\n\ + \032 one archive has gotten deleted or corrupted).\n\ + \032 * Mac OS\n\ + \032 + fixed rsync bug which could result in an \"index out of bounds\"\n\ + \032 error when transferring resource forks.\n\ + \032 + Fixed bug which made Unison ignore finder information and\n\ + \032 resource fork when compiled to 64bit on Mac OSX.\n\ + \032 + should now be 64 bit clean (the Growl framework is not up to\n\ + \032 date, though)\n\ + \032 + Made the bridge between Objective C and Ocaml code GC friendly\n\ + \032 (it was allocating ML values and putting them in an array\n\ + \032 which was not registered with the GC)\n\ + \032 + use darker grey arrows (patch contributed by Eric Y. Kow)\n\ + \032 * GTK user interface\n\ + \032 + assistant for creating profiles\n\ + \032 + profile editor\n\ + \032 + pop up a summary window when the replicas are not fully\n\ + \032 synchronized after transport\n\ + \032 + display estimated remaining time and transfer rate on the\n\ + \032 progress bar\n\ + \032 + allow simultaneous selection of several items\n\ + \032 + Do not reload the preference file before a new update\n\ + \032 detection if it is unchanged\n\ + \032 + disabled scrolling to the first unfinished item during\n\ + \032 transport. It goes way too fast when lot of small files are\n\ + \032 synchronized, and it makes it impossible to browse the file\n\ + \032 list during transport.\n\ + \032 + take into account the \"height\" preference again\n\ + \032 + the internal list of selected reconciler item was not always\n\ + \032 in sync with what was displayed (GTK bug?); workaround\n\ + \032 implemented\n\ + \032 + Do not display \"Looking for change\" messages during\n\ + \032 propagation (when checking the targe is unchanged) but only\n\ + \032 during update detection\n\ + \032 + Apply patch to fix some crashes in the OSX GUI, thanks to Onne\n\ + \032 Gorter.\n\ + \032 * Text UI\n\ + \032 + During update detection, display status by updating a single\n\ + \032 line rather than generating a new line of output every so\n\ + \032 often. Should be less confusing.\n\ + \032 * Windows\n\ + \032 + Fastcheck is now the default under Windows. People mostly use\n\ + \032 NTFS nowadays and the Unicode API provides an equivalent to\n\ + \032 inode numbers for this filesystem.\n\ + \032 + Only use long UNC path for accessing replicas (as '..' is not\n\ + \032 handled with this format of paths, but can be useful)\n\ + \032 + Windows text UI: now put the console into UTF-8 output mode.\n\ + \032 This is the right thing to do when in Unicode mode, and is no\n\ + \032 worse than what we had previously otherwise (the console use\n\ + \032 some esoteric encoding by default). This only works when using\n\ + \032 a Unicode font instead of the default raster font.\n\ + \032 + Don't get the home directory from environment variable HOME\n\ + \032 under Windows (except for Cygwin binaries): we don't want the\n\ + \032 behavior of Unison to depends on whether it is run from a\n\ + \032 Cygwin shell (where HOME is set) or in any other way (where\n\ + \032 HOME is usually not set).\n\ + \032 * Miscellaneous fixes and improvements\n\ + \032 + Made a server waiting on a socket more resilient to unexpected\n\ + \032 lost connections from the client.\n\ + \032 + Small patch to property setting code suggested by Ulrich\n\ + \032 Gernkow.\n\ + \032 + Several fixes to the change transfer functions (both the\n\ + \032 internal ones and external transfers using rsync). In\n\ + \032 particular, limit the number of simultaneous transfer using an\n\ + \032 rsync (as the rsync algorithm can use a large amount of memory\n\ + \032 when processing huge files)\n\ + \032 + Keep track of which file contents are being transferred, and\n\ + \032 delay the transfer of a file when another file with the same\n\ + \032 contents is currently being transferred. This way, the second\n\ + \032 transfer can be skipped and replaced by a local copy.\n\ + \032 + Experimental update detection optimization: do not read the\n\ + \032 contents of unchanged directories\n\ + \032 + When a file transfer fails, turn off fastcheck for this file\n\ + \032 on the next sync.\n\ + \032 + Fixed bug with case insensitive mode on a case sensitive\n\ + \032 filesystem:\n\ + \032 o if file \"a/a\" is created on one replica and directory \"A\"\n\ + \032 is created on the other, the file failed to be\n\ + \032 synchronized the first time Unison is run afterwards, as\n\ + \032 Unison uses the wrong path \"a/a\" (if Unison is run again,\n\ + \032 the directories are in the archive, so the right path is\n\ + \032 used);\n\ + \032 o if file \"a\" appears on one replica and file \"A\" appears\n\ + \032 on the other with different contents, Unison was unable\n\ + \032 to synchronize them.\n\ + \032 + Improved error reporting when the destination is updated\n\ + \032 during synchronization: Unison now tells which file has been\n\ + \032 updated, and how.\n\ + \032 + Limit the length of temporary file names\n\ + \032 + Case sensitivity information put in the archive (in a backward\n\ + \032 compatible way) and checked when the archive is loaded\n\ + \032 + Got rid of the 16mb marshalling limit by marshalling to a\n\ + \032 bigarray.\n\ + \032 + Resume copy of partially transferred files.\n\ + \n\ + \032 Changes since 2.31:\n\ + \032 * Small user interface changes\n\ + \032 + Small change to text UI \"scanning...\" messages, to print just\n\ + \032 directories (hopefully making it clearer that individual files\n\ + \032 are not necessarily being fingerprinted).\n\ + \032 * Minor fixes and improvements:\n\ + \032 + Ignore one hour differences when deciding whether a file may\n\ + \032 have been updated. This avoids slow update detection after\n\ + \032 daylight saving time changes under Windows. This makes Unison\n\ + \032 slightly more likely to miss an update, but it should be safe\n\ + \032 enough.\n\ + \032 + Fix a small bug that was affecting mainly windows users. We\n\ + \032 need to commit the archives at the end of the sync even if\n\ + \032 there are no updates to propagate because some files (in fact,\n\ + \032 if we've just switched to DST on windows, a LOT of files)\n\ + \032 might have new modtimes in the archive. (Changed the text UI\n\ + \032 only. It's less clear where to change the GUI.)\n\ + \032 + Don't delete the temp file when a transfer fails due to a\n\ + \032 fingerprint mismatch (so that we can have a look and see why!)\n\ + \032 We've also added more debugging code togive more informative\n\ + \032 error messages when we encounter the dreaded and longstanding\n\ + \032 \"assert failed during file transfer\" bug\n\ + \032 + Incorrect paths (\"path\" directive) now result in an error\n\ + \032 update item rather than a fatal error.\n\ + \032 + Create parent directories (with correct permissions) during\n\ + \032 transport for paths which point to non-existent locations in\n\ + \032 the destination replica.\n\ + \n\ + \032 Changes since 2.27:\n\ + \032 * If Unison is interrupted during a directory transfer, it will now\n\ + \032 leave the partially transferred directory intact in a temporary\n\ + \032 location. (This maintains the invariant that new files/directories\n\ + \032 are transferred either completely or not at all.) The next time\n\ + \032 Unison is run, it will continue filling in this temporary\n\ + \032 directory, skipping transferring files that it finds are already\n\ + \032 there.\n\ + \032 * We've added experimental support for invoking an external file\n\ + \032 transfer tool for whole-file copies instead of Unison's built-in\n\ + \032 transfer protocol. Three new preferences have been added:\n\ + \032 + copyprog is a string giving the name (and command-line\n\ + \032 switches, if needed) of an external program that can be used\n\ + \032 to copy large files efficiently. By default, rsync is invoked,\n\ + \032 but other tools such as scp can be used instead by changing\n\ + \032 the value of this preference. (Although this is not its\n\ + \032 primary purpose, rsync is actually a pretty fast way of\n\ + \032 copying files that don't already exist on the receiving host.)\n\ + \032 For files that do already exist on (but that have been changed\n\ + \032 in one replica), Unison will always use its built-in\n\ + \032 implementation of the rsync algorithm.\n\ + \032 + Added a \"copyprogrest\" preference, so that we can give\n\ + \032 different command lines for invoking the external copy utility\n\ + \032 depending on whether a partially transferred file already\n\ + \032 exists or not. (Rsync doesn't seem to care about this, but\n\ + \032 other utilities may.)\n\ + \032 + copythreshold is an integer (-1 by default), indicating above\n\ + \032 what filesize (in megabytes) Unison should use the external\n\ + \032 copying utility specified by copyprog. Specifying 0 will cause\n\ + \032 ALL copies to use the external program; a negative number will\n\ + \032 prevent any files from using it. (Default is -1.)\n\ + \032 Thanks to Alan Schmitt for a huge amount of hacking and to an\n\ + \032 anonymous sponsor for suggesting and underwriting this extension.\n\ + \032 * Small improvements:\n\ + \032 + Added a new preference, dontchmod. By default, Unison uses the\n\ + \032 chmod system call to set the permission bits of files after it\n\ + \032 has copied them. But in some circumstances (and under some\n\ + \032 operating systems), the chmod call always fails. Setting this\n\ + \032 preference completely prevents Unison from ever calling chmod.\n\ + \032 + Don't ignore files that look like backup files if the\n\ + \032 backuplocation preference is set to central\n\ + \032 + Shortened the names of several preferences. The old names are\n\ + \032 also still supported, for backwards compatibility, but they do\n\ + \032 not appear in the documentation.\n\ + \032 + Lots of little documentation tidying. (In particular,\n\ + \032 preferences are separated into Basic and Advanced! This should\n\ + \032 hopefully make Unison a little more approachable for new\n\ + \032 users.\n\ + \032 + Unison can sometimes fail to transfer a file, giving the\n\ + \032 unhelpful message \"Destination updated during synchronization\"\n\ + \032 even though the file has not been changed. This can be caused\n\ + \032 by programs that change either the file's contents or the\n\ + \032 file's extended attributes without changing its modification\n\ + \032 time. It's not clear what is the best fix for this - it is not\n\ + \032 Unison's fault, but it makes Unison's behavior puzzling - but\n\ + \032 at least Unison can be more helpful about suggesting a\n\ + \032 workaround (running once with fastcheck set to false). The\n\ + \032 failure message has been changed to give this advice.\n\ + \032 + Further improvements to the OS X GUI (thanks to Alan Schmitt\n\ + \032 and Craig Federighi).\n\ + \032 * Very preliminary support for triggering Unison from an external\n\ + \032 filesystem-watching utility. The current implementation is very\n\ + \032 simple, not efficient, and almost completely untested--not ready\n\ + \032 for real users. But if someone wants to help improve it (e.g., by\n\ + \032 writing a filesystem watcher for your favorite OS), please make\n\ + \032 yourself known!\n\ + \032 On the Unison side, the new behavior is very simple:\n\ + \032 + use the text UI\n\ + \032 + start Unison with the command-line flag \"-repeat FOO\", where\n\ + \032 FOO is name of a file where Unison should look for\n\ + \032 notifications of changes\n\ + \032 + when it starts up, Unison will read the whole contents of this\n\ + \032 file (on both hosts), which should be a newline-separated list\n\ + \032 of paths (relative to the root of the synchronization) and\n\ + \032 synchronize just these paths, as if it had been started with\n\ + \032 the \"-path=xxx\" option for each one of them\n\ + \032 + when it finishes, it will sleep for a few seconds and then\n\ + \032 examine the watchfile again; if anything has been added, it\n\ + \032 will read the new paths, synchronize them, and go back to\n\ + \032 sleep\n\ + \032 + that's it!\n\ + \032 To use this to drive Unison \"incrementally,\" just start it in this\n\ + \032 mode and start up a tool (on each host) to watch for new changes to\n\ + \032 the filesystem and append the appropriate paths to the watchfile.\n\ + \032 Hopefully such tools should not be too hard to write.\n\ + \032 * Bug fixes:\n\ + \032 + Fixed a bug that was causing new files to be created with\n\ + \032 permissions 0x600 instead of using a reasonable default (like\n\ + \032 0x644), if the 'perms' flag was set to 0. (Bug reported by Ben\n\ + \032 Crowell.)\n\ + \032 + Follow maxthreads preference when transferring directories.\n\ + \n\ + \032 Changes since 2.17:\n\ + \032 * Major rewrite and cleanup of the whole Mac OS X graphical user\n\ + \032 interface by Craig Federighi. Thanks, Craig!!!\n\ + \032 * Small fix to ctime (non-)handling in update detection under windows\n\ + \032 with fastcheck.\n\ + \032 * Several small fixes to the GTK2 UI to make it work better under\n\ + \032 Windows [thanks to Karl M for these].\n\ + \032 * The backup functionality has been completely rewritten. The\n\ + \032 external interface has not changed, but numerous bugs, irregular\n\ + \032 behaviors, and cross-platform inconsistencies have been corrected.\n\ + \032 * The Unison project now accepts donations via PayPal. If you'd like\n\ + \032 to donate, you can find a link to the donation page on the Unison\n\ + \032 home page (http://www.cis.upenn.edu/ bcpierce/unison/lists.html).\n\ + \032 * Some important safety improvements:\n\ + \032 + Added a new mountpoint preference, which can be used to\n\ + \032 specify a path that must exist in both replicas at the end of\n\ + \032 update detection (otherwise Unison aborts). This can be used\n\ + \032 to avoid potentially dangerous situations when Unison is used\n\ + \032 with removable media such as external hard drives and compact\n\ + \032 flash cards.\n\ + \032 + The confirmation of \"big deletes\" is now controlled by a\n\ + \032 boolean preference confirmbigdeletes. Default is true, which\n\ + \032 gives the same behavior as previously. (This functionality is\n\ + \032 at least partly superceded by the mountpoint preference, but\n\ + \032 it has been left in place in case it is useful to some\n\ + \032 people.)\n\ + \032 + If Unison is asked to \"follow\" a symbolic link but there is\n\ + \032 nothing at the other end of the link, it will now flag this\n\ + \032 path as an error, rather than treating the symlink itself as\n\ + \032 missing or deleted. This avoids a potentially dangerous\n\ + \032 situation where a followed symlink points to an external\n\ + \032 filesystem that might be offline when Unison is run (whereupon\n\ + \032 Unison would cheerfully delete the corresponding files in the\n\ + \032 other replica!).\n\ + \032 * Smaller changes:\n\ + \032 + Added forcepartial and preferpartial preferences, which behave\n\ + \032 like force and prefer but can be specified on a per-path\n\ + \032 basis. [Thanks to Alan Schmitt for this.]\n\ + \032 + A bare-bones self test feature was added, which runs unison\n\ + \032 through some of its paces and checks that the results are as\n\ + \032 expected. The coverage of the tests is still very limited, but\n\ + \032 the facility has already been very useful in debugging the new\n\ + \032 backup functionality (especially in exposing some subtle\n\ + \032 cross-platform issues).\n\ + \032 + Refined debugging code so that the verbosity of individual\n\ + \032 modules can be controlled separately. Instead of just putting\n\ + \032 '-debug verbose' on the command line, you can put '-debug\n\ + \032 update+', which causes all the extra messages in the Update\n\ + \032 module, but not other modules, to be printed. Putting '-debug\n\ + \032 verbose' causes all modules to print with maximum verbosity.\n\ + \032 + Removed mergebatch preference. (It never seemed very useful,\n\ + \032 and its semantics were confusing.)\n\ + \032 + Rewrote some of the merging functionality, for better\n\ + \032 cooperation with external Harmony instances.\n\ + \032 + Changed the temp file prefix from .# to .unison.\n\ + \032 + Compressed the output from the text user interface\n\ + \032 (particularly when run with the -terse flag) to make it easier\n\ + \032 to interpret the results when Unison is run several times in\n\ + \032 succession from a script.\n\ + \032 + Diff and merge functions now work under Windows.\n\ + \032 + Changed the order of arguments to the default diff command (so\n\ + \032 that the + and - annotations in diff's output are reversed).\n\ + \032 + Added .mpp files to the \"never fastcheck\" list (like .xls\n\ + \032 files).\n\ + \032 * Many small bugfixes, including:\n\ + \032 + Fixed a longstanding bug regarding fastcheck and daylight\n\ + \032 saving time under Windows when Unison is set up to synchronize\n\ + \032 modification times. (Modification times cannot be updated in\n\ + \032 the archive in this case, so we have to ignore one hour\n\ + \032 differences.)\n\ + \032 + Fixed a bug that would occasionally cause the archives to be\n\ + \032 left in non-identical states on the two hosts after\n\ + \032 synchronization.\n\ + \032 + Fixed a bug that prevented Unison from communicating correctly\n\ + \032 between 32- and 64-bit architectures.\n\ + \032 + On windows, file creation times are no longer used as a proxy\n\ + \032 for inode numbers. (This is unfortunate, as it makes fastcheck\n\ + \032 a little less safe. But it turns out that file creation times\n\ + \032 are not reliable under Windows: if a file is removed and a new\n\ + \032 file is created in its place, the new one will sometimes be\n\ + \032 given the same creation date as the old one!)\n\ + \032 + Set read-only file to R/W on OSX before attempting to change\n\ + \032 other attributes.\n\ + \032 + Fixed bug resulting in spurious \"Aborted\" errors during\n\ + \032 transport (thanks to Jerome Vouillon)\n\ + \032 + Enable diff if file contents have changed in one replica, but\n\ + \032 only properties in the other.\n\ + \032 + Removed misleading documentation for 'repeat' preference.\n\ + \032 + Fixed a bug in merging code where Unison could sometimes\n\ + \032 deadlock with the external merge program, if the latter\n\ + \032 produced large amounts of output.\n\ + \032 + Workaround for a bug compiling gtk2 user interface against\n\ + \032 current versions of gtk2+ libraries.\n\ + \032 + Added a better error message for \"ambiguous paths\".\n\ + \032 + Squashed a longstanding bug that would cause file transfer to\n\ + \032 fail with the message \"Failed: Error in readWrite: Is a\n\ + \032 directory.\"\n\ + \032 + Replaced symlinks with copies of their targets in the Growl\n\ + \032 framework in src/uimac. This should make the sources easier to\n\ + \032 check out from the svn repository on WinXP systems.\n\ + \032 + Added a workaround (suggested by Karl M.) for the problem\n\ + \032 discussed on the unison users mailing list where, on the\n\ + \032 Windows platform, the server would hang when transferring\n\ + \032 files. I conjecture that the problem has to do with the RPC\n\ + \032 mechanism, which was used to make a call back from the server\n\ + \032 to the client (inside the Trace.log function) so that the log\n\ + \032 message would be appended to the log file on the client. The\n\ + \032 workaround is to dump these messages (about when xferbycopying\n\ + \032 shortcuts are applied and whether they succeed) just to the\n\ + \032 standard output of the Unison process, not to the log file.\n\ + \n\ + \032 Changes since 2.13.0:\n\ + \032 * The features for performing backups and for invoking external merge\n\ + \032 programs have been completely rewritten by Stephane Lescuyer\n\ + \032 (thanks, Stephane!). The user-visible functionality should not\n\ + \032 change, but the internals have been rationalized and there are a\n\ + \032 number of new features. See the manual (in particular, the\n\ + \032 description of the backupXXX preferences) for details.\n\ + \032 * Incorporated patches for ipv6 support, contributed by Samuel\n\ + \032 Thibault. (Note that, due to a bug in the released OCaml 3.08.3\n\ + \032 compiler, this code will not actually work with ipv6 unless\n\ + \032 compiled with the CVS version of the OCaml compiler, where the bug\n\ + \032 has been fixed; however, ipv4 should continue to work normally.)\n\ + \032 * OSX interface:\n\ + \032 + Incorporated Ben Willmore's cool new icon for the Mac UI.\n\ + \032 * Small fixes:\n\ + \032 + Fixed off by one error in month numbers (in printed dates)\n\ + \032 reported by Bob Burger\n\ + \n\ + \032 Changes since 2.12.0:\n\ + \032 * New convention for release numbering: Releases will continue to be\n\ + \032 given numbers of the form X.Y.Z, but, from now on, just the major\n\ + \032 version number (X.Y) will be considered significant when checking\n\ + \032 compatibility between client and server versions. The third\n\ + \032 component of the version number will be used only to identify\n\ + \032 \"patch levels\" of releases.\n\ + \032 This change goes hand in hand with a change to the procedure for\n\ + \032 making new releases. Candidate releases will initially be given\n\ + \032 \"beta release\" status when they are announced for public\n\ + \032 consumption. Any bugs that are discovered will be fixed in a\n\ + \032 separate branch of the source repository (without changing the\n\ + \032 major version number) and new tarballs re-released as needed. When\n\ + \032 this process converges, the patched beta version will be dubbed\n\ + \032 stable.\n\ + \032 * Warning (failure in batch mode) when one path is completely\n\ + \032 emptied. This prevents Unison from deleting everything on one\n\ + \032 replica when the other disappear.\n\ + \032 * Fix diff bug (where no difference is shown the first time the diff\n\ + \032 command is given).\n\ + \032 * User interface changes:\n\ + \032 + Improved workaround for button focus problem (GTK2 UI)\n\ + \032 + Put leading zeroes in date fields\n\ + \032 + More robust handling of character encodings in GTK2 UI\n\ + \032 + Changed format of modification time displays, from modified at\n\ + \032 hh:mm:ss on dd MMM, yyyy to modified on yyyy-mm-dd hh:mm:ss\n\ + \032 + Changed time display to include seconds (so that people on FAT\n\ + \032 filesystems will not be confused when Unison tries to update a\n\ + \032 file time to an odd number of seconds and the filesystem\n\ + \032 truncates it to an even number!)\n\ + \032 + Use the diff \"-u\" option by default when showing differences\n\ + \032 between files (the output is more readable)\n\ + \032 + In text mode, pipe the diff output to a pager if the\n\ + \032 environment variable PAGER is set\n\ + \032 + Bug fixes and cleanups in ssh password prompting. Now works\n\ + \032 with the GTK2 UI under Linux. (Hopefully the Mac OS X one is\n\ + \032 not broken!)\n\ + \032 + Include profile name in the GTK2 window name\n\ + \032 + Added bindings ',' (same as '<') and '.' (same as '>') in the\n\ + \032 GTK2 UI\n\ + \032 * Mac GUI:\n\ + \032 + actions like < and > scroll to the next item as necessary.\n\ + \032 + Restart has a menu item and keyboard shortcut (command-R).\n\ + \032 + Added a command-line tool for Mac OS X. It can be installed\n\ + \032 from the Unison menu.\n\ + \032 + New icon.\n\ + \032 + Handle the \"help\" command-line argument properly.\n\ + \032 + Handle profiles given on the command line properly.\n\ + \032 + When a profile has been selected, the profile dialog is\n\ + \032 replaced by a \"connecting\" message while the connection is\n\ + \032 being made. This gives better feedback.\n\ + \032 + Size of left and right columns is now large enough so that\n\ + \032 \"PropsChanged\" is not cut off.\n\ + \032 * Minor changes:\n\ + \032 + Disable multi-threading when both roots are local\n\ + \032 + Improved error handling code. In particular, make sure all\n\ + \032 files are closed in case of a transient failure\n\ + \032 + Under Windows, use $UNISON for home directory as a last resort\n\ + \032 (it was wrongly moved before $HOME and $USERPROFILE in Unison\n\ + \032 2.12.0)\n\ + \032 + Reopen the logfile if its name changes (profile change)\n\ + \032 + Double-check that permissions and modification times have been\n\ + \032 properly set: there are some combination of OS and filesystem\n\ + \032 on which setting them can fail in a silent way.\n\ + \032 + Check for bad Windows filenames for pure Windows\n\ + \032 synchronization also (not just cross architecture\n\ + \032 synchronization). This way, filenames containing backslashes,\n\ + \032 which are not correctly handled by unison, are rejected right\n\ + \032 away.\n\ + \032 + Attempt to resolve issues with synchronizing modification\n\ + \032 times of read-only files under Windows\n\ + \032 + Ignore chmod failures when deleting files\n\ + \032 + Ignore trailing dots in filenames in case insensitive mode\n\ + \032 + Proper quoting of paths, files and extensions ignored using\n\ + \032 the UI\n\ + \032 + The strings CURRENT1 and CURRENT2 are now correctly substitued\n\ + \032 when they occur in the diff preference\n\ + \032 + Improvements to syncing resource forks between Macs via a\n\ + \032 non-Mac system.\n\ + \n\ + \032 Changes since 2.10.2:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ + \032 * Source code availability: The Unison sources are now managed using\n\ + \032 Subversion. One nice side-effect is that anonymous checkout is now\n\ + \032 possible, like this:\n\ + \032 svn co https://cvs.cis.upenn.edu:3690/svnroot/unison/\n\ + \n\ + \032 We will also continue to export a \"developer tarball\" of the\n\ + \032 current (modulo one day) sources in the web export directory. To\n\ + \032 receive commit logs for changes to the sources, subscribe to the\n\ + \032 unison-hackers list\n\ + \032 (http://www.cis.upenn.edu/ bcpierce/unison/lists.html).\n\ + \032 * Text user interface:\n\ + \032 + Substantial reworking of the internal logic of the text UI to\n\ + \032 make it a bit easier to modify.\n\ + \032 + The dumbtty flag in the text UI is automatically set to true\n\ + \032 if the client is running on a Unix system and the EMACS\n\ + \032 environment variable is set to anything other than the empty\n\ + \032 string.\n\ + \032 * Native OS X gui:\n\ + \032 + Added a synchronize menu item with keyboard shortcut\n\ + \032 + Added a merge menu item, still needs to be debugged\n\ + \032 + Fixes to compile for Panther\n\ + \032 + Miscellaneous improvements and bugfixes\n\ + \032 * Small changes:\n\ + \032 + Changed the filename checking code to apply to Windows only,\n\ + \032 instead of OS X as well.\n\ + \032 + Finder flags now synchronized\n\ + \032 + Fallback in copy.ml for filesystem that do not support O_EXCL\n\ + \032 + Changed buffer size for local file copy (was highly\n\ + \032 inefficient with synchronous writes)\n\ + \032 + Ignore chmod failure when deleting a directory\n\ + \032 + Fixed assertion failure when resolving a conflict content\n\ + \032 change / permission changes in favor of the content change.\n\ + \032 + Workaround for transferring large files using rsync.\n\ + \032 + Use buffered I/O for files (this is the only way to open files\n\ + \032 in binary mode under Cygwin).\n\ + \032 + On non-Cygwin Windows systems, the UNISON environment variable\n\ + \032 is now checked first to determine where to look for Unison's\n\ + \032 archive and preference files, followed by HOME and USERPROFILE\n\ + \032 in that order. On Unix and Cygwin systems, HOME is used.\n\ + \032 + Generalized diff preference so that it can be given either as\n\ + \032 just the command name to be used for calculating diffs or else\n\ + \032 a whole command line, containing the strings CURRENT1 and\n\ + \032 CURRENT2, which will be replaced by the names of the files to\n\ + \032 be diff'ed before the command is called.\n\ + \032 + Recognize password prompts in some newer versions of ssh.\n\ + \n\ + \032 Changes since 2.9.20:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ + \032 * Major functionality changes:\n\ + \032 + Major tidying and enhancement of 'merge' functionality. The\n\ + \032 main user-visible change is that the external merge program\n\ + \032 may either write the merged output to a single new file, as\n\ + \032 before, or it may modify one or both of its input files, or it\n\ + \032 may write two new files. In the latter cases, its\n\ + \032 modifications will be copied back into place on both the local\n\ + \032 and the remote host, and (if the two files are now equal) the\n\ + \032 archive will be updated appropriately. More information can be\n\ + \032 found in the user manual. Thanks to Malo Denielou and Alan\n\ + \032 Schmitt for these improvements.\n\ + \032 Warning: the new merging functionality is not completely\n\ + \032 compatible with old versions! Check the manual for details.\n\ + \032 + Files larger than 2Gb are now supported.\n\ + \032 + Added preliminary (and still somewhat experimental) support\n\ + \032 for the Apple OS X operating system.\n\ + \032 o Resource forks should be transferred correctly. (See the\n\ + \032 manual for details of how this works when synchronizing\n\ + \032 HFS with non-HFS volumes.) Synchronization of file type\n\ + \032 and creator information is also supported.\n\ + \032 o On OSX systems, the name of the directory for storing\n\ + \032 Unison's archives, preference files, etc., is now\n\ + \032 determined as follows:\n\ + \032 # if ~/.unison exists, use it\n\ + \032 # otherwise, use ~/Library/Application Support/Unison,\n\ + \032 creating it if necessary.\n\ + \032 o A preliminary native-Cocoa user interface is under\n\ + \032 construction. This still needs some work, and some users\n\ + \032 experience unpredictable crashes, so it is only for\n\ + \032 hackers for now. Run make with UISTYLE=mac to build this\n\ + \032 interface.\n\ + \032 * Minor functionality changes:\n\ + \032 + Added an ignorelocks preference, which forces Unison to\n\ + \032 override left-over archive locks. (Setting this preference is\n\ + \032 dangerous! Use it only if you are positive you know what you\n\ + \032 are doing.)\n\ + \032 + Added a new preference assumeContentsAreImmutable. If a\n\ + \032 directory matches one of the patterns set in this preference,\n\ + \032 then update detection is skipped for files in this directory.\n\ + \032 (The purpose is to speed update detection for cases like Mail\n\ + \032 folders, which contain lots and lots of immutable files.) Also\n\ + \032 a preference assumeContentsAreImmutableNot, which overrides\n\ + \032 the first, similarly to ignorenot. (Later amendment: these\n\ + \032 preferences are now called immutable and immutablenot.)\n\ + \032 + The ignorecase flag has been changed from a boolean to a\n\ + \032 three-valued preference. The default setting, called default,\n\ + \032 checks the operating systems running on the client and server\n\ + \032 and ignores filename case if either of them is OSX or Windows.\n\ + \032 Setting ignorecase to true or false overrides this behavior.\n\ + \032 If you have been setting ignorecase on the command line using\n\ + \032 -ignorecase=true or -ignorecase=false, you will need to change\n\ + \032 to -ignorecase true or -ignorecase false.\n\ + \032 + a new preference, 'repeat', for the text user interface\n\ + \032 (only). If 'repeat' is set to a number, then, after it\n\ + \032 finishes synchronizing, Unison will wait for that many seconds\n\ + \032 and then start over, continuing this way until it is killed\n\ + \032 from outside. Setting repeat to true will automatically set\n\ + \032 the batch preference to true.\n\ + \032 + Excel files are now handled specially, so that the fastcheck\n\ + \032 optimization is skipped even if the fastcheck flag is set.\n\ + \032 (Excel does some naughty things with modtimes, making this\n\ + \032 optimization unreliable and leading to failures during change\n\ + \032 propagation.)\n\ + \032 + The ignorecase flag has been changed from a boolean to a\n\ + \032 three-valued preference. The default setting, called\n\ + \032 'default', checks the operating systems running on the client\n\ + \032 and server and ignores filename case if either of them is OSX\n\ + \032 or Windows. Setting ignorecase to 'true' or 'false' overrides\n\ + \032 this behavior.\n\ + \032 + Added a new preference, 'repeat', for the text user interface\n\ + \032 (only, at the moment). If 'repeat' is set to a number, then,\n\ + \032 after it finishes synchronizing, Unison will wait for that\n\ + \032 many seconds and then start over, continuing this way until it\n\ + \032 is killed from outside. Setting repeat to true will\n\ + \032 automatically set the batch preference to true.\n\ + \032 + The 'rshargs' preference has been split into 'rshargs' and\n\ + \032 'sshargs' (mainly to make the documentation clearer). In fact,\n\ + \032 'rshargs' is no longer mentioned in the documentation at all,\n\ + \032 since pretty much everybody uses ssh now anyway.\n\ + \032 * Documentation\n\ + \032 + The web pages have been completely redesigned and reorganized.\n\ + \032 (Thanks to Alan Schmitt for help with this.)\n\ + \032 * User interface improvements\n\ + \032 + Added a GTK2 user interface, capable (among other things) of\n\ + \032 displaying filenames in any locale encoding. Kudos to Stephen\n\ + \032 Tse for contributing this code!\n\ + \032 + The text UI now prints a list of failed and skipped transfers\n\ + \032 at the end of synchronization.\n\ + \032 + Restarting update detection from the graphical UI will reload\n\ + \032 the current profile (which in particular will reset the -path\n\ + \032 preference, in case it has been narrowed by using the \"Recheck\n\ + \032 unsynchronized items\" command).\n\ + \032 + Several small improvements to the text user interface,\n\ + \032 including a progress display.\n\ + \032 * Bug fixes (too numerous to count, actually, but here are some):\n\ + \032 + The maxthreads preference works now.\n\ + \032 + Fixed bug where warning message about uname returning an\n\ + \032 unrecognized result was preventing connection to server. (The\n\ + \032 warning is no longer printed, and all systems where 'uname'\n\ + \032 returns anything other than 'Darwin' are assumed not to be\n\ + \032 running OS X.)\n\ + \032 + Fixed a problem on OS X that caused some valid file names\n\ + \032 (e.g., those including colons) to be considered invalid.\n\ + \032 + Patched Path.followLink to follow links under cygwin in\n\ + \032 addition to Unix (suggested by Matt Swift).\n\ + \032 + Small change to the storeRootsName function, suggested by\n\ + \032 bliviero at ichips.intel.com, to fix a problem in unison with\n\ + \032 the `rootalias' option, which allows you to tell unison that\n\ + \032 two roots contain the same files. Rootalias was being applied\n\ + \032 after the hosts were sorted, so it wouldn't work properly in\n\ + \032 all cases.\n\ + \032 + Incorporated a fix by Dmitry Bely for setting utimes of\n\ + \032 read-only files on Win32 systems.\n\ + \032 * Installation / portability:\n\ + \032 + Unison now compiles with OCaml version 3.07 and later out of\n\ + \032 the box.\n\ + \032 + Makefile.OCaml fixed to compile out of the box under OpenBSD.\n\ + \032 + a few additional ports (e.g. OpenBSD, Zaurus/IPAQ) are now\n\ + \032 mentioned in the documentation\n\ + \032 + Unison can now be installed easily on OSX systems using the\n\ + \032 Fink package manager\n\ + \n\ + \032 Changes since 2.9.1:\n\ + \032 * Added a preference maxthreads that can be used to limit the number\n\ + \032 of simultaneous file transfers.\n\ + \032 * Added a backupdir preference, which controls where backup files are\n\ + \032 stored.\n\ + \032 * Basic support added for OSX. In particular, Unison now recognizes\n\ + \032 when one of the hosts being synchronized is running OSX and\n\ + \032 switches to a case-insensitive treatment of filenames (i.e., 'foo'\n\ + \032 and 'FOO' are considered to be the same file). (OSX is not yet\n\ + \032 fully working, however: in particular, files with resource forks\n\ + \032 will not be synchronized correctly.)\n\ + \032 * The same hash used to form the archive name is now also added to\n\ + \032 the names of the temp files created during file transfer. The\n\ + \032 reason for this is that, during update detection, we are going to\n\ + \032 silently delete any old temp files that we find along the way, and\n\ + \032 we want to prevent ourselves from deleting temp files belonging to\n\ + \032 other instances of Unison that may be running in parallel, e.g.\n\ + \032 synchronizing with a different host. Thanks to Ruslan Ermilov for\n\ + \032 this suggestion.\n\ + \032 * Several small user interface improvements\n\ + \032 * Documentation\n\ + \032 + FAQ and bug reporting instructions have been split out as\n\ + \032 separate HTML pages, accessible directly from the unison web\n\ + \032 page.\n\ + \032 + Additions to FAQ, in particular suggestions about performance\n\ + \032 tuning.\n\ + \032 * Makefile\n\ + \032 + Makefile.OCaml now sets UISTYLE=text or UISTYLE=gtk\n\ + \032 automatically, depending on whether it finds lablgtk installed\n\ + \032 + Unison should now compile \"out of the box\" under OSX\n\ + \n\ + \032 Changes since 2.8.1:\n\ + \032 * Changing profile works again under Windows\n\ + \032 * File movement optimization: Unison now tries to use local copy\n\ + \032 instead of transfer for moved or copied files. It is controled by a\n\ + \032 boolean option \"xferbycopying\".\n\ + \032 * Network statistics window (transfer rate, amount of data\n\ + \032 transferred). [NB: not available in Windows-Cygwin version.]\n\ + \032 * symlinks work under the cygwin version (which is dynamically\n\ + \032 linked).\n\ + \032 * Fixed potential deadlock when synchronizing between Windows and\n\ + \032 Unix\n\ + \032 * Small improvements:\n\ + \032 + If neither the USERPROFILE nor the HOME environment variables\n\ + \032 are set, then Unison will put its temporary commit log (called\n\ + \032 DANGER.README) into the directory named by the UNISON\n\ + \032 environment variable, if any; otherwise it will use C:.\n\ + \032 + alternative set of values for fastcheck: yes = true; no =\n\ + \032 false; default = auto.\n\ + \032 + -silent implies -contactquietly\n\ + \032 * Source code:\n\ + \032 + Code reorganization and tidying. (Started breaking up some of\n\ + \032 the basic utility modules so that the non-unison-specific\n\ + \032 stuff can be made available for other projects.)\n\ + \032 + several Makefile and docs changes (for release);\n\ + \032 + further comments in \"update.ml\";\n\ + \032 + connection information is not stored in global variables\n\ + \032 anymore.\n\ + \n\ + \032 Changes since 2.7.78:\n\ + \032 * Small bugfix to textual user interface under Unix (to avoid leaving\n\ + \032 the terminal in a bad state where it would not echo inputs after\n\ + \032 Unison exited).\n\ + \n\ + \032 Changes since 2.7.39:\n\ + \032 * Improvements to the main web page (stable and beta version docs are\n\ + \032 now both accessible).\n\ + \032 * User manual revised.\n\ + \032 * Added some new preferences:\n\ + \032 + \"sshcmd\" and \"rshcmd\" for specifying paths to ssh and rsh\n\ + \032 programs.\n\ + \032 + \"contactquietly\" for suppressing the \"contacting server\"\n\ + \032 message during Unison startup (under the graphical UI).\n\ + \032 * Bug fixes:\n\ + \032 + Fixed small bug in UI that neglected to change the displayed\n\ + \032 column headers if loading a new profile caused the roots to\n\ + \032 change.\n\ + \032 + Fixed a bug that would put the text UI into an infinite loop\n\ + \032 if it encountered a conflict when run in batch mode.\n\ + \032 + Added some code to try to fix the display of non-Ascii\n\ + \032 characters in filenames on Windows systems in the GTK UI.\n\ + \032 (This code is currently untested--if you're one of the people\n\ + \032 that had reported problems with display of non-ascii\n\ + \032 filenames, we'd appreciate knowing if this actually fixes\n\ + \032 things.)\n\ + \032 + `-prefer/-force newer' works properly now. (The bug was\n\ + \032 reported by Sebastian Urbaniak and Sean Fulton.)\n\ + \032 * User interface and Unison behavior:\n\ + \032 + Renamed `Proceed' to `Go' in the graphical UI.\n\ + \032 + Added exit status for the textual user interface.\n\ + \032 + Paths that are not synchronized because of conflicts or errors\n\ + \032 during update detection are now noted in the log file.\n\ + \032 + [END] messages in log now use a briefer format\n\ + \032 + Changed the text UI startup sequence so that ./unison -ui text\n\ + \032 will use the default profile instead of failing.\n\ + \032 + Made some improvements to the error messages.\n\ + \032 + Added some debugging messages to remote.ml.\n\ + \n\ + \032 Changes since 2.7.7:\n\ + \032 * Incorporated, once again, a multi-threaded transport sub-system. It\n\ + \032 transfers several files at the same time, thereby making much more\n\ + \032 effective use of available network bandwidth. Unlike the earlier\n\ + \032 attempt, this time we do not rely on the native thread library of\n\ + \032 OCaml. Instead, we implement a light-weight, non-preemptive\n\ + \032 multi-thread library in OCaml directly. This version appears\n\ + \032 stable.\n\ + \032 Some adjustments to unison are made to accommodate the\n\ + \032 multi-threaded version. These include, in particular, changes to\n\ + \032 the user interface and logging, for example:\n\ + \032 + Two log entries for each transferring task, one for the\n\ + \032 beginning, one for the end.\n\ + \032 + Suppressed warning messages against removing temp files left\n\ + \032 by a previous unison run, because warning does not work nicely\n\ + \032 under multi-threading. The temp file names are made less\n\ + \032 likely to coincide with the name of a file created by the\n\ + \032 user. They take the form\n\ + \032 .#..unison.tmp. [N.b. This was later changed\n\ + \032 to .unison...unison.tmp.]\n\ + \032 * Added a new command to the GTK user interface: pressing 'f' causes\n\ + \032 Unison to start a new update detection phase, using as paths just\n\ + \032 those paths that have been detected as changed and not yet marked\n\ + \032 as successfully completed. Use this command to quickly restart\n\ + \032 Unison on just the set of paths still needing attention after a\n\ + \032 previous run.\n\ + \032 * Made the ignorecase preference user-visible, and changed the\n\ + \032 initialization code so that it can be manually set to true, even if\n\ + \032 neither host is running Windows. (This may be useful, e.g., when\n\ + \032 using Unison running on a Unix system with a FAT volume mounted.)\n\ + \032 * Small improvements and bug fixes:\n\ + \032 + Errors in preference files now generate fatal errors rather\n\ + \032 than warnings at startup time. (I.e., you can't go on from\n\ + \032 them.) Also, we fixed a bug that was preventing these warnings\n\ + \032 from appearing in the text UI, so some users who have been\n\ + \032 running (unsuspectingly) with garbage in their prefs files may\n\ + \032 now get error reports.\n\ + \032 + Error reporting for preference files now provides file name\n\ + \032 and line number.\n\ + \032 + More intelligible message in the case of identical change to\n\ + \032 the same files: \"Nothing to do: replicas have been changed\n\ + \032 only in identical ways since last sync.\"\n\ + \032 + Files with prefix '.#' excluded when scanning for preference\n\ + \032 files.\n\ + \032 + Rsync instructions are send directly instead of first\n\ + \032 marshaled.\n\ + \032 + Won't try forever to get the fingerprint of a continuously\n\ + \032 changing file: unison will give up after certain number of\n\ + \032 retries.\n\ + \032 + Other bug fixes, including the one reported by Peter Selinger\n\ + \032 (force=older preference not working).\n\ + \032 * Compilation:\n\ + \032 + Upgraded to the new OCaml 3.04 compiler, with the LablGtk\n\ + \032 1.2.3 library (patched version used for compiling under\n\ + \032 Windows).\n\ + \032 + Added the option to compile unison on the Windows platform\n\ + \032 with Cygwin GNU C compiler. This option only supports building\n\ + \032 dynamically linked unison executables.\n\ + \n\ + \032 Changes since 2.7.4:\n\ + \032 * Fixed a silly (but debilitating) bug in the client startup\n\ + \032 sequence.\n\ + \n\ + \032 Changes since 2.7.1:\n\ + \032 * Added addprefsto preference, which (when set) controls which\n\ + \032 preference file new preferences (e.g. new ignore patterns) are\n\ + \032 added to.\n\ + \032 * Bug fix: read the initial connection header one byte at a time, so\n\ + \032 that we don't block if the header is shorter than expected. (This\n\ + \032 bug did not affect normal operation -- it just made it hard to tell\n\ + \032 when you were trying to use Unison incorrectly with an old version\n\ + \032 of the server, since it would hang instead of giving an error\n\ + \032 message.)\n\ + \n\ + \032 Changes since 2.6.59:\n\ + \032 * Changed fastcheck from a boolean to a string preference. Its legal\n\ + \032 values are yes (for a fast check), no (for a safe check), or\n\ + \032 default (for a fast check--which also happens to be safe--when\n\ + \032 running on Unix and a safe check when on Windows). The default is\n\ + \032 default.\n\ + \032 * Several preferences have been renamed for consistency. All\n\ + \032 preference names are now spelled out in lowercase. For backward\n\ + \032 compatibility, the old names still work, but they are not mentioned\n\ + \032 in the manual any more.\n\ + \032 * The temp files created by the 'diff' and 'merge' commands are now\n\ + \032 named by prepending a new prefix to the file name, rather than\n\ + \032 appending a suffix. This should avoid confusing diff/merge programs\n\ + \032 that depend on the suffix to guess the type of the file contents.\n\ + \032 * We now set the keepalive option on the server socket, to make sure\n\ + \032 that the server times out if the communication link is unexpectedly\n\ + \032 broken.\n\ + \032 * Bug fixes:\n\ + \032 + When updating small files, Unison now closes the destination\n\ + \032 file.\n\ + \032 + File permissions are properly updated when the file is behind\n\ + \032 a followed link.\n\ + \032 + Several other small fixes.\n\ + \n\ + \032 Changes since 2.6.38:\n\ + \032 * Major Windows performance improvement!\n\ + \032 We've added a preference fastcheck that makes Unison look only at a\n\ + \032 file's creation time and last-modified time to check whether it has\n\ + \032 changed. This should result in a huge speedup when checking for\n\ + \032 updates in large replicas.\n\ + \032 When this switch is set, Unison will use file creation times as\n\ + \032 'pseudo inode numbers' when scanning Windows replicas for updates,\n\ + \032 instead of reading the full contents of every file. This may cause\n\ + \032 Unison to miss propagating an update if the create time,\n\ + \032 modification time, and length of the file are all unchanged by the\n\ + \032 update (this is not easy to achieve, but it can be done). However,\n\ + \032 Unison will never overwrite such an update with a change from the\n\ + \032 other replica, since it always does a safe check for updates just\n\ + \032 before propagating a change. Thus, it is reasonable to use this\n\ + \032 switch most of the time and occasionally run Unison once with\n\ + \032 fastcheck set to false, if you are worried that Unison may have\n\ + \032 overlooked an update.\n\ + \032 Warning: This change is has not yet been thoroughly field-tested.\n\ + \032 If you set the fastcheck preference, pay careful attention to what\n\ + \032 Unison is doing.\n\ + \032 * New functionality: centralized backups and merging\n\ + \032 + This version incorporates two pieces of major new\n\ + \032 functionality, implemented by Sylvain Roy during a summer\n\ + \032 internship at Penn: a centralized backup facility that keeps a\n\ + \032 full backup of (selected files in) each replica, and a merging\n\ + \032 feature that allows Unison to invoke an external file-merging\n\ + \032 tool to resolve conflicting changes to individual files.\n\ + \032 + Centralized backups:\n\ + \032 o Unison now maintains full backups of the\n\ + \032 last-synchronized versions of (some of) the files in each\n\ + \032 replica; these function both as backups in the usual\n\ + \032 sense and as the \"common version\" when invoking external\n\ + \032 merge programs.\n\ + \032 o The backed up files are stored in a directory\n\ + \032 /.unison/backup on each host. (The name of this directory\n\ + \032 can be changed by setting the environment variable\n\ + \032 UNISONBACKUPDIR.)\n\ + \032 o The predicate backup controls which files are actually\n\ + \032 backed up: giving the preference 'backup = Path *' causes\n\ + \032 backing up of all files.\n\ + \032 o Files are added to the backup directory whenever unison\n\ + \032 updates its archive. This means that\n\ + \032 # When unison reconstructs its archive from scratch\n\ + \032 (e.g., because of an upgrade, or because the archive\n\ + \032 files have been manually deleted), all files will be\n\ + \032 backed up.\n\ + \032 # Otherwise, each file will be backed up the first\n\ + \032 time unison propagates an update for it.\n\ + \032 o The preference backupversions controls how many previous\n\ + \032 versions of each file are kept. The default is 2 (i.e.,\n\ + \032 the last synchronized version plus one backup).\n\ + \032 o For backward compatibility, the backups preference is\n\ + \032 also still supported, but backup is now preferred.\n\ + \032 o It is OK to manually delete files from the backup\n\ + \032 directory (or to throw away the directory itself). Before\n\ + \032 unison uses any of these files for anything important, it\n\ + \032 checks that its fingerprint matches the one that it\n\ + \032 expects.\n\ + \032 + Merging:\n\ + \032 o Both user interfaces offer a new 'merge' command, invoked\n\ + \032 by pressing 'm' (with a changed file selected).\n\ + \032 o The actual merging is performed by an external program.\n\ + \032 The preferences merge and merge2 control how this program\n\ + \032 is invoked. If a backup exists for this file (see the\n\ + \032 backup preference), then the merge preference is used for\n\ + \032 this purpose; otherwise merge2 is used. In both cases,\n\ + \032 the value of the preference should be a string\n\ + \032 representing the command that should be passed to a shell\n\ + \032 to invoke the merge program. Within this string, the\n\ + \032 special substrings CURRENT1, CURRENT2, NEW, and OLD may\n\ + \032 appear at any point. Unison will substitute these as\n\ + \032 follows before invoking the command:\n\ + \032 # CURRENT1 is replaced by the name of the local copy\n\ + \032 of the file;\n\ + \032 # CURRENT2 is replaced by the name of a temporary\n\ + \032 file, into which the contents of the remote copy of\n\ + \032 the file have been transferred by Unison prior to\n\ + \032 performing the merge;\n\ + \032 # NEW is replaced by the name of a temporary file that\n\ + \032 Unison expects to be written by the merge program\n\ + \032 when it finishes, giving the desired new contents of\n\ + \032 the file; and\n\ + \032 # OLD is replaced by the name of the backed up copy of\n\ + \032 the original version of the file (i.e., its state at\n\ + \032 the end of the last successful run of Unison), if\n\ + \032 one exists (applies only to merge, not merge2).\n\ + \032 For example, on Unix systems setting the merge preference\n\ + \032 to\n\ + \032 merge = diff3 -m CURRENT1 OLD CURRENT2 > NEW\n\ + \n\ + \032 will tell Unison to use the external diff3 program for\n\ + \032 merging.\n\ + \032 A large number of external merging programs are\n\ + \032 available. For example, emacs users may find the\n\ + \032 following convenient:\n\ + \032 merge2 = emacs -q --eval '(ediff-merge-files \"CURRENT1\" \"CURRENT2\"\n\ + \032 nil \"NEW\")'\n\ + \032 merge = emacs -q --eval '(ediff-merge-files-with-ancestor\n\ + \032 \"CURRENT1\" \"CURRENT2\" \"OLD\" nil \"NEW\")'\n\ + \n\ + \032 (These commands are displayed here on two lines to avoid\n\ + \032 running off the edge of the page. In your preference\n\ + \032 file, each should be written on a single line.)\n\ + \032 o If the external program exits without leaving any file at\n\ + \032 the path NEW, Unison considers the merge to have failed.\n\ + \032 If the merge program writes a file called NEW but exits\n\ + \032 with a non-zero status code, then Unison considers the\n\ + \032 merge to have succeeded but to have generated conflicts.\n\ + \032 In this case, it attempts to invoke an external editor so\n\ + \032 that the user can resolve the conflicts. The value of the\n\ + \032 editor preference controls what editor is invoked by\n\ + \032 Unison. The default is emacs.\n\ + \032 o Please send us suggestions for other useful values of the\n\ + \032 merge2 and merge preferences - we'd like to give several\n\ + \032 examples in the manual.\n\ + \032 * Smaller changes:\n\ + \032 + When one preference file includes another, unison no longer\n\ + \032 adds the suffix '.prf' to the included file by default. If a\n\ + \032 file with precisely the given name exists in the .unison\n\ + \032 directory, it will be used; otherwise Unison will add .prf, as\n\ + \032 it did before. (This change means that included preference\n\ + \032 files can be named blah.include instead of blah.prf, so that\n\ + \032 unison will not offer them in its 'choose a preference file'\n\ + \032 dialog.)\n\ + \032 + For Linux systems, we now offer both a statically linked and a\n\ + \032 dynamically linked executable. The static one is larger, but\n\ + \032 will probably run on more systems, since it doesn't depend on\n\ + \032 the same versions of dynamically linked library modules being\n\ + \032 available.\n\ + \032 + Fixed the force and prefer preferences, which were getting the\n\ + \032 propagation direction exactly backwards.\n\ + \032 + Fixed a bug in the startup code that would cause unison to\n\ + \032 crash when the default profile (~/.unison/default.prf) does\n\ + \032 not exist.\n\ + \032 + Fixed a bug where, on the run when a profile is first created,\n\ + \032 Unison would confusingly display the roots in reverse order in\n\ + \032 the user interface.\n\ + \032 * For developers:\n\ + \032 + We've added a module dependency diagram to the source\n\ + \032 distribution, in src/DEPENDENCIES.ps, to help new prospective\n\ + \032 developers with navigating the code.\n\ + \n\ + \032 Changes since 2.6.11:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed.\n\ + \032 * INCOMPATIBLE CHANGE: The startup sequence has been completely\n\ + \032 rewritten and greatly simplified. The main user-visible change is\n\ + \032 that the defaultpath preference has been removed. Its effect can be\n\ + \032 approximated by using multiple profiles, with include directives to\n\ + \032 incorporate common settings. All uses of defaultpath in existing\n\ + \032 profiles should be changed to path.\n\ + \032 Another change in startup behavior that will affect some users is\n\ + \032 that it is no longer possible to specify roots both in the profile\n\ + \032 and on the command line.\n\ + \032 You can achieve a similar effect, though, by breaking your profile\n\ + \032 into two:\n\ + \n\ + \032 default.prf =\n\ + \032 root = blah\n\ + \032 root = foo\n\ + \032 include common\n\ + \n\ + \032 common.prf =\n\ + \032 \n\ + \n\ + \032 Now do\n\ + \032 unison common root1 root2\n\ + \n\ + \032 when you want to specify roots explicitly.\n\ + \032 * The -prefer and -force options have been extended to allow users to\n\ + \032 specify that files with more recent modtimes should be propagated,\n\ + \032 writing either -prefer newer or -force newer. (For symmetry, Unison\n\ + \032 will also accept -prefer older or -force older.) The -force\n\ + \032 older/newer options can only be used when -times is also set.\n\ + \032 The graphical user interface provides access to these facilities on\n\ + \032 a one-off basis via the Actions menu.\n\ + \032 * Names of roots can now be \"aliased\" to allow replicas to be\n\ + \032 relocated without changing the name of the archive file where\n\ + \032 Unison stores information between runs. (This feature is for\n\ + \032 experts only. See the \"Archive Files\" section of the manual for\n\ + \032 more information.)\n\ + \032 * Graphical user-interface:\n\ + \032 + A new command is provided in the Synchronization menu for\n\ + \032 switching to a new profile without restarting Unison from\n\ + \032 scratch.\n\ + \032 + The GUI also supports one-key shortcuts for commonly used\n\ + \032 profiles. If a profile contains a preference of the form 'key\n\ + \032 = n', where n is a single digit, then pressing this key will\n\ + \032 cause Unison to immediately switch to this profile and begin\n\ + \032 synchronization again from scratch. (Any actions that may have\n\ + \032 been selected for a set of changes currently being displayed\n\ + \032 will be discarded.)\n\ + \032 + Each profile may include a preference 'label = '\n\ + \032 giving a descriptive string that described the options\n\ + \032 selected in this profile. The string is listed along with the\n\ + \032 profile name in the profile selection dialog, and displayed in\n\ + \032 the top-right corner of the main Unison window.\n\ + \032 * Minor:\n\ + \032 + Fixed a bug that would sometimes cause the 'diff' display to\n\ + \032 order the files backwards relative to the main user interface.\n\ + \032 (Thanks to Pascal Brisset for this fix.)\n\ + \032 + On Unix systems, the graphical version of Unison will check\n\ + \032 the DISPLAY variable and, if it is not set, automatically fall\n\ + \032 back to the textual user interface.\n\ + \032 + Synchronization paths (path preferences) are now matched\n\ + \032 against the ignore preferences. So if a path is both specified\n\ + \032 in a path preference and ignored, it will be skipped.\n\ + \032 + Numerous other bugfixes and small improvements.\n\ + \n\ + \032 Changes since 2.6.1:\n\ + \032 * The synchronization of modification times has been disabled for\n\ + \032 directories.\n\ + \032 * Preference files may now include lines of the form include ,\n\ + \032 which will cause name.prf to be read at that point.\n\ + \032 * The synchronization of permission between Windows and Unix now\n\ + \032 works properly.\n\ + \032 * A binding CYGWIN=binmode in now added to the environment so that\n\ + \032 the Cygwin port of OpenSSH works properly in a non-Cygwin context.\n\ + \032 * The servercmd and addversionno preferences can now be used\n\ + \032 together: -addversionno appends an appropriate -NNN to the server\n\ + \032 command, which is found by using the value of the -servercmd\n\ + \032 preference if there is one, or else just unison.\n\ + \032 * Both '-pref=val' and '-pref val' are now allowed for boolean\n\ + \032 values. (The former can be used to set a preference to false.)\n\ + \032 * Lot of small bugs fixed.\n\ + \n\ + \032 Changes since 2.5.31:\n\ + \032 * The log preference is now set to true by default, since the log\n\ + \032 file seems useful for most users.\n\ + \032 * Several miscellaneous bugfixes (most involving symlinks).\n\ + \n\ + \032 Changes since 2.5.25:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed (again).\n\ + \032 * Several significant bugs introduced in 2.5.25 have been fixed.\n\ + \n\ + \032 Changes since 2.5.1:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * New functionality:\n\ + \032 + Unison now synchronizes file modtimes, user-ids, and\n\ + \032 group-ids.\n\ + \032 These new features are controlled by a set of new preferences,\n\ + \032 all of which are currently false by default.\n\ + \032 o When the times preference is set to true, file\n\ + \032 modification times are propaged. (Because the\n\ + \032 representations of time may not have the same granularity\n\ + \032 on both replicas, Unison may not always be able to make\n\ + \032 the modtimes precisely equal, but it will get them as\n\ + \032 close as the operating systems involved allow.)\n\ + \032 o When the owner preference is set to true, file ownership\n\ + \032 information is synchronized.\n\ + \032 o When the group preference is set to true, group\n\ + \032 information is synchronized.\n\ + \032 o When the numericIds preference is set to true, owner and\n\ + \032 group information is synchronized numerically. By\n\ + \032 default, owner and group numbers are converted to names\n\ + \032 on each replica and these names are synchronized. (The\n\ + \032 special user id 0 and the special group 0 are never\n\ + \032 mapped via user/group names even if this preference is\n\ + \032 not set.)\n\ + \032 + Added an integer-valued preference perms that can be used to\n\ + \032 control the propagation of permission bits. The value of this\n\ + \032 preference is a mask indicating which permission bits should\n\ + \032 be synchronized. It is set by default to 0o1777: all bits but\n\ + \032 the set-uid and set-gid bits are synchronised (synchronizing\n\ + \032 theses latter bits can be a security hazard). If you want to\n\ + \032 synchronize all bits, you can set the value of this preference\n\ + \032 to -1.\n\ + \032 + Added a log preference (default false), which makes Unison\n\ + \032 keep a complete record of the changes it makes to the\n\ + \032 replicas. By default, this record is written to a file called\n\ + \032 unison.log in the user's home directory (the value of the HOME\n\ + \032 environment variable). If you want it someplace else, set the\n\ + \032 logfile preference to the full pathname you want Unison to\n\ + \032 use.\n\ + \032 + Added an ignorenot preference that maintains a set of patterns\n\ + \032 for paths that should definitely not be ignored, whether or\n\ + \032 not they match an ignore pattern. (That is, a path will now be\n\ + \032 ignored iff it matches an ignore pattern and does not match\n\ + \032 any ignorenot patterns.)\n\ + \032 * User-interface improvements:\n\ + \032 + Roots are now displayed in the user interface in the same\n\ + \032 order as they were given on the command line or in the\n\ + \032 preferences file.\n\ + \032 + When the batch preference is set, the graphical user interface\n\ + \032 no longer waits for user confirmation when it displays a\n\ + \032 warning message: it simply pops up an advisory window with a\n\ + \032 Dismiss button at the bottom and keeps on going.\n\ + \032 + Added a new preference for controlling how many status\n\ + \032 messages are printed during update detection: statusdepth\n\ + \032 controls the maximum depth for paths on the local machine\n\ + \032 (longer paths are not displayed, nor are non-directory paths).\n\ + \032 The value should be an integer; default is 1.\n\ + \032 + Removed the trace and silent preferences. They did not seem\n\ + \032 very useful, and there were too many preferences for\n\ + \032 controlling output in various ways.\n\ + \032 + The text UI now displays just the default command (the one\n\ + \032 that will be used if the user just types ) instead of\n\ + \032 all available commands. Typing ? will print the full list of\n\ + \032 possibilities.\n\ + \032 + The function that finds the canonical hostname of the local\n\ + \032 host (which is used, for example, in calculating the name of\n\ + \032 the archive file used to remember which files have been\n\ + \032 synchronized) normally uses the gethostname operating system\n\ + \032 call. However, if the environment variable UNISONLOCALHOSTNAME\n\ + \032 is set, its value will now be used instead. This makes it\n\ + \032 easier to use Unison in situations where a machine's name\n\ + \032 changes frequently (e.g., because it is a laptop and gets\n\ + \032 moved around a lot).\n\ + \032 + File owner and group are now displayed in the \"detail window\"\n\ + \032 at the bottom of the screen, when unison is configured to\n\ + \032 synchronize them.\n\ + \032 * For hackers:\n\ + \032 + Updated to Jacques Garrigue's new version of lablgtk, which\n\ + \032 means we can throw away our local patched version.\n\ + \032 If you're compiling the GTK version of unison from sources,\n\ + \032 you'll need to update your copy of lablgtk to the developers\n\ + \032 release. (Warning: installing lablgtk under Windows is\n\ + \032 currently a bit challenging.)\n\ + \032 + The TODO.txt file (in the source distribution) has been\n\ + \032 cleaned up and reorganized. The list of pending tasks should\n\ + \032 be much easier to make sense of, for people that may want to\n\ + \032 contribute their programming energies. There is also a\n\ + \032 separate file BUGS.txt for open bugs.\n\ + \032 + The Tk user interface has been removed (it was not being\n\ + \032 maintained and no longer compiles).\n\ + \032 + The debug preference now prints quite a bit of additional\n\ + \032 information that should be useful for identifying sources of\n\ + \032 problems.\n\ + \032 + The version number of the remote server is now checked right\n\ + \032 away during the connection setup handshake, rather than later.\n\ + \032 (Somebody sent a bug report of a server crash that turned out\n\ + \032 to come from using inconsistent versions: better to check this\n\ + \032 earlier and in a way that can't crash either client or\n\ + \032 server.)\n\ + \032 + Unison now runs correctly on 64-bit architectures (e.g. Alpha\n\ + \032 linux). We will not be distributing binaries for these\n\ + \032 architectures ourselves (at least for a while) but if someone\n\ + \032 would like to make them available, we'll be glad to provide a\n\ + \032 link to them.\n\ + \032 * Bug fixes:\n\ + \032 + Pattern matching (e.g. for ignore) is now case-insensitive\n\ + \032 when Unison is in case-insensitive mode (i.e., when one of the\n\ + \032 replicas is on a windows machine).\n\ + \032 + Some people had trouble with mysterious failures during\n\ + \032 propagation of updates, where files would be falsely reported\n\ + \032 as having changed during synchronization. This should be\n\ + \032 fixed.\n\ + \032 + Numerous smaller fixes.\n\ + \n\ + \032 Changes since 2.4.1:\n\ + \032 * Added a number of 'sorting modes' for the user interface. By\n\ + \032 default, conflicting changes are displayed at the top, and the rest\n\ + \032 of the entries are sorted in alphabetical order. This behavior can\n\ + \032 be changed in the following ways:\n\ + \032 + Setting the sortnewfirst preference to true causes newly\n\ + \032 created files to be displayed before changed files.\n\ + \032 + Setting sortbysize causes files to be displayed in increasing\n\ + \032 order of size.\n\ + \032 + Giving the preference sortfirst= (where is\n\ + \032 a path descriptor in the same format as 'ignore' and 'follow'\n\ + \032 patterns, causes paths matching this pattern to be displayed\n\ + \032 first.\n\ + \032 + Similarly, giving the preference sortlast= causes\n\ + \032 paths matching this pattern to be displayed last.\n\ + \032 The sorting preferences are described in more detail in the user\n\ + \032 manual. The sortnewfirst and sortbysize flags can also be accessed\n\ + \032 from the 'Sort' menu in the grpahical user interface.\n\ + \032 * Added two new preferences that can be used to change unison's\n\ + \032 fundamental behavior to make it more like a mirroring tool instead\n\ + \032 of a synchronizer.\n\ + \032 + Giving the preference prefer with argument (by adding\n\ + \032 -prefer to the command line or prefer=) to your\n\ + \032 profile) means that, if there is a conflict, the contents of\n\ + \032 should be propagated to the other replica (with no\n\ + \032 questions asked). Non-conflicting changes are treated as\n\ + \032 usual.\n\ + \032 + Giving the preference force with argument will make\n\ + \032 unison resolve all differences in favor of the given root,\n\ + \032 even if it was the other replica that was changed.\n\ + \032 These options should be used with care! (More information is\n\ + \032 available in the manual.)\n\ + \032 * Small changes:\n\ + \032 + Changed default answer to 'Yes' in all two-button dialogs in\n\ + \032 the graphical interface (this seems more intuitive).\n\ + \032 + The rsync preference has been removed (it was used to activate\n\ + \032 rsync compression for file transfers, but rsync compression is\n\ + \032 now enabled by default).\n\ + \032 + In the text user interface, the arrows indicating which\n\ + \032 direction changes are being propagated are printed differently\n\ + \032 when the user has overridded Unison's default recommendation\n\ + \032 (====> instead of ---->). This matches the behavior of the\n\ + \032 graphical interface, which displays such arrows in a different\n\ + \032 color.\n\ + \032 + Carriage returns (Control-M's) are ignored at the ends of\n\ + \032 lines in profiles, for Windows compatibility.\n\ + \032 + All preferences are now fully documented in the user manual.\n\ + \n\ + \032 Changes since 2.3.12:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * New/improved functionality:\n\ + \032 + A new preference -sortbysize controls the order in which\n\ + \032 changes are displayed to the user: when it is set to true, the\n\ + \032 smallest changed files are displayed first. (The default\n\ + \032 setting is false.)\n\ + \032 + A new preference -sortnewfirst causes newly created files to\n\ + \032 be listed before other updates in the user interface.\n\ + \032 + We now allow the ssh protocol to specify a port.\n\ + \032 + Incompatible change: The unison: protocol is deprecated, and\n\ + \032 we added file: and socket:. You may have to modify your\n\ + \032 profiles in the .unison directory. If a replica is specified\n\ + \032 without an explicit protocol, we now assume it refers to a\n\ + \032 file. (Previously \"//saul/foo\" meant to use SSH to connect to\n\ + \032 saul, then access the foo directory. Now it means to access\n\ + \032 saul via a remote file mechanism such as samba; the old effect\n\ + \032 is now achieved by writing ssh://saul/foo.)\n\ + \032 + Changed the startup sequence for the case where roots are\n\ + \032 given but no profile is given on the command line. The new\n\ + \032 behavior is to use the default profile (creating it if it does\n\ + \032 not exist), and temporarily override its roots. The manual\n\ + \032 claimed that this case would work by reading no profile at\n\ + \032 all, but AFAIK this was never true.\n\ + \032 + In all user interfaces, files with conflicts are always listed\n\ + \032 first\n\ + \032 + A new preference 'sshversion' can be used to control which\n\ + \032 version of ssh should be used to connect to the server. Legal\n\ + \032 values are 1 and 2. (Default is empty, which will make unison\n\ + \032 use whatever version of ssh is installed as the default 'ssh'\n\ + \032 command.)\n\ + \032 + The situation when the permissions of a file was updated the\n\ + \032 same on both side is now handled correctly (we used to report\n\ + \032 a spurious conflict)\n\ + \032 * Improvements for the Windows version:\n\ + \032 + The fact that filenames are treated case-insensitively under\n\ + \032 Windows should now be handled correctly. The exact behavior is\n\ + \032 described in the cross-platform section of the manual.\n\ + \032 + It should be possible to synchronize with Windows shares,\n\ + \032 e.g., //host/drive/path.\n\ + \032 + Workarounds to the bug in syncing root directories in Windows.\n\ + \032 The most difficult thing to fix is an ocaml bug: Unix.opendir\n\ + \032 fails on c: in some versions of Windows.\n\ + \032 * Improvements to the GTK user interface (the Tk interface is no\n\ + \032 longer being maintained):\n\ + \032 + The UI now displays actions differently (in blue) when they\n\ + \032 have been explicitly changed by the user from Unison's default\n\ + \032 recommendation.\n\ + \032 + More colorful appearance.\n\ + \032 + The initial profile selection window works better.\n\ + \032 + If any transfers failed, a message to this effect is displayed\n\ + \032 along with 'Synchronization complete' at the end of the\n\ + \032 transfer phase (in case they may have scrolled off the top).\n\ + \032 + Added a global progress meter, displaying the percentage of\n\ + \032 total bytes that have been transferred so far.\n\ + \032 * Improvements to the text user interface:\n\ + \032 + The file details will be displayed automatically when a\n\ + \032 conflict is been detected.\n\ + \032 + when a warning is generated (e.g. for a temporary file left\n\ + \032 over from a previous run of unison) Unison will no longer wait\n\ + \032 for a response if it is running in -batch mode.\n\ + \032 + The UI now displays a short list of possible inputs each time\n\ + \032 it waits for user interaction.\n\ + \032 + The UI now quits immediately (rather than looping back and\n\ + \032 starting the interaction again) if the user presses 'q' when\n\ + \032 asked whether to propagate changes.\n\ + \032 + Pressing 'g' in the text user interface will proceed\n\ + \032 immediately with propagating updates, without asking any more\n\ + \032 questions.\n\ + \032 * Documentation and installation changes:\n\ + \032 + The manual now includes a FAQ, plus sections on common\n\ + \032 problems and on tricks contributed by users.\n\ + \032 + Both the download page and the download directory explicitly\n\ + \032 say what are the current stable and beta-test version numbers.\n\ + \032 + The OCaml sources for the up-to-the-minute developers' version\n\ + \032 (not guaranteed to be stable, or even to compile, at any given\n\ + \032 time!) are now available from the download page.\n\ + \032 + Added a subsection to the manual describing cross-platform\n\ + \032 issues (case conflicts, illegal filenames)\n\ + \032 * Many small bug fixes and random improvements.\n\ + \n\ + \032 Changes since 2.3.1:\n\ + \032 * Several bug fixes. The most important is a bug in the rsync module\n\ + \032 that would occasionally cause change propagation to fail with a\n\ + \032 'rename' error.\n\ + \n\ + \032 Changes since 2.2:\n\ + \032 * The multi-threaded transport system is now disabled by default. (It\n\ + \032 is not stable enough yet.)\n\ + \032 * Various bug fixes.\n\ + \032 * A new experimental feature:\n\ + \032 The final component of a -path argument may now be the wildcard\n\ + \032 specifier *. When Unison sees such a path, it expands this path on\n\ + \032 the client into into the corresponding list of paths by listing the\n\ + \032 contents of that directory.\n\ + \032 Note that if you use wildcard paths from the command line, you will\n\ + \032 probably need to use quotes or a backslash to prevent the * from\n\ + \032 being interpreted by your shell.\n\ + \032 If both roots are local, the contents of the first one will be used\n\ + \032 for expanding wildcard paths. (Nb: this is the first one after the\n\ + \032 canonization step - i.e., the one that is listed first in the user\n\ + \032 interface - not the one listed first on the command line or in the\n\ + \032 preferences file.)\n\ + \n\ + \032 Changes since 2.1:\n\ + \032 * The transport subsystem now includes an implementation by Sylvain\n\ + \032 Gommier and Norman Ramsey of Tridgell and Mackerras's rsync\n\ + \032 protocol. This protocol achieves much faster transfers when only a\n\ + \032 small part of a large file has been changed by sending just diffs.\n\ + \032 This feature is mainly helpful for transfers over slow links--on\n\ + \032 fast local area networks it can actually degrade performance--so we\n\ + \032 have left it off by default. Start unison with the -rsync option\n\ + \032 (or put rsync=true in your preferences file) to turn it on.\n\ + \032 * \"Progress bars\" are now diplayed during remote file transfers,\n\ + \032 showing what percentage of each file has been transferred so far.\n\ + \032 * The version numbering scheme has changed. New releases will now be\n\ + \032 have numbers like 2.2.30, where the second component is incremented\n\ + \032 on every significant public release and the third component is the\n\ + \032 \"patch level.\"\n\ + \032 * Miscellaneous improvements to the GTK-based user interface.\n\ + \032 * The manual is now available in PDF format.\n\ + \032 * We are experimenting with using a multi-threaded transport\n\ + \032 subsystem to transfer several files at the same time, making much\n\ + \032 more effective use of available network bandwidth. This feature is\n\ + \032 not completely stable yet, so by default it is disabled in the\n\ + \032 release version of Unison.\n\ + \032 If you want to play with the multi-threaded version, you'll need to\n\ + \032 recompile Unison from sources (as described in the documentation),\n\ + \032 setting the THREADS flag in Makefile.OCaml to true. Make sure that\n\ + \032 your OCaml compiler has been installed with the -with-pthreads\n\ + \032 configuration option. (You can verify this by checking whether the\n\ + \032 file threads/threads.cma in the OCaml standard library directory\n\ + \032 contains the string -lpthread near the end.)\n\ + \n\ + \032 Changes since 1.292:\n\ + \032 * Reduced memory footprint (this is especially important during the\n\ + \032 first run of unison, where it has to gather information about all\n\ + \032 the files in both repositories).\n\ + \032 * Fixed a bug that would cause the socket server under NT to fail\n\ + \032 after the client exits.\n\ + \032 * Added a SHIFT modifier to the Ignore menu shortcut keys in GTK\n\ + \032 interface (to avoid hitting them accidentally).\n\ + \n\ + \032 Changes since 1.231:\n\ + \032 * Tunneling over ssh is now supported in the Windows version. See the\n\ + \032 installation section of the manual for detailed instructions.\n\ + \032 * The transport subsystem now includes an implementation of the rsync\n\ + \032 protocol, built by Sylvain Gommier and Norman Ramsey. This protocol\n\ + \032 achieves much faster transfers when only a small part of a large\n\ + \032 file has been changed by sending just diffs. The rsync feature is\n\ + \032 off by default in the current version. Use the -rsync switch to\n\ + \032 turn it on. (Nb. We still have a lot of tuning to do: you may not\n\ + \032 notice much speedup yet.)\n\ + \032 * We're experimenting with a multi-threaded transport subsystem,\n\ + \032 written by Jerome Vouillon. The downloadable binaries are still\n\ + \032 single-threaded: if you want to try the multi-threaded version,\n\ + \032 you'll need to recompile from sources. (Say make THREADS=true.)\n\ + \032 Native thread support from the compiler is required. Use the option\n\ + \032 -threads N to select the maximal number of concurrent threads\n\ + \032 (default is 5). Multi-threaded and single-threaded clients/servers\n\ + \032 can interoperate.\n\ + \032 * A new GTK-based user interface is now available, thanks to Jacques\n\ + \032 Garrigue. The Tk user interface still works, but we'll be shifting\n\ + \032 development effort to the GTK interface from now on.\n\ + \032 * OCaml 3.00 is now required for compiling Unison from sources. The\n\ + \032 modules uitk and myfileselect have been changed to use labltk\n\ + \032 instead of camltk. To compile the Tk interface in Windows, you must\n\ + \032 have ocaml-3.00 and tk8.3. When installing tk8.3, put it in c:\\Tcl\n\ + \032 rather than the suggested c:\\Program Files\\Tcl, and be sure to\n\ + \032 install the headers and libraries (which are not installed by\n\ + \032 default).\n\ + \032 * Added a new -addversionno switch, which causes unison to use\n\ + \032 unison- instead of just unison as the remote\n\ + \032 server command. This allows multiple versions of unison to coexist\n\ + \032 conveniently on the same server: whichever version is run on the\n\ + \032 client, the same version will be selected on the server.\n\ + \n\ + \032 Changes since 1.219:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * This version fixes several annoying bugs, including:\n\ + \032 + Some cases where propagation of file permissions was not\n\ + \032 working.\n\ + \032 + umask is now ignored when creating directories\n\ + \032 + directories are create writable, so that a read-only directory\n\ + \032 and its contents can be propagated.\n\ + \032 + Handling of warnings generated by the server.\n\ + \032 + Synchronizing a path whose parent is not a directory on both\n\ + \032 sides is now flagged as erroneous.\n\ + \032 + Fixed some bugs related to symnbolic links and nonexistant\n\ + \032 roots.\n\ + \032 o When a change (deletion or new contents) is propagated\n\ + \032 onto a 'follow'ed symlink, the file pointed to by the\n\ + \032 link is now changed. (We used to change the link itself,\n\ + \032 which doesn't fit our assertion that 'follow' means the\n\ + \032 link is completely invisible)\n\ + \032 o When one root did not exist, propagating the other root\n\ + \032 on top of it used to fail, becuase unison could not\n\ + \032 calculate the working directory into which to write\n\ + \032 changes. This should be fixed.\n\ + \032 * A human-readable timestamp has been added to Unison's archive\n\ + \032 files.\n\ + \032 * The semantics of Path and Name regular expressions now correspond\n\ + \032 better.\n\ + \032 * Some minor improvements to the text UI (e.g. a command for going\n\ + \032 back to previous items)\n\ + \032 * The organization of the export directory has changed -- should be\n\ + \032 easier to find / download things now.\n\ + \n\ + \032 Changes since 1.200:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * This version has not been tested extensively on Windows.\n\ + \032 * Major internal changes designed to make unison safer to run at the\n\ + \032 same time as the replicas are being changed by the user.\n\ + \032 * Internal performance improvements.\n\ + \n\ + \032 Changes since 1.190:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * A number of internal functions have been changed to reduce the\n\ + \032 amount of memory allocation, especially during the first\n\ + \032 synchronization. This should help power users with very big\n\ + \032 replicas.\n\ + \032 * Reimplementation of low-level remote procedure call stuff, in\n\ + \032 preparation for adding rsync-like smart file transfer in a later\n\ + \032 release.\n\ + \032 * Miscellaneous bug fixes.\n\ + \n\ + \032 Changes since 1.180:\n\ + \032 * INCOMPATIBLE CHANGE: Archive format has changed. Make sure you\n\ + \032 synchronize your replicas before upgrading, to avoid spurious\n\ + \032 conflicts. The first sync after upgrading will be slow.\n\ + \032 * Fixed some small bugs in the interpretation of ignore patterns.\n\ + \032 * Fixed some problems that were preventing the Windows version from\n\ + \032 working correctly when click-started.\n\ + \032 * Fixes to treatment of file permissions under Windows, which were\n\ + \032 causing spurious reports of different permissions when\n\ + \032 synchronizing between windows and unix systems.\n\ + \032 * Fixed one more non-tail-recursive list processing function, which\n\ + \032 was causing stack overflows when synchronizing very large replicas.\n\ + \n\ + \032 Changes since 1.169:\n\ + \032 * The text user interface now provides commands for ignoring files.\n\ + \032 * We found and fixed some more non-tail-recursive list processing\n\ + \032 functions. Some power users have reported success with very large\n\ + \032 replicas.\n\ + \032 * INCOMPATIBLE CHANGE: Files ending in .tmp are no longer ignored\n\ + \032 automatically. If you want to ignore such files, put an appropriate\n\ + \032 ignore pattern in your profile.\n\ + \032 * INCOMPATIBLE CHANGE: The syntax of ignore and follow patterns has\n\ + \032 changed. Instead of putting a line of the form\n\ + \032 ignore = \n\ + \n\ + \032 in your profile (.unison/default.prf), you should put:\n\ + \032 ignore = Regex \n\ + \n\ + \032 Moreover, two other styles of pattern are also recognized:\n\ + \032 ignore = Name \n\ + \n\ + \032 matches any path in which one component matches , while\n\ + \032 ignore = Path \n\ + \n\ + \032 matches exactly the path .\n\ + \032 Standard \"globbing\" conventions can be used in and :\n\ + \032 + a ? matches any single character except /\n\ + \032 + a * matches any sequence of characters not including /\n\ + \032 + [xyz] matches any character from the set {x, y, z }\n\ + \032 + {a,bb,ccc} matches any one of a, bb, or ccc.\n\ + \032 See the user manual for some examples.\n\ + \n\ + \032 Changes since 1.146:\n\ + \032 * Some users were reporting stack overflows when synchronizing huge\n\ + \032 directories. We found and fixed some non-tail-recursive list\n\ + \032 processing functions, which we hope will solve the problem. Please\n\ + \032 give it a try and let us know.\n\ + \032 * Major additions to the documentation.\n\ + \n\ + \032 Changes since 1.142:\n\ + \032 * Major internal tidying and many small bugfixes.\n\ + \032 * Major additions to the user manual.\n\ + \032 * Unison can now be started with no arguments - it will prompt\n\ + \032 automatically for the name of a profile file containing the roots\n\ + \032 to be synchronized. This makes it possible to start the graphical\n\ + \032 UI from a desktop icon.\n\ + \032 * Fixed a small bug where the text UI on NT was raising a 'no such\n\ + \032 signal' exception.\n\ + \n\ + \032 Changes since 1.139:\n\ + \032 * The precompiled windows binary in the last release was compiled\n\ + \032 with an old OCaml compiler, causing propagation of permissions not\n\ + \032 to work (and perhaps leading to some other strange behaviors we've\n\ + \032 heard reports about). This has been corrected. If you're using\n\ + \032 precompiled binaries on Windows, please upgrade.\n\ + \032 * Added a -debug command line flag, which controls debugging of\n\ + \032 various modules. Say -debug XXX to enable debug tracing for module\n\ + \032 XXX, or -debug all to turn on absolutely everything.\n\ + \032 * Fixed a small bug where the text UI on NT was raising a 'no such\n\ + \032 signal' exception.\n\ + \n\ + \032 Changes since 1.111:\n\ + \032 * INCOMPATIBLE CHANGE: The names and formats of the preference files\n\ + \032 in the .unison directory have changed. In particular:\n\ + \032 + the file \"prefs\" should be renamed to default.prf\n\ + \032 + the contents of the file \"ignore\" should be merged into\n\ + \032 default.prf. Each line of the form REGEXP in ignore should\n\ + \032 become a line of the form ignore = REGEXP in default.prf.\n\ + \032 * Unison now handles permission bits and symbolic links. See the\n\ + \032 manual for details.\n\ + \032 * You can now have different preference files in your .unison\n\ + \032 directory. If you start unison like this\n\ + \032 unison profilename\n\ + \n\ + \032 (i.e. with just one \"anonymous\" command-line argument), then the\n\ + \032 file ~/.unison/profilename.prf will be loaded instead of\n\ + \032 default.prf.\n\ + \032 * Some improvements to terminal handling in the text user interface\n\ + \032 * Added a switch -killServer that terminates the remote server\n\ + \032 process when the unison client is shutting down, even when using\n\ + \032 sockets for communication. (By default, a remote server created\n\ + \032 using ssh/rsh is terminated automatically, while a socket server is\n\ + \032 left running.)\n\ + \032 * When started in 'socket server' mode, unison prints 'server\n\ + \032 started' on stderr when it is ready to accept connections. (This\n\ + \032 may be useful for scripts that want to tell when a socket-mode\n\ + \032 server has finished initalization.)\n\ + \032 * We now make a nightly mirror of our current internal development\n\ + \032 tree, in case anyone wants an up-to-the-minute version to hack\n\ + \032 around with.\n\ + \032 * Added a file CONTRIB with some suggestions for how to help us make\n\ + \032 Unison better.\n\ + \n\ + ")) +:: + ("", ("Junk", + "Junk\n\ + \032 __________________________________________________________________\n\ + \n\ + \032 This document was translated from L^AT[E]X by [2]H^EV^EA.\n\ + \n\ + References\n\ + \n\ + \032 1. file:///Users/bcpierce/current/unison/trunk/doc/temp.html#ssh-win\n\ + \032 2. http://pauillac.inria.fr/~maranget/hevea/index.html\n\ + ")) +:: + [];; + diff -Nru unison-2.40.102/strings.mli unison-2.48.3/strings.mli --- unison-2.40.102/strings.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/strings.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,4 +1,4 @@ (* Unison file synchronizer: src/strings.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) val docs : (string * (string * string)) list diff -Nru unison-2.40.102/system/system_generic.ml unison-2.48.3/system/system_generic.ml --- unison-2.40.102/system/system_generic.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/system/system_generic.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/system/system_generic.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/system/system_intf.ml unison-2.48.3/system/system_intf.ml --- unison-2.40.102/system/system_intf.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/system/system_intf.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/system/system_intf.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/system/system_win.ml unison-2.48.3/system/system_win.ml --- unison-2.40.102/system/system_win.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/system/system_win.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/system/system_win.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/system/system_win_stubs.c unison-2.48.3/system/system_win_stubs.c --- unison-2.40.102/system/system_win_stubs.c 2010-10-08 15:44:59.000000000 +0000 +++ unison-2.48.3/system/system_win_stubs.c 2012-08-09 14:30:22.000000000 +0000 @@ -1,10 +1,10 @@ +#define WINVER 0x0500 + #include #include #include #include -#define WINVER 0x0500 - #include #include #include diff -Nru unison-2.40.102/system.ml unison-2.48.3/system.ml --- unison-2.40.102/system.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/system.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/system.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/system.mli unison-2.48.3/system.mli --- unison-2.40.102/system.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/system.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/system.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Operations on filesystem path *) diff -Nru unison-2.40.102/terminal.ml unison-2.48.3/terminal.ml --- unison-2.40.102/terminal.ml 2010-10-11 13:29:09.000000000 +0000 +++ unison-2.48.3/terminal.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/terminal.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/test.ml unison-2.48.3/test.ml --- unison-2.40.102/test.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/test.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/test.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -214,7 +214,7 @@ let sync ?(verbose=false) () = let (reconItemList, _, _) = - Recon.reconcileAll (Update.findUpdates()) in + Recon.reconcileAll (Update.findUpdates None) in if verbose then begin Util.msg "Sync result:\n"; displayRis reconItemList @@ -340,6 +340,39 @@ ); if bothRootsLocal then + runtest "fastercheckUNSAFE 1" ["fastercheckUNSAFE = true"] (fun() -> + put R1 (Dir []); put R2 (Dir []); sync(); + (* Create a file on both sides with different contents *) + put R1 (Dir ["x", File "foo"]); + put R2 (Dir ["x", File "bar"]); sync(); + check "1a" R1 (Dir ["x", File "foo"]); + check "1b" R2 (Dir ["x", File "bar"]); + (* Change contents on one side and see that we do NOT get a conflict (!) *) + put R1 (Dir ["x", File "newcontents"]); sync(); + check "2a" R1 (Dir ["x", File "newcontents"]); + check "2b" R2 (Dir ["x", File "newcontents"]); + + (* Start again *) + put R1 (Dir []); put R2 (Dir []); sync(); + (* Create a file on both sides with different contents *) + put R1 (Dir ["x", File "foo"]); + put R2 (Dir ["x", File "bar"]); sync(); + (* Change contents without changing size and check that change is propagated *) + put R1 (Dir ["x", File "f00"]); sync(); + check "3a" R1 (Dir ["x", File "f00"]); + check "3b" R2 (Dir ["x", File "f00"]); + + (* Start again *) + put R1 (Dir []); put R2 (Dir []); sync(); + (* Create a new file on one side only *) + put R1 (Dir ["x", File "foo"]); sync(); + (* Check that change is propagated *) + check "4" R2 (Dir ["x", File "foo"]); + ); + + (raise (Util.Fatal "Skipping some tests -- remove me!\n") : unit); + + if bothRootsLocal then runtest "backups 1 (local)" ["backup = Name *"] (fun() -> put R1 (Dir []); put R2 (Dir []); sync(); (* Create a file and a directory *) diff -Nru unison-2.40.102/test.mli unison-2.48.3/test.mli --- unison-2.40.102/test.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/test.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/test.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Internal self-tests *) diff -Nru unison-2.40.102/TODO.txt unison-2.48.3/TODO.txt --- unison-2.40.102/TODO.txt 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/TODO.txt 2012-08-09 14:30:22.000000000 +0000 @@ -65,6 +65,19 @@ We're running under Cygwin (which is needed to have rsync) +* The directory scanning optimization is currently disabled under Windows, + as FAT partitions do not have directory modification times. + we could check whether we are on an NTFS partition by calling + GetVolumeInformation to get the filesystem name. + +* We could defer most fingerprint computations to the propagation phase; + this would improve the user experience and save some fingerprints: + - do not compute fingerprint of new files during update detection + - during reconciliation, try to decide what to do based on what is + known so far + - for undecided paths (two files), request checksums (in batch) + - hashes are finally computed during propagation + ########################################################################### * SOON @@ -227,6 +240,11 @@ should strip symbols from binary files in 'make exportnative' +* [Joerg von den Hoff, 2009] OS X: make the destination directory for the CL + version selectable (instead of dumping it in the middle of a systems + directory :-)) something like /usr/local/bin or whatever might frequently be + more suitable + * DOCUMENTATION * ============= @@ -503,6 +521,14 @@ messages in the text ui. See Dale Worley's message for a detailed proposal. +* [Joerg von den Hoff, 2009] I use unison (up to now) only from the command + line and it's used from within scripts or Makefiles. it is therefore + unfortunate that by default the GUI pops up and one has to use `unison -ui + text' to avoid this. it would seem better to have it the other way round, + i.e., to make the CLI the default and to require `unison -ui graphic' to + start up the GUI from the command line (I would argue that people using the + GUI regularly will start it anyway by double clicking the app) + Would be nice to have the Unison log file relative to my home directory, like this logfile = ~/.unision/log diff -Nru unison-2.40.102/transfer.ml unison-2.48.3/transfer.ml --- unison-2.40.102/transfer.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/transfer.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/transfer.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -103,7 +103,7 @@ type tokenQueue = { mutable data : Bytearray.t; (* the queued tokens *) mutable previous : [`Str of int | `Block of int | `None]; - (* some informations about the + (* some information about the previous token *) mutable pos : int; (* head of the queue *) mutable prog : int; (* the size of the data they represent *) @@ -147,8 +147,12 @@ return () let pushEOF q showProgress transmit = + if Trace.enabled "rsynctoken" then + debugToken (fun() -> + Util.msg "pushing EOF (pos:%d/%d)\n" q.pos queueSize); flushQueue q showProgress transmit (q.pos + 1 > queueSize) >>= (fun () -> + assert (q.pos < queueSize); q.data.{q.pos} <- 'E'; q.pos <- q.pos + 1; q.previous <- `None; @@ -156,7 +160,11 @@ let rec pushString q id transmit s pos len = flushQueue q id transmit (q.pos + len + 3 > queueSize) >>= fun () -> + if Trace.enabled "rsynctoken" then + debugToken (fun() -> + Util.msg "pushing string (pos:%d/%d len:%d)\n" q.pos queueSize len); let l = min len (queueSize - q.pos - 3) in + assert (l > 0); q.data.{q.pos} <- 'S'; encodeInt2 q.data (q.pos + 1) l; Bytearray.blit_from_string s pos q.data (q.pos + 3) l; @@ -169,8 +177,13 @@ return () let growString q id transmit len' s pos len = + if Trace.enabled "rsynctoken" then + debugToken (fun() -> + Util.msg "growing string (pos:%d/%d len:%d+%d)\n" + q.pos queueSize len' len); let l = min (queueSize - q.pos) len in Bytearray.blit_from_string s pos q.data q.pos l; + assert (q.pos - len' - 3 >= 0); assert (q.data.{q.pos - len' - 3} = 'S'); assert (decodeInt2 q.data (q.pos - len' - 2) = len'); let len'' = len' + l in @@ -185,6 +198,10 @@ let pushBlock q id transmit pos = flushQueue q id transmit (q.pos + 5 > queueSize) >>= (fun () -> + if Trace.enabled "rsynctoken" then + debugToken (fun() -> + Util.msg "pushing block (pos:%d/%d)\n" q.pos queueSize); + assert (q.pos + 5 <= queueSize); q.data.{q.pos} <- 'B'; encodeInt3 q.data (q.pos + 1) pos; encodeInt1 q.data (q.pos + 4) 1; @@ -194,6 +211,10 @@ return ()) let growBlock q id transmit pos = + if Trace.enabled "rsynctoken" then + debugToken (fun() -> + Util.msg "growing blocks (pos:%d/%d)\n" q.pos queueSize); + assert (q.pos >= 5); let count = decodeInt1 q.data (q.pos - 1) in assert (q.data.{q.pos - 5} = 'B'); assert (decodeInt3 q.data (q.pos - 4) + count = pos); @@ -243,15 +264,20 @@ let buf = String.create bufSz in let q = makeQueue 0 in let rec sendSlice length = - let count = - reallyRead infd buf 0 - (if length > bufSzFS then bufSz else Uutil.Filesize.toInt length) in - queueToken q showProgress transmit (STRING (buf, 0, count)) >>= (fun () -> - let length = Uutil.Filesize.sub length (Uutil.Filesize.ofInt count) in - if count = bufSz && length > Uutil.Filesize.zero then - sendSlice length - else - return ()) + if length > Uutil.Filesize.zero then begin + let count = + reallyRead infd buf 0 + (if length > bufSzFS then bufSz else Uutil.Filesize.toInt length) in + if count = 0 then + Lwt.return () + else begin + queueToken q showProgress transmit (STRING (buf, 0, count)) + >>= fun () -> + let length = Uutil.Filesize.sub length (Uutil.Filesize.ofInt count) in + sendSlice length + end + end else + Lwt.return () in sendSlice length >>= (fun () -> queueToken q showProgress transmit EOF >>= (fun () -> @@ -397,9 +423,23 @@ blockIter infd addBlock blockSize (min blockCount (256*256*256)) in debugLog (fun() -> Util.msg "%d blocks\n" count); Trace.showTimer timer; - ({ blockSize = blockSize; blockCount = count; checksumSize = csSize; - weakChecksum = weakCs; strongChecksum = strongCs }, - blockSize) + let sigs = + { blockSize = blockSize; blockCount = count; checksumSize = csSize; + weakChecksum = weakCs; strongChecksum = strongCs } in + if + sigs.blockCount > Bigarray.Array1.dim sigs.weakChecksum || + sigs.blockCount * sigs.checksumSize > + Bigarray.Array1.dim sigs.strongChecksum + then + raise + (Util.Transient + (Format.sprintf + "Internal error during rsync transfer (preprocess), \ + please report: %d %d - %d %d" + sigs.blockCount (Bigarray.Array1.dim sigs.weakChecksum) + (sigs.blockCount * sigs.checksumSize) + (Bigarray.Array1.dim sigs.strongChecksum))); + (sigs, blockSize) (* Expected size of the [rsync_block_info] datastructure (in KiB). *) let memoryFootprint srcLength dstLength = @@ -495,7 +535,8 @@ (* Given a key, retrieve the corresponding entry in the table *) let findEntry hashTable hashTableLength checksum : (int * Checksum.t) list = - Array.unsafe_get hashTable ((hash checksum) land (hashTableLength - 1)) + let i = (hash checksum) land (hashTableLength - 1) in + hashTable.(i) let sigFilter hashTableLength signatures = let len = hashTableLength lsl 2 in @@ -588,6 +629,19 @@ (* Compress the file using the algorithm described in the header *) let rsyncCompress sigs infd srcLength showProgress transmit = debug (fun() -> Util.msg "compressing\n"); + if + sigs.blockCount > Bigarray.Array1.dim sigs.weakChecksum || + sigs.blockCount * sigs.checksumSize > + Bigarray.Array1.dim sigs.strongChecksum + then + raise + (Util.Transient + (Format.sprintf + "Internal error during rsync transfer (compression), \ + please report: %d %d - %d %d" + sigs.blockCount (Bigarray.Array1.dim sigs.weakChecksum) + (sigs.blockCount * sigs.checksumSize) + (Bigarray.Array1.dim sigs.strongChecksum))); let blockSize = sigs.blockSize in let comprBufSize = (2 * blockSize + 8191) land (-8192) in let comprBufSizeFS = Uutil.Filesize.ofInt comprBufSize in @@ -638,12 +692,23 @@ let rec fingerprintMatchRec checksums pos fp i = let i = i - 1 in i < 0 || - (String.unsafe_get fp i = checksums.{pos + i} && + (fp.[i] = checksums.{pos + i} && fingerprintMatchRec checksums pos fp i) in let fingerprintMatch k fp = - fingerprintMatchRec sigs.strongChecksum (k * sigs.checksumSize) - fp sigs.checksumSize + let pos = k * sigs.checksumSize in + (*FIX: temporary debugging code... *) + if + pos + sigs.checksumSize > Bigarray.Array1.dim sigs.strongChecksum + then + raise + (Util.Transient + (Format.sprintf "Internal error during rsync transfer, \ + please report: \ + k:%d/%d pos:%d csSize:%d dim:%d" + k sigs.blockCount pos sigs.checksumSize + (Bigarray.Array1.dim sigs.strongChecksum))); + fingerprintMatchRec sigs.strongChecksum pos fp sigs.checksumSize in (* Create the compression buffer *) diff -Nru unison-2.40.102/transfer.mli unison-2.48.3/transfer.mli --- unison-2.40.102/transfer.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/transfer.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/transfer.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Rsync : general algorithm description @@ -80,7 +80,7 @@ (* Expected size of the [rsync_block_info] datastructure (in KiB). *) val memoryFootprint : Uutil.Filesize.t -> Uutil.Filesize.t -> int - (* Compute block informations from the old file *) + (* Compute block information from the old file *) val rsyncPreprocess : in_channel (* old file descriptor *) -> Uutil.Filesize.t (* source file length *) @@ -98,7 +98,7 @@ (*** SOURCE HOST ***) - (* Using block informations, parse the new file and send transfer + (* Using block information, parse the new file and send transfer instructions accordingly *) val rsyncCompress : rsync_block_info diff -Nru unison-2.40.102/transport.ml unison-2.48.3/transport.ml --- unison-2.40.102/transport.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/transport.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/transport.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -77,10 +77,11 @@ (fun _ -> Printf.sprintf "[END] %s\n" lwtShortDescription) -let doAction fromRoot fromPath fromContents toRoot toPath toContents id = +let doAction + fromRoot fromPath fromContents toRoot toPath toContents notDefault id = (* When streaming, we can transfer many file simultaneously: as the contents of only one file is transferred in one direction - at any time, little ressource is consumed this way. *) + at any time, little resource is consumed this way. *) let limit = let n = Prefs.read maxthreads in if n > 0 then n else @@ -98,7 +99,8 @@ ("Deleting " ^ Path.toString toPath ^ "\n from "^ root2string toRoot) ("Deleting " ^ Path.toString toPath) - (fun () -> Files.delete fromRoot fromPath toRoot toPath uiTo) + (fun () -> + Files.delete fromRoot fromPath toRoot toPath uiTo notDefault) (* No need to transfer the whole directory/file if there were only property modifications on one side. (And actually, it would be incorrect to transfer a directory in this case.) *) @@ -120,7 +122,8 @@ ("Updating file " ^ Path.toString toPath) (fun () -> Files.copy (`Update (fileSize uiFrom uiTo)) - fromRoot fromPath uiFrom [] toRoot toPath uiTo [] id) + fromRoot fromPath uiFrom [] toRoot toPath uiTo [] + notDefault id) | {ui = uiFrom; props = propsFrom}, {ui = uiTo; props = propsTo} -> logLwtNumbered ("Copying " ^ Path.toString toPath ^ "\n from " ^ @@ -130,7 +133,8 @@ (fun () -> Files.copy `Copy fromRoot fromPath uiFrom propsFrom - toRoot toPath uiTo propsTo id)) + toRoot toPath uiTo propsTo + notDefault id)) (fun e -> Trace.log (Printf.sprintf "Failed: %s\n" (Util.printException e)); @@ -143,16 +147,20 @@ Trace.log (Printf.sprintf "[ERROR] Skipping %s\n %s\n" (Path.toString path) p); return () - | Different {rc1 = rc1; rc2 = rc2; direction = dir} -> + | Different + {rc1 = rc1; rc2 = rc2; direction = dir; default_direction = def} -> + let notDefault = dir <> def in match dir with - Conflict -> - Trace.log (Printf.sprintf "[CONFLICT] Skipping %s\n" - (Path.toString path)); + Conflict c -> + Trace.log (Printf.sprintf "[CONFLICT] Skipping %s\n %s\n" + (Path.toString path) c); return () | Replica1ToReplica2 -> - doAction root1 reconItem.path1 rc1 root2 reconItem.path2 rc2 id + doAction + root1 reconItem.path1 rc1 root2 reconItem.path2 rc2 notDefault id | Replica2ToReplica1 -> - doAction root2 reconItem.path2 rc2 root1 reconItem.path1 rc1 id + doAction + root2 reconItem.path2 rc2 root1 reconItem.path1 rc1 notDefault id | Merge -> if rc1.typ <> `FILE || rc2.typ <> `FILE then raise (Util.Transient "Can only merge two existing files"); diff -Nru unison-2.40.102/transport.mli unison-2.48.3/transport.mli --- unison-2.40.102/transport.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/transport.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/transport.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Executes the actions implied by the reconItem list. *) val transportItem : diff -Nru unison-2.40.102/tree.ml unison-2.48.3/tree.ml --- unison-2.40.102/tree.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/tree.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/tree.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/tree.mli unison-2.48.3/tree.mli --- unison-2.40.102/tree.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/tree.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/tree.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* An ('a, 'b) t is a tree with 'a-labeled arcs and 'b-labeled nodes. *) (* Labeling for the internal nodes is optional *) diff -Nru unison-2.40.102/ubase/depend unison-2.48.3/ubase/depend --- unison-2.40.102/ubase/depend 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/depend 2014-09-28 16:48:05.000000000 +0000 @@ -1,27 +1,24 @@ -myMap.cmo: myMap.cmi -myMap.cmx: myMap.cmi -prefs.cmo: util.cmi uarg.cmi safelist.cmi prefs.cmi -prefs.cmx: util.cmx uarg.cmx safelist.cmx prefs.cmi -proplist.cmo: util.cmi proplist.cmi -proplist.cmx: util.cmx proplist.cmi -rx.cmo: rx.cmi -rx.cmx: rx.cmi -safelist.cmo: safelist.cmi -safelist.cmx: safelist.cmi -trace.cmo: util.cmi safelist.cmi prefs.cmi trace.cmi -trace.cmx: util.cmx safelist.cmx prefs.cmx trace.cmi -uarg.cmo: util.cmi safelist.cmi uarg.cmi -uarg.cmx: util.cmx safelist.cmx uarg.cmi -uprintf.cmo: uprintf.cmi -uprintf.cmx: uprintf.cmi -util.cmo: uprintf.cmi safelist.cmi util.cmi -util.cmx: uprintf.cmx safelist.cmx util.cmi -myMap.cmi: -prefs.cmi: util.cmi -proplist.cmi: -rx.cmi: -safelist.cmi: -trace.cmi: prefs.cmi -uarg.cmi: -uprintf.cmi: -util.cmi: +myMap.cmo : myMap.cmi +myMap.cmx : myMap.cmi +prefs.cmo : util.cmi uarg.cmi safelist.cmi prefs.cmi +prefs.cmx : util.cmx uarg.cmx safelist.cmx prefs.cmi +proplist.cmo : util.cmi proplist.cmi +proplist.cmx : util.cmx proplist.cmi +rx.cmo : rx.cmi +rx.cmx : rx.cmi +safelist.cmo : safelist.cmi +safelist.cmx : safelist.cmi +trace.cmo : util.cmi safelist.cmi prefs.cmi trace.cmi +trace.cmx : util.cmx safelist.cmx prefs.cmx trace.cmi +uarg.cmo : util.cmi safelist.cmi uarg.cmi +uarg.cmx : util.cmx safelist.cmx uarg.cmi +util.cmo : safelist.cmi util.cmi +util.cmx : safelist.cmx util.cmi +myMap.cmi : +prefs.cmi : util.cmi +proplist.cmi : +rx.cmi : +safelist.cmi : +trace.cmi : prefs.cmi +uarg.cmi : +util.cmi : diff -Nru unison-2.40.102/ubase/myMap.mli unison-2.48.3/ubase/myMap.mli --- unison-2.40.102/ubase/myMap.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/myMap.mli 2010-07-19 13:04:26.000000000 +0000 @@ -1,6 +1,6 @@ (* This file is taken from the Objective Caml standard library. -Some functions has been added to suite Unison needs. +Some functions have been added to suit Unison's needs. *) (***********************************************************************) (* *) diff -Nru unison-2.40.102/ubase/prefs.ml unison-2.48.3/ubase/prefs.ml --- unison-2.40.102/ubase/prefs.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/prefs.ml 2010-05-07 11:13:51.000000000 +0000 @@ -482,8 +482,8 @@ let ochan = System.open_out_gen [Open_wronly; Open_creat; Open_append] 0o600 filename in - output_string ochan l; output_string ochan "\n"; + output_string ochan l; close_out ochan; resultmsg with diff -Nru unison-2.40.102/ubase/proplist.ml unison-2.48.3/ubase/proplist.ml --- unison-2.40.102/ubase/proplist.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/proplist.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/proplist.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/ubase/proplist.mli unison-2.48.3/ubase/proplist.mli --- unison-2.40.102/ubase/proplist.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/proplist.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/proplist.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type 'a key type t diff -Nru unison-2.40.102/ubase/rx.ml unison-2.48.3/ubase/rx.ml --- unison-2.40.102/ubase/rx.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/rx.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/rx.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/ubase/rx.mli unison-2.48.3/ubase/rx.mli --- unison-2.40.102/ubase/rx.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/rx.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/rx.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) type t diff -Nru unison-2.40.102/ubase/safelist.ml unison-2.48.3/ubase/safelist.ml --- unison-2.40.102/ubase/safelist.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/safelist.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/safelist.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/ubase/safelist.mli unison-2.48.3/ubase/safelist.mli --- unison-2.40.102/ubase/safelist.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/safelist.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/safelist.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* All functions here are tail recursive and will work for arbitrary sized lists (unlike some of the standard ones). The intention is that diff -Nru unison-2.40.102/ubase/trace.ml unison-2.48.3/ubase/trace.ml --- unison-2.40.102/ubase/trace.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/trace.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/trace.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -48,7 +48,7 @@ let debugtimes = Prefs.createBool "debugtimes" false "*annotate debugging messages with timestamps" "" - + let runningasserver = ref false let debugging() = (Prefs.read debugmods) <> [] diff -Nru unison-2.40.102/ubase/trace.mli unison-2.48.3/ubase/trace.mli --- unison-2.40.102/ubase/trace.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/trace.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/trace.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* ---------------------------------------------------------------------- *) (* Debugging support *) diff -Nru unison-2.40.102/ubase/uarg.ml unison-2.48.3/ubase/uarg.ml --- unison-2.40.102/ubase/uarg.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/uarg.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/uarg.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* by Xavier Leroy, projet Cristal, INRIA Rocquencourt *) (* Slightly modified by BCP, July 1999 *) diff -Nru unison-2.40.102/ubase/uprintf.ml unison-2.48.3/ubase/uprintf.ml --- unison-2.40.102/ubase/uprintf.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/uprintf.ml 1970-01-01 00:00:00.000000000 +0000 @@ -1,94 +0,0 @@ -(***********************************************************************) -(* *) -(* Objective Caml *) -(* *) -(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) -(* *) -(* Copyright 1996 Institut National de Recherche en Informatique et *) -(* en Automatique. All rights reserved. This file is distributed *) -(* under the terms of the GNU Library General Public License. *) -(* *) -(***********************************************************************) - -external caml_format_int: string -> int -> string = "caml_format_int" -external caml_format_float: string -> float -> string = "caml_format_float" - -let fprintf outchan doafter format = - let format = (Obj.magic format : string) in - let rec doprn i = - if i >= String.length format then - (doafter(); Obj.magic ()) - else begin - let c = String.unsafe_get format i in - if c <> '%' then begin - output_char outchan c; - doprn (succ i) - end else begin - let j = skip_args (succ i) in - match String.unsafe_get format j with - '%' -> - output_char outchan '%'; - doprn (succ j) - | 's' -> - Obj.magic(fun s -> - if j <= i+1 then - output_string outchan s - else begin - let p = - try - int_of_string (String.sub format (i+1) (j-i-1)) - with Failure _ -> - invalid_arg "fprintf: bad %s format" in - if p > 0 && String.length s < p then begin - output_string outchan - (String.make (p - String.length s) ' '); - output_string outchan s - end else if p < 0 && String.length s < -p then begin - output_string outchan s; - output_string outchan - (String.make (-p - String.length s) ' ') - end else - output_string outchan s - end; - doprn (succ j)) - | 'c' -> - Obj.magic(fun c -> - output_char outchan c; - doprn (succ j)) - | 'd' | 'i' | 'o' | 'x' | 'X' | 'u' -> - Obj.magic(fun n -> - output_string outchan - (caml_format_int (String.sub format i (j-i+1)) n); - doprn (succ j)) - | 'f' | 'e' | 'E' | 'g' | 'G' -> - Obj.magic(fun f -> - output_string outchan - (caml_format_float (String.sub format i (j-i+1)) f); - doprn (succ j)) - | 'b' -> - Obj.magic(fun b -> - output_string outchan (string_of_bool b); - doprn (succ j)) - | 'a' -> - Obj.magic(fun printer arg -> - printer outchan arg; - doprn(succ j)) - | 't' -> - Obj.magic(fun printer -> - printer outchan; - doprn(succ j)) - | c -> - invalid_arg ("fprintf: unknown format") - end - end - - and skip_args j = - match String.unsafe_get format j with - '0' .. '9' | ' ' | '.' | '-' -> skip_args (succ j) - | c -> j - - in doprn 0 - -let printf doafter fmt = fprintf stdout doafter fmt -and eprintf doafter fmt = fprintf stderr doafter fmt - diff -Nru unison-2.40.102/ubase/uprintf.mli unison-2.48.3/ubase/uprintf.mli --- unison-2.40.102/ubase/uprintf.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/uprintf.mli 1970-01-01 00:00:00.000000000 +0000 @@ -1,75 +0,0 @@ -(***********************************************************************) -(* *) -(* Objective Caml *) -(* *) -(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) -(* *) -(* Copyright 1996 Institut National de Recherche en Informatique et *) -(* en Automatique. All rights reserved. This file is distributed *) -(* under the terms of the GNU Library General Public License. *) -(* *) -(***********************************************************************) - -(* Modified for Unison *) - - -(* Module [Printf]: formatting printing functions *) - -val fprintf: out_channel -> (unit->unit) -> ('a, out_channel, unit) format -> 'a - (* [fprintf outchan doafter format arg1 ... argN] formats the arguments - [arg1] to [argN] according to the format string [format], - outputs the resulting string on the channel [outchan], and then - executes the thunk [doafter]. - - The format is a character string which contains two types of - objects: plain characters, which are simply copied to the - output channel, and conversion specifications, each of which - causes conversion and printing of one argument. - - Conversion specifications consist in the [%] character, followed - by optional flags and field widths, followed by one conversion - character. The conversion characters and their meanings are: -- [d] or [i]: convert an integer argument to signed decimal -- [u]: convert an integer argument to unsigned decimal -- [x]: convert an integer argument to unsigned hexadecimal, - using lowercase letters. -- [X]: convert an integer argument to unsigned hexadecimal, - using uppercase letters. -- [o]: convert an integer argument to unsigned octal. -- [s]: insert a string argument -- [c]: insert a character argument -- [f]: convert a floating-point argument to decimal notation, - in the style [dddd.ddd] -- [e] or [E]: convert a floating-point argument to decimal notation, - in the style [d.ddd e+-dd] (mantissa and exponent) -- [g] or [G]: convert a floating-point argument to decimal notation, - in style [f] or [e], [E] (whichever is more compact) -- [b]: convert a boolean argument to the string [true] or [false] -- [a]: user-defined printer. Takes two arguments and apply the first - one to [outchan] (the current output channel) and to the second - argument. The first argument must therefore have type - [out_channel -> 'b -> unit] and the second ['b]. - The output produced by the function is therefore inserted - in the output of [fprintf] at the current point. -- [t]: same as [%a], but takes only one argument (with type - [out_channel -> unit]) and apply it to [outchan]. -- [%]: take no argument and output one [%] character. -- Refer to the C library [printf] function for the meaning of - flags and field width specifiers. - - Warning: if too few arguments are provided, - for instance because the [printf] function is partially - applied, the format is immediately printed up to - the conversion of the first missing argument; printing - will then resume when the missing arguments are provided. - For example, [List.iter (printf "x=%d y=%d " 1) [2;3]] - prints [x=1 y=2 3] instead of the expected - [x=1 y=2 x=1 y=3]. To get the expected behavior, do - [List.iter (fun y -> printf "x=%d y=%d " 1 y) [2;3]]. *) - -val printf: (unit->unit) -> ('a, out_channel, unit) format -> 'a - (* Same as [fprintf], but output on [stdout]. *) - -val eprintf: (unit->unit) -> ('a, out_channel, unit) format -> 'a - (* Same as [fprintf], but output on [stderr]. *) - diff -Nru unison-2.40.102/ubase/util.ml unison-2.48.3/ubase/util.ml --- unison-2.40.102/ubase/util.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/util.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/util.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,7 +62,8 @@ if s <> !infos then begin clear_infos (); infos := s; show_infos () end let msg f = - clear_infos (); Uprintf.eprintf (fun () -> flush stderr; show_infos ()) f + clear_infos (); + Printf.kfprintf (fun _ -> flush stderr; show_infos ()) stderr f let msg : ('a, out_channel, unit) format -> 'a = msg diff -Nru unison-2.40.102/ubase/util.mli unison-2.48.3/ubase/util.mli --- unison-2.40.102/ubase/util.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ubase/util.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ubase/util.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Miscellaneous utility functions and datatypes *) @@ -47,7 +47,7 @@ (* String manipulation *) val truncateString : string -> int -> string -val startswith : string -> string -> bool +val startswith : string -> string -> bool (* STR,PREFIX *) val endswith : string -> string -> bool val findsubstring : string -> string -> int option val replacesubstring : string -> string -> string -> string (* IN,FROM,TO *) diff -Nru unison-2.40.102/uicommon.ml unison-2.48.3/uicommon.ml --- unison-2.40.102/uicommon.ml 2010-05-20 09:08:30.000000000 +0000 +++ unison-2.48.3/uicommon.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uicommon.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -93,21 +93,9 @@ ("Setting this preference causes the text-mode interface to synchronize " ^ "repeatedly, rather than doing it just once and stopping. If the " ^ "argument is a number, Unison will pause for that many seconds before " - ^ "beginning again.") - -(* ^ "If the argument is a path, Unison will wait for the " - ^ "file at this path---called a {\\em changelog}---to " - ^ "be modified (on either the client or the server " - ^ "machine), read the contents of the changelog (which should be a newline-" - ^ "separated list of paths) on both client and server, " - ^ "combine the results, " - ^ "and start again, using the list of paths read from the changelogs as the " - ^ " '-path' preference for the new run. The idea is that an external " - ^ "process will watch the filesystem and, when it thinks something may have " - ^ "changed, write the changed pathname to its local changelog where Unison " - ^ "will find it the next time it looks. If the changelogs have not been " - ^ "modified, Unison will wait, checking them again every few seconds." -*) + ^ "beginning again. When the argument is \\verb|watch|, Unison relies on " + ^ "an external file monitoring process to synchronize whenever a change " + ^ "happens.") let retry = Prefs.createInt "retry" 0 @@ -120,9 +108,9 @@ let confirmmerge = Prefs.createBool "confirmmerge" false - "!ask for confirmation before commiting results of a merge" + "!ask for confirmation before committing results of a merge" ("Setting this preference causes both the text and graphical interfaces" - ^ " to ask the user if the results of a merge command may be commited " + ^ " to ask the user if the results of a merge command may be committed " ^ " to the replica or not. Since the merge command works on temporary files," ^ " the user can then cancel all the effects of applying the merge if it" ^ " turns out that the result is not satisfactory. In " @@ -279,7 +267,7 @@ let direction2action partial dir = match dir with - Conflict -> ASkip partial + Conflict _ -> ASkip partial | Replica1ToReplica2 -> ALtoR partial | Replica2ToReplica1 -> ARtoL partial | Merge -> AMerge @@ -309,20 +297,24 @@ let (r1, action, r2, path) = reconItem2stringList oldPath theRI in Format.sprintf "%s %s %s %s %s" r1 (action2niceString action) r2 status path -let exn2string = function - Sys.Break -> "Terminated!" - | Util.Fatal(s) -> Printf.sprintf "Fatal error: %s" s - | Util.Transient(s) -> Printf.sprintf "Error: %s" s - | Unix.Unix_error (err, fun_name, arg) -> - Printf.sprintf "Uncaught unix error: %s failed%s: %s%s" - fun_name - (if String.length arg > 0 then Format.sprintf " on \"%s\"" arg else "") - (Unix.error_message err) - (match err with - Unix.EUNKNOWNERR n -> Format.sprintf " (code %d)" n - | _ -> "") - | Invalid_argument s -> Printf.sprintf "Invalid argument: %s" s - | other -> Printf.sprintf "Uncaught exception %s" (Printexc.to_string other) +let exn2string e = + match e with + Sys.Break -> "Terminated!" + | Util.Fatal(s) -> Printf.sprintf "Fatal error: %s" s + | Util.Transient(s) -> Printf.sprintf "Error: %s" s + | Unix.Unix_error (err, fun_name, arg) -> + Printf.sprintf "Uncaught unix error: %s failed%s: %s%s\n%s" + fun_name + (if String.length arg > 0 then Format.sprintf " on \"%s\"" arg else "") + (Unix.error_message err) + (match err with + Unix.EUNKNOWNERR n -> Format.sprintf " (code %d)" n + | _ -> "") + (Printexc.get_backtrace ()) + | Invalid_argument s -> + Printf.sprintf "Invalid argument: %s\n%s" s (Printexc.get_backtrace ()) + | other -> Printf.sprintf "Uncaught exception %s\n%s" + (Printexc.to_string other) (Printexc.get_backtrace ()) (* precondition: uc = File (Updates(_, ..) on both sides *) let showDiffs ri printer errprinter id = diff -Nru unison-2.40.102/uicommon.mli unison-2.48.3/uicommon.mli --- unison-2.40.102/uicommon.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uicommon.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uicommon.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* Kinds of UI *) type interface = @@ -37,7 +37,7 @@ (* User preference: Try failing paths N times *) val retry : int Prefs.t -(* User preference: confirmation before commiting merge results *) +(* User preference: confirmation before committing merge results *) val confirmmerge : bool Prefs.t (* Format the information about current contents of a path in one replica (the second argument diff -Nru unison-2.40.102/uigtk2.ml unison-2.48.3/uigtk2.ml --- unison-2.40.102/uigtk2.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uigtk2.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uigtk2.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -125,6 +125,7 @@ mutable bytesToTransfer : Uutil.Filesize.t; mutable whatHappened : (Util.confirmation * string option) option} let theState = ref [||] +let unsynchronizedPaths = ref None module IntSet = Set.Make (struct type t = int let compare = compare end) @@ -208,7 +209,7 @@ 0x0078; 0x0079; 0x007A; 0x007B; 0x007C; 0x007D; 0x007E; 0x007F; 0x20AC; 0x1234; 0x201A; 0x0192; 0x201E; 0x2026; 0x2020; 0x2021; 0x02C6; 0x2030; 0x0160; 0x2039; 0x0152; 0x1234; 0x017D; 0x1234; - 0x1234; 0x2018; 0x2019; 0x201C; 0x201D; 0x2022; 0x2013; 0x2014; + 0x1234; 0x2018; 0x2019; 0x201C; 0x201D; 0x2022; 0x2013; 0x2015; 0x02DC; 0x2122; 0x0161; 0x203A; 0x0153; 0x1234; 0x017E; 0x0178; 0x00A0; 0x00A1; 0x00A2; 0x00A3; 0x00A4; 0x00A5; 0x00A6; 0x00A7; 0x00A8; 0x00A9; 0x00AA; 0x00AB; 0x00AC; 0x00AD; 0x00AE; 0x00AF; @@ -3061,7 +3062,7 @@ if i < l then match !theState.(i).ri.replicas with Different {direction = dir} - when not (Prefs.read Uicommon.auto) || dir = Conflict -> + when not (Prefs.read Uicommon.auto) || isConflict dir -> select i true | _ -> loop (i + 1) in @@ -3073,7 +3074,7 @@ let oldPath = if i = 0 then Path.empty else !theState.(i-1).ri.path1 in let status = match !theState.(i).ri.replicas with - Different {direction = Conflict} | Problem _ -> + Different {direction = Conflict _} | Problem _ -> NoStatus | _ -> match !theState.(i).whatHappened with @@ -3296,7 +3297,7 @@ clientWritten := !clientWritten +. Uutil.Filesize.toFloat bytes else serverWritten := !serverWritten +. Uutil.Filesize.toFloat bytes - | Conflict | Merge -> + | Conflict _ | Merge -> (* Diff / merge *) clientWritten := !clientWritten +. Uutil.Filesize.toFloat bytes end @@ -3368,7 +3369,7 @@ let findUpdates () = let t = Trace.startTimer "Checking for updates" in Trace.status "Looking for changes"; - let updates = Update.findUpdates () in + let updates = Update.findUpdates ~wantWatcher:() !unsynchronizedPaths in Trace.showTimer t; updates in let reconcile updates = @@ -3396,6 +3397,8 @@ bytesToTransfer = Uutil.Filesize.zero; whatHappened = None }) reconItemList); + unsynchronizedPaths := + Some (List.map (fun ri -> ri.path1) reconItemList, []); current := IntSet.empty; displayMain(); progressBarPulse := false; sync_action := None; displayGlobalProgress 0.; @@ -3631,9 +3634,9 @@ match si.ri.replicas with Problem err -> (si, [err], "error during update detection") :: l - | Different diff when diff.direction = Conflict -> + | Different diff when isConflict diff.direction -> (si, [], - if diff.default_direction = Conflict then + if isConflict diff.default_direction then "conflict" else "skipped") :: l | _ -> @@ -3645,6 +3648,10 @@ if skippedCount = 0 then [] else [Printf.sprintf "%d skipped" skippedCount] in + unsynchronizedPaths := + Some (List.map (fun (si, _, _) -> si.ri.path1) + (failureList @ partialList @ skippedList), + []); Trace.status (Printf.sprintf "Synchronization complete %s" (String.concat ", " (failures @ partials @ skipped))); @@ -3721,76 +3728,7 @@ end in (********************************************************************* - Quit button - *********************************************************************) -(* actionBar#insert_space (); - ignore (actionBar#insert_button ~text:"Quit" - ~icon:((GMisc.image ~stock:`QUIT ())#coerce) - ~tooltip:"Exit Unison" - ~callback:safeExit ()); -*) - - (********************************************************************* - go button - *********************************************************************) -(* actionBar#insert_space ();*) - grAdd grGo - (actionBar#insert_button ~text:"Go" - (* tooltip:"Go with displayed actions" *) - ~icon:((GMisc.image ~stock:`EXECUTE ())#coerce) - ~tooltip:"Perform the synchronization" - ~callback:(fun () -> - getLock synchronize) ()); - - (* Does not quite work: too slow, and Files.copy must be modifed to - support an interruption without error. *) - (* - ignore (actionBar#insert_button ~text:"Stop" - ~icon:((GMisc.image ~stock:`STOP ())#coerce) - ~tooltip:"Exit Unison" - ~callback:Abort.all ()); - *) - - (********************************************************************* - Rescan button - *********************************************************************) - let updateFromProfile = ref (fun () -> ()) in - - let loadProfile p reload = - debug (fun()-> Util.msg "Loading profile %s..." p); - Trace.status "Loading profile"; - Uicommon.initPrefs p - (fun () -> if not reload then displayWaitMessage ()) - getFirstRoot getSecondRoot termInteract; - !updateFromProfile () - in - - let reloadProfile () = - let n = - match !Prefs.profileName with - None -> assert false - | Some n -> n - in - clearMainWindow (); - if not (Prefs.profileUnchanged ()) then loadProfile n true - in - - let detectCmd () = - getLock detectUpdatesAndReconcile; - updateDetails (); - if Prefs.read Globals.batch then begin - Prefs.set Globals.batch false; synchronize() - end - in -(* actionBar#insert_space ();*) - grAdd grRescan - (actionBar#insert_button ~text:"Rescan" - ~icon:((GMisc.image ~stock:`REFRESH ())#coerce) - ~tooltip:"Check for updates" - ~callback: (fun () -> reloadProfile(); detectCmd()) ()); - - (********************************************************************* - Buttons for <--, M, -->, Skip + Buttons for -->, M, <--, Skip *********************************************************************) let doActionOnRow f i = let theSI = !theState.(i) in @@ -3840,18 +3778,18 @@ doAction (fun _ diff -> diff.direction <- Replica2ToReplica1) in let rightAction _ = doAction (fun _ diff -> diff.direction <- Replica1ToReplica2) in - let questionAction _ = doAction (fun _ diff -> diff.direction <- Conflict) in + let questionAction _ = doAction (fun _ diff -> diff.direction <- Conflict "") in let mergeAction _ = doAction (fun _ diff -> diff.direction <- Merge) in - actionBar#insert_space (); +(* actionBar#insert_space ();*) grAdd grAction (actionBar#insert_button -(* ~icon:((GMisc.pixmap leftArrowBlack ())#coerce)*) - ~icon:((GMisc.image ~stock:`GO_BACK ())#coerce) - ~text:"Right to Left" +(* ~icon:((GMisc.pixmap rightArrowBlack ())#coerce)*) + ~icon:((GMisc.image ~stock:`GO_FORWARD ())#coerce) + ~text:"Left to Right" ~tooltip:"Propagate selected items\n\ - from the right replica to the left one" - ~callback:leftAction ()); + from the left replica to the right one" + ~callback:rightAction ()); (* actionBar#insert_space ();*) grAdd grAction (actionBar#insert_button ~text:"Skip" @@ -3861,12 +3799,12 @@ (* actionBar#insert_space ();*) grAdd grAction (actionBar#insert_button -(* ~icon:((GMisc.pixmap rightArrowBlack ())#coerce)*) - ~icon:((GMisc.image ~stock:`GO_FORWARD ())#coerce) - ~text:"Left to Right" +(* ~icon:((GMisc.pixmap leftArrowBlack ())#coerce)*) + ~icon:((GMisc.image ~stock:`GO_BACK ())#coerce) + ~text:"Right to Left" ~tooltip:"Propagate selected items\n\ - from the left replica to the right one" - ~callback:rightAction ()); + from the right replica to the left one" + ~callback:leftAction ()); (* actionBar#insert_space ();*) grAdd grAction (actionBar#insert_button @@ -3922,6 +3860,76 @@ ~callback:showDetCommand ()); (********************************************************************* + Quit button + *********************************************************************) +(* actionBar#insert_space (); + ignore (actionBar#insert_button ~text:"Quit" + ~icon:((GMisc.image ~stock:`QUIT ())#coerce) + ~tooltip:"Exit Unison" + ~callback:safeExit ()); +*) + + (********************************************************************* + go button + *********************************************************************) + actionBar#insert_space (); + grAdd grGo + (actionBar#insert_button ~text:"Go" + (* tooltip:"Go with displayed actions" *) + ~icon:((GMisc.image ~stock:`EXECUTE ())#coerce) + ~tooltip:"Perform the synchronization" + ~callback:(fun () -> + getLock synchronize) ()); + + (* Does not quite work: too slow, and Files.copy must be modifed to + support an interruption without error. *) + (* + ignore (actionBar#insert_button ~text:"Stop" + ~icon:((GMisc.image ~stock:`STOP ())#coerce) + ~tooltip:"Exit Unison" + ~callback:Abort.all ()); + *) + + (********************************************************************* + Rescan button + *********************************************************************) + let updateFromProfile = ref (fun () -> ()) in + + let loadProfile p reload = + debug (fun()-> Util.msg "Loading profile %s..." p); + Trace.status "Loading profile"; + unsynchronizedPaths := None; + Uicommon.initPrefs p + (fun () -> if not reload then displayWaitMessage ()) + getFirstRoot getSecondRoot termInteract; + !updateFromProfile () + in + + let reloadProfile () = + let n = + match !Prefs.profileName with + None -> assert false + | Some n -> n + in + clearMainWindow (); + if not (Prefs.profileUnchanged ()) then loadProfile n true + in + + let detectCmd () = + getLock detectUpdatesAndReconcile; + updateDetails (); + if Prefs.read Globals.batch then begin + Prefs.set Globals.batch false; synchronize() + end + in +(* actionBar#insert_space ();*) + grAdd grRescan + (actionBar#insert_button ~text:"Rescan" + ~icon:((GMisc.image ~stock:`REFRESH ())#coerce) + ~tooltip:"Check for updates" + ~callback: (fun () -> reloadProfile(); detectCmd()) ()); + + (********************************************************************* Profile change button *********************************************************************) actionBar#insert_space (); @@ -4109,7 +4117,7 @@ | Some(Util.Succeeded, _) -> false) || match !theState.(i).ri.replicas with Problem _ -> true - | Different diff -> diff.direction = Conflict in + | Different diff -> isConflict diff.direction in if notok then loop (i+1) (i::acc) else loop (i+1) (acc) in let failedindices = loop 0 [] in @@ -4123,9 +4131,13 @@ let confirmBigDeletes = Prefs.read Globals.confirmBigDeletes in Prefs.set Globals.paths failedpaths; Prefs.set Globals.confirmBigDeletes false; + (* Modifying global paths does not play well with filesystem + monitoring, so we disable it. *) + unsynchronizedPaths := None; detectCmd(); Prefs.set Globals.paths paths; - Prefs.set Globals.confirmBigDeletes confirmBigDeletes) + Prefs.set Globals.confirmBigDeletes confirmBigDeletes; + unsynchronizedPaths := None) "Re_check Unsynchronized Items"); ignore (fileMenu#add_separator ()); diff -Nru unison-2.40.102/uigtk2.mli unison-2.48.3/uigtk2.mli --- unison-2.40.102/uigtk2.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uigtk2.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,4 +1,4 @@ (* Unison file synchronizer: src/uigtk2.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) module Body : Uicommon.UI diff -Nru unison-2.40.102/uigtk.ml unison-2.48.3/uigtk.ml --- unison-2.40.102/uigtk.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uigtk.ml 1970-01-01 00:00:00.000000000 +0000 @@ -1,2155 +0,0 @@ -(* $I1: Unison file synchronizer: src/uigtk.ml $ *) -(* $I2: Last modified by vouillon on Thu, 09 Sep 2004 08:43:03 -0400 $ *) -(* $I3: Copyright 1999-2004 (see COPYING for details) $ *) - -open Common -open Lwt - -module Private = struct - -let debug = Trace.debug "ui" - -(********************************************************************** - LOW-LEVEL STUFF - **********************************************************************) - -(********************************************************************** - Some message strings (build them here because they look ugly in the - middle of other code. - **********************************************************************) - -let tryAgainMessage = - Printf.sprintf -"You can use %s to synchronize a local directory with another local directory, -or with a remote directory. - -Please enter the first (local) directory that you want to synchronize." -Uutil.myName - -(* ---- *) - -let helpmessage = Printf.sprintf -"%s can synchronize a local directory with another local directory, or with -a directory on a remote machine. - -To synchronize with a local directory, just enter the file name. - -To synchronize with a remote directory, you must first choose a protocol -that %s will use to connect to the remote machine. Each protocol has -different requirements: - -1) To synchronize using SSH, there must be an SSH client installed on -this machine and an SSH server installed on the remote machine. You -must enter the host to connect to, a user name (if different from -your user name on this machine), and the directory on the remote machine -(relative to your home directory on that machine). - -2) To synchronize using RSH, there must be an RSH client installed on -this machine and an RSH server installed on the remote machine. You -must enter the host to connect to, a user name (if different from -your user name on this machine), and the directory on the remote machine -(relative to your home directory on that machine). - -3) To synchronize using %s's socket protocol, there must be a %s -server running on the remote machine, listening to the port that you -specify here. (Use \"%s -socket xxx\" on the remote machine to -start the %s server.) You must enter the host, port, and the directory -on the remote machine (relative to the working directory of the -%s server running on that machine)." -Uutil.myName Uutil.myName Uutil.myName Uutil.myName Uutil.myName Uutil.myName Uutil.myName - -(********************************************************************** - Font preferences - **********************************************************************) - -let fontMonospaceMedium = - if Util.osType = `Win32 then - lazy (Gdk.Font.load "-*-Courier New-Medium-R-Normal--*-110-*-*-*-*-*-*") - else - lazy (Gdk.Font.load "-*-Clean-Medium-R-Normal--*-130-*-*-*-*-*-*") - -let fontMonospaceBold = - if Util.osType = `Win32 then - lazy (Gdk.Font.load "-*-Courier New-Bold-R-Normal--*-110-*-*-*-*-*-*") - else - lazy (Gdk.Font.load "-*-Courier-Bold-R-Normal--*-120-*-*-*-*-*-*") - -(********************************************************************* - UI state variables - *********************************************************************) - -type stateItem = { mutable ri : reconItem; - mutable bytesTransferred : Uutil.Filesize.t; - mutable whatHappened : Util.confirmation option } -let theState = ref [||] - -let current = ref None - -(* ---- *) - -let currentWindow = ref None - -let grabFocus t = - match !currentWindow with - Some w -> t#set_transient_for w; - w#misc#set_sensitive false - | None -> () - -let releaseFocus () = - begin match !currentWindow with - Some w -> w#misc#set_sensitive true - | None -> () - end - -(********************************************************************* - Lock management - *********************************************************************) - -let busy = ref false - -let getLock f = - if !busy then - Trace.status "Synchronizer is busy, please wait.." - else begin - busy := true; f (); busy := false - end - -(********************************************************************** - Miscellaneous - **********************************************************************) - -let gtk_sync () = while Glib.Main.iteration false do () done - -(********************************************************************** - USEFUL LOW-LEVEL WIDGETS - **********************************************************************) - -class scrolled_text ?editable ?word_wrap ?width ?height ?packing ?show - () = - let sw = - GBin.scrolled_window ?width ?height ?packing ~show:false - ~hpolicy:`NEVER ~vpolicy:`AUTOMATIC () - in - let text = GEdit.text ?editable ?word_wrap ~packing:sw#add () in - object - inherit GObj.widget_full sw#as_widget - method text = text - method insert ?(font=fontMonospaceMedium) s = - text#freeze (); - text#delete_text ~start:0 ~stop:text#length; - text#insert ~font:(Lazy.force font) s; - text#thaw () - method show () = sw#misc#show () - initializer - if show <> Some false then sw#misc#show () - end - -(* ------ *) - -(* oneBox: Display a message in a window and wait for the user - to hit the button. *) -let oneBox ~title ~message ~label = - let t = GWindow.dialog ~title ~wm_name:title - ~modal:true ~position:`CENTER () in - grabFocus t; - let h = GPack.hbox ~packing:(t#vbox#pack ~expand:false ~padding:20) () in - ignore(GMisc.label ~justify:`LEFT ~text:message - ~packing:(h#pack ~expand:false ~padding:20) ()); - let b = GButton.button ~label ~packing:t#action_area#add () in - b#grab_default (); - ignore (b#connect#clicked ~callback:(fun () -> t#destroy())); - t#show (); - (* Do nothing until user destroys window *) - ignore (t#connect#destroy ~callback:GMain.Main.quit); - GMain.Main.main (); - releaseFocus () - -let okBox ~title ~message = oneBox ~title ~message ~label:"OK" - -(* ------ *) - -(* twoBox: Display a message in a window and wait for the user - to hit one of two buttons. Return true if the first button is - chosen, false if the second button is chosen. *) -let twoBox ~title ~message ~alabel ~blabel = - let result = ref false in - let t = GWindow.dialog ~title ~wm_name:title ~modal:true - ~position:`CENTER () in - grabFocus t; - let h = GPack.hbox ~packing:(t#vbox#pack ~expand:false ~padding:20) () in - ignore(GMisc.label ~justify:`LEFT ~text:message - ~packing:(h#pack ~expand:false ~padding:20) ()); - (* - ignore(GMisc.label ~text:message - ~packing:(t#vbox#pack ~expand:false ~padding:4) ()); - *) - let yes = GButton.button ~label:alabel ~packing:t#action_area#add () - and no = GButton.button ~label:blabel ~packing:t#action_area#add () in - yes#grab_default (); - ignore (yes#connect#clicked - ~callback:(fun () -> t#destroy (); result := true)); - ignore (no#connect#clicked - ~callback:(fun () -> t#destroy (); result := false)); - t#show (); - (* Do nothing until user destroys window *) - ignore (t#connect#destroy ~callback:GMain.Main.quit); - GMain.Main.main (); - releaseFocus (); - !result - -(* ------ *) - -(* Avoid recursive invocations of the function below (a window receives - delete events even when it is not sensitive) *) -let inExit = ref false - -let doExit () = Lwt_unix.run (Update.unlockArchives ()); exit 0 - -let safeExit () = - if not !inExit then begin - inExit := true; - if not !busy then exit 0 else - if twoBox ~title:"Premature exit" - ~message:"Unison is working, exit anyway ?" - ~alabel:"Yes" ~blabel:"No" - then exit 0; - inExit := false - end - -(* ------ *) - -(* warnBox: Display a warning message in a window and wait (unless - we're in batch mode) for the user to hit "OK" or "Exit". *) -let warnBox title message = - if Prefs.read Globals.batch then begin - (* In batch mode, just pop up a window and go ahead *) - let t = GWindow.dialog ~title ~wm_name:title ~position:`CENTER () in - let h = GPack.hbox ~packing:(t#vbox#pack ~expand:false ~padding:20) () in - ignore(GMisc.label ~justify:`LEFT ~text:message - ~packing:(h#pack ~expand:false ~padding:20) ()); - let t_dismiss = - GButton.button ~label:"Dismiss" ~packing:t#action_area#add () in - t_dismiss#grab_default (); - let dismiss () = t#destroy () in - ignore (t_dismiss#connect#clicked ~callback:dismiss); - ignore (t#event#connect#delete ~callback:(fun _ -> dismiss (); true)); - t#show () - end else begin - inExit := true; - let ok = twoBox ~title ~message ~alabel:"OK" ~blabel:"Exit" in - if not(ok) then doExit (); - inExit := false - end - -(********************************************************************** - CHARACTER SET TRANSCODING -***********************************************************************) - -(* Transcodage from Microsoft Windows Codepage 1252 to Unicode *) - -(* Unison currently uses the "ASCII" Windows filesystem API. With - this API, filenames are encoded using a proprietary character - encoding. This encoding depends on the Windows setup, but in - Western Europe, the Windows Codepage 1252 is usually used. - GTK, on the other hand, uses the UTF-8 encoding. This code perform - the translation from Codepage 1252 to UTF-8. A call to [transcode] - should be wrapped around every string below that might contain - non-ASCII characters. *) - -let code = - [| 0; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; - 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; - 35; 36; 37; 38; 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; - 51; 52; 53; 54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; - 67; 68; 69; 70; 71; 72; 73; 74; 75; 76; 77; 78; 79; 80; 81; 82; - 83; 84; 85; 86; 87; 88; 89; 90; 91; 92; 93; 94; 95; 96; 97; 98; - 99; 100; 101; 102; 103; 104; 105; 106; 107; 108; 109; 110; 111; - 112; 113; 114; 115; 116; 117; 118; 119; 120; 121; 122; 123; 124; - 125; 126; 127; 8364; 129; 8218; 131; 8222; 8230; 8224; 8225; 136; - 8240; 352; 8249; 346; 356; 381; 377; 144; 8216; 8217; 8220; 8221; - 8226; 8211; 8212; 152; 8482; 353; 8250; 347; 357; 382; 378; 160; - 711; 728; 321; 164; 260; 166; 167; 168; 169; 350; 171; 172; 173; - 174; 379; 176; 177; 731; 322; 180; 181; 182; 183; 184; 261; 351; - 187; 376; 733; 317; 380; 340; 193; 194; 258; 196; 313; 262; 199; - 268; 201; 280; 203; 282; 205; 206; 270; 272; 323; 327; 211; 212; - 336; 214; 215; 344; 366; 218; 368; 220; 221; 354; 223; 341; 225; - 226; 259; 228; 314; 263; 231; 269; 233; 281; 235; 283; 237; 238; - 271; 273; 324; 328; 243; 244; 337; 246; 247; 345; 367; 250; 369; - 252; 253; 355; 729 |] - -let rec transcode_rec buf s i l = - if i < l then begin - let c = code.(Char.code s.[i]) in - if c < 0x80 then - Buffer.add_char buf (Char.chr c) - else if c < 0x800 then begin - Buffer.add_char buf (Char.chr (c lsr 6 + 0xC0)); - Buffer.add_char buf (Char.chr (c land 0x3f + 0x80)) - end else if c < 0x10000 then begin - Buffer.add_char buf (Char.chr (c lsr 12 + 0xE0)); - Buffer.add_char buf (Char.chr ((c lsr 6) land 0x3f + 0x80)); - Buffer.add_char buf (Char.chr (c land 0x3f + 0x80)) - end; - transcode_rec buf s (i + 1) l - end - -let transcode s = - if Util.osType = `Win32 then - let buf = Buffer.create 32 in - transcode_rec buf s 0 (String.length s); - Buffer.contents buf - else - s - -(********************************************************************** - HIGHER-LEVEL WIDGETS -***********************************************************************) - -(* -XXX -* Accurate write accounting: - - Local copies on the remote side are ignored - - What about failures? -*) -class stats width height = - let pixmap = GDraw.pixmap ~width ~height () in - let area = - pixmap#set_foreground `WHITE; - pixmap#rectangle ~filled:true ~x:0 ~y:0 ~width ~height (); - GMisc.pixmap pixmap ~width ~height ~xpad:4 ~ypad:8 () - in - object (self) - inherit GObj.widget_full area#as_widget - val mutable maxim = ref 0. - val mutable scale = ref 1. - val mutable min_scale = 1. - val values = Array.make width 0. - val mutable active = false - - method activate a = active <- a - - method scale h = truncate ((float height) *. h /. !scale) - - method private rect i v' v = - let h = self#scale v in - let h' = self#scale v' in - let h1 = min h' h in - let h2 = max h' h in - pixmap#set_foreground `BLACK; - pixmap#rectangle - ~filled:true ~x:i ~y:(height - h1) ~width:1 ~height:h1 (); - for h = h1 + 1 to h2 do - let v = truncate (65535. *. (float (h - h1) /. float (h2 - h1))) in - pixmap#set_foreground (`RGB (v, v, v)); - pixmap#rectangle - ~filled:true ~x:i ~y:(height - h) ~width:1 ~height:1 (); - done - - method push v = - let need_max = values.(0) = !maxim in - for i = 0 to width - 2 do - values.(i) <- values.(i + 1) - done; - values.(width - 1) <- v; - if need_max then begin - maxim := 0.; - for i = 0 to width - 1 do maxim := max !maxim values.(i) done - end else - maxim := max !maxim v; - if active then begin - let need_resize = - !maxim > !scale || (!maxim > min_scale && !maxim < !scale /. 1.5) in - if need_resize then begin - scale := min_scale; - while !maxim > !scale do - scale := !scale *. 1.5 - done; - pixmap#set_foreground `WHITE; - pixmap#rectangle ~filled:true ~x:0 ~y:0 ~width ~height (); - pixmap#set_foreground `BLACK; - for i = 0 to width - 1 do - self#rect i values.(max 0 (i - 1)) values.(i) - done - end else begin - pixmap#put_pixmap ~x:0 ~y:0 ~xsrc:1 (pixmap#pixmap); - pixmap#set_foreground `WHITE; - pixmap#rectangle - ~filled:true ~x:(width - 1) ~y:0 ~width:1 ~height (); - self#rect (width - 1) values.(width - 2) values.(width - 1) - end; - area#misc#draw None - end - end - -let clientWritten = ref 0. -let serverWritten = ref 0. - -let statistics () = - let title = "Statistics" in - let t = GWindow.dialog ~title ~wm_name:title () in - let t_dismiss = - GButton.button ~label:"Dismiss" ~packing:t#action_area#add () in - t_dismiss#grab_default (); - let dismiss () = t#misc#hide () in - ignore (t_dismiss#connect#clicked ~callback:dismiss); - ignore (t#event#connect#delete ~callback:(fun _ -> dismiss (); true)); - - let emission = new stats 320 50 in - t#vbox#pack ~expand:false ~padding:4 (emission :> GObj.widget); - let reception = new stats 320 50 in - t#vbox#pack ~expand:false ~padding:4 (reception :> GObj.widget); - - let lst = - GList.clist - ~packing:(t#vbox#add) - ~titles_active:false - ~titles:[""; "Client"; "Server"; "Total"] () - in - lst#set_column ~auto_resize:true 0; - lst#set_column ~auto_resize:true ~justification:`RIGHT 1; - lst#set_column ~auto_resize:true ~justification:`RIGHT 2; - lst#set_column ~auto_resize:true ~justification:`RIGHT 3; - ignore (lst#append ["Reception rate"]); - ignore (lst#append ["Data received"]); - ignore (lst#append ["File data written"]); - let style = lst#misc#style#copy in - style#set_font (Lazy.force fontMonospaceMedium); - for r = 0 to 2 do - lst#set_row ~selectable:false r; - for c = 1 to 3 do - lst#set_cell ~style r c - done - done; - - ignore (t#event#connect#map (fun _ -> - emission#activate true; - reception#activate true; - false)); - ignore (t#event#connect#unmap (fun _ -> - emission#activate false; - reception#activate false; - false)); - - let delay = 0.5 in - let a = 0.5 in - let b = 0.8 in - - let emittedBytes = ref 0. in - let emitRate = ref 0. in - let emitRate2 = ref 0. in - let receivedBytes = ref 0. in - let receiveRate = ref 0. in - let receiveRate2 = ref 0. in - let timeout _ = - emitRate := - a *. !emitRate +. - (1. -. a) *. (!Remote.emittedBytes -. !emittedBytes) /. delay; - emitRate2 := - b *. !emitRate2 +. - (1. -. b) *. (!Remote.emittedBytes -. !emittedBytes) /. delay; - emission#push !emitRate; - receiveRate := - a *. !receiveRate +. - (1. -. a) *. (!Remote.receivedBytes -. !receivedBytes) /. delay; - receiveRate2 := - b *. !receiveRate2 +. - (1. -. b) *. (!Remote.receivedBytes -. !receivedBytes) /. delay; - reception#push !receiveRate; - emittedBytes := !Remote.emittedBytes; - receivedBytes := !Remote.receivedBytes; - let kib2str v = Format.sprintf "%.0f B" v in - let rate2str v = - if v > 9.9e3 then begin - if v > 9.9e6 then - Format.sprintf "%4.0f MiB/s" (v /. 1e6) - else if v > 999e3 then - Format.sprintf "%4.1f MiB/s" (v /. 1e6) - else - Format.sprintf "%4.0f KiB/s" (v /. 1e3) - end else begin - if v > 990. then - Format.sprintf "%4.1f KiB/s" (v /. 1e3) - else if v > 99. then - Format.sprintf "%4.2f KiB/s" (v /. 1e3) - else - " " - end - in - lst#set_cell ~text:(rate2str !receiveRate2) 0 1; - lst#set_cell ~text:(rate2str !emitRate2) 0 2; - lst#set_cell ~text: - (rate2str (!receiveRate2 +. !emitRate2)) 0 3; - lst#set_cell ~text:(kib2str !receivedBytes) 1 1; - lst#set_cell ~text:(kib2str !emittedBytes) 1 2; - lst#set_cell ~text: - (kib2str (!receivedBytes +. !emittedBytes)) 1 3; - lst#set_cell ~text:(kib2str !clientWritten) 2 1; - lst#set_cell ~text:(kib2str !serverWritten) 2 2; - lst#set_cell ~text: - (kib2str (!clientWritten +. !serverWritten)) 2 3; - true - in - ignore (GMain.Timeout.add ~ms:(truncate (delay *. 1000.)) ~callback:timeout); - - t - -(****) - -(* Standard file dialog *) -let file_dialog ~title ~callback ?filename () = - let sel = GWindow.file_selection ~title ~modal:true ?filename () in - grabFocus sel; - ignore (sel#cancel_button#connect#clicked ~callback:sel#destroy); - ignore (sel#ok_button#connect#clicked ~callback: - (fun () -> - let name = sel#get_filename in - sel#destroy (); - callback name)); - sel#show (); - ignore (sel#connect#destroy ~callback:GMain.Main.quit); - GMain.Main.main (); - releaseFocus () - -(* ------ *) - -let fatalError message = - Trace.log ((transcode message) ^ "\n"); - oneBox ~title:(Printf.sprintf "%s: Fatal error" - (String.capitalize Uutil.myName)) - ~message ~label:"Quit" - -(* ------ *) - -let tryAgainOrQuit message = - twoBox ~title:"Error" ~message ~alabel:"Try again" ~blabel:"Quit";; - -(* ------ *) - -let getFirstRoot() = - let t = GWindow.dialog ~title:"Root selection" ~wm_name:"Root selection" - ~modal:true ~allow_grow:true () in - t#misc#grab_focus (); - - let hb = GPack.hbox - ~packing:(t#vbox#pack ~expand:false ~padding:15) () in - ignore(GMisc.label ~text:tryAgainMessage - ~justify:`LEFT - ~packing:(hb#pack ~expand:false ~padding:15) ()); - - let f1 = GPack.hbox ~spacing:4 - ~packing:(t#vbox#pack ~expand:true ~padding:4) () in - ignore (GMisc.label ~text:"Dir:" ~packing:(f1#pack ~expand:false) ()); - let fileE = GEdit.entry ~packing:f1#add () in - fileE#misc#grab_focus (); - let browseCommand() = - file_dialog ~title:"Select a local directory" - ~callback:fileE#set_text ~filename:fileE#text () in - let b = GButton.button ~label:"Browse" - ~packing:(f1#pack ~expand:false) () in - ignore (b#connect#clicked ~callback:browseCommand); - - let f3 = t#action_area in - let result = ref None in - let contCommand() = - result := Some(fileE#text); - t#destroy () in - let contButton = GButton.button ~label:"Continue" ~packing:f3#add () in - ignore (contButton#connect#clicked ~callback:contCommand); - ignore (fileE#connect#activate ~callback:contCommand); - contButton#grab_default (); - let quitButton = GButton.button ~label:"Quit" ~packing:f3#add () in - ignore (quitButton#connect#clicked - ~callback:(fun () -> result := None; t#destroy())); - t#show (); - ignore (t#connect#destroy ~callback:GMain.Main.quit); - GMain.Main.main (); - match !result with None -> None - | Some file -> - Some(Clroot.clroot2string(Clroot.ConnectLocal(Some file))) - -(* ------ *) - -let getSecondRoot () = - let t = GWindow.dialog ~title:"Root selection" ~wm_name:"Root selection" - ~modal:true ~allow_grow:true () in - t#misc#grab_focus (); - - let message = "Please enter the second directory you want to synchronize." in - - let vb = t#vbox in - let hb = GPack.hbox ~packing:(vb#pack ~expand:false ~padding:15) () in - ignore(GMisc.label ~text:message - ~justify:`LEFT - ~packing:(hb#pack ~expand:false ~padding:15) ()); - let helpB = GButton.button ~label:"Help" ~packing:hb#add () in - ignore (helpB#connect#clicked - ~callback:(fun () -> okBox ~title:"Picking roots" - ~message:helpmessage)); - - let result = ref None in - - let f = GPack.vbox ~packing:(vb#pack ~expand:false) () in - - let f1 = GPack.hbox ~spacing:4 ~packing:f#add () in - ignore (GMisc.label ~text:"Directory:" ~packing:(f1#pack ~expand:false) ()); - let fileE = GEdit.entry ~packing:f1#add () in - fileE#misc#grab_focus (); - let browseCommand() = - file_dialog ~title:"Select a local directory" - ~callback:fileE#set_text ~filename:fileE#text () in - let b = GButton.button ~label:"Browse" - ~packing:(f1#pack ~expand:false) () in - ignore (b#connect#clicked ~callback:browseCommand); - - let f0 = GPack.hbox ~spacing:4 ~packing:f#add () in - let localB = GButton.radio_button ~packing:(f0#pack ~expand:false) - ~label:"Local" () in - let sshB = GButton.radio_button ~group:localB#group - ~packing:(f0#pack ~expand:false) - ~label:"SSH" () in - let rshB = GButton.radio_button ~group:localB#group - ~packing:(f0#pack ~expand:false) ~label:"RSH" () in - let socketB = GButton.radio_button ~group:sshB#group - ~packing:(f0#pack ~expand:false) ~label:"Socket" () in - - let f2 = GPack.hbox ~spacing:4 ~packing:f#add () in - ignore (GMisc.label ~text:"Host:" ~packing:(f2#pack ~expand:false) ()); - let hostE = GEdit.entry ~packing:f2#add () in - - ignore (GMisc.label ~text:"(Optional) User:" - ~packing:(f2#pack ~expand:false) ()); - let userE = GEdit.entry ~packing:f2#add () in - - ignore (GMisc.label ~text:"Port:" - ~packing:(f2#pack ~expand:false) ()); - let portE = GEdit.entry ~packing:f2#add () in - - let varLocalRemote = ref (`Local : [`Local|`SSH|`RSH|`SOCKET]) in - let localState() = - varLocalRemote := `Local; - hostE#misc#set_sensitive false; - userE#misc#set_sensitive false; - portE#misc#set_sensitive false; - b#misc#set_sensitive true in - let remoteState() = - hostE#misc#set_sensitive true; - b#misc#set_sensitive false; - match !varLocalRemote with - `SOCKET -> - (portE#misc#set_sensitive true; userE#misc#set_sensitive false) - | _ -> - (portE#misc#set_sensitive false; userE#misc#set_sensitive true) in - let protoState x = - varLocalRemote := x; - remoteState() in - ignore (localB#connect#clicked ~callback:localState); - ignore (sshB#connect#clicked ~callback:(fun () -> protoState(`SSH))); - ignore (rshB#connect#clicked ~callback:(fun () -> protoState(`RSH))); - ignore (socketB#connect#clicked ~callback:(fun () -> protoState(`SOCKET))); - localState(); - let getRoot() = - let file = fileE#text in - let user = userE#text in - let host = hostE#text in - match !varLocalRemote with - `Local -> - Clroot.clroot2string(Clroot.ConnectLocal(Some file)) - | `SSH | `RSH -> - Clroot.clroot2string( - Clroot.ConnectByShell((if !varLocalRemote=`SSH then "ssh" else "rsh"), - host, - (if user="" then None else Some user), - Some portE#text, - Some file)) - | `SOCKET -> - Clroot.clroot2string( - (* FIX: report an error if the port entry is not well formed *) - Clroot.ConnectBySocket(host, - portE#text, - Some file)) in - let contCommand() = - try - let root = getRoot() in - result := Some root; - t#destroy () - with Failure "int_of_string" -> - if portE#text="" then - okBox ~title:"Error" ~message:"Please enter a port" - else okBox ~title:"Error" - ~message:"The port you specify must be an integer" - | _ -> - okBox ~title:"Error" - ~message:"Something's wrong with the values you entered, try again" in - let f3 = t#action_area in - let contButton = GButton.button ~label:"Continue" ~packing:f3#add () in - ignore (contButton#connect#clicked ~callback:contCommand); - contButton#grab_default (); - ignore (fileE#connect#activate ~callback:contCommand); - let quitButton = GButton.button ~label:"Quit" ~packing:f3#add () in - ignore (quitButton#connect#clicked ~callback:safeExit); - - t#show (); - ignore (t#connect#destroy ~callback:GMain.Main.quit); - GMain.Main.main (); - !result - -(* ------ *) - -type profileInfo = {roots:string list; label:string option} - -(* ------ *) - -let termInteract() = -(* - if Util.isOSX then Some(fun s -> "") (*FIXTJ*) - else -*) - None - -(* ------ *) - -let profileKeymap = Array.create 10 None - -let provideProfileKey filename k profile info = - try - let i = int_of_string k in - if 0<=i && i<=9 then - match profileKeymap.(i) with - None -> profileKeymap.(i) <- Some(profile,info) - | Some(otherProfile,_) -> - raise (Util.Fatal - ("Error scanning profile "^filename^":\n" - ^ "shortcut key "^k^" is already bound to profile " - ^ otherProfile)) - else - raise (Util.Fatal - ("Error scanning profile "^filename^":\n" - ^ "Value of 'key' preference must be a single digit (0-9), " - ^ "not " ^ k)) - with int_of_string -> raise (Util.Fatal - ("Error scanning profile "^filename^":\n" - ^ "Value of 'key' preference must be a single digit (0-9), " - ^ "not " ^ k)) - -(* ------ *) - -let profilesAndRoots = ref [] - -let scanProfiles () = - Array.iteri (fun i _ -> profileKeymap.(i) <- None) profileKeymap; - profilesAndRoots := - (Safelist.map - (fun f -> - let f = Filename.chop_suffix f ".prf" in - let filename = Prefs.profilePathname f in - let fileContents = Safelist.map (fun (_, _, n, v) -> (n, v)) (Prefs.readAFile f) in - let roots = - Safelist.map snd - (Safelist.filter (fun (n, _) -> n = "root") fileContents) in - let label = - try Some(Safelist.assoc "label" fileContents) - with Not_found -> None in - let info = {roots=roots; label=label} in - (* If this profile has a 'key' binding, put it in the keymap *) - (try - let k = Safelist.assoc "key" fileContents in - provideProfileKey filename k f info - with Not_found -> ()); - (f, info)) - (Safelist.filter (fun name -> not ( Util.startswith name ".#" - || Util.startswith name Os.tempFilePrefix)) - (Files.ls Os.unisonDir "*.prf"))) - -let getProfile () = - (* The selected profile *) - let result = ref None in - - (* Build the dialog *) - let t = GWindow.dialog ~title:"Profiles" ~wm_name:"Profiles" ~width:400 () in - - let okCommand() = - currentWindow := None; - t#destroy () in - let okButton = GButton.button ~label:"OK" ~packing:t#action_area#add () in - ignore (okButton#connect#clicked ~callback:okCommand); - okButton#misc#set_sensitive false; - okButton#grab_default (); - let cancelCommand() = t#destroy (); exit 0 in - let cancelButton = GButton.button ~label:"Cancel" - ~packing:t#action_area#add () in - ignore (cancelButton#connect#clicked ~callback:cancelCommand); - cancelButton#misc#set_can_default true; - - let vb = t#vbox in - - ignore (GMisc.label - ~text:"Select an existing profile or create a new one" - ~xpad:2 ~ypad:5 ~packing:(vb#pack ~expand:false) ()); - - let sw = - GBin.scrolled_window ~packing:(vb#add) ~height:200 - ~hpolicy:`AUTOMATIC ~vpolicy:`AUTOMATIC () in - let lst = GList.clist_poly ~selection_mode:`BROWSE ~packing:(sw#add) () in - let selRow = ref 0 in - let fillLst default = - scanProfiles(); - lst#freeze (); - lst#clear (); - let i = ref 0 in (* FIX: Work around a lablgtk bug *) - Safelist.iter - (fun (profile, info) -> - let labeltext = - match info.label with None -> "" | Some(l) -> " ("^l^")" in - let s = profile ^ labeltext in - ignore (lst#append [s]); - if profile = default then selRow := !i; - lst#set_row_data !i (profile, info); - incr i) - (Safelist.sort (fun (p, _) (p', _) -> compare p p') !profilesAndRoots); - let r = lst#rows in - let p = if r < 2 then 0. else float !selRow /. float (r - 1) in - lst#scroll_vertical `JUMP p; - lst#thaw () in - let tbl = - GPack.table ~rows:2 ~columns:2 ~packing:(vb#pack ~expand:true) () in - tbl#misc#set_sensitive false; - ignore (GMisc.label ~text:"Root 1:" ~xpad:2 - ~packing:(tbl#attach ~left:0 ~top:0 ~expand:`NONE) ()); - ignore (GMisc.label ~text:"Root 2:" ~xpad:2 - ~packing:(tbl#attach ~left:0 ~top:1 ~expand:`NONE) ()); - let root1 = - GEdit.entry ~packing:(tbl#attach ~left:1 ~top:0 ~expand:`X) - ~editable:false () in - let root2 = - GEdit.entry ~packing:(tbl#attach ~left:1 ~top:1 ~expand:`X) - ~editable:false () in - root1#misc#set_can_focus false; - root2#misc#set_can_focus false; - let hb = - GPack.hbox ~border_width:2 ~spacing:2 ~packing:(vb#pack ~expand:false) () - in - let nw = - GButton.button ~label:"Create new profile" - ~packing:(hb#pack ~expand:false) () in - ignore (nw#connect#clicked ~callback:(fun () -> - let t = - GWindow.dialog ~title:"New profile" ~wm_name:"New profile" ~modal:true () - in - let vb = GPack.vbox ~border_width:4 ~packing:t#vbox#add () in - let f = GPack.vbox ~packing:(vb#pack ~expand:true ~padding:4) () in - let f0 = GPack.hbox ~spacing:4 ~packing:f#add () in - ignore (GMisc.label ~text:"Profile name:" - ~packing:(f0#pack ~expand:false) ()); - let prof = GEdit.entry ~packing:f0#add () in - prof#misc#grab_focus (); - - let exit () = t#destroy (); GMain.Main.quit () in - ignore (t#event#connect#delete ~callback:(fun _ -> exit (); true)); - - let f3 = t#action_area in - let okCommand () = - let profile = prof#text in - if profile <> "" then - let filename = Prefs.profilePathname profile in - if System.file_exists filename then - okBox - ~title:(Uutil.myName ^ " error") - ~message:("Profile \"" - ^ profile - ^ "\" already exists!\nPlease select another name.") - else - (* Make an empty file *) - let ch = - System.open_out_gen - [Open_wronly; Open_creat; Open_trunc] 0o600 filename in - close_out ch; - fillLst profile; - exit () in - let okButton = GButton.button ~label:"OK" ~packing:f3#add () in - ignore (okButton#connect#clicked ~callback:okCommand); - okButton#grab_default (); - let cancelButton = GButton.button ~label:"Cancel" ~packing:f3#add () in - ignore (cancelButton#connect#clicked ~callback:exit); - - t#show (); - grabFocus t; - GMain.Main.main (); - releaseFocus ())); - - ignore (lst#connect#unselect_row ~callback:(fun ~row:_ ~column:_ ~event:_ -> - root1#set_text ""; root2#set_text ""; - result := None; - tbl#misc#set_sensitive false; - okButton#misc#set_sensitive false)); - - let select_row i = - (* Inserting the first row triggers the signal, even before the row - data is set. So, we need to catch the corresponding exception *) - (try - let (profile, info) = lst#get_row_data i in - result := Some profile; - begin match info.roots with - [r1; r2] -> root1#set_text r1; root2#set_text r2; - tbl#misc#set_sensitive true - | _ -> root1#set_text ""; root2#set_text ""; - tbl#misc#set_sensitive false - end; - okButton#misc#set_sensitive true - with Gpointer.Null -> ()) in - - ignore (lst#connect#select_row - ~callback:(fun ~row:i ~column:_ ~event:_ -> select_row i)); - - ignore (lst#event#connect#button_press ~callback:(fun ev -> - match GdkEvent.get_type ev with - `TWO_BUTTON_PRESS -> - okCommand (); - true - | _ -> - false)); - fillLst "default"; - select_row !selRow; - lst#misc#grab_focus (); - currentWindow := Some (t :> GWindow.window); - ignore (t#connect#destroy ~callback:GMain.Main.quit); - t#show (); - GMain.Main.main (); - !result - -(* ------ *) - -let documentation sect = - let title = "Documentation" in - let t = GWindow.dialog ~title ~wm_name:title () in - let t_dismiss = - GButton.button ~label:"Dismiss" ~packing:t#action_area#add () in - t_dismiss#grab_default (); - let dismiss () = t#destroy () in - ignore (t_dismiss#connect#clicked ~callback:dismiss); - ignore (t#event#connect#delete ~callback:(fun _ -> dismiss (); true)); - - let (name, docstr) = List.assoc sect Strings.docs in - let hb = GPack.hbox ~packing:(t#vbox#pack ~expand:false ~padding:2) () in - let optionmenu = - GMenu.option_menu ~packing:(hb#pack ~expand:true ~fill:false) () in - - let charW = Gdk.Font.char_width (Lazy.force fontMonospaceMedium) 'M' in - let charH = 16 in - let t_text = - new scrolled_text ~editable:false - ~width:(charW * 80) ~height:(charH * 20) ~packing:t#vbox#add () - in - t_text#insert docstr; - - let sect_idx = ref 0 in - let idx = ref 0 in - let menu = GMenu.menu () in - let addDocSection (shortname, (name, docstr)) = - if shortname <> "" && name <> "" then begin - if shortname = sect then sect_idx := !idx; - incr idx; - let item = GMenu.menu_item ~label:name ~packing:menu#append () in - ignore - (item#connect#activate ~callback:(fun () -> t_text#insert docstr)) - end - in - Safelist.iter addDocSection Strings.docs; - optionmenu#set_menu menu; - optionmenu#set_history !sect_idx; - - t#show () - -(* ------ *) - -let messageBox ~title ?(label = "Dismiss") ?(action = fun t -> t#destroy) - ?(modal = false) message = - let t = GWindow.dialog ~title ~wm_name:title ~modal ~position:`CENTER () in - let t_dismiss = GButton.button ~label ~packing:t#action_area#add () in - t_dismiss#grab_default (); - ignore (t_dismiss#connect#clicked ~callback:(action t)); - let charW = Gdk.Font.char_width (Lazy.force fontMonospaceMedium) 'M' in - let charH = 16 in - let t_text = - new scrolled_text ~editable:false - ~width:(charW * 80) ~height:(charH * 20) ~packing:t#vbox#add () - in - t_text#insert (transcode message); - ignore (t#event#connect#delete ~callback:(fun _ -> action t (); true)); - t#show (); - if modal then begin - grabFocus t; - GMain.Main.main (); - releaseFocus () - end - - -(********************************************************************** - TOP-LEVEL WINDOW - **********************************************************************) - -let myWindow = ref None - -let getMyWindow () = - if not (Prefs.read Uicommon.reuseToplevelWindows) then begin - (match !myWindow with Some(w) -> w#destroy() | None -> ()); - myWindow := None; - end; - let w = match !myWindow with - Some(w) -> - Safelist.iter w#remove w#children; - w - | None -> - (* Used to be ~position:`CENTER -- maybe that was better... *) - GWindow.window ~kind:`TOPLEVEL ~position:`CENTER - ~wm_name:Uutil.myName () in - myWindow := Some(w); - w#set_border_width 4; - w - -(* ------ *) - -let displayWaitMessage () = - if not (Prefs.read Uicommon.contactquietly) then begin - let w = getMyWindow() in - ignore (GMisc.label ~text: (Uicommon.contactingServerMsg()) ~packing:(w#add) ()); - w#set_border_width 20; - w#show(); - ignore (w#event#connect#delete ~callback:(fun _ -> exit 0)) - end - -(* ------ *) - -let rec createToplevelWindow () = - let toplevelWindow = getMyWindow() in - let toplevelVBox = GPack.vbox ~packing:toplevelWindow#add () in - - (******************************************************************* - Statistic window - *******************************************************************) - - (* FIX: currently statistics window unavailable in the Cygwin version; - enabling it causes core dump. *) - let stat_win = - (if Util.isCygwin then - GWindow.dialog () - else - statistics ()) - in - - (******************************************************************* - Groups of things that are sensitive to interaction at the same time - *******************************************************************) - let grAction = ref [] in - let grDiff = ref [] in - let grGo = ref [] in - let grRestart = ref [] in - let grAdd gr w = gr := w#misc::!gr in - let grSet gr st = List.iter (fun x -> x#set_sensitive st) !gr in - - (********************************************************************* - Create the menu bar - *********************************************************************) - let topHBox = GPack.hbox ~packing:(toplevelVBox#pack ~expand:false) () in - - let menuBar = - GMenu.menu_bar ~border_width:0 - ~packing:(topHBox#pack ~expand:true) () in - let menus = new GMenu.factory ~accel_modi:[] menuBar in - let accel_group = menus#accel_group in - toplevelWindow#add_accel_group accel_group; - let add_submenu ?(modi=[]) ~label () = - new GMenu.factory ~accel_group ~accel_modi:modi (menus#add_submenu label) - in - - let profileLabel = - GMisc.label ~text:"" ~packing:(topHBox#pack ~expand:false ~padding:2) () in - - let displayNewProfileLabel p = - let label = Prefs.read Uicommon.profileLabel in - let s = - if p="" then "" - else if p="default" then label - else if label="" then p - else p ^ " (" ^ label ^ ")" in - let s = if s="" then "" else "Profile: " ^ s in - profileLabel#set_text s - in - - begin match !Prefs.profileName with - None -> () - | Some(p) -> displayNewProfileLabel p - end; - - (********************************************************************* - Create the menus - *********************************************************************) - let fileMenu = add_submenu ~label:"Synchronization" () - and actionsMenu = add_submenu ~label:"Actions" () - and ignoreMenu = add_submenu ~modi:[`SHIFT] ~label:"Ignore" () - and sortMenu = add_submenu ~label:"Sort" () - and helpMenu = add_submenu ~label:"Help" () in - - (********************************************************************* - Create the main window - *********************************************************************) - let mainWindow = - let sw = - GBin.scrolled_window ~packing:(toplevelVBox#add) - ~height:(Prefs.read Uicommon.mainWindowHeight * 12) - ~hpolicy:`AUTOMATIC ~vpolicy:`AUTOMATIC () in - GList.clist ~columns:5 ~titles_show:true - ~selection_mode:`BROWSE ~packing:sw#add () in - mainWindow#misc#grab_focus (); - let setMainWindowColumnHeaders () = - (* FIX: roots2string should return a pair *) - let s = Uicommon.roots2string () in - Array.iteri - (fun i data -> - mainWindow#set_column - ~title_active:false ~auto_resize:true ~title:data i) - [| " " ^ String.sub s 0 12 ^ " "; " Action "; - " " ^ String.sub s 15 12 ^ " "; " Status "; " Path" |]; - let status_width = - let font = mainWindow#misc#style#font in - 4 + max (Gdk.Font.string_width font "working") - (Gdk.Font.string_width font "skipped") in - mainWindow#set_column ~justification:`CENTER 1; - mainWindow#set_column - ~justification:`CENTER ~auto_resize:false ~width:status_width 3 in - setMainWindowColumnHeaders(); - - (********************************************************************* - Create the details window - *********************************************************************) - - let charW = Gdk.Font.char_width (Lazy.force fontMonospaceMedium) 'M' in - let charH = if Util.osType = `Win32 then 20 else 16 in - - let detailsWindow = - let sw = - GBin.scrolled_window ~packing:(toplevelVBox#pack ~expand:false) - ~hpolicy:`AUTOMATIC ~vpolicy:`AUTOMATIC () in - GEdit.text ~editable:false ~height:(3 * charH) ~width: (128 * charW) - ~line_wrap:false ~packing:sw#add () in - detailsWindow#misc#set_can_focus false; - let style = detailsWindow#misc#style#copy in - style#set_font (Lazy.force fontMonospaceMedium); - detailsWindow#misc#set_style style; - - let updateButtons () = - match !current with - None -> - grSet grAction false; - grSet grDiff false - | Some row -> - let (activate1, activate2) = - match !theState.(row).whatHappened, !theState.(row).ri.replicas with - | None, Different((`FILE, _, _, _),(`FILE, _, _, _), _, _) -> - (true, true) - | Some _, Different((`FILE, _, _, _),(`FILE, _, _, _), _, _) -> - (false, true) - | Some _, _ -> - (false, false) - | None, _ -> - (true, false) in - grSet grAction activate1; - grSet grDiff activate2 in - - let makeRowVisible row = - if mainWindow#row_is_visible row <> `FULL then begin - let adj = mainWindow#vadjustment in - let current = adj#value - and upper = adj#upper and lower = adj#lower in - let v = - float row /. float (mainWindow#rows + 1) *. (upper-.lower) +. lower - in - adj#set_value (min v (upper -. adj#page_size)) - end in - - let makeFirstUnfinishedVisible pRiInFocus = - let im = Array.length !theState in - let rec find i = - if i >= im then () else - match pRiInFocus (!theState.(i).ri), !theState.(i).whatHappened with - true, None -> makeRowVisible i - | _ -> find (i+1) in - find 0 - in - - let updateDetails () = - detailsWindow#freeze (); - detailsWindow#delete_text ~start:0 ~stop:detailsWindow#length; - begin match !current with - None -> - () - | Some row -> - makeRowVisible row; - let details = - match !theState.(row).whatHappened with - None -> Uicommon.details2string !theState.(row).ri " " - | Some(Util.Succeeded) -> Uicommon.details2string !theState.(row).ri " " - | Some(Util.Failed(s)) -> s in - detailsWindow#insert - (transcode (Path.toString !theState.(row).ri.path)); - detailsWindow#insert "\n"; - detailsWindow#insert details - end; - (* Display text *) - detailsWindow#thaw (); - updateButtons () in - - (********************************************************************* - Status window - *********************************************************************) - - let statusHBox = GPack.hbox ~packing:(toplevelVBox#pack ~expand:false) () in - let statusWindow = - GMisc.statusbar ~packing:(statusHBox#pack ~expand:true) () in - let statusContext = statusWindow#new_context ~name:"status" in - ignore (statusContext#push ""); - - let displayStatus m = - statusContext#pop (); - ignore (statusContext#push m); - (* Force message to be displayed immediately *) - gtk_sync () - in - - let formatStatus major minor = (Util.padto 30 (major ^ " ")) ^ minor in - - (* Tell the Trace module about the status printer *) - Trace.messageDisplayer := displayStatus; - Trace.statusFormatter := formatStatus; - Trace.sendLogMsgsToStderr := false; - - (********************************************************************* - Functions used to print in the main window - *********************************************************************) - - let select i = - let r = mainWindow#rows in - let p = if r < 2 then 0. else (float i +. 0.5) /. float (r - 1) in - mainWindow#scroll_vertical `JUMP (min p 1.) in - - ignore (mainWindow#connect#unselect_row ~callback: - (fun ~row ~column ~event -> current := None; updateDetails ())); - ignore (mainWindow#connect#select_row ~callback: - (fun ~row ~column ~event -> current := Some row; updateDetails ())); - - let nextInteresting () = - let l = Array.length !theState in - let start = match !current with Some i -> i + 1 | None -> 0 in - let rec loop i = - if i < l then - match !theState.(i).ri.replicas with - Different (_, _, dir, _) - when not (Prefs.read Uicommon.auto) || !dir = Conflict -> - select i - | _ -> - loop (i + 1) in - loop start in - let selectSomethingIfPossible () = - if !current=None then nextInteresting () in - - let columnsOf i = - let oldPath = if i = 0 then Path.empty else !theState.(i-1).ri.path in - let status = - match !theState.(i).whatHappened with - None -> " " - | Some conf -> - match !theState.(i).ri.replicas with - Different(_,_,{contents=Conflict},_) | Problem _ -> - " " - | _ -> - match conf with - Util.Succeeded -> "done " - | Util.Failed _ -> "failed" in - let s = Uicommon.reconItem2string oldPath !theState.(i).ri status in - (* FIX: This is ugly *) - (String.sub s 0 8, - String.sub s 9 5, - String.sub s 15 8, - String.sub s 25 6, - String.sub s 32 (String.length s - 32)) in - - let greenPixel = "00dd00" in - let redPixel = "ff2040" in - let yellowPixel = "999900" in - let lightbluePixel = "8888FF" in - let blackPixel = "000000" in - let buildPixmap p = - GDraw.pixmap_from_xpm_d ~window:toplevelWindow ~data:p () in - let buildPixmaps f c1 = - (buildPixmap (f c1), buildPixmap (f lightbluePixel)) in - - let rightArrow = buildPixmaps Pixmaps.copyAB greenPixel in - let leftArrow = buildPixmaps Pixmaps.copyBA greenPixel in - let ignoreAct = buildPixmaps Pixmaps.ignore redPixel in - let doneIcon = buildPixmap Pixmaps.success in - let failedIcon = buildPixmap Pixmaps.failure in - let rightArrowBlack = buildPixmap (Pixmaps.copyAB blackPixel) in - let leftArrowBlack = buildPixmap (Pixmaps.copyBA blackPixel) in - let mergeLogo = buildPixmaps Pixmaps.mergeLogo greenPixel in - let mergeLogoBlack = buildPixmap (Pixmaps.mergeLogo blackPixel) in - - let displayArrow i j action = - let changedFromDefault = match !theState.(j).ri.replicas with - Different(_,_,{contents=curr},default) -> curr<>default - | _ -> false in - let sel pixmaps = - if changedFromDefault then snd pixmaps else fst pixmaps in - match action with - "<-?->" -> mainWindow#set_cell ~pixmap:(sel ignoreAct) i 1 - | "<-M->" -> mainWindow#set_cell ~pixmap:(sel mergeLogo) i 1 - | "---->" -> mainWindow#set_cell ~pixmap:(sel rightArrow) i 1 - | "<----" -> mainWindow#set_cell ~pixmap:(sel leftArrow) i 1 - | "error" -> mainWindow#set_cell ~pixmap:failedIcon i 1 - | _ -> assert false in - - let displayStatusIcon i status = - match status with - | "failed" -> mainWindow#set_cell ~pixmap:failedIcon i 3 - | "done " -> mainWindow#set_cell ~pixmap:doneIcon i 3 - | _ -> mainWindow#set_cell ~text:status i 3 in - - let displayMain() = - (* The call to mainWindow#clear below side-effect current, - so we save the current value before we clear out the main window and - rebuild it. *) - let savedCurrent = !current in - mainWindow#freeze (); - mainWindow#clear (); - for i = Array.length !theState - 1 downto 0 do - let (r1, action, r2, status, path) = columnsOf i in - ignore (mainWindow#prepend [ r1; ""; r2; status; transcode path ]); - displayArrow 0 i action - done; - debug (fun()-> Util.msg "reset current to %s\n" - (match savedCurrent with None->"None" | Some(i) -> string_of_int i)); - if savedCurrent <> None then current := savedCurrent; - selectSomethingIfPossible (); - begin match !current with Some idx -> select idx | None -> () end; - mainWindow#thaw (); - updateDetails (); - in - - let redisplay i = - let (r1, action, r2, status, path) = columnsOf i in - mainWindow#freeze (); - mainWindow#set_cell ~text:r1 i 0; - displayArrow i i action; - mainWindow#set_cell ~text:r2 i 2; - displayStatusIcon i status; - mainWindow#set_cell ~text:(transcode path) i 4; - if status = "failed" then begin - mainWindow#set_cell - ~text:(path ^ " [failed: click on this line for details]") i 4 - end; - mainWindow#thaw (); - if !current = Some i then updateDetails (); - updateButtons () in - - let globalProgressBar = - GMisc.statusbar ~packing:(statusHBox#pack ~expand:false) () in - let globalProgressContext = globalProgressBar#new_context ~name:"prog" in - ignore (globalProgressContext#push ""); - - let totalBytesToTransfer = ref Uutil.Filesize.zero in - let totalBytesTransferred = ref Uutil.Filesize.zero in - - let displayGlobalProgress s = - globalProgressContext#pop (); - ignore (globalProgressContext#push s); - (* Force message to be displayed immediately *) - gtk_sync () in - - let showGlobalProgress b = - (* Concatenate the new message *) - totalBytesTransferred := Uutil.Filesize.add !totalBytesTransferred b; - let s = - Util.percent2string - (Uutil.Filesize.percentageOfTotalSize - !totalBytesTransferred !totalBytesToTransfer) - in - displayGlobalProgress (s^" ") - in - - let initGlobalProgress b = - totalBytesToTransfer := b; - totalBytesTransferred := Uutil.Filesize.zero; - showGlobalProgress Uutil.Filesize.zero - in - - let (root1,root2) = Globals.roots () in - let root1IsLocal = fst root1 = Local in - let root2IsLocal = fst root2 = Local in - - let showProgress i bytes dbg = -(* XXX There should be a way to reset the amount of bytes transferred... *) - let i = Uutil.File.toLine i in - let item = !theState.(i) in - item.bytesTransferred <- Uutil.Filesize.add item.bytesTransferred bytes; - let b = item.bytesTransferred in - let len = Common.riLength item.ri in - let newstatus = - if b = Uutil.Filesize.zero || len = Uutil.Filesize.zero then "start " - else if len = Uutil.Filesize.zero then - Printf.sprintf "%5s " (Uutil.Filesize.toString b) - else Util.percent2string (Uutil.Filesize.percentageOfTotalSize b len) in - let dbg = if Trace.enabled "progress" then dbg ^ "/" else "" in - let newstatus = dbg ^ newstatus in - mainWindow#set_cell ~text:newstatus i 3; - showGlobalProgress bytes; - gtk_sync (); - begin match item.ri.replicas with - Different (_, _, dir, _) -> - begin match !dir with - Replica1ToReplica2 -> - if root2IsLocal then - clientWritten := !clientWritten +. Uutil.Filesize.toFloat bytes - else - serverWritten := !serverWritten +. Uutil.Filesize.toFloat bytes - | Replica2ToReplica1 -> - if root1IsLocal then - clientWritten := !clientWritten +. Uutil.Filesize.toFloat bytes - else - serverWritten := !serverWritten +. Uutil.Filesize.toFloat bytes - | Conflict | Merge -> - (* Diff / merge *) - clientWritten := !clientWritten +. Uutil.Filesize.toFloat bytes - end - | _ -> - assert false - end - in - - (* Install showProgress so that we get called back by low-level - file transfer stuff *) - Uutil.setProgressPrinter showProgress; - - (* Apply new ignore patterns to the current state, expecting that the - number of reconitems will grow smaller. Adjust the display, being - careful to keep the cursor as near as possible to its position - before the new ignore patterns take effect. *) - let ignoreAndRedisplay () = - let lst = Array.to_list !theState in - (* FIX: we should actually test whether any prefix is now ignored *) - let keep sI = not (Globals.shouldIgnore sI.ri.path) in - begin match !current with - None -> - theState := Array.of_list (Safelist.filter keep lst) - | Some index -> - let i = ref index in - let l = ref [] in - Array.iteri - (fun j sI -> if keep sI then l := sI::!l - else if j < !i then decr i) - !theState; - theState := Array.of_list (Safelist.rev !l); - current := if !l = [] then None - else Some (min (!i) ((Array.length !theState) - 1)); - end; - displayMain() in - - let sortAndRedisplay () = - current := None; - let compareRIs = Sortri.compareReconItems() in - Array.stable_sort (fun si1 si2 -> compareRIs si1.ri si2.ri) !theState; - displayMain() in - - (****************************************************************** - Main detect-updates-and-reconcile logic - ******************************************************************) - - let detectUpdatesAndReconcile () = - grSet grAction false; - grSet grDiff false; - grSet grGo false; - grSet grRestart false; - - let (r1,r2) = Globals.roots () in - let t = Trace.startTimer "Checking for updates" in - let findUpdates () = - Trace.status "Looking for changes"; - let updates = Update.findUpdates () in - Trace.showTimer t; - updates in - let reconcile updates = - let t = Trace.startTimer "Reconciling" in - Recon.reconcileAll updates in - let (reconItemList, thereAreEqualUpdates, dangerousPaths) = - reconcile (findUpdates ()) in - Trace.showTimer t; - if reconItemList = [] then - if thereAreEqualUpdates then - Trace.status "Replicas have been changed only in identical ways since last sync" - else - Trace.status "Everything is up to date" - else - Trace.status "Check and/or adjust selected actions; then press Go"; - theState := - Array.of_list - (Safelist.map - (fun ri -> { ri = ri; bytesTransferred = Uutil.Filesize.zero; - whatHappened = None }) - reconItemList); - current := None; - displayMain(); - grSet grGo (Array.length !theState > 0); - grSet grRestart true; - if dangerousPaths <> [] then begin - Prefs.set Globals.batch false; - Util.warn (Uicommon.dangerousPathMsg dangerousPaths) - end; -in - - (********************************************************************* - Help menu - *********************************************************************) - let addDocSection (shortname, (name, docstr)) = - if shortname <> "" && name <> "" then - ignore (helpMenu#add_item - ~callback:(fun () -> documentation shortname) - name) in - Safelist.iter addDocSection Strings.docs; - - (********************************************************************* - Ignore menu - *********************************************************************) - let addRegExpByPath pathfunc = - match !current with - Some i -> - Uicommon.addIgnorePattern (pathfunc !theState.(i).ri.path); - ignoreAndRedisplay () - | None -> - () in - grAdd grAction - (ignoreMenu#add_item ~key:GdkKeysyms._i - ~callback:(fun () -> getLock (fun () -> - addRegExpByPath Uicommon.ignorePath)) - "Permanently ignore this path"); - grAdd grAction - (ignoreMenu#add_item ~key:GdkKeysyms._E - ~callback:(fun () -> getLock (fun () -> - addRegExpByPath Uicommon.ignoreExt)) - "Permanently ignore files with this extension"); - grAdd grAction - (ignoreMenu#add_item ~key:GdkKeysyms._N - ~callback:(fun () -> getLock (fun () -> - addRegExpByPath Uicommon.ignoreName)) - "Permanently ignore files with this name (in any dir)"); - - (* - grAdd grRestart - (ignoreMenu#add_item ~callback: - (fun () -> getLock ignoreDialog) "Edit ignore patterns"); - *) - - (********************************************************************* - Sort menu - *********************************************************************) - grAdd grAction - (sortMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Sortri.sortByName(); - sortAndRedisplay())) - "Sort entries by name"); - grAdd grAction - (sortMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Sortri.sortBySize(); - sortAndRedisplay())) - "Sort entries by size"); - grAdd grAction - (sortMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Sortri.sortNewFirst(); - sortAndRedisplay())) - "Sort new entries first"); - grAdd grAction - (sortMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Sortri.restoreDefaultSettings(); - sortAndRedisplay())) - "Go back to default ordering"); - - (********************************************************************* - Main function : synchronize - *********************************************************************) - let synchronize () = - if Array.length !theState = 0 then - Trace.status "Nothing to synchronize" - else begin - grSet grAction false; - grSet grDiff false; - grSet grGo false; - grSet grRestart false; - - Trace.status "Propagating changes"; - Transport.logStart (); - let totalLength = - Array.fold_left - (fun l si -> Uutil.Filesize.add l (Common.riLength si.ri)) - Uutil.Filesize.zero !theState in - displayGlobalProgress " "; - initGlobalProgress totalLength; - let t = Trace.startTimer "Propagating changes" in - let im = Array.length !theState in - let rec loop i actions pRiThisRound = - if i < im then begin - let theSI = !theState.(i) in - let action = - match theSI.whatHappened with - None -> - if not (pRiThisRound theSI.ri) then - return () - else - catch (fun () -> - Transport.transportItem - theSI.ri (Uutil.File.ofLine i) - (fun title text -> - Trace.status (Printf.sprintf "\n%s\n\n%s\n\n" title text); true) - >>= (fun () -> - return Util.Succeeded)) - (fun e -> - match e with - Util.Transient s -> - return (Util.Failed s) - | _ -> - fail e) - >>= (fun res -> - theSI.whatHappened <- Some res; - redisplay i; - makeFirstUnfinishedVisible pRiThisRound; - gtk_sync (); - return ()) - | Some _ -> - return () (* Already processed this one (e.g. merged it) *) - in - loop (i + 1) (action :: actions) pRiThisRound - end else - return actions - in - Lwt_unix.run - (loop 0 [] (fun ri -> not (Common.isDeletion ri)) >>= (fun actions -> - Lwt_util.join actions)); - Lwt_unix.run - (loop 0 [] Common.isDeletion >>= (fun actions -> - Lwt_util.join actions)); - Transport.logFinish (); - Trace.showTimer t; - Trace.status "Updating synchronizer state"; - let t = Trace.startTimer "Updating synchronizer state" in - Update.commitUpdates(); - Trace.showTimer t; - - let failures = - let count = - Array.fold_left - (fun l si -> - l + (match si.whatHappened with Some(Util.Failed(_)) -> 1 | _ -> 0)) - 0 !theState in - if count = 0 then "" else - Printf.sprintf "%d failure%s" count (if count=1 then "" else "s") in - let skipped = - let count = - Array.fold_left - (fun l si -> - l + (if problematic si.ri then 1 else 0)) - 0 !theState in - if count = 0 then "" else - Printf.sprintf "%d skipped" count in - Trace.status - (Printf.sprintf "Synchronization complete %s%s%s" - failures (if failures=""||skipped="" then "" else ", ") skipped); - displayGlobalProgress ""; - - grSet grRestart true - end in - - (********************************************************************* - Action bar - *********************************************************************) - let actionBar = - GButton.toolbar - ~orientation:`HORIZONTAL ~tooltips:true ~space_size:10 - ~packing:(toplevelVBox#pack ~expand:false) () in - - (********************************************************************* - Quit button - *********************************************************************) - actionBar#insert_space (); - ignore (actionBar#insert_button ~text:"Quit" ~callback:safeExit ()); - - (********************************************************************* - Go button - *********************************************************************) - actionBar#insert_space (); - grAdd grGo - (actionBar#insert_button ~text:"Go" - (* tooltip:"Go with displayed actions" *) - ~callback:(fun () -> - getLock synchronize) ()); - - (********************************************************************* - Restart button - *********************************************************************) - let detectCmdName = "Restart" in - let detectCmd () = - getLock detectUpdatesAndReconcile; - if Prefs.read Globals.batch then begin - Prefs.set Globals.batch false; synchronize() - end - in - actionBar#insert_space (); - grAdd grRestart - (actionBar#insert_button ~text:detectCmdName ~callback:detectCmd ()); - - (********************************************************************* - Buttons for <--, M, -->, Skip - *********************************************************************) - let doAction f = - match !current with - Some i -> - let theSI = !theState.(i) in - begin match theSI.whatHappened, theSI.ri.replicas with - None, Different(_, _, dir, _) -> - f dir; - redisplay i; - nextInteresting () - | _ -> - () - end - | None -> - () in - let leftAction _ = doAction (fun dir -> dir := Replica2ToReplica1) in - let rightAction _ = doAction (fun dir -> dir := Replica1ToReplica2) in - let questionAction _ = doAction (fun dir -> dir := Conflict) in - let mergeAction _ = doAction (fun dir -> dir := Merge) in - - actionBar#insert_space (); - grAdd grAction - (actionBar#insert_button - ~icon:((GMisc.pixmap leftArrowBlack ())#coerce) - ~callback:leftAction ()); - actionBar#insert_space (); - grAdd grAction - (actionBar#insert_button - ~icon:((GMisc.pixmap mergeLogoBlack())#coerce) - ~callback:mergeAction ()); - actionBar#insert_space (); - grAdd grAction - (actionBar#insert_button - ~icon:((GMisc.pixmap rightArrowBlack ())#coerce) - ~callback:rightAction ()); - actionBar#insert_space (); - grAdd grAction - (actionBar#insert_button ~text:"Skip" ~callback:questionAction ()); - - (********************************************************************* - Diff / merge buttons - *********************************************************************) - let diffCmd () = - match !current with - Some i -> - getLock (fun () -> - Uicommon.showDiffs !theState.(i).ri - (fun title text -> messageBox ~title text) - Trace.status (Uutil.File.ofLine i)) - | None -> - () in - - actionBar#insert_space (); - grAdd grDiff (actionBar#insert_button ~text:"Diff" ~callback:diffCmd ()); - -(* - let mergeCmd () = - match !current with - Some i -> - getLock (fun () -> - toplevelWindow#misc#set_sensitive false; - begin try - Uicommon.applyMerge !theState.(i).ri - (Uutil.File.ofLine i) - (fun title text -> - Trace.status (Printf.sprintf "%s: %s" title text)) - true; - !theState.(i).whatHappened <- Some(Util.Succeeded); - toplevelWindow#misc#set_sensitive true - with - Util.Transient(s) -> - toplevelWindow#misc#set_sensitive true; - oneBox "Merge failed" s "Continue" - end; - redisplay i; - nextInteresting(); - gtk_sync()) - | None -> - () - in - - actionBar#insert_space (); - grAdd grDiff (actionBar#insert_button ~text:"Merge" ~callback:mergeCmd ()); -*) - (********************************************************************* - Keyboard commands - *********************************************************************) - ignore - (mainWindow#event#connect#key_press ~callback: - begin fun ev -> - let key = GdkEvent.Key.keyval ev in - if key = GdkKeysyms._Left then begin - leftAction (); GtkSignal.stop_emit (); true - end else if key = GdkKeysyms._Right then begin - rightAction (); GtkSignal.stop_emit (); true - end else - false - end); - - (********************************************************************* - Action menu - *********************************************************************) - let (root1,root2) = Globals.roots () in - let loc1 = root2hostname root1 in - let loc2 = root2hostname root2 in - let descr = - if loc1 = loc2 then "left to right" else - Printf.sprintf "from %s to %s" loc1 loc2 in - let left = - actionsMenu#add_item ~key:GdkKeysyms._greater ~callback:rightAction - ("Propagate this path " ^ descr) in - grAdd grAction left; - left#add_accelerator ~group:accel_group ~modi:[`SHIFT] GdkKeysyms._greater; - - let merge = actionsMenu#add_item ~key:GdkKeysyms._m ~callback:mergeAction - "Merge the files" in - grAdd grAction merge; - merge#add_accelerator ~group:accel_group GdkKeysyms._m; - - let descl = - if loc1 = loc2 then "right to left" else - Printf.sprintf "from %s to %s" loc2 loc1 in - let right = - actionsMenu#add_item ~key:GdkKeysyms._less ~callback:leftAction - ("Propagate this path " ^ descl) in - grAdd grAction right; - right#add_accelerator ~group:accel_group ~modi:[`SHIFT] GdkKeysyms._less; - - grAdd grAction - (actionsMenu#add_item ~key:GdkKeysyms._slash ~callback:questionAction - "Do not propagate changes to this path"); - - (* Override actions *) - ignore (actionsMenu#add_separator ()); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Replica1ToReplica2 `Prefer) - !theState; - displayMain())) - "Resolve all conflicts in favor of first root"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Replica2ToReplica1 `Prefer) - !theState; - displayMain())) - "Resolve all conflicts in favor of second root"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Newer `Prefer) - !theState; - displayMain())) - "Resolve all conflicts in favor of most recently modified"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Older `Prefer) - !theState; - displayMain())) - "Resolve all conflicts in favor of least recently modified"); - ignore (actionsMenu#add_separator ()); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Replica1ToReplica2 `Force) - !theState; - displayMain())) - "Force all changes from first root to second"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Replica2ToReplica1 `Force) - !theState; - displayMain())) - "Force all changes from second root to first"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Newer `Force) - !theState; - displayMain())) - "Force newer files to replace older ones"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Older `Force) - !theState; - displayMain())) - "Force older files to replace newer ones"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.setDirection si.ri `Merge `Force) - !theState; - displayMain())) - "Revert all paths to the merging default, if avaible"); - ignore (actionsMenu#add_separator ()); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - Array.iter - (fun si -> Recon.revertToDefaultDirection si.ri) - !theState; - displayMain())) - "Revert all paths to Unison's recommendations"); - grAdd grAction - (actionsMenu#add_item - ~callback:(fun () -> getLock (fun () -> - match !current with - Some i -> - let theSI = !theState.(i) in - Recon.revertToDefaultDirection theSI.ri; - redisplay i; - nextInteresting () - | None -> - ())) - "Revert selected path to Unison's recommendations"); - - (* Diff *) - ignore (actionsMenu#add_separator ()); - grAdd grDiff (actionsMenu#add_item ~key:GdkKeysyms._d ~callback:diffCmd - "Show diffs for selected path"); -(* grAdd grDiff (actionsMenu#add_item ~key:GdkKeysyms._m ~callback:mergeCmd - "Merge versions of selected path");*) - - (********************************************************************* - Synchronization menu - *********************************************************************) - - let loadProfile p = - debug (fun()-> Util.msg "Loading profile %s..." p); - Uicommon.initPrefs p displayWaitMessage getFirstRoot getSecondRoot - (termInteract()); - displayNewProfileLabel p; - setMainWindowColumnHeaders() - in - - let reloadProfile () = - match !Prefs.profileName with - None -> () - | Some(n) -> loadProfile n in - - grAdd grGo - (fileMenu#add_item ~key:GdkKeysyms._g - ~callback:(fun () -> - getLock synchronize) - "Go"); - grAdd grRestart - (fileMenu#add_item ~key:GdkKeysyms._r - ~callback:(fun () -> reloadProfile(); detectCmd()) - detectCmdName); - grAdd grRestart - (fileMenu#add_item ~key:GdkKeysyms._a - ~callback:(fun () -> - reloadProfile(); - Prefs.set Globals.batch true; - detectCmd()) - "Detect updates and proceed (without waiting)"); - grAdd grRestart - (fileMenu#add_item ~key:GdkKeysyms._f - ~callback:( - fun () -> - let rec loop i acc = - if i >= Array.length (!theState) then acc else - let notok = - (match !theState.(i).whatHappened with - None-> true - | Some(Util.Failed _) -> true - | Some(Util.Succeeded) -> false) - || match !theState.(i).ri.replicas with - Problem _ -> true - | Different(rc1,rc2,dir,_) -> - (match !dir with - Conflict -> true - | _ -> false) in - if notok then loop (i+1) (i::acc) - else loop (i+1) (acc) in - let failedindices = loop 0 [] in - let failedpaths = - List.map (fun i -> !theState.(i).ri.path) failedindices in - debug (fun()-> Util.msg "Restarting with paths = %s\n" - (String.concat ", " (List.map - (fun p -> "'"^(Path.toString p)^"'") - failedpaths))); - Prefs.set Globals.paths failedpaths; detectCmd()) - "Recheck unsynchronized items"); - - ignore (fileMenu#add_separator ()); - - grAdd grRestart - (fileMenu#add_item ~key:GdkKeysyms._p - ~callback:(fun _ -> - match getProfile() with - None -> () - | Some(p) -> loadProfile p; detectCmd()) - "Select a new profile from the profile dialog"); - - let fastProf name key = - grAdd grRestart - (fileMenu#add_item ~key:key - ~callback:(fun _ -> - if System.file_exists (Prefs.profilePathname name) then begin - Trace.status ("Loading profile " ^ name); - loadProfile name; detectCmd() - end else - Trace.status ("Profile " ^ name ^ " not found")) - ("Select profile " ^ name)) in - - let fastKeysyms = - [| GdkKeysyms._0; GdkKeysyms._1; GdkKeysyms._2; GdkKeysyms._3; - GdkKeysyms._4; GdkKeysyms._5; GdkKeysyms._6; GdkKeysyms._7; - GdkKeysyms._8; GdkKeysyms._9 |] in - - Array.iteri - (fun i v -> match v with - None -> () - | Some(profile, info) -> - fastProf profile fastKeysyms.(i)) - profileKeymap; - - if not Util.isCygwin then - (ignore (fileMenu#add_separator ()); - ignore (fileMenu#add_item - ~callback:(fun _ -> stat_win#show ()) "Statistics")); - - ignore (fileMenu#add_separator ()); - ignore (fileMenu#add_item ~key:GdkKeysyms._q ~callback:safeExit "Quit"); - - (********************************************************************* - Expert menu - *********************************************************************) - if Prefs.read Uicommon.expert then begin - let expertMenu = add_submenu ~label:"Expert" () in - - let addDebugToggle modname = - let cm = - expertMenu#add_check_item ~active:(Trace.enabled modname) - ~callback:(fun b -> Trace.enable modname b) - ("Debug '" ^ modname ^ "'") in - cm#set_show_toggle true in - - addDebugToggle "all"; - addDebugToggle "verbose"; - addDebugToggle "update"; - - ignore (expertMenu#add_separator ()); - ignore (expertMenu#add_item - ~callback:(fun () -> - Printf.fprintf stderr "\nGC stats now:\n"; - Gc.print_stat stderr; - Printf.fprintf stderr "\nAfter major collection:\n"; - Gc.full_major(); Gc.print_stat stderr; - flush stderr) - "Show memory/GC stats") - end; - - (********************************************************************* - Finish up - *********************************************************************) - grSet grAction false; - grSet grDiff false; - grSet grGo false; - grSet grRestart false; - - ignore (toplevelWindow#event#connect#delete ~callback: - (fun _ -> safeExit (); true)); - toplevelWindow#show (); - currentWindow := Some toplevelWindow; - detectCmd () - - -(********************************************************************* - STARTUP - *********************************************************************) - -let start _ = - begin try - (* Initialize the GTK library *) - ignore (GMain.Main.init ()); - - Util.warnPrinter := Some (warnBox "Warning"); - - (* Ask the Remote module to call us back at regular intervals during - long network operations. *) - let rec tick () = - gtk_sync (); - Lwt_unix.sleep 0.1 >>= tick - in - ignore_result (tick ()); - - Uicommon.uiInit - fatalError - tryAgainOrQuit - displayWaitMessage - getProfile - getFirstRoot - getSecondRoot - (termInteract()); - - scanProfiles(); - createToplevelWindow(); - - (* Display the ui *) - ignore (GMain.Timeout.add 500 (fun _ -> true)); - (* Hack: this allows signals such as SIGINT to be - handled even when Gtk is waiting for events *) - GMain.Main.main () - with - Util.Transient(s) | Util.Fatal(s) -> fatalError s - | exn -> fatalError (Uicommon.exn2string exn) - end - -end (* module Private *) - - -(********************************************************************* - UI SELECTION - *********************************************************************) - -module Body : Uicommon.UI = struct - -let start = function - Uicommon.Text -> Uitext.Body.start Uicommon.Text - | Uicommon.Graphic -> - let displayAvailable = - Util.osType = `Win32 - || - try System.getenv "DISPLAY" <> "" with Not_found -> false - in - if displayAvailable then Private.start Uicommon.Graphic - else Uitext.Body.start Uicommon.Text - -let defaultUi = Uicommon.Graphic - -end (* module Body *) diff -Nru unison-2.40.102/uigtk.mli unison-2.48.3/uigtk.mli --- unison-2.40.102/uigtk.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uigtk.mli 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -(* $I1: Unison file synchronizer: src/uigtk.mli $ *) -(* $I2: Last modified by vouillon on Tue, 30 May 2000 18:27:30 -0400 $ *) -(* $I3: Copyright 1999-2004 (see COPYING for details) $ *) - -module Body : Uicommon.UI diff -Nru unison-2.40.102/uimac/cltool.c unison-2.48.3/uimac/cltool.c --- unison-2.40.102/uimac/cltool.c 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/cltool.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -/* cltool.c - - This is a command-line tool for Mac OS X that looks up the unison - application, where ever it has been installed, and runs it. This - is intended to be installed in a standard place (e.g., - /usr/bin/unison) to make it easy to invoke unison as a server, or - to use unison from the command line when it has been installed with - a GUI. - - */ - -#import -#import -#include - -#define BUFSIZE 1024 -#define EXECPATH "/Contents/MacOS/Unison" - -int main(int argc, char **argv) { - - /* Look up the application by its bundle identifier, which is given - in the Info.plist file. This will continue to work even if the - user changes the name of the application, unlike - fullPathForApplication. */ - - FSRef fsref; - OSStatus status; - int len; - char buf[BUFSIZE]; - - status = LSFindApplicationForInfo(kLSUnknownCreator,CFSTR("edu.upenn.cis.Unison"),NULL,&fsref,NULL); - if (status) { - if (status == kLSApplicationNotFoundErr) { - fprintf(stderr,"Error: can't find the Unison application using the Launch Services database.\n"); - fprintf(stderr,"Try launching Unison from the Finder, and then try this again.\n",status); - } - else fprintf(stderr,"Error: can't find Unison application (%d).\n",status); - exit(1); - } - - status = FSRefMakePath(&fsref,buf,BUFSIZE); - if (status) { - fprintf(stderr,"Error: problem building path to Unison application (%d).\n",status); - exit(1); - } - - len = strlen(buf); - if (len + strlen(EXECPATH) + 1 > BUFSIZE) { - fprintf(stderr,"Error: path to Unison application exceeds internal buffer size (%d).\n",BUFSIZE); - exit(1); - } - strcat(buf,EXECPATH); - - /* It's important to pass the absolute path on to the GUI, - that's how it knows where to find the bundle, e.g., the - Info.plist file. */ - argv[0] = buf; - - // printf("The Unison executable is at %s\n",argv[0]); - // printf("Running...\n"); - - execv(argv[0],argv); - - /* If we get here the execv has failed; print an error message to stderr */ - perror("unison"); - exit(1); -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac/English.lproj/InfoPlist.strings and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac/English.lproj/InfoPlist.strings differ diff -Nru unison-2.40.102/uimac/English.lproj/MainMenu.nib/classes.nib unison-2.48.3/uimac/English.lproj/MainMenu.nib/classes.nib --- unison-2.40.102/uimac/English.lproj/MainMenu.nib/classes.nib 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/English.lproj/MainMenu.nib/classes.nib 1970-01-01 00:00:00.000000000 +0000 @@ -1,106 +0,0 @@ -{ - IBClasses = ( - { - ACTIONS = { - copyLR = id; - copyRL = id; - forceNewer = id; - forceOlder = id; - ignoreExt = id; - ignoreName = id; - ignorePath = id; - leaveAlone = id; - merge = id; - revert = id; - selectConflicts = id; - }; - CLASS = FirstResponder; - LANGUAGE = ObjC; - SUPERCLASS = NSObject; - }, - { - ACTIONS = { - cancelProfileButton = id; - createButton = id; - endPasswordWindow = id; - installCommandLineTool = id; - onlineHelp = id; - openButton = id; - raiseAboutWindow = id; - restartButton = id; - saveProfileButton = id; - syncButton = id; - }; - CLASS = MyController; - LANGUAGE = ObjC; - OUTLETS = { - ConnectingView = NSView; - aboutWindow = NSWindow; - chooseProfileView = NSView; - detailsTextView = NSTextView; - mainWindow = NSWindow; - passwordCancelButton = NSButton; - passwordText = NSTextField; - passwordWindow = NSWindow; - preferencesController = PreferencesController; - preferencesView = NSView; - profileController = ProfileController; - statusText = NSTextField; - tableView = ReconTableView; - updatesText = NSTextField; - updatesView = NSView; - versionText = NSTextField; - }; - SUPERCLASS = NSObject; - }, - { - ACTIONS = {anyEnter = id; localClick = id; remoteClick = id; }; - CLASS = PreferencesController; - LANGUAGE = ObjC; - OUTLETS = { - cancelButton = NSButton; - firstRootText = NSTextField; - localButtonCell = NSButtonCell; - profileNameText = NSTextField; - remoteButtonCell = NSButtonCell; - saveButton = NSButton; - secondRootHost = NSTextField; - secondRootText = NSTextField; - secondRootUser = NSTextField; - }; - SUPERCLASS = NSObject; - }, - { - CLASS = ProfileController; - LANGUAGE = ObjC; - OUTLETS = {tableView = NSTableView; }; - SUPERCLASS = NSObject; - }, - { - CLASS = ProfileTableView; - LANGUAGE = ObjC; - OUTLETS = {myController = MyController; }; - SUPERCLASS = NSTableView; - }, - {CLASS = ReconItem; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, - { - ACTIONS = { - copyLR = id; - copyRL = id; - forceNewer = id; - forceOlder = id; - ignoreExt = id; - ignoreName = id; - ignorePath = id; - leaveAlone = id; - merge = id; - revert = id; - selectConflicts = id; - }; - CLASS = ReconTableView; - LANGUAGE = ObjC; - SUPERCLASS = NSTableView; - } - ); - IBVersion = 1; -} \ No newline at end of file diff -Nru unison-2.40.102/uimac/English.lproj/MainMenu.nib/info.nib unison-2.48.3/uimac/English.lproj/MainMenu.nib/info.nib --- unison-2.40.102/uimac/English.lproj/MainMenu.nib/info.nib 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/English.lproj/MainMenu.nib/info.nib 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ - - - - - IBDocumentLocation - 318 45 509 310 0 0 1280 832 - IBEditorPositions - - 197 - 450 391 383 326 0 0 1280 832 - 198 - 307 297 669 515 0 0 1280 832 - 29 - 72 209 280 44 0 0 1280 832 - 307 - 392 388 499 332 0 0 1280 832 - 423 - 450 391 383 326 0 0 1280 832 - - IBFramework Version - 364.0 - IBOpenObjects - - 423 - 198 - 29 - 402 - 234 - 21 - 307 - 197 - - IBSystem Version - 7U16 - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac/English.lproj/MainMenu.nib/objects.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac/English.lproj/MainMenu.nib/objects.nib differ diff -Nru unison-2.40.102/uimac/Info.plist.template unison-2.48.3/uimac/Info.plist.template --- unison-2.40.102/uimac/Info.plist.template 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/Info.plist.template 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ - - - - - CFBundleName - Unison - CFBundleDevelopmentRegion - English - CFBundleExecutable - Unison - CFBundleIconFile - Unison.icns - CFBundleIdentifier - edu.upenn.cis.Unison - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleVersion - @@VERSION@@ - CFBundleShortVersionString - @@VERSION@@ - CFBundleGetInfoString - @@VERSION@@. ©1999-2007, licensed under GNU GPL. - NSHumanReadableCopyright - ©1999-2006, licensed under GNU GPL. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff -Nru unison-2.40.102/uimac/main.m unison-2.48.3/uimac/main.m --- unison-2.40.102/uimac/main.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/main.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,89 +0,0 @@ -// -// main.m -// uimac -// -// Created by Trevor Jim on Sun Aug 17 2003. -// Copyright (c) 2003, see file COPYING for details. -// - -#import - -#define CAML_NAME_SPACE -#include - -void reportExn(value e) { - value *f = caml_named_value("unisonExnInfo"); - char *m = String_val(caml_callback(*f,Extract_exception(e))); - NSString *s = [NSString stringWithFormat:@"Uncaught exception: %s", m]; - NSLog(@"%@",s); - NSRunAlertPanel(@"Fatal error",s,@"Exit",nil,nil); -} - -value Callback_checkexn(value c,value v) { - value e = caml_callback_exn(c,v); - if (!Is_exception_result(e)) return e; - reportExn(e); - exit(1); -} - -value Callback2_checkexn(value c,value v1,value v2) { - value e = caml_callback2_exn(c,v1,v2); - if (!Is_exception_result(e)) return e; - reportExn(e); - exit(1); -} - -value Callback3_checkexn(value c,value v1,value v2,value v3) { - value e = caml_callback3_exn(c,v1,v2,v3); - if (!Is_exception_result(e)) return e; - reportExn(e); - exit(1); -} - -int main(int argc, const char *argv[]) -{ - int i; - - /* When you click-start or use the open command, the program is invoked with - a command-line arg of the form -psn_XXXXXXXXX. The XXXXXXXX is a "process - serial number" and it seems to be important for Carbon programs. We need - to get rid of it if it's there so the ocaml code won't exit. Note, the - extra arg is not added if the binary is invoked directly from the command - line without using the open command. */ - if (argc == 2 && strncmp(argv[1],"-psn_",5) == 0) { - argc--; - argv[1] = NULL; - } - - /* Initialize ocaml gc, etc. */ - caml_startup((char **)argv); // cast to avoid warning, caml_startup assumes non-const, - // NSApplicationMain assumes const - - /* Check for invocations that don't start up the gui */ - for (i=1; i -#define CAML_NAME_SPACE -#include -#import "ProfileController.h" -#import "PreferencesController.h" -#import "ReconTableView.h" - -@interface MyController : NSObject -{ - IBOutlet NSWindow *mainWindow; - - IBOutlet ProfileController *profileController; - IBOutlet NSView *chooseProfileView; - NSSize chooseProfileSize; - - IBOutlet PreferencesController *preferencesController; - IBOutlet NSView *preferencesView; - NSSize preferencesSize; - - IBOutlet NSView *updatesView; - NSSize updatesSize; - - IBOutlet NSView *ConnectingView; - NSSize ConnectingSize; - - IBOutlet ReconTableView *tableView; - IBOutlet NSTextField *updatesText; - - IBOutlet NSWindow *passwordWindow; - IBOutlet NSTextField *passwordText; - IBOutlet NSTextView *detailsTextView; - IBOutlet NSTextField *statusText; - - IBOutlet NSButton *passwordCancelButton; - - IBOutlet NSWindow *aboutWindow; - IBOutlet NSTextField *versionText; - - - NSView *blankView; - value caml_reconItems; - NSMutableArray *reconItems; - value preconn; - - NSString *pName; -} -- (IBAction)createButton:(id)sender; -- (IBAction)saveProfileButton:(id)sender; -- (IBAction)cancelProfileButton:(id)sender; -- (IBAction)openButton:(id)sender; -- (IBAction)restartButton:(id)sender; -- (IBAction)syncButton:(id)sender; -- (IBAction)onlineHelp:(id)sender; -- (int)numberOfRowsInTableView:(NSTableView *)aTableView; -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex; -- (void)raisePasswordWindow:(NSString *)prompt; -- (IBAction)raiseAboutWindow:(id)sender; -- (void)controlTextDidEndEditing:(NSNotification *)notification; -- (IBAction)endPasswordWindow:(id)sender; -- (NSMutableArray *)reconItems; -- (int)updateForIgnore:(int)i; -- (void)displayDetails:(int)i; -- (IBAction)installCommandLineTool:(id)sender; -@end diff -Nru unison-2.40.102/uimac/MyController.m unison-2.48.3/uimac/MyController.m --- unison-2.40.102/uimac/MyController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/MyController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,497 +0,0 @@ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import "MyController.h" -#import "ReconItem.h" -#include -#include -#include -#include - -extern value Callback_checkexn(value,value); -extern value Callback2_checkexn(value,value,value); - -@implementation MyController - -static MyController *me; // needed by reloadTable and displayStatus, below - -- (void)resizeWindowToSize:(NSSize)newSize -{ - NSRect aFrame; - - float newHeight = newSize.height; - float newWidth = newSize.width; - - aFrame = [NSWindow contentRectForFrameRect:[mainWindow frame] - styleMask:[mainWindow styleMask]]; - - aFrame.origin.y += aFrame.size.height; - aFrame.origin.y -= newHeight; - aFrame.size.height = newHeight; - aFrame.size.width = newWidth; - - aFrame = [NSWindow frameRectForContentRect:aFrame - styleMask:[mainWindow styleMask]]; - - [mainWindow setFrame:aFrame display:YES animate:YES]; -} - -- (void)chooseProfiles -{ - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:chooseProfileSize]; - [mainWindow setContentView:chooseProfileView]; - [mainWindow makeFirstResponder:[profileController tableView]]; // profiles get keyboard input -} - -- (IBAction)createButton:(id)sender -{ - [preferencesController reset]; - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:preferencesSize]; - [mainWindow setContentView:preferencesView]; -} - -- (IBAction)saveProfileButton:(id)sender -{ - if ([preferencesController validatePrefs]) { - [profileController initProfiles]; // so the list contains the new profile - [self chooseProfiles]; - } -} - -- (IBAction)cancelProfileButton:(id)sender -{ - [self chooseProfiles]; -} - -- (void)updateReconItems -{ - [reconItems release]; - reconItems = [[NSMutableArray alloc] init]; - int j = 0; - int n = Wosize_val(caml_reconItems); - for (; j= 0 && i < [reconItems count]) - [detailsTextView setString:[[reconItems objectAtIndex:i] details]]; -} -- (void)clearDetails -{ - [detailsTextView setString:@""]; -} - -- (void)doUpdateThread:(id)whatever -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - preconn = Val_unit; // so old preconn can be garbage collected - value *f = caml_named_value("unisonInit2"); - caml_reconItems = Callback_checkexn(*f, Val_unit); - [pool release]; -} - -- (void)afterUpdate:(NSNotification *)notification -{ - [[NSNotificationCenter defaultCenter] removeObserver:self - name:NSThreadWillExitNotification - object:nil]; - [self updateReconItems]; - if ([reconItems count] > 0) - [tableView selectRow:0 byExtendingSelection:NO]; - - // label the left and right columns with the roots - NSTableHeaderCell *left = [[[tableView tableColumns] objectAtIndex:0] headerCell]; - value *f = caml_named_value("unisonFirstRootString"); - [left setObjectValue:[NSString stringWithCString:String_val(Callback_checkexn(*f, Val_unit))]]; - NSTableHeaderCell *right = [[[tableView tableColumns] objectAtIndex:2] headerCell]; - f = caml_named_value("unisonSecondRootString"); - [right setObjectValue:[NSString stringWithCString:String_val(Callback_checkexn(*f, Val_unit))]]; - - // cause scrollbar to display if necessary - [tableView reloadData]; - - // activate menu items - [tableView setEditable:YES]; -} - -- (void)afterOpen -{ - NSLog(@"Connected."); - // move to updates window after clearing it - [self clearDetails]; - [reconItems release]; - reconItems = nil; - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:updatesSize]; - [mainWindow setContentView:updatesView]; - - // reconItems table gets keyboard input - [mainWindow makeFirstResponder:tableView]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(afterUpdate:) - name:NSThreadWillExitNotification object:nil]; - [NSThread detachNewThreadSelector:@selector(doUpdateThread:) - toTarget:self withObject:nil]; -} - -- (void)connect:(value)profileName -{ - // contact server, propagate prefs - NSLog(@"Connecting..."); - - // Switch to ConnectingView - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:ConnectingSize]; - [mainWindow setContentView:ConnectingView]; - [ConnectingView setNeedsDisplay:YES]; // FIX: this doesn't seem to work fast enough - - // possibly slow -- need another thread? Print "contacting server" - value *f = NULL; - f = caml_named_value("unisonInit1"); - preconn = Callback_checkexn(*f, profileName); - if (preconn == Val_unit) { - [self afterOpen]; // no prompting required - return; - } - // prompting required - preconn = Field(preconn,0); // value of Some - f = caml_named_value("openConnectionPrompt"); - value prompt = Callback_checkexn(*f, preconn); - if (prompt == Val_unit) { - // turns out, no prompt needed, but must finish opening connection - f = caml_named_value("openConnectionEnd"); - Callback_checkexn(*f, preconn); - [self afterOpen]; - return; - } - [self raisePasswordWindow:[NSString stringWithCString:String_val(Field(prompt,0))]]; -} - -- (IBAction)openButton:(id)sender -{ - NSString *profile = [profileController selected]; - [updatesText setStringValue:[NSString stringWithFormat:@"Synchronizing profile '%@'", - profile]]; - const char *s = [profile cString]; - value caml_s = caml_copy_string(s); - [self connect:caml_s]; - return; -} - -- (IBAction)restartButton:(id)sender -{ - [tableView setEditable:NO]; - [self chooseProfiles]; -} - -- (void)doSyncThread:(id)whatever -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - value *f = caml_named_value("unisonSynchronize"); - Callback_checkexn(*f, Val_unit); - [pool release]; -} - -- (void)afterSync:(NSNotification *)notification -{ - [[NSNotificationCenter defaultCenter] removeObserver:self - name:NSThreadWillExitNotification - object:nil]; - int i; - for (i = 0; i < [reconItems count]; i++) { - [[reconItems objectAtIndex:i] resetProgress]; - } - [tableView reloadData]; -} - -- (IBAction)syncButton:(id)sender -{ - [tableView setEditable:NO]; - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(afterSync:) - name:NSThreadWillExitNotification object:nil]; - [NSThread detachNewThreadSelector:@selector(doSyncThread:) - toTarget:self withObject:nil]; -} - -- (void)updateTableView:(int)i -{ - [[reconItems objectAtIndex:i] resetProgress]; - [tableView reloadData]; // FIX: can we redisplay just row i? -} - -// A function called from ocaml -CAMLprim value reloadTable(value row) -{ - int i = Int_val(row); - [me updateTableView:i]; // we need 'me' to access its instance variables - return Val_unit; -} - -- (int)numberOfRowsInTableView:(NSTableView *)aTableView -{ - if (!reconItems) return 0; - else return [reconItems count]; -} - -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex -{ - if (!reconItems) { - return @"[internal error]"; - } - if (rowIndex >= 0 && rowIndex < [reconItems count]) { - NSString *identifier = [aTableColumn identifier]; - ReconItem *ri = [reconItems objectAtIndex:rowIndex]; - NSString *s = [ri valueForKey:identifier]; - return s; - } - else return @"[internal error!]"; -} -- (void)tableViewSelectionDidChange:(NSNotification *)note -{ - int n = [tableView numberOfSelectedRows]; - if (n == 1) [self displayDetails:[tableView selectedRow]]; - else [self clearDetails]; -} - -- (void)raisePasswordWindow:(NSString *)prompt -{ - // FIX: some prompts don't ask for password, need to look at it - NSLog(@"Got the prompt: '%@'",prompt); - value *f = caml_named_value("unisonPasswordMsg"); - value v = Callback_checkexn(*f, caml_copy_string([prompt cString])); - if (v == Val_true) { - [NSApp beginSheet:passwordWindow - modalForWindow:mainWindow - modalDelegate:nil - didEndSelector:nil - contextInfo:nil]; - return; - } - f = caml_named_value("unisonAuthenticityMsg"); - v = Callback_checkexn(*f, caml_copy_string([prompt cString])); - if (v == Val_true) { - int i = NSRunAlertPanel(@"New host",prompt,@"Yes",@"No",nil); - if (i == NSAlertDefaultReturn) { - f = caml_named_value("openConnectionReply"); - Callback2_checkexn(*f, preconn, caml_copy_string("yes")); - f = caml_named_value("openConnectionPrompt"); - value prompt = Callback_checkexn(*f, preconn); - if (prompt == Val_unit) { - // all done with prompts, finish opening connection - f = caml_named_value("openConnectionEnd"); - Callback_checkexn(*f, preconn); - [self afterOpen]; - return; - } - else { - [self raisePasswordWindow:[NSString stringWithCString:String_val(Field(prompt,0))]]; - return; - } - } - if (i == NSAlertAlternateReturn) { - f = caml_named_value("openConnectionCancel"); - Callback_checkexn(*f, preconn); - return; - } - else { - NSLog(@"Unrecognized response '%d' from NSRunAlertPanel",i); - f = caml_named_value("openConnectionCancel"); - Callback_checkexn(*f, preconn); - return; - } - } - NSLog(@"Unrecognized message from ssh: %@",prompt); - f = caml_named_value("openConnectionCancel"); - Callback_checkexn(*f, preconn); -} -// The password window will invoke this when Enter occurs, b/c we -// are the delegate. -- (void)controlTextDidEndEditing:(NSNotification *)notification -{ - NSNumber *reason = [[notification userInfo] objectForKey:@"NSTextMovement"]; - int code = [reason intValue]; - if (code == NSReturnTextMovement) - [self endPasswordWindow:self]; -} -// Or, the Continue button will invoke this when clicked -- (IBAction)endPasswordWindow:(id)sender -{ - [passwordWindow orderOut:self]; - [NSApp endSheet:passwordWindow]; - if ([sender isEqualTo:passwordCancelButton]) { - value *f = caml_named_value("openConnectionCancel"); - Callback_checkexn(*f, preconn); - [self chooseProfiles]; - return; - } - NSString *password = [passwordText stringValue]; - value *f = NULL; - const char *s = [password cString]; - value caml_s = caml_copy_string(s); - f = caml_named_value("openConnectionReply"); - Callback2_checkexn(*f, preconn, caml_s); - f = caml_named_value("openConnectionPrompt"); - value prompt = Callback_checkexn(*f, preconn); - if (prompt == Val_unit) { - // all done with prompts, finish opening connection - f = caml_named_value("openConnectionEnd"); - Callback_checkexn(*f, preconn); - [self afterOpen]; - } - else [self raisePasswordWindow:[NSString stringWithCString:String_val(Field(prompt,0))]]; -} - -- (IBAction)raiseAboutWindow:(id)sender -{ - [aboutWindow makeKeyAndOrderFront:nil]; -} - -- (IBAction)onlineHelp:(id)sender -{ - [[NSWorkspace sharedWorkspace] - openURL:[NSURL URLWithString:@"http://www.cis.upenn.edu/~bcpierce/unison/docs.html"]]; -} - - -- (NSMutableArray *)reconItems // used in ReconTableView only -{ - return reconItems; -} - -- (int)updateForIgnore:(int)i -{ - value *f = caml_named_value("unisonUpdateForIgnore"); - int j = Int_val(Callback_checkexn(*f,Val_int(i))); - f = caml_named_value("unisonState"); - caml_reconItems = Callback_checkexn(*f, Val_unit); - [self updateReconItems]; - return j; -} - -- (void)statusTextSet:(NSString *)s { - [statusText setStringValue:s]; -} - -// A function called from ocaml -CAMLprim value displayStatus(value s) -{ - [me statusTextSet:[NSString stringWithCString:String_val(s)]]; -// NSLog(@"dS: %s",String_val(s)); - return Val_unit; -} - -- (void)awakeFromNib -{ - /**** Initialize locals ****/ - me = self; - chooseProfileSize = [chooseProfileView frame].size; - updatesSize = [updatesView frame].size; - preferencesSize = [preferencesView frame].size; - ConnectingSize = [ConnectingView frame].size; - blankView = [[NSView alloc] init]; - /* Double clicking in the profile list will open the profile */ - [[profileController tableView] setTarget:self]; - [[profileController tableView] setDoubleAction:@selector(openButton:)]; - /* Set up the version string in the about box. We use a custom - about box just because PRCS doesn't seem capable of getting the - version into the InfoPlist.strings file; otherwise we'd use the - standard about box. */ - value *f = NULL; - f = caml_named_value("unisonGetVersion"); - [versionText setStringValue: - [NSString stringWithCString: - String_val(Callback_checkexn(*f, Val_unit))]]; - - /* Ocaml initialization */ - // FIX: Does this occur before ProfileController awakeFromNib? - caml_reconItems = preconn = Val_int(0); - caml_register_global_root(&caml_reconItems); - caml_register_global_root(&preconn); - - /* Command-line processing */ - f = caml_named_value("unisonInit0"); - value clprofile = Callback_checkexn(*f, Val_unit); - - /* Set up the first window the user will see */ - if (Is_block(clprofile)) { - /* A profile name was given on the command line */ - value caml_profile = Field(clprofile,0); - NSString *profile = [NSString stringWithCString:String_val(caml_profile)]; - [updatesText setStringValue:[NSString stringWithFormat:@"Synchronizing profile '%@'", - profile]]; - /* If invoked from terminal we need to bring the app to the front */ - [NSApp activateIgnoringOtherApps:YES]; - - /* Start the connection */ - [self connect:caml_profile]; - } - else { - /* If invoked from terminal we need to bring the app to the front */ - [NSApp activateIgnoringOtherApps:YES]; - /* Bring up the dialog to choose a profile */ - [self chooseProfiles]; - } -} - -/* from http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html */ -#include -#include -- (IBAction)installCommandLineTool:(id)sender -{ - /* Install the command-line tool in /usr/bin/unison. - Requires root privilege, so we ask for it and pass the task off to /bin/sh. */ - - OSStatus myStatus; - - AuthorizationFlags myFlags = kAuthorizationFlagDefaults; - AuthorizationRef myAuthorizationRef; - myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, - myFlags, &myAuthorizationRef); - if (myStatus != errAuthorizationSuccess) return; - - { - AuthorizationItem myItems = {kAuthorizationRightExecute, 0, - NULL, 0}; - AuthorizationRights myRights = {1, &myItems}; - myFlags = kAuthorizationFlagDefaults | - kAuthorizationFlagInteractionAllowed | - kAuthorizationFlagPreAuthorize | - kAuthorizationFlagExtendRights; - myStatus = - AuthorizationCopyRights(myAuthorizationRef,&myRights,NULL,myFlags,NULL); - } - if (myStatus == errAuthorizationSuccess) { - NSBundle *bundle = [NSBundle mainBundle]; - NSString *bundle_path = [bundle bundlePath]; - NSString *exec_path = - [bundle_path stringByAppendingString:@"/Contents/MacOS/cltool"]; - // Not sure why but this doesn't work: - // [bundle pathForResource:@"cltool" ofType:nil]; - - if (exec_path == nil) return; - char *args[] = { "-f", (char *)[exec_path cString], "/usr/bin/unison", NULL }; - - myFlags = kAuthorizationFlagDefaults; - myStatus = AuthorizationExecuteWithPrivileges - (myAuthorizationRef, "/bin/cp", myFlags, args, - NULL); - } - AuthorizationFree (myAuthorizationRef, kAuthorizationFlagDefaults); - - /* - if (myStatus == errAuthorizationCanceled) - NSLog(@"The attempt was canceled\n"); - else if (myStatus) NSLog(@"There was an authorization error: %ld\n", myStatus); - */ -} - -@end diff -Nru unison-2.40.102/uimac/PreferencesController.h unison-2.48.3/uimac/PreferencesController.h --- unison-2.40.102/uimac/PreferencesController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/PreferencesController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* PreferencesController */ - -#import - -@interface PreferencesController : NSObject -{ - IBOutlet NSButton *cancelButton; - IBOutlet NSTextField *firstRootText; - IBOutlet NSButtonCell *localButtonCell; - IBOutlet NSTextField *profileNameText; - IBOutlet NSButtonCell *remoteButtonCell; - IBOutlet NSButton *saveButton; - IBOutlet NSTextField *secondRootHost; - IBOutlet NSTextField *secondRootText; - IBOutlet NSTextField *secondRootUser; -} -- (IBAction)anyEnter:(id)sender; -- (IBAction)localClick:(id)sender; -- (IBAction)remoteClick:(id)sender; -- (BOOL)validatePrefs; -- (void)reset; -@end diff -Nru unison-2.40.102/uimac/PreferencesController.m unison-2.48.3/uimac/PreferencesController.m --- unison-2.40.102/uimac/PreferencesController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/PreferencesController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,96 +0,0 @@ -#import "PreferencesController.h" -#define CAML_NAME_SPACE -#include -#include - -extern value Callback3_checkexn(value,value,value,value); - -@implementation PreferencesController - -- (void)reset -{ - [profileNameText setStringValue:@""]; - [firstRootText setStringValue:@""]; - [secondRootUser setStringValue:@""]; - [secondRootHost setStringValue:@""]; - [secondRootText setStringValue:@""]; - [remoteButtonCell setState:NSOnState]; - [localButtonCell setState:NSOffState]; - [secondRootUser setSelectable:YES]; - [secondRootUser setEditable:YES]; - [secondRootHost setSelectable:YES]; - [secondRootHost setEditable:YES]; -} - -- (BOOL)validatePrefs -{ - NSString *profileName = [profileNameText stringValue]; - if (profileName == nil | [profileName isEqualTo:@""]) { - // FIX: should check for already existing names too - NSRunAlertPanel(@"Error",@"You must enter a profile name",@"OK",nil,nil); - return NO; - } - NSString *firstRoot = [firstRootText stringValue]; - if (firstRoot == nil | [firstRoot isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a first root",@"OK",nil,nil); - return NO; - } - NSString *secondRoot; - if ([remoteButtonCell state] == NSOnState) { - NSString *user = [secondRootUser stringValue]; - if (user == nil | [user isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a user",@"OK",nil,nil); - return NO; - } - NSString *host = [secondRootHost stringValue]; - if (host == nil | [host isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a host",@"OK",nil,nil); - return NO; - } - NSString *file = [secondRootText stringValue]; - // OK for empty file, e.g., ssh://foo@bar/ - secondRoot = [NSString stringWithFormat:@"ssh://%@@%@/%@",user,host,file]; - } - else { - secondRoot = [secondRootText stringValue]; - if (secondRoot == nil | [secondRoot isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a second root file",@"OK",nil,nil); - return NO; - } - } - value *f = caml_named_value("unisonProfileInit"); - Callback3_checkexn(*f, caml_copy_string([profileName cString]), - caml_copy_string([firstRoot cString]), - caml_copy_string([secondRoot cString])); - return YES; -} - -/* The target when enter is pressed in any of the text fields */ -// FIX: this is broken, it takes tab, mouse clicks, etc. -- (IBAction)anyEnter:(id)sender -{ - NSLog(@"enter"); - [self validatePrefs]; -} - -- (IBAction)localClick:(id)sender -{ - NSLog(@"local"); - [secondRootUser setStringValue:@""]; - [secondRootHost setStringValue:@""]; - [secondRootUser setSelectable:NO]; - [secondRootUser setEditable:NO]; - [secondRootHost setSelectable:NO]; - [secondRootHost setEditable:NO]; -} - -- (IBAction)remoteClick:(id)sender -{ - NSLog(@"remote"); - [secondRootUser setSelectable:YES]; - [secondRootUser setEditable:YES]; - [secondRootHost setSelectable:YES]; - [secondRootHost setEditable:YES]; -} - -@end diff -Nru unison-2.40.102/uimac/ProfileController.h unison-2.48.3/uimac/ProfileController.h --- unison-2.40.102/uimac/ProfileController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ProfileController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -/* ProfileController */ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import - -@interface ProfileController : NSObject -{ - IBOutlet NSTableView *tableView; - NSMutableArray *profiles; - int defaultIndex; // -1 if no default, else the index in profiles of @"default" -} -- (void)initProfiles; -- (int)numberOfRowsInTableView:(NSTableView *)aTableView; -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex; -- (NSString *)selected; -- (NSTableView *)tableView; // allows MyController to set up firstResponder -@end diff -Nru unison-2.40.102/uimac/ProfileController.m unison-2.48.3/uimac/ProfileController.m --- unison-2.40.102/uimac/ProfileController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ProfileController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,83 +0,0 @@ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import "ProfileController.h" -#define CAML_NAME_SPACE -#include -#include - -extern value Callback_checkexn(value,value); - -@implementation ProfileController - -NSString *unisonDirectory() -{ - static value *f = NULL; - if (f == NULL) - f = caml_named_value("unisonDirectory"); - return [NSString stringWithCString:String_val(Callback_checkexn(*f, Val_unit))]; -} - -- (void)initProfiles -{ - NSString *directory = unisonDirectory(); - NSArray *files = [[NSFileManager defaultManager] directoryContentsAtPath:directory]; - unsigned int count = [files count]; - unsigned int i,j; - - [profiles release]; - profiles = [[NSMutableArray alloc] init]; - defaultIndex = -1; - - for (i = j = 0; i < count; i++) { - NSString *file = [files objectAtIndex:i]; - if ([[file pathExtension] isEqualTo:@"prf"]) { - NSString *withoutExtension = [file stringByDeletingPathExtension]; - [profiles insertObject:withoutExtension atIndex:j]; - if ([@"default" isEqualTo:withoutExtension]) defaultIndex = j; - j++; - } - } - if (j > 0) - [tableView selectRow:0 byExtendingSelection:NO]; -} - -- (void)awakeFromNib -{ - // start with the default profile selected - [self initProfiles]; - if (defaultIndex >= 0) - [tableView selectRow:defaultIndex byExtendingSelection:NO]; - // on awake the scroll bar is inactive, but after adding profiles we might need it; - // reloadData makes it happen. Q: is setNeedsDisplay more efficient? - [tableView reloadData]; -} - -- (int)numberOfRowsInTableView:(NSTableView *)aTableView -{ - if (!profiles) return 0; - else return [profiles count]; -} - -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex -{ - if (rowIndex >= 0 && rowIndex < [profiles count]) - return [profiles objectAtIndex:rowIndex]; - else return @"[internal error!]"; -} - -- (NSString *)selected -{ - int rowIndex = [tableView selectedRow]; - if (rowIndex >= 0 && rowIndex < [profiles count]) - return [profiles objectAtIndex:rowIndex]; - else return @"[internal error!]"; -} - -- (NSTableView *)tableView -{ - return tableView; -} - -@end diff -Nru unison-2.40.102/uimac/ProfileTableView.h unison-2.48.3/uimac/ProfileTableView.h --- unison-2.40.102/uimac/ProfileTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ProfileTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ -/* ProfileTableView */ - -#import -#import "MyController.h" - -@interface ProfileTableView : NSTableView -{ - IBOutlet MyController *myController; -} -@end diff -Nru unison-2.40.102/uimac/ProfileTableView.m unison-2.48.3/uimac/ProfileTableView.m --- unison-2.40.102/uimac/ProfileTableView.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ProfileTableView.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -#import "ProfileTableView.h" - -@implementation ProfileTableView - -- (void)keyDown:(NSEvent *)event -{ - unichar c = [[event characters] characterAtIndex:0]; - switch (c) { - case '\r': - [myController openButton:self]; - break; - default: - [super keyDown:event]; - break; - } -} - -@end diff -Nru unison-2.40.102/uimac/ReconItem.h unison-2.48.3/uimac/ReconItem.h --- unison-2.40.102/uimac/ReconItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ReconItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -/* ReconItem */ - -#import -#define CAML_NAME_SPACE -#include - -@interface ReconItem : NSObject -{ - NSString *path; - NSString *left; - NSString *right; - NSString *direction; - NSString *progress; - NSString *details; - value ri; // an ocaml Common.reconItem -} -+ initWithRi:(value)ri; -- (NSString *) path; -- (NSString *) left; -- (NSString *) right; -- (NSString *) direction; -- (void) doAction:(unichar)action; -- (void) doIgnore:(unichar)action; -- (NSString *) progress; -- (void)resetProgress; -- (NSString *) details; -- (BOOL)isConflict; -- (void)revertDirection; - -@end diff -Nru unison-2.40.102/uimac/ReconItem.m unison-2.48.3/uimac/ReconItem.m --- unison-2.40.102/uimac/ReconItem.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ReconItem.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,174 +0,0 @@ -#import "ReconItem.h" -#include -#include - -extern value Callback_checkexn(value,value); - -@implementation ReconItem - --(void)dealloc -{ - ri = Val_unit; - caml_remove_global_root(&ri); - [super dealloc]; -} - -- (void)setRi:(value)v -{ - caml_register_global_root(&ri); // needed in case of ocaml garbage collection - ri = v; -} - -+ (id)initWithRi:(value)v -{ - ReconItem *r = [[ReconItem alloc] init]; - [r setRi:v]; - return r; -} - -- (NSString *)path -{ - if (path) return path; - - value *f = caml_named_value("unisonRiToPath"); - [path release]; - path = [NSString stringWithCString:String_val(Callback_checkexn(*f, ri))]; - [path retain]; - return path; -} - -- (NSString *)left -{ - if (left) return left; - - value *f = caml_named_value("unisonRiToLeft"); - [left release]; - left = [NSString stringWithCString:String_val(Callback_checkexn(*f, ri))]; - [left retain]; - return left; -} - -- (NSString *)right -{ - if (right) return right; - - value *f = caml_named_value("unisonRiToRight"); - [right release]; - right = [NSString stringWithCString:String_val(Callback_checkexn(*f, ri))]; - [right retain]; - return right; -} - -- (NSString *)direction -{ - if (direction) return direction; - - value *f = caml_named_value("unisonRiToDirection"); - value v = Callback_checkexn(*f, ri); - char *s = String_val(v); - [direction release]; - direction = [NSString stringWithCString:s]; - [direction retain]; - return direction; -} - -- (void)setDirection:(char *)d -{ - [direction release]; - direction = nil; - value *f = caml_named_value(d); - Callback_checkexn(*f, ri); -} - -- (void)doAction:(unichar)action -{ - switch (action) { - case '>': - [self setDirection:"unisonRiSetRight"]; - break; - case '<': - [self setDirection:"unisonRiSetLeft"]; - break; - case '/': - [self setDirection:"unisonRiSetConflict"]; - break; - case '-': - [self setDirection:"unisonRiForceOlder"]; - break; - case '+': - [self setDirection:"unisonRiForceNewer"]; - break; - case 'm': - [self setDirection:"unisonRiSetMerge"]; - break; - default: - NSLog(@"ReconItem.doAction : unknown action"); - break; - } -} - -- (void)doIgnore:(unichar)action -{ - value *f; - switch (action) { - case 'I': - f = caml_named_value("unisonIgnorePath"); - Callback_checkexn(*f, ri); - break; - case 'E': - f = caml_named_value("unisonIgnoreExt"); - Callback_checkexn(*f, ri); - break; - case 'N': - f = caml_named_value("unisonIgnoreName"); - Callback_checkexn(*f, ri); - break; - default: - NSLog(@"ReconItem.doIgnore : unknown ignore"); - break; - } -} - -- (NSString *)progress -{ - if (progress) return progress; - - value *f = caml_named_value("unisonRiToProgress"); - progress = [NSString stringWithCString:String_val(Callback_checkexn(*f, ri))]; - [progress retain]; - return progress; -} - -- (void)resetProgress -{ - // Get rid of the memoized progress because we expect it to change - [progress release]; - progress = nil; -} - -- (NSString *)details -{ - if (details) return details; - - value *f = caml_named_value("unisonRiToDetails"); - details = [NSString stringWithCString:String_val(Callback_checkexn(*f, ri))]; - [details retain]; - return details; -} - -- (BOOL)isConflict -{ - value *f = caml_named_value("unisonRiIsConflict"); - if (Callback_checkexn(*f, ri) == Val_true) return YES; - else return NO; -} - -- (void)revertDirection -{ - value *f = caml_named_value("unisonRiRevert"); - Callback_checkexn(*f, ri); - [direction release]; - direction = nil; -} - -@end diff -Nru unison-2.40.102/uimac/ReconTableView.h unison-2.48.3/uimac/ReconTableView.h --- unison-2.40.102/uimac/ReconTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ReconTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// ReconTableView.h -// -// NSTableView extended to handle additional keyboard events for the reconcile window. -// The keyDown: method is redefined. -// -// Created by Trevor Jim on Wed Aug 27 2003. -// Copyright (c) 2003, licensed under GNU GPL. -// - -#import - -@interface ReconTableView : NSTableView { - BOOL editable; -} -- (BOOL)editable; -- (void)setEditable:(BOOL)x; -- (IBAction)ignorePath:(id)sender; -- (IBAction)ignoreExt:(id)sender; -- (IBAction)ignoreName:(id)sender; -- (IBAction)copyLR:(id)sender; -- (IBAction)copyRL:(id)sender; -- (IBAction)leaveAlone:(id)sender; -- (IBAction)forceOlder:(id)sender; -- (IBAction)forceNewer:(id)sender; -- (IBAction)selectConflicts:(id)sender; -- (IBAction)revert:(id)sender; -- (IBAction)merge:(id)sender; -- (BOOL)validateMenuItem:(NSMenuItem *)item; - -@end diff -Nru unison-2.40.102/uimac/ReconTableView.m unison-2.48.3/uimac/ReconTableView.m --- unison-2.40.102/uimac/ReconTableView.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/ReconTableView.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,180 +0,0 @@ -// -// ReconTableView.m -// Unison -// -// Created by Trevor Jim on Wed Aug 27 2003. -// Copyright (c) 2003. See file COPYING for details. -// - -#import "ReconTableView.h" -#import "ReconItem.h" -#import "MyController.h" - -@implementation ReconTableView - -- (BOOL)editable -{ - return editable; -} - -- (void)setEditable:(BOOL)x -{ - editable = x; -} - -- (void)awakeFromNib -{ - editable = NO; -} - -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ - if ([menuItem action] == @selector(selectAll:) - || [menuItem action] == @selector(selectConflicts:) - || [menuItem action] == @selector(copyLR:) - || [menuItem action] == @selector(copyRL:) - || [menuItem action] == @selector(leaveAlone:) - || [menuItem action] == @selector(forceNewer:) - || [menuItem action] == @selector(forceOlder:) - || [menuItem action] == @selector(revert:) - || [menuItem action] == @selector(merge:) - || [menuItem action] == @selector(ignorePath:) - || [menuItem action] == @selector(ignoreExt:) - || [menuItem action] == @selector(ignoreName:)) - return editable; - else return YES; -} - -- (void)doIgnore:(unichar)c -{ - NSMutableArray *reconItems = [[self dataSource] reconItems]; - NSEnumerator *e = [self selectedRowEnumerator]; - NSNumber *n = [e nextObject]; - int i = -1; - for (; n != nil; n = [e nextObject]) { - i = [n intValue]; - [[reconItems objectAtIndex:i] doIgnore:c]; - } - if (i>=0) { // something was selected - i = [[self dataSource] updateForIgnore:i]; - [self selectRow:i byExtendingSelection:NO]; - [self reloadData]; - } -} - -- (IBAction)ignorePath:(id)sender -{ - [self doIgnore:'I']; -} - -- (IBAction)ignoreExt:(id)sender -{ - [self doIgnore:'E']; -} - -- (IBAction)ignoreName:(id)sender -{ - [self doIgnore:'N']; -} - -- (void)doAction:(unichar)c -{ - NSEnumerator *e = [self selectedRowEnumerator]; - NSNumber *n = [e nextObject]; - int numSelected = 0; - int i = -1; - for (; n != nil; n = [e nextObject]) { - numSelected++; - i = [n intValue]; - NSMutableArray *reconItems = [[self dataSource] reconItems]; - [[reconItems objectAtIndex:i] doAction:c]; - } - if (numSelected>0) { - if (numSelected == 1 && [self numberOfRows] > i+1) { - // Move to next row, unless already at last row, or if more than one row selected - [self selectRow:i+1 byExtendingSelection:NO]; - [self scrollRowToVisible:i+1]; - } - else [self reloadData]; - } -} - -- (IBAction)copyLR:(id)sender -{ - [self doAction:'>']; -} - -- (IBAction)copyRL:(id)sender -{ - [self doAction:'<']; -} - -- (IBAction)leaveAlone:(id)sender -{ - [self doAction:'/']; -} - -- (IBAction)forceOlder:(id)sender -{ - [self doAction:'-']; -} - -- (IBAction)forceNewer:(id)sender -{ - [self doAction:'+']; -} - -- (IBAction)selectConflicts:(id)sender -{ - [self deselectAll:self]; - NSMutableArray *reconItems = [[self dataSource] reconItems]; - int i = 0; - for (; i < [reconItems count]; i++) { - if ([[reconItems objectAtIndex:i] isConflict]) - [self selectRow:i byExtendingSelection:YES]; - } -} - -- (IBAction)revert:(id)sender -{ - NSMutableArray *reconItems = [[self dataSource] reconItems]; - NSEnumerator *e = [self selectedRowEnumerator]; - NSNumber *n = [e nextObject]; - int i; - for (; n != nil; n = [e nextObject]) { - i = [n intValue]; - [[reconItems objectAtIndex:i] revertDirection]; - } - [self reloadData]; -} - -- (IBAction)merge:(id)sender -{ - [self doAction:'m']; -} - -/* There are menu commands for these, but we add some shortcuts so you don't - have to press the Command key */ -- (void)keyDown:(NSEvent *)event -{ - unichar c = [[event characters] characterAtIndex:0]; - switch (c) { - case '>': - case NSRightArrowFunctionKey: - [self doAction:'>']; - break; - case '<': - case NSLeftArrowFunctionKey: - [self doAction:'<']; - break; - case '?': - case '/': - [self doAction:'/']; - break; - default: - [super keyDown:event]; - break; - } -} - -@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac/TrevorsUnison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac/TrevorsUnison.icns differ diff -Nru unison-2.40.102/uimac/uimac.pbproj/project.pbxproj unison-2.48.3/uimac/uimac.pbproj/project.pbxproj --- unison-2.40.102/uimac/uimac.pbproj/project.pbxproj 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimac/uimac.pbproj/project.pbxproj 1970-01-01 00:00:00.000000000 +0000 @@ -1,580 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 39; - objects = { - 080E96DDFE201D6D7F000001 = { - children = ( - ); - isa = PBXGroup; - name = Classes; - refType = 4; - sourceTree = ""; - }; - 089C165CFE840E0CC02AAC07 = { - children = ( - 089C165DFE840E0CC02AAC07, - ); - isa = PBXVariantGroup; - name = InfoPlist.strings; - refType = 4; - sourceTree = ""; - }; - 089C165DFE840E0CC02AAC07 = { - fileEncoding = 10; - isa = PBXFileReference; - lastKnownFileType = text.plist.strings; - name = English; - path = English.lproj/InfoPlist.strings; - refType = 4; - sourceTree = ""; - }; -//080 -//081 -//082 -//083 -//084 -//100 -//101 -//102 -//103 -//104 - 1058C7A0FEA54F0111CA2CBB = { - children = ( - 1058C7A1FEA54F0111CA2CBB, - ); - isa = PBXGroup; - name = "Linked Frameworks"; - refType = 4; - sourceTree = ""; - }; - 1058C7A1FEA54F0111CA2CBB = { - isa = PBXFileReference; - lastKnownFileType = wrapper.framework; - name = Cocoa.framework; - path = /System/Library/Frameworks/Cocoa.framework; - refType = 0; - sourceTree = ""; - }; - 1058C7A2FEA54F0111CA2CBB = { - children = ( - 29B97325FDCFA39411CA2CEA, - 29B97324FDCFA39411CA2CEA, - ); - isa = PBXGroup; - name = "Other Frameworks"; - refType = 4; - sourceTree = ""; - }; -//100 -//101 -//102 -//103 -//104 -//190 -//191 -//192 -//193 -//194 - 19C28FACFE9D520D11CA2CBB = { - children = ( - 69C625F50664EC3300B3C46A, - ); - isa = PBXGroup; - name = Products; - refType = 4; - sourceTree = ""; - }; -//190 -//191 -//192 -//193 -//194 -//290 -//291 -//292 -//293 -//294 - 29B97313FDCFA39411CA2CEA = { - buildSettings = { - }; - buildStyles = ( - 4A9504CCFFE6A4B311CA0CBA, - 4A9504CDFFE6A4B311CA0CBA, - ); - hasScannedForEncodings = 1; - isa = PBXProject; - mainGroup = 29B97314FDCFA39411CA2CEA; - projectDirPath = ""; - targets = ( - 69C625DD0664EC3300B3C46A, - ); - }; - 29B97314FDCFA39411CA2CEA = { - children = ( - 69E407B907EB95AA00D37AA1, - 080E96DDFE201D6D7F000001, - 29B97315FDCFA39411CA2CEA, - 29B97317FDCFA39411CA2CEA, - 29B97323FDCFA39411CA2CEA, - 19C28FACFE9D520D11CA2CBB, - 69C625F40664EC3300B3C46A, - ); - isa = PBXGroup; - name = uimac; - path = ""; - refType = 4; - sourceTree = ""; - }; - 29B97315FDCFA39411CA2CEA = { - children = ( - 29B97316FDCFA39411CA2CEA, - 69660DC604F08CC100CF23A4, - 69660DC704F08CC100CF23A4, - 69BA7DA804FD695200CF23A4, - 69BA7DA904FD695200CF23A4, - 690F564404F11EC300CF23A4, - 690F564504F11EC300CF23A4, - 69D3C6FA04F1CC3700CF23A4, - 69D3C6F904F1CC3700CF23A4, - 697985CD050CFA2D00CF23A4, - 697985CE050CFA2D00CF23A4, - 691CE180051BB44A00CF23A4, - 691CE181051BB44A00CF23A4, - ); - isa = PBXGroup; - name = "Other Sources"; - path = ""; - refType = 4; - sourceTree = ""; - }; - 29B97316FDCFA39411CA2CEA = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = main.m; - refType = 4; - sourceTree = ""; - }; - 29B97317FDCFA39411CA2CEA = { - children = ( - 29B97318FDCFA39411CA2CEA, - 089C165CFE840E0CC02AAC07, - 69C625CA0664E94E00B3C46A, - ); - isa = PBXGroup; - name = Resources; - path = ""; - refType = 4; - sourceTree = ""; - }; - 29B97318FDCFA39411CA2CEA = { - children = ( - 29B97319FDCFA39411CA2CEA, - ); - isa = PBXVariantGroup; - name = MainMenu.nib; - path = ""; - refType = 4; - sourceTree = ""; - }; - 29B97319FDCFA39411CA2CEA = { - isa = PBXFileReference; - lastKnownFileType = wrapper.nib; - name = English; - path = English.lproj/MainMenu.nib; - refType = 4; - sourceTree = ""; - }; - 29B97323FDCFA39411CA2CEA = { - children = ( - 1058C7A0FEA54F0111CA2CBB, - 1058C7A2FEA54F0111CA2CBB, - ); - isa = PBXGroup; - name = Frameworks; - path = ""; - refType = 4; - sourceTree = ""; - }; - 29B97324FDCFA39411CA2CEA = { - isa = PBXFileReference; - lastKnownFileType = wrapper.framework; - name = AppKit.framework; - path = /System/Library/Frameworks/AppKit.framework; - refType = 0; - sourceTree = ""; - }; - 29B97325FDCFA39411CA2CEA = { - isa = PBXFileReference; - lastKnownFileType = wrapper.framework; - name = Foundation.framework; - path = /System/Library/Frameworks/Foundation.framework; - refType = 0; - sourceTree = ""; - }; -//290 -//291 -//292 -//293 -//294 -//4A0 -//4A1 -//4A2 -//4A3 -//4A4 - 4A9504CCFFE6A4B311CA0CBA = { - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - NSZombieEnabled = YES; - OPTIMIZATION_CFLAGS = "-O0"; - ZERO_LINK = YES; - }; - isa = PBXBuildStyle; - name = Development; - }; - 4A9504CDFFE6A4B311CA0CBA = { - buildSettings = { - COPY_PHASE_STRIP = YES; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - ZERO_LINK = NO; - }; - isa = PBXBuildStyle; - name = Deployment; - }; -//4A0 -//4A1 -//4A2 -//4A3 -//4A4 -//690 -//691 -//692 -//693 -//694 - 690F564404F11EC300CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = ProfileController.h; - refType = 4; - sourceTree = ""; - }; - 690F564504F11EC300CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = ProfileController.m; - refType = 4; - sourceTree = ""; - }; - 691CE180051BB44A00CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = ProfileTableView.h; - refType = 4; - sourceTree = ""; - }; - 691CE181051BB44A00CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = ProfileTableView.m; - refType = 4; - sourceTree = ""; - }; - 69660DC604F08CC100CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = MyController.h; - refType = 4; - sourceTree = ""; - }; - 69660DC704F08CC100CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = MyController.m; - refType = 4; - sourceTree = ""; - }; - 697985CD050CFA2D00CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = PreferencesController.h; - refType = 4; - sourceTree = ""; - }; - 697985CE050CFA2D00CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = PreferencesController.m; - refType = 4; - sourceTree = ""; - }; - 69BA7DA804FD695200CF23A4 = { - fileEncoding = 4; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = ReconTableView.h; - refType = 4; - sourceTree = ""; - }; - 69BA7DA904FD695200CF23A4 = { - fileEncoding = 4; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = ReconTableView.m; - refType = 4; - sourceTree = ""; - }; - 69C625CA0664E94E00B3C46A = { - isa = PBXFileReference; - lastKnownFileType = image.icns; - path = Unison.icns; - refType = 4; - sourceTree = ""; - }; - 69C625DD0664EC3300B3C46A = { - buildPhases = ( - 69C625DE0664EC3300B3C46A, - 69C625E50664EC3300B3C46A, - 69C625E90664EC3300B3C46A, - 69C625F10664EC3300B3C46A, - ); - buildRules = ( - ); - buildSettings = { - FRAMEWORK_SEARCH_PATHS = ""; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - HEADER_SEARCH_PATHS = "$(OCAMLLIBDIR)"; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ""; - OCAMLLIBDIR = /usr/local/lib/ocaml; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = "$(SRCROOT)/../unison-blob.o -L$(OCAMLLIBDIR) -lunix -lstr -lasmrun"; - PREBINDING = NO; - PRODUCT_NAME = Unison; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; - WRAPPER_EXTENSION = app; - }; - dependencies = ( - ); - isa = PBXNativeTarget; - name = uimac; - productInstallPath = "$(HOME)/Applications"; - productName = uimac; - productReference = 69C625F50664EC3300B3C46A; - productType = "com.apple.product-type.application"; - }; - 69C625DE0664EC3300B3C46A = { - buildActionMask = 2147483647; - files = ( - 69C625DF0664EC3300B3C46A, - 69C625E00664EC3300B3C46A, - 69C625E10664EC3300B3C46A, - 69C625E20664EC3300B3C46A, - 69C625E30664EC3300B3C46A, - 69C625E40664EC3300B3C46A, - ); - isa = PBXHeadersBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 69C625DF0664EC3300B3C46A = { - fileRef = 69660DC604F08CC100CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E00664EC3300B3C46A = { - fileRef = 690F564404F11EC300CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E10664EC3300B3C46A = { - fileRef = 69D3C6FA04F1CC3700CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E20664EC3300B3C46A = { - fileRef = 69BA7DA804FD695200CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E30664EC3300B3C46A = { - fileRef = 697985CD050CFA2D00CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E40664EC3300B3C46A = { - fileRef = 691CE180051BB44A00CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E50664EC3300B3C46A = { - buildActionMask = 2147483647; - files = ( - 69C625E60664EC3300B3C46A, - 69C625E70664EC3300B3C46A, - 69C625E80664EC3300B3C46A, - ); - isa = PBXResourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 69C625E60664EC3300B3C46A = { - fileRef = 29B97318FDCFA39411CA2CEA; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E70664EC3300B3C46A = { - fileRef = 089C165CFE840E0CC02AAC07; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E80664EC3300B3C46A = { - fileRef = 69C625CA0664E94E00B3C46A; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625E90664EC3300B3C46A = { - buildActionMask = 2147483647; - files = ( - 69C625EA0664EC3300B3C46A, - 69C625EB0664EC3300B3C46A, - 69C625EC0664EC3300B3C46A, - 69C625ED0664EC3300B3C46A, - 69C625EE0664EC3300B3C46A, - 69C625EF0664EC3300B3C46A, - 69C625F00664EC3300B3C46A, - ); - isa = PBXSourcesBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 69C625EA0664EC3300B3C46A = { - fileRef = 29B97316FDCFA39411CA2CEA; - isa = PBXBuildFile; - settings = { - ATTRIBUTES = ( - ); - }; - }; - 69C625EB0664EC3300B3C46A = { - fileRef = 69660DC704F08CC100CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625EC0664EC3300B3C46A = { - fileRef = 690F564504F11EC300CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625ED0664EC3300B3C46A = { - fileRef = 69D3C6F904F1CC3700CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625EE0664EC3300B3C46A = { - fileRef = 69BA7DA904FD695200CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625EF0664EC3300B3C46A = { - fileRef = 697985CE050CFA2D00CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625F00664EC3300B3C46A = { - fileRef = 691CE181051BB44A00CF23A4; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625F10664EC3300B3C46A = { - buildActionMask = 2147483647; - files = ( - 69C625F20664EC3300B3C46A, - 69E407BA07EB95AA00D37AA1, - ); - isa = PBXFrameworksBuildPhase; - runOnlyForDeploymentPostprocessing = 0; - }; - 69C625F20664EC3300B3C46A = { - fileRef = 1058C7A1FEA54F0111CA2CBB; - isa = PBXBuildFile; - settings = { - }; - }; - 69C625F40664EC3300B3C46A = { - isa = PBXFileReference; - lastKnownFileType = text.xml; - path = Info.plist; - refType = 4; - sourceTree = ""; - }; - 69C625F50664EC3300B3C46A = { - explicitFileType = wrapper.application; - includeInIndex = 0; - isa = PBXFileReference; - path = Unison.app; - refType = 3; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 69D3C6F904F1CC3700CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.objc; - path = ReconItem.m; - refType = 4; - sourceTree = ""; - }; - 69D3C6FA04F1CC3700CF23A4 = { - fileEncoding = 30; - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - path = ReconItem.h; - refType = 4; - sourceTree = ""; - }; - 69E407B907EB95AA00D37AA1 = { - isa = PBXFileReference; - lastKnownFileType = wrapper.framework; - name = Security.framework; - path = /System/Library/Frameworks/Security.framework; - refType = 0; - sourceTree = ""; - }; - 69E407BA07EB95AA00D37AA1 = { - fileRef = 69E407B907EB95AA00D37AA1; - isa = PBXBuildFile; - settings = { - }; - }; - }; - rootObject = 29B97313FDCFA39411CA2CEA; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac/Unison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac/Unison.icns differ diff -Nru unison-2.40.102/uimac14/Bridge.h unison-2.48.3/uimac14/Bridge.h --- unison-2.40.102/uimac14/Bridge.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Bridge.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,58 @@ +// +// Bridge.h +// uimac +// +// Created by Craig Federighi on 4/25/07. +// Copyright 2007 __MyCompanyName__. All rights reserved. +// +#import + +/* + Bridge supports safe calling from C back to OCaml by using daemon threads + spawned from OCaml to make the actual calls and converting all argument / return values + in the OCaml thread (when in possession of the OCaml lock) +*/ +@interface Bridge : NSObject { +} ++ (void)startup:(const char **)argv; +@end + +/* + ocamlCall(sig, funcName, [args...]); + + Call ocaml function (via safe thread handoff mechanism). + Args/return values are converted to/from C/OCaml according to the + supplied type signture string. Type codes are: + x - void (for return type) + i - long + s - char * + S - NSString * + N - NSNumber * + @ - OCamlValue (see below) + + Examples: + long count = (long)ocamlCall("iS", "lengthOfString", @"Some String"); + + (void)ocamlCall("x", "someVoidOCamlFunction"); + + OCamlValue *v = (id)ocamlCall("@Si", "makeArray", @"Some String", 10); + NSString s = [v getField:0 withType:'S']; +*/ +extern void *ocamlCall(const char *argTypes, ...); + +// Wrapper/proxy for unconverted OCaml values +@interface OCamlValue : NSObject { + long _v; +} +- initWithValue:(long)v; + +- (void *)getField:(long)i withType:(char)t; + // get value by position. See ocamlCall for list of type conversion codes + +- (long)count; + // count of items in array + +- (long)value; + // returns Ocaml value directly -- not safe to use except in direct callback from OCaml + // (i.e. in the OCaml thread) +@end diff -Nru unison-2.40.102/uimac14/Bridge.m unison-2.48.3/uimac14/Bridge.m --- unison-2.40.102/uimac14/Bridge.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Bridge.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,418 @@ +// +// Bridge.m +// uimac +// +// Created by Craig Federighi on 4/25/07. +// Copyright 1999-2008 (see COPYING for details) +// + +#import "Bridge.h" + +/* The following two define are a workaround for an incompatibility between + Ocaml 3.11.2 (and older) and the Mac OS X header files */ +#define uint64 uint64_caml +#define int64 int64_caml + +#define CAML_NAME_SPACE +#include +#include +#include +#include +#include +#import + +#include +#include + +/* + CMF, April 2007: Alternate strategy for solving UI crashes based on + http://alan.petitepomme.net/cwn/2005.03.08.html#9: + 1) Run OCaml in a separate thread from the Cocoa main run loop. + 2) Handle all calls to OCaml as callbacks -- have an OCaml thread + hang in C-land and use mutexes and conditions to pass control from the + C calling thread to the OCaml callback thread. + + Value Conversion Done in Bridge Thread: + Value creation/conversion (like calls to caml_named_value or caml_copy_string) + or access calls (like Field) need to occur in the OCaml thread. We do this by + passing C args for conversion to the bridgeThreadWait() thread. + + Example of vulnerability: + Field(caml_reconItems,j) could dereference caml_reconItems + when the GC (running independently in an OCaml thread) could be moving it. +*/ + +pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t init_cond = PTHREAD_COND_INITIALIZER; +static BOOL doneInit = NO; + +pthread_mutex_t global_call_lock = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t global_call_cond = PTHREAD_COND_INITIALIZER; +pthread_mutex_t global_res_lock = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t global_res_cond = PTHREAD_COND_INITIALIZER; + +@implementation Bridge +static Bridge *_instance = NULL; + +const char **the_argv; + +- (void)_ocamlStartup:(id)ignore +{ + + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + pthread_mutex_lock(&init_lock); + + /* Initialize ocaml gc, etc. */ + caml_startup((char **)the_argv); // cast to avoid warning, caml_startup assumes non-const, + // NSApplicationMain assumes const + + // Register these with the collector + // NSLog(@"*** _ocamlStartup - back from startup; signalling! (%d)", pthread_self()); + doneInit = TRUE; + pthread_cond_signal(&init_cond); + pthread_mutex_unlock(&init_lock); + + // now start the callback thread + // NSLog(@"*** _ocamlStartup - calling callbackThreadCreate (%d)", pthread_self()); + value *f = caml_named_value("callbackThreadCreate"); + (void)caml_callback_exn(*f,Val_unit); + [pool release]; +} + ++ (void)startup:(const char **)argv +{ + if (_instance) return; + + _instance = [[Bridge alloc] init]; + + [[NSExceptionHandler defaultExceptionHandler] setDelegate:_instance]; + [[NSExceptionHandler defaultExceptionHandler] setExceptionHandlingMask: + (NSLogUncaughtExceptionMask | NSLogTopLevelExceptionMask)]; + + // Init OCaml in another thread and wait for it to be ready + pthread_mutex_lock(&init_lock); + the_argv = argv; + [NSThread detachNewThreadSelector:@selector(_ocamlStartup:) + toTarget:_instance withObject:nil]; + + // NSLog(@"*** waiting for completion of caml_init"); + while (!doneInit) pthread_cond_wait(&init_cond, &init_lock); + pthread_mutex_unlock(&init_lock); + // NSLog(@"*** caml_init complete!"); +} + +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 +typedef unsigned int NSUInteger; +#endif +- (BOOL)exceptionHandler:(NSExceptionHandler *)sender shouldLogException:(NSException *)exception mask:(NSUInteger)aMask +{ + // if (![[exception name] isEqual:@"OCamlException"]) return YES; + + NSString *msg = [NSString stringWithFormat:@"Uncaught exception: %@", [exception reason]]; + msg = [[msg componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; + NSLog(@"%@", msg); + NSRunAlertPanel(@"Fatal error", msg, @"Exit", nil, nil); + exit(1); + return FALSE; +} + +@end + + +// CallState struct is allocated on the C thread stack and then handed +// to the OCaml callback thread to perform value conversion and issue the call +typedef struct { + enum { SafeCall, OldCall, FieldAccess } opCode; + + // New style calls + const char *argTypes; + va_list args; + + // Field access + value *valueP; + long fieldIndex; + char fieldType; + + // Return values + char *exception; + void *retV; + BOOL _autorelease; + + // for old style (unsafe) calls + value call, a1, a2, a3, ret; + int argCount; +} CallState; + +static CallState *_CallState = NULL; +static CallState *_RetState = NULL; + +// Our OCaml callback server thread -- waits for call then makes them +// Called from thread spawned from OCaml +CAMLprim value bridgeThreadWait(value ignore) +{ + CAMLparam0(); + CAMLlocal1 (args); + args = caml_alloc_tuple(3); + + // NSLog(@"*** bridgeThreadWait init! (%d) Taking lock...", pthread_self()); + while (TRUE) { + // unblock ocaml while we wait for work + caml_enter_blocking_section(); + + pthread_mutex_lock(&global_call_lock); + while (!_CallState) pthread_cond_wait(&global_call_cond, &global_call_lock); + + // pick up our work and free up the call lock for other threads + CallState *cs = _CallState; + _CallState = NULL; + pthread_mutex_unlock(&global_call_lock); + + // NSLog(@"*** bridgeThreadWait: have call -- leaving caml_blocking_section"); + + // we have a call to do -- get the ocaml lock + caml_leave_blocking_section(); + + // NSLog(@"*** bridgeThreadWait: doing call"); + + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + char retType = 'v'; + value e = Val_unit; + if (cs->opCode == SafeCall) { + int i; + char *fname = va_arg(cs->args, char *); + value *f = caml_named_value(fname); + // varargs with C-based args -- convert them to OCaml values based on type code string + const char *p = cs->argTypes; + retType = *p++; + int argCount = 0; + for(; *p != '\0'; p++) { + const char *str; + switch (*p) { + case 's': + str = va_arg(cs->args, const char *); + Store_field (args, argCount, caml_copy_string(str)); + break; + case 'S': + str = [va_arg(cs->args, NSString *) UTF8String]; + Store_field (args, argCount, caml_copy_string(str)); + break; + case 'i': + Store_field (args, argCount, Val_long(va_arg(cs->args, long))); + break; + case '@': + Store_field (args, argCount, [va_arg(cs->args, OCamlValue *) value]); + break; + default: + NSCAssert1(0, @"Unknown input type '%c'", *p); + break; + } + argCount++; + NSCAssert(argCount <= 3, @"More than 3 arguments"); + } + // Call OCaml -- TODO: add support for > 3 args + if (argCount == 3) e = caml_callback3_exn(*f,Field(args,0),Field(args,1),Field(args,2)); + else if (argCount == 2) e = caml_callback2_exn(*f,Field(args,0),Field(args,1)); + else if (argCount == 1) e = caml_callback_exn(*f,Field(args,0)); + else e = caml_callback_exn(*f,Val_unit); + for (i = 0; i < argCount; i++) Store_field (args, i, Val_unit); + } else if (cs->opCode == OldCall) { + // old style (unsafe) version where OCaml values were passed directly from C thread + if (cs->argCount == 3) e = caml_callback3_exn(cs->call,cs->a1,cs->a2,cs->a3); + else if (cs->argCount == 2) e = caml_callback2_exn(cs->call,cs->a1,cs->a2); + else e = caml_callback_exn(cs->call,cs->a1); + retType = 'v'; + } else if (cs->opCode == FieldAccess) { + long index = cs->fieldIndex; + e = (index == -1) ? Val_long(Wosize_val(*cs->valueP)) : Field(*cs->valueP, index); + retType = cs->fieldType; + } + + // Process return value + cs->_autorelease = FALSE; + cs->ret = e; // OCaml return type -- unsafe... + if (!Is_exception_result(e)) { + switch (retType) { + case 'S': + *((NSString **)&cs->retV) = (e == Val_unit) ? NULL : [[NSString alloc] initWithUTF8String:String_val(e)]; + cs->_autorelease = TRUE; + break; + case 'N': + if (Is_long (e)) { + *((NSNumber **)&cs->retV) = [[NSNumber alloc] initWithLong:Long_val(e)]; + } else { + *((NSNumber **)&cs->retV) = [[NSNumber alloc] initWithDouble:Double_val(e)]; + } + cs->_autorelease = TRUE; + break; + case '@': + *((NSObject **)&cs->retV) = (e == Val_unit) ? NULL : [[OCamlValue alloc] initWithValue:e]; + cs->_autorelease = TRUE; + break; + case 'i': + *((long *)&cs->retV) = Long_val(e); + break; + case 'x': + break; + default: + NSCAssert1(0, @"Unknown return type '%c'", retType); + break; + } + } + + if (Is_exception_result(e)) { + // get exception string -- it will get thrown back in the calling thread + value *f = caml_named_value("unisonExnInfo"); + // We leak memory here... + cs->exception = strdup(String_val(caml_callback(*f,Extract_exception(e)))); + } + + [pool release]; + + // NSLog(@"*** bridgeThreadWait: returning"); + + // we're done, signal back + pthread_mutex_lock(&global_res_lock); + _RetState = cs; + pthread_cond_signal(&global_res_cond); + pthread_mutex_unlock(&global_res_lock); + } + // Never get here... + CAMLreturn (Val_unit); +} + +void *_passCall(CallState *cs) +{ + pthread_mutex_lock(&global_call_lock); + _CallState = cs; + + // signal so call can happen on other thread + pthread_mutex_lock(&global_res_lock); + pthread_cond_signal(&global_call_cond); + pthread_mutex_unlock(&global_call_lock); + + // NSLog(@"*** _passCall (%d) -- performing signal and waiting", pthread_self()); + + // wait until done -- make sure the result is for our call + while (_RetState != cs) pthread_cond_wait(&global_res_cond, &global_res_lock); + _RetState = NULL; + pthread_mutex_unlock(&global_res_lock); + + // NSLog(@"*** doCallback -- back with result"); + if (cs->exception) { + @throw [NSException exceptionWithName:@"OCamlException" + reason:[NSString stringWithUTF8String:cs->exception] + userInfo:nil]; + } + if (cs->_autorelease) [((id)cs->retV) autorelease]; + return cs->retV; +} + +void *ocamlCall(const char *argTypes, ...) +{ + CallState cs; + cs.opCode = SafeCall; + cs.exception = NULL; + cs.argTypes = argTypes; + va_start(cs.args, argTypes); + void * res = _passCall(&cs); + + va_end(cs.args); + return res; +} + +void *getField(value *vP, long index, char type) +{ + CallState cs; + cs.opCode = FieldAccess; + cs.valueP = vP; + cs.fieldIndex = index; + cs.fieldType = type; + cs.exception = NULL; + return _passCall(&cs); +} + +@implementation OCamlValue + +- initWithValue:(long)v +{ + [super init]; + _v = v; + caml_register_global_root((value *)&_v); + return self; +} + +- (long)count +{ + return (long)getField((value *) &_v, -1, 'i'); +} + +- (void *)getField:(long)i withType:(char)t +{ + return getField((value *)&_v, i, t); +} + +- (long)value +{ + // Unsafe to use! + return _v; +} + +- (void)dealloc +{ + _v = Val_unit; + caml_remove_global_root((value *)&_v); + [super dealloc]; +} +@end + + +// Legacy OCaml call API -- no longer needed +#if 0 + +extern value doCallback (value c, int argcount, value v1, value v2, value v3, BOOL exitOnException); +extern value Callback_checkexn(value c,value v); +extern value Callback2_checkexn(value c,value v1,value v2); +extern value Callback3_checkexn(value c,value v1,value v2,value v3); + +void reportExn(const char *msg) { + NSString *s = [NSString stringWithFormat:@"Uncaught exception: %s", msg]; + s = [[s componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; + NSLog(@"%@",s); + NSRunAlertPanel(@"Fatal error",s,@"Exit",nil,nil); +} + +// FIXME! Claim is that value conversion must also happen in the OCaml thread... +value doCallback (value c, int argcount, value v1, value v2, value v3, BOOL exitOnException) { + // NSLog(@"*** doCallback: (%d) -- trying to acquire global lock", pthread_self()); + CallState cs; + cs.opCode = OldCall; + cs.exception = NULL; + cs.call = c; + cs.a1 = v1; + cs.a2 = v2; + cs.a3 = v3; + cs.argCount = argcount; + @try { + return _passCall(&cs); + } @catch (NSException *ex) { + if (exitOnException) { + reportExn(cs.exception); + exit(1); + } + @throw ex; + } +} + +value Callback_checkexn(value c,value v) { + return doCallback(c, 1, v, 0, 0, TRUE); +} + +value Callback2_checkexn(value c,value v1,value v2) { + return doCallback(c, 2, v1, v2, 0, TRUE); +} + +value Callback3_checkexn(value c,value v1,value v2,value v3) { + return doCallback(c, 3, v1, v2, v3, TRUE); +} +#endif diff -Nru unison-2.40.102/uimac14/cltool.c unison-2.48.3/uimac14/cltool.c --- unison-2.40.102/uimac14/cltool.c 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/cltool.c 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,67 @@ +/* cltool.c + + This is a command-line tool for Mac OS X that looks up the unison + application, where ever it has been installed, and runs it. This + is intended to be installed in a standard place (e.g., + /usr/bin/unison) to make it easy to invoke unison as a server, or + to use unison from the command line when it has been installed with + a GUI. + + */ + +#import +#import +#include + +#define BUFSIZE 1024 +#define EXECPATH "/Contents/MacOS/Unison" + +int main(int argc, char **argv) { + + /* Look up the application by its bundle identifier, which is given + in the Info.plist file. This will continue to work even if the + user changes the name of the application, unlike + fullPathForApplication. */ + + FSRef fsref; + OSStatus status; + int len; + char buf[BUFSIZE]; + + status = LSFindApplicationForInfo(kLSUnknownCreator,CFSTR("edu.upenn.cis.Unison"),NULL,&fsref,NULL); + if (status) { + if (status == kLSApplicationNotFoundErr) { + fprintf(stderr,"Error: can't find the Unison application using the Launch Services database.\n"); + fprintf(stderr,"Try launching Unison from the Finder, and then try this again.\n",status); + } + else fprintf(stderr,"Error: can't find Unison application (%ld).\n",status); + exit(1); + } + + status = FSRefMakePath(&fsref,(UInt8 *)buf,BUFSIZE); + if (status) { + fprintf(stderr,"Error: problem building path to Unison application (%ld).\n",status); + exit(1); + } + + len = strlen(buf); + if (len + strlen(EXECPATH) + 1 > BUFSIZE) { + fprintf(stderr,"Error: path to Unison application exceeds internal buffer size (%d).\n",BUFSIZE); + exit(1); + } + strcat(buf,EXECPATH); + + /* It's important to pass the absolute path on to the GUI, + that's how it knows where to find the bundle, e.g., the + Info.plist file. */ + argv[0] = buf; + + // printf("The Unison executable is at %s\n",argv[0]); + // printf("Running...\n"); + + execv(argv[0],argv); + + /* If we get here the execv has failed; print an error message to stderr */ + perror("unison"); + exit(1); +} diff -Nru unison-2.40.102/uimac14/ColorGradientView.h unison-2.48.3/uimac14/ColorGradientView.h --- unison-2.40.102/uimac14/ColorGradientView.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ColorGradientView.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,22 @@ +// +// ColorGradientView.h +// uimacnew +// +// From http://www.katoemba.net/makesnosenseatall/2008/01/09/nsview-with-gradient-background/ +// + +#import + +@interface ColorGradientView : NSView +{ + NSColor *startingColor; + NSColor *endingColor; + int angle; +} + +// Define the variables as properties +@property(nonatomic, retain) NSColor *startingColor; +@property(nonatomic, retain) NSColor *endingColor; +@property(assign) int angle; + +@end diff -Nru unison-2.40.102/uimac14/ColorGradientView.m unison-2.48.3/uimac14/ColorGradientView.m --- unison-2.40.102/uimac14/ColorGradientView.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ColorGradientView.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,46 @@ +// +// ColorGradientView.m +// uimacnew +// +// From http://www.katoemba.net/makesnosenseatall/2008/01/09/nsview-with-gradient-background/ +// +// + +#import "ColorGradientView.h" + +@implementation ColorGradientView + +// Automatically create accessor methods +@synthesize startingColor; +@synthesize endingColor; +@synthesize angle; + +- (id)initWithFrame:(NSRect)frame { + self = [super initWithFrame:frame]; + if (self) { + // Initialization code here. + [self setStartingColor:[NSColor gridColor]]; + [self setEndingColor:[NSColor controlShadowColor]]; + [self setAngle:270]; + } + return self; +} + +- (void)drawRect:(NSRect)rect { + if (endingColor == nil || [startingColor isEqual:endingColor]) { + // Fill view with a standard background color + [startingColor set]; + NSRectFill(rect); + } + else { + // Fill view with a top-down gradient + // from startingColor to endingColor + NSGradient* aGradient = [[NSGradient alloc] + initWithStartingColor:startingColor + endingColor:endingColor]; + [aGradient drawInRect:[self bounds] angle:angle]; + [aGradient release]; + } +} + +@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/English.lproj/InfoPlist.strings and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/English.lproj/InfoPlist.strings differ diff -Nru unison-2.40.102/uimac14/English.lproj/MainMenu.xib unison-2.48.3/uimac14/English.lproj/MainMenu.xib --- unison-2.40.102/uimac14/English.lproj/MainMenu.xib 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/English.lproj/MainMenu.xib 2014-07-07 11:21:59.000000000 +0000 @@ -0,0 +1,1057 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Please choose a profile or create a new one + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + File: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Please enter your password + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + © Copyright 1999-2014. + +This software is licensed under the GNU General Public License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The command-line tool is a small program that can be installed in a standard place on your computer (/usr/bin/unison) so Unison can easily be found. If you want to be able to synchronize files on this computer by running Unison on a remote computer, you should probably install it. + +If you don't install it now, you can do so later by choosing 'Install command-line tool' from the Unison menu. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/Frameworks/Growl.framework/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/Frameworks/Growl.framework/Growl differ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,780 @@ +// +// GrowlApplicationBridge-Carbon.h +// Growl +// +// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. +// Based on GrowlApplicationBridge.h by Evan Schoenberg. +// This source code is in the public domain. You may freely link it into any +// program. +// + +#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ +#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ + +#include +#include + +#ifndef GROWL_EXPORT +#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE +#endif + +/*! @header GrowlApplicationBridge-Carbon.h + * @abstract Declares an API that Carbon applications can use to interact with Growl. + * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX + * to Growl (such as your application's name and what notifications it may + * post) and to provide information to your application (such as that Growl + * is listening for notifications or that a notification has been clicked). + * + * You can set the Growldelegate with Growl_SetDelegate and find out the + * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more + * information about the delegate. + */ + +__BEGIN_DECLS + +/*! @struct Growl_Delegate + * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. + * @discussion The Growl delegate provides your interface to + * GrowlApplicationBridge. When GrowlApplicationBridge needs information about + * your application, it looks for it in the delegate; when Growl or the user + * does something that you might be interested in, GrowlApplicationBridge + * looks for a callback in the delegate and calls it if present + * (meaning, if it is not NULL). + * XXX on all of that + * @field size The size of the delegate structure. + * @field applicationName The name of your application. + * @field registrationDictionary A dictionary describing your application and the notifications it can send out. + * @field applicationIconData Your application's icon. + * @field growlInstallationWindowTitle The title of the installation window. + * @field growlInstallationInformation Text to display in the installation window. + * @field growlUpdateWindowTitle The title of the update window. + * @field growlUpdateInformation Text to display in the update window. + * @field referenceCount A count of owners of the delegate. + * @field retain Called when GrowlApplicationBridge receives this delegate. + * @field release Called when GrowlApplicationBridge no longer needs this delegate. + * @field growlIsReady Called when GrowlHelperApp is listening for notifications. + * @field growlNotificationWasClicked Called when a Growl notification is clicked. + * @field growlNotificationTimedOut Called when a Growl notification timed out. + */ +struct Growl_Delegate { + /* @discussion This should be sizeof(struct Growl_Delegate). + */ + size_t size; + + /*All of these attributes are optional. + *Optional attributes can be NULL; required attributes that + * are NULL cause setting the Growl delegate to fail. + *XXX - move optional/required status into the discussion for each field + */ + + /* This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * This can be NULL if it is provided elsewhere, namely in an + * auto-discoverable plist file in your app bundle + * (XXX refer to more information on that) or in registrationDictionary. + */ + CFStringRef applicationName; + + /* + * Must contain at least these keys: + * GROWL_NOTIFICATIONS_ALL (CFArray): + * Contains the names of all notifications your application may post. + * + * Can also contain these keys: + * GROWL_NOTIFICATIONS_DEFAULT (CFArray): + * Names of notifications that should be enabled by default. + * If omitted, GROWL_NOTIFICATIONS_ALL will be used. + * GROWL_APP_NAME (CFString): + * Same as the applicationName member of this structure. + * If both are present, the applicationName member shall prevail. + * If this key is present, you may omit applicationName (set it to NULL). + * GROWL_APP_ICON (CFData): + * Same as the iconData member of this structure. + * If both are present, the iconData member shall prevail. + * If this key is present, you may omit iconData (set it to NULL). + * + * If you change the contents of this dictionary after setting the delegate, + * be sure to call Growl_Reregister. + * + * This can be NULL if you have an auto-discoverable plist file in your app + * bundle. (XXX refer to more information on that) + */ + CFDictionaryRef registrationDictionary; + + /* The data can be in any format supported by NSImage. As of + * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and + * PICT formats. + * + * If this is not supplied, Growl will look up your application's icon by + * its application name. + */ + CFDataRef applicationIconData; + + /* Installer display attributes + * + * These four attributes are used by the Growl installer, if this framework + * supports it. + * For any of these being NULL, a localised default will be + * supplied. + */ + + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If Growl is not installed, it will + * be displayed to the user as an explanation of what Growl is and what + * it can do in your application. + * It should probably note that no download is required to install. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationInformation; + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If an older version of Growl is + * installed, it will be displayed to the user as an explanation that an + * updated version of Growl is included in your application and + * no download is required. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateInformation; + + /* This member is provided for use by your retain and release + * callbacks (see below). + * + * GrowlApplicationBridge never directly uses this member. Instead, it + * calls your retain callback (if non-NULL) and your release + * callback (if non-NULL). + */ + unsigned referenceCount; + + //Functions. Currently all of these are optional (any of them can be NULL). + + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRetain and -[NSObject retain].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member would be + * NULL. + * @result A delegate to which GrowlApplicationBridge holds a reference. + */ + void *(*retain)(void *); + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRelease and + * -[NSObject release].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member might be + * free(3). + */ + void (*release)(void *); + + /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was + * launched successfully (or was already running). The application can + * take actions with the knowledge that Growl is installed and functional. + */ + void (*growlIsReady)(void); + + /* Informs the delegate that a Growl notification was clicked. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); + + /* Informs the delegate that a Growl notification timed out. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); +}; + +/*! @struct Growl_Notification + * @abstract Structure describing a Growl notification. + * @discussion XXX + * @field size The size of the notification structure. + * @field name Identifies the notification. + * @field title Short synopsis of the notification. + * @field description Additional text. + * @field iconData An icon for the notification. + * @field priority An indicator of the notification's importance. + * @field reserved Bits reserved for future usage. + * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. + * @field clickContext An identifier to be passed to your click callback when a notification is clicked. + * @field clickCallback A callback to call when the notification is clicked. + */ +struct Growl_Notification { + /* This should be sizeof(struct Growl_Notification). + */ + size_t size; + + /* The notification name distinguishes one type of + * notification from another. The name should be human-readable, as it + * will be displayed in the Growl preference pane. + * + * The name is used in the GROWL_NOTIFICATIONS_ALL and + * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and + * in this member of the Growl_Notification structure. + */ + CFStringRef name; + + /* A notification's title describes the notification briefly. + * It should be easy to read quickly by the user. + */ + CFStringRef title; + + /* The description supplements the title with more + * information. It is usually longer and sometimes involves a list of + * subjects. For example, for a 'Download complete' notification, the + * description might have one filename per line. GrowlMail in Growl 0.6 + * uses a description of '%d new mail(s)' (formatted with the number of + * messages). + */ + CFStringRef description; + + /* The notification icon usually indicates either what + * happened (it may have the same icon as e.g. a toolbar item that + * started the process that led to the notification), or what it happened + * to (e.g. a document icon). + * + * The icon data is optional, so it can be NULL. In that + * case, the application icon is used alone. Not all displays support + * icons. + * + * The data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form + * ats. + */ + CFDataRef iconData; + + /* Priority is new in Growl 0.6, and is represented as a + * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low + * priority, and +2 is Very High priority. + * + * Not all displays support priority. If you do not wish to assign a + * priority to your notification, assign 0. + */ + signed int priority; + + /* These bits are not used in Growl 0.6. Set them to 0. + */ + unsigned reserved: 31; + + /* When the sticky bit is clear, in most displays, + * notifications disappear after a certain amount of time. Sticky + * notifications, however, remain on-screen until the user dismisses them + * explicitly, usually by clicking them. + * + * Sticky notifications were introduced in Growl 0.6. Most notifications + * should not be sticky. Not all displays support sticky notifications, + * and the user may choose in Growl's preference pane to force the + * notification to be sticky or non-sticky, in which case the sticky bit + * in the notification will be ignored. + */ + unsigned isSticky: 1; + + /* If this is not NULL, and your click callback + * is not NULL either, this will be passed to the callback + * when your notification is clicked by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + */ + CFPropertyListRef clickContext; + + /* If this is not NULL, it will be called instead + * of the Growl delegate's click callback when clickContext is + * non-NULL and the notification is clicked on by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + * + * The per-notification click callback is not yet supported as of Growl + * 0.7. + */ + void (*clickCallback)(CFPropertyListRef clickContext); + + CFStringRef identifier; +}; + +#pragma mark - +#pragma mark Easy initialisers + +/*! @defined InitGrowlDelegate + * @abstract Callable macro. Initializes a Growl delegate structure to defaults. + * @discussion Call with a pointer to a struct Growl_Delegate. All of the + * members of the structure will be set to 0 or NULL, except for + * size (which will be set to sizeof(struct Growl_Delegate)) and + * referenceCount (which will be set to 1). + */ +#define InitGrowlDelegate(delegate) \ + do { \ + if (delegate) { \ + (delegate)->size = sizeof(struct Growl_Delegate); \ + (delegate)->applicationName = NULL; \ + (delegate)->registrationDictionary = NULL; \ + (delegate)->applicationIconData = NULL; \ + (delegate)->growlInstallationWindowTitle = NULL; \ + (delegate)->growlInstallationInformation = NULL; \ + (delegate)->growlUpdateWindowTitle = NULL; \ + (delegate)->growlUpdateInformation = NULL; \ + (delegate)->referenceCount = 1U; \ + (delegate)->retain = NULL; \ + (delegate)->release = NULL; \ + (delegate)->growlIsReady = NULL; \ + (delegate)->growlNotificationWasClicked = NULL; \ + (delegate)->growlNotificationTimedOut = NULL; \ + } \ + } while(0) + +/*! @defined InitGrowlNotification + * @abstract Callable macro. Initializes a Growl notification structure to defaults. + * @discussion Call with a pointer to a struct Growl_Notification. All of + * the members of the structure will be set to 0 or NULL, except + * for size (which will be set to + * sizeof(struct Growl_Notification)). + */ +#define InitGrowlNotification(notification) \ + do { \ + if (notification) { \ + (notification)->size = sizeof(struct Growl_Notification); \ + (notification)->name = NULL; \ + (notification)->title = NULL; \ + (notification)->description = NULL; \ + (notification)->iconData = NULL; \ + (notification)->priority = 0; \ + (notification)->reserved = 0U; \ + (notification)->isSticky = false; \ + (notification)->clickContext = NULL; \ + (notification)->clickCallback = NULL; \ + (notification)->identifier = NULL; \ + } \ + } while(0) + +#pragma mark - +#pragma mark Public API + +// @functiongroup Managing the Growl delegate + +/*! @function Growl_SetDelegate + * @abstract Replaces the current Growl delegate with a new one, or removes + * the Growl delegate. + * @param newDelegate + * @result Returns false and does nothing else if a pointer that was passed in + * is unsatisfactory (because it is non-NULL, but at least one + * required member of it is NULL). Otherwise, sets or unsets the + * delegate and returns true. + * @discussion When newDelegate is non-NULL, sets + * the delegate to newDelegate. When it is NULL, + * the current delegate will be unset, and no delegate will be in place. + * + * It is legal for newDelegate to be the current delegate; + * nothing will happen, and Growl_SetDelegate will return true. It is also + * legal for it to be NULL, as described above; again, it will + * return true. + * + * If there was a delegate in place before the call, Growl_SetDelegate will + * call the old delegate's release member if it was non-NULL. If + * newDelegate is non-NULL, Growl_SetDelegate will + * call newDelegate->retain, and set the delegate to its return + * value. + * + * If you are using Growl-WithInstaller.framework, and an older version of + * Growl is installed on the user's system, the user will automatically be + * prompted to update. + * + * GrowlApplicationBridge currently does not copy this structure, nor does it + * retain any of the CF objects in the structure (it regards the structure as + * a container that retains the objects when they are added and releases them + * when they are removed or the structure is destroyed). Also, + * GrowlApplicationBridge currently does not modify any member of the + * structure, except possibly the referenceCount by calling the retain and + * release members. + */ +GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); + +/*! @function Growl_GetDelegate + * @abstract Returns the current Growl delegate, if any. + * @result The current Growl delegate. + * @discussion Returns the last pointer passed into Growl_SetDelegate, or + * NULL if no such call has been made. + * + * This function follows standard Core Foundation reference-counting rules. + * Because it is a Get function, not a Copy function, it will not retain the + * delegate on your behalf. You are responsible for retaining and releasing + * the delegate as needed. + */ +GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); + +#pragma mark - + +// @functiongroup Posting Growl notifications + +/*! @function Growl_PostNotification + * @abstract Posts a Growl notification. + * @param notification The notification to post. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * NULL (or 0 or false as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. + * If the user cancels, this function will have no effect until the next + * application session, at which time when it is called the user will be + * prompted again. The user is also given the option to not be prompted again. + * If the user does choose to install Growl, the requested notification will + * be displayed once Growl is installed and running. + */ +GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); + +/*! @function Growl_PostNotificationWithDictionary +* @abstract Notifies using a userInfo dictionary suitable for passing to +* CFDistributedNotificationCenter. +* @param userInfo The dictionary to notify with. +* @discussion Before Growl 0.6, your application would have posted +* notifications using CFDistributedNotificationCenter by creating a userInfo +* dictionary with the notification data. This had the advantage of allowing +* you to add other data to the dictionary for programs besides Growl that +* might be listening. +* +* This function allows you to use such dictionaries without being restricted +* to using CFDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. +*/ +GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); + +/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext + * @abstract Posts a Growl notification using parameter values. + * @param title The title of the notification. + * @param description The description of the notification. + * @param notificationName The name of the notification as listed in the + * registration dictionary. + * @param iconData Data representing a notification icon. Can be NULL. + * @param priority The priority of the notification (-2 to +2, with -2 + * being Very Low and +2 being Very High). + * @param isSticky If true, requests that this notification wait for a + * response from the user. + * @param clickContext An object to pass to the clickCallback, if any. Can + * be NULL, in which case the clickCallback is not called. + * @discussion Creates a temporary Growl_Notification, fills it out with the + * supplied information, and calls Growl_PostNotification on it. + * See struct Growl_Notification and Growl_PostNotification for more + * information. + * + * The icon data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. + */ +GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( + /*inhale*/ + CFStringRef title, + CFStringRef description, + CFStringRef notificationName, + CFDataRef iconData, + signed int priority, + Boolean isSticky, + CFPropertyListRef clickContext); + +#pragma mark - + +// @functiongroup Registering + +/*! @function Growl_RegisterWithDictionary + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this function with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass NULL, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this function, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This function is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This function was introduced in Growl.framework 0.7. + * @result false if registration failed (e.g. if Growl isn't installed). + */ +GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); + +/*! @function Growl_Reregister + * @abstract Updates your registration with Growl. + * @discussion If your application changes the contents of the + * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the + * Growl delegate, or if it changes the value of that member, or if it + * changes the contents of its auto-discoverable plist, call this function + * to have Growl update its registration information for your application. + * + * Otherwise, this function does not normally need to be called. If you're + * using a delegate, your application will be registered when you set the + * delegate if both the delegate and its registrationDictionary member are + * non-NULL. + * + * This function is now implemented using + * Growl_RegisterWithDictionary. + */ +GROWL_EXPORT void Growl_Reregister(void); + +#pragma mark - + +/*! @function Growl_SetWillRegisterWhenGrowlIsReady + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * growlIsReady callback, if it has one). If this function is + * called with true, one of those tasks will be to reregister + * with Growl (in the manner of Growl_Reregister). + * + * This attribute is automatically set back to false + * (the default) after every GROWL_IS_READY notification. + * @param flag true if you want GrowlApplicationBridge to register with + * Growl when next it is ready; false if not. + */ +GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); +/*! @function Growl_WillRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result true if GrowlApplicationBridge will register with + * Growl when next it posts GROWL_IS_READY; false if not. + */ +GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); + +#pragma mark - + +// @functiongroup Obtaining registration dictionaries + +/*! @function Growl_CopyRegistrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * registrationDictionary member is NULL, this + * function returns NULL. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); + +/*! @function Growl_CopyRegistrationDictionaryFromBundle + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This function looks in a bundle for an auto-discoverable + * registration dictionary file using CFBundleCopyResourceURL. + * If it finds one, it loads the file using CFPropertyList and + * returns the result. + * + * If you pass NULL as the bundle, the main bundle is examined. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary: or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); + +/*! @function Growl_CreateBestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This function creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge examines the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this function returns NULL. + * + * Second, GrowlApplicationBridge calls + * Growl_CreateRegistrationDictionaryByFillingInDictionary with + * whatever dictionary was obtained. The result of that function is the + * result of this function. + * + * GrowlApplicationBridge uses this function when you call + * Growl_SetDelegate, or when you call + * Growl_RegisterWithDictionary with NULL. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); + +#pragma mark - + +// @functiongroup Filling in registration dictionaries + +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If NULL, any missing keys are filled in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); + +#pragma mark - + +// @functiongroup Querying Growl's status + +/*! @function Growl_IsInstalled + * @abstract Determines whether the Growl prefpane and its helper app are + * installed. + * @result Returns true if Growl is installed, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsInstalled(void); + +/*! @function Growl_IsRunning + * @abstract Cycles through the process list to find whether GrowlHelperApp + * is running. + * @result Returns true if Growl is running, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsRunning(void); + +#pragma mark - + +// @functiongroup Launching Growl + +/*! @typedef GrowlLaunchCallback + * @abstract Callback to notify you that Growl is running. + * @param context The context pointer passed to Growl_LaunchIfInstalled. + * @discussion Growl_LaunchIfInstalled calls this callback function if Growl + * was already running or if it launched Growl successfully. + */ +typedef void (*GrowlLaunchCallback)(void *context); + +/*! @function Growl_LaunchIfInstalled + * @abstract Launches GrowlHelperApp if it is not already running. + * @param callback A callback function which will be called if Growl was successfully + * launched or was already running. Can be NULL. + * @param context The context pointer to pass to the callback. Can be NULL. + * @result Returns true if Growl was successfully launched or was already + * running; returns false and does not call the callback otherwise. + * @discussion Returns true and calls the callback (if the callback is not + * NULL) if the Growl helper app began launching or was already + * running. Returns false and performs no other action if Growl could not be + * launched (e.g. because the Growl preference pane is not properly installed). + * + * If Growl_CreateBestRegistrationDictionary returns + * non-NULL, this function will register with Growl atomically. + * + * The callback should take a single argument; this is to allow applications + * to have context-relevant information passed back. It is perfectly + * acceptable for context to be NULL. The callback itself can be + * NULL if you don't want one. + */ +GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); + +#pragma mark - +#pragma mark Constants + +/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER + * @abstract The CFBundleIdentifier of the Growl preference pane bundle. + * @discussion GrowlApplicationBridge uses this to determine whether Growl is + * currently installed, by searching for the Growl preference pane. Your + * application probably does not need to use this macro itself. + */ +#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER +#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") +#endif + +__END_DECLS + +#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,575 @@ +// +// GrowlApplicationBridge.h +// Growl +// +// Created by Evan Schoenberg on Wed Jun 16 2004. +// Copyright 2004-2006 The Growl Project. All rights reserved. +// + +/*! + * @header GrowlApplicationBridge.h + * @abstract Defines the GrowlApplicationBridge class. + * @discussion This header defines the GrowlApplicationBridge class as well as + * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. + */ + +#ifndef __GrowlApplicationBridge_h__ +#define __GrowlApplicationBridge_h__ + +#import +#import +#import "GrowlDefines.h" + +//Forward declarations +@protocol GrowlApplicationBridgeDelegate; + +//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) +#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @class GrowlApplicationBridge + * @abstract A class used to interface with Growl. + * @discussion This class provides a means to interface with Growl. + * + * Currently it provides a way to detect if Growl is installed and launch the + * GrowlHelperApp if it's not already running. + */ +@interface GrowlApplicationBridge : NSObject { + +} + +/*! + * @method isGrowlInstalled + * @abstract Detects whether Growl is installed. + * @discussion Determines if the Growl prefpane and its helper app are installed. + * @result Returns YES if Growl is installed, NO otherwise. + */ ++ (BOOL) isGrowlInstalled; + +/*! + * @method isGrowlRunning + * @abstract Detects whether GrowlHelperApp is currently running. + * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. + * @result Returns YES if GrowlHelperApp is running, NO otherwise. + */ ++ (BOOL) isGrowlRunning; + +#pragma mark - + +/*! + * @method setGrowlDelegate: + * @abstract Set the object which will be responsible for providing and receiving Growl information. + * @discussion This must be called before using GrowlApplicationBridge. + * + * The methods in the GrowlApplicationBridgeDelegate protocol are required + * and return the basic information needed to register with Growl. + * + * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol + * informal protocol are individually optional. They provide a greater + * degree of interaction between the application and growl such as informing + * the application when one of its Growl notifications is clicked by the user. + * + * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol + * informal protocol are individually optional and are only applicable when + * using the Growl-WithInstaller.framework which allows for automated Growl + * installation. + * + * When this method is called, data will be collected from inDelegate, Growl + * will be launched if it is not already running, and the application will be + * registered with Growl. + * + * If using the Growl-WithInstaller framework, if Growl is already installed + * but this copy of the framework has an updated version of Growl, the user + * will be prompted to update automatically. + * + * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. + */ ++ (void) setGrowlDelegate:(NSObject *)inDelegate; + +/*! + * @method growlDelegate + * @abstract Return the object responsible for providing and receiving Growl information. + * @discussion See setGrowlDelegate: for details. + * @result The Growl delegate. + */ ++ (NSObject *) growlDelegate; + +#pragma mark - + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext; + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext + identifier:(NSString *)identifier; + +/*! @method notifyWithDictionary: + * @abstract Notifies using a userInfo dictionary suitable for passing to + * NSDistributedNotificationCenter. + * @param userInfo The dictionary to notify with. + * @discussion Before Growl 0.6, your application would have posted + * notifications using NSDistributedNotificationCenter by + * creating a userInfo dictionary with the notification data. This had the + * advantage of allowing you to add other data to the dictionary for programs + * besides Growl that might be listening. + * + * This method allows you to use such dictionaries without being restricted + * to using NSDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. + */ ++ (void) notifyWithDictionary:(NSDictionary *)userInfo; + +#pragma mark - + +/*! @method registerWithDictionary: + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this method with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass nil, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this method, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This method is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * -growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This method was introduced in Growl.framework 0.7. + */ ++ (BOOL) registerWithDictionary:(NSDictionary *)regDict; + +/*! @method reregisterGrowlNotifications + * @abstract Reregister the notifications for this application. + * @discussion This method does not normally need to be called. If your + * application changes what notifications it is registering with Growl, call + * this method to have the Growl delegate's + * -registrationDictionaryForGrowl method called again and the + * Growl registration information updated. + * + * This method is now implemented using -registerWithDictionary:. + */ ++ (void) reregisterGrowlNotifications; + +#pragma mark - + +/*! @method setWillRegisterWhenGrowlIsReady: + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * -growlIsReady method, if it has one). If this method is + * called with YES, one of those tasks will be to reregister + * with Growl (in the manner of -reregisterGrowlNotifications). + * + * This attribute is automatically set back to NO (the default) + * after every GROWL_IS_READY notification. + * @param flag YES if you want GrowlApplicationBridge to register with + * Growl when next it is ready; NO if not. + */ ++ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; +/*! @method willRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result YES if GrowlApplicationBridge will register with Growl + * when next it posts GROWL_IS_READY; NO if not. + */ ++ (BOOL) willRegisterWhenGrowlIsReady; + +#pragma mark - + +/*! @method registrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * -registrationDictionaryForGrowl method returns + * nil, this method returns nil. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromDelegate; + +/*! @method registrationDictionaryFromBundle: + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This method looks in a bundle for an auto-discoverable + * registration dictionary file using -[NSBundle + * pathForResource:ofType:]. If it finds one, it loads the file using + * +[NSDictionary dictionaryWithContentsOfFile:] and returns the + * result. + * + * If you pass nil as the bundle, the main bundle is examined. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; + +/*! @method bestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This method creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge contacts the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this method returns nil. + * + * Second, GrowlApplicationBridge calls + * +registrationDictionaryByFillingInDictionary: with whatever + * dictionary was obtained. The result of that method is the result of this + * method. + * + * GrowlApplicationBridge uses this method when you call + * +setGrowlDelegate:, or when you call + * +registerWithDictionary: with nil. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) bestRegistrationDictionary; + +#pragma mark - + +/*! @method registrationDictionaryByFillingInDictionary: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; +/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If nil, any missing keys are filled in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ ++ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; + ++ (NSDictionary *) frameworkInfoDictionary; +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @protocol GrowlApplicationBridgeDelegate + * @abstract Required protocol for the Growl delegate. + * @discussion The methods in this protocol are required and are called + * automatically as needed by GrowlApplicationBridge. See + * +[GrowlApplicationBridge setGrowlDelegate:]. + * See also GrowlApplicationBridgeDelegate_InformalProtocol. + */ + +@protocol GrowlApplicationBridgeDelegate + +// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. + +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) + * @abstract Methods which may be optionally implemented by the GrowlDelegate. + * @discussion The methods in this informal protocol will only be called if implemented by the delegate. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) + +/*! + * @method registrationDictionaryForGrowl + * @abstract Return the dictionary used to register this application with Growl. + * @discussion The returned dictionary gives Growl the complete list of + * notifications this application will ever send, and it also specifies which + * notifications should be enabled by default. Each is specified by an array + * of NSString objects. + * + * For most applications, these two arrays can be the same (if all sent + * notifications should be displayed by default). + * + * The NSString objects of these arrays will correspond to the + * notificationName: parameter passed in + * +[GrowlApplicationBridge + * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. + * + * The dictionary should have the required key object pairs: + * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects + * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects + * + * The dictionary may have the following key object pairs: + * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name + * + * You do not need to implement this method if you have an auto-discoverable + * plist file in your app bundle. (XXX refer to more information on that) + * + * @result The NSDictionary to use for registration. + */ +- (NSDictionary *) registrationDictionaryForGrowl; + +/*! + * @method applicationNameForGrowl + * @abstract Return the name of this application which will be used for Growl bookkeeping. + * @discussion This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * You do not need to implement this method if you are providing the + * application name elsewhere, meaning in an auto-discoverable plist file in + * your app bundle (XXX refer to more information on that) or in the result + * of -registrationDictionaryForGrowl. + * + * @result The name of the application using Growl. + */ +- (NSString *) applicationNameForGrowl; + +/*! + * @method applicationIconForGrowl + * @abstract Return the NSImage to treat as the application icon. + * @discussion The delegate may optionally return an NSImage + * object to use as the application icon. If this method is not implemented, + * {{{-applicationIconDataForGrowl}}} is tried. If that method is not + * implemented, the application's own icon is used. Neither method is + * generally needed. + * @result The NSImage to treat as the application icon. + */ +- (NSImage *) applicationIconForGrowl; + +/*! + * @method applicationIconDataForGrowl + * @abstract Return the NSData to treat as the application icon. + * @discussion The delegate may optionally return an NSData + * object to use as the application icon; if this is not implemented, the + * application's own icon is used. This is not generally needed. + * @result The NSData to treat as the application icon. + * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. + */ +- (NSData *) applicationIconDataForGrowl; + +/*! + * @method growlIsReady + * @abstract Informs the delegate that Growl has launched. + * @discussion Informs the delegate that Growl (specifically, the + * GrowlHelperApp) was launched successfully. The application can take actions + * with the knowledge that Growl is installed and functional. + */ +- (void) growlIsReady; + +/*! + * @method growlNotificationWasClicked: + * @abstract Informs the delegate that a Growl notification was clicked. + * @discussion Informs the delegate that a Growl notification was clicked. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationWasClicked:(id)clickContext; + +/*! + * @method growlNotificationTimedOut: + * @abstract Informs the delegate that a Growl notification timed out. + * @discussion Informs the delegate that a Growl notification timed out. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationTimedOut:(id)clickContext; + +@end + +#pragma mark - +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. + * @discussion The methods in this informal protocol will only be called if + * implemented by the delegate. They allow greater control of the information + * presented to the user when installing or upgrading Growl from within your + * application when using Growl-WithInstaller.framework. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + +/*! + * @method growlInstallationWindowTitle + * @abstract Return the title of the installation window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlInstallationWindowTitle; + +/*! + * @method growlUpdateWindowTitle + * @abstract Return the title of the upgrade window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlUpdateWindowTitle; + +/*! + * @method growlInstallationInformation + * @abstract Return the information to display when installing. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation of what Growl is and what it can do in your application. It + * should probably note that no download is required to install. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlInstallationInformation; + +/*! + * @method growlUpdateInformation + * @abstract Return the information to display when upgrading. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation that an updated version of Growl is included in your + * application and no download is required. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlUpdateInformation; + +@end + +//private +@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) ++ (void) _userChoseNotToInstallGrowl; +@end + +#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlDefines.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlDefines.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/GrowlDefines.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,348 @@ +// +// GrowlDefines.h +// + +#ifndef _GROWLDEFINES_H +#define _GROWLDEFINES_H + +#ifdef __OBJC__ +#define XSTR(x) (@x) +#define STRING_TYPE NSString * +#else +#define XSTR CFSTR +#define STRING_TYPE CFStringRef +#endif + +/*! @header GrowlDefines.h + * @abstract Defines all the notification keys. + * @discussion Defines all the keys used for registration with Growl and for + * Growl notifications. + * + * Most applications should use the functions or methods of Growl.framework + * instead of posting notifications such as those described here. + * @updated 2004-01-25 + */ + +// UserInfo Keys for Registration +#pragma mark UserInfo Keys for Registration + +/*! @group Registration userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. + * @discussion The values of these keys describe the application and the + * notifications it may post. + * + * Your application must register with Growl before it can post Growl + * notifications (and have them not be ignored). However, as of Growl 0.6, + * posting GROWL_APP_REGISTRATION notifications directly is no longer the + * preferred way to register your application. Your application should instead + * use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ + +/*! @defined GROWL_APP_NAME + * @abstract The name of your application. + * @discussion The name of your application. This should remain stable between + * different versions and incarnations of your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + */ +#define GROWL_APP_NAME XSTR("ApplicationName") +/*! @defined GROWL_APP_ID + * @abstract The bundle identifier of your application. + * @discussion The bundle identifier of your application. This key should + * be unique for your application while there may be several applications + * with the same GROWL_APP_NAME. + * This key is optional. + */ +#define GROWL_APP_ID XSTR("ApplicationId") +/*! @defined GROWL_APP_ICON + * @abstract The image data for your application's icon. + * @discussion Image data representing your application's icon. This may be + * superimposed on a notification icon as a badge, used as the notification + * icon when a notification-specific icon is not supplied, or ignored + * altogether, depending on the display. Must be in a format supported by + * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_APP_ICON XSTR("ApplicationIcon") +/*! @defined GROWL_NOTIFICATIONS_DEFAULT + * @abstract The array of notifications to turn on by default. + * @discussion These are the names of the notifications that should be enabled + * by default when your application registers for the first time. If your + * application reregisters, Growl will look here for any new notification + * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. + */ +#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") +/*! @defined GROWL_NOTIFICATIONS_ALL + * @abstract The array of all notifications your application can send. + * @discussion These are the names of all of the notifications that your + * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good + * notification names. + */ +#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") +/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS + * @abstract A dictionary of human-readable names for your notifications. + * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL + * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. + * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. + * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. + * + * This key is optional. + */ +#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") +/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS +* @abstract A dictionary of descriptions of _when_ each notification occurs +* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are +* descriptions of _when_ each notification occurs, such as "You received a new mail message" or +* "A file finished downloading". +* +* This key is optional. +*/ +#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") + +/*! @defined GROWL_TICKET_VERSION + * @abstract The version of your registration ticket. + * @discussion Include this key in a ticket plist file that you put in your + * application bundle for auto-discovery. The current ticket version is 1. + */ +#define GROWL_TICKET_VERSION XSTR("TicketVersion") +// UserInfo Keys for Notifications +#pragma mark UserInfo Keys for Notifications + +/*! @group Notification userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. + * @discussion The values of these keys describe the content of a Growl + * notification. + * + * Not all of these keys are supported by all displays. Only the name, title, + * and description of a notification are universal. Most of the built-in + * displays do support all of these keys, and most other visual displays + * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays + * support only textual data. + */ + +/*! @defined GROWL_NOTIFICATION_NAME + * @abstract The name of the notification. + * @discussion The name of the notification. Note that if you do not define + * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name + * will the one displayed within the Growl preference pane and should be human-readable. + */ +#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") +/*! @defined GROWL_NOTIFICATION_TITLE + * @abstract The title to display in the notification. + * @discussion The title of the notification. Should be very brief. + * The title usually says what happened, e.g. "Download complete". + */ +#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") +/*! @defined GROWL_NOTIFICATION_DESCRIPTION + * @abstract The description to display in the notification. + * @discussion The description should be longer and more verbose than the title. + * The description usually tells the subject of the action, + * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". + */ +#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") +/*! @defined GROWL_NOTIFICATION_ICON + * @discussion Image data for the notification icon. Must be in a format + * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") +/*! @defined GROWL_NOTIFICATION_APP_ICON + * @discussion Image data for the application icon, in case GROWL_APP_ICON does + * not apply for some reason. Must be in a format supported by NSImage, such + * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") +/*! @defined GROWL_NOTIFICATION_PRIORITY + * @discussion The priority of the notification as an integer number from + * -2 to +2 (+2 being highest). + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") +/*! @defined GROWL_NOTIFICATION_STICKY + * @discussion A Boolean number controlling whether the notification is sticky. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") +/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT + * @abstract Identifies which notification was clicked. + * @discussion An identifier for the notification for clicking purposes. + * + * This will be passed back to the application when the notification is + * clicked. It must be plist-encodable (a data, dictionary, array, number, or + * string object), and it should be unique for each notification you post. + * A good click context would be a UUID string returned by NSProcessInfo or + * CFUUID. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") + +/*! @defined GROWL_DISPLAY_PLUGIN + * @discussion The name of a display plugin which should be used for this notification. + * Optional. If this key is not set or the specified display plugin does not + * exist, the display plugin stored in the application ticket is used. This key + * allows applications to use different default display plugins for their + * notifications. The user can still override those settings in the preference + * pane. + */ +#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") + +/*! @defined GROWL_NOTIFICATION_IDENTIFIER + * @abstract An identifier for the notification for coalescing purposes. + * Notifications with the same identifier fall into the same class; only + * the last notification of a class is displayed on the screen. If a + * notification of the same class is currently being displayed, it is + * replaced by this notification. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") + +/*! @defined GROWL_APP_PID + * @abstract The process identifier of the process which sends this + * notification. If this field is set, the application will only receive + * clicked and timed out notifications which originate from this process. + * + * Optional. + */ +#define GROWL_APP_PID XSTR("ApplicationPID") + +/*! @defined GROWL_NOTIFICATION_PROGRESS +* @abstract If this key is set, it should contain a double value wrapped +* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). +* If this is key is not set, no progress bar is shown. +* +* Optional. Not supported by all display plugins. +*/ +#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") + +// Notifications +#pragma mark Notifications + +/*! @group Notification names */ +/* @abstract Names of distributed notifications used by Growl. + * @discussion These are notifications used by applications (directly or + * indirectly) to interact with Growl, and by Growl for interaction between + * its components. + * + * Most of these should no longer be used in Growl 0.6 and later, in favor of + * Growl.framework's GrowlApplicationBridge APIs. + */ + +/*! @defined GROWL_APP_REGISTRATION + * @abstract The distributed notification for registering your application. + * @discussion This is the name of the distributed notification that can be + * used to register applications with Growl. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_APP_NAME
  • + *
  • GROWL_APP_ICON
  • + *
  • GROWL_NOTIFICATIONS_ALL
  • + *
  • GROWL_NOTIFICATIONS_DEFAULT
  • + *
+ * + * No longer recommended as of Growl 0.6. An alternate method of registering + * is to use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ +#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") +/*! @defined GROWL_APP_REGISTRATION_CONF + * @abstract The distributed notification for confirming registration. + * @discussion The name of the distributed notification sent to confirm the + * registration. Used by the Growl preference pane. Your application probably + * does not need to use this notification. + */ +#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") +/*! @defined GROWL_NOTIFICATION + * @abstract The distributed notification for Growl notifications. + * @discussion This is what it all comes down to. This is the name of the + * distributed notification that your application posts to actually send a + * Growl notification. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_NOTIFICATION_NAME (required)
  • + *
  • GROWL_NOTIFICATION_TITLE (required)
  • + *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • + *
  • GROWL_NOTIFICATION_ICON
  • + *
  • GROWL_NOTIFICATION_APP_ICON
  • + *
  • GROWL_NOTIFICATION_PRIORITY
  • + *
  • GROWL_NOTIFICATION_STICKY
  • + *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • + *
  • GROWL_APP_NAME (required)
  • + *
+ * + * No longer recommended as of Growl 0.6. Three alternate methods of posting + * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and + * Growl_PostNotification. + */ +#define GROWL_NOTIFICATION XSTR("GrowlNotification") +/*! @defined GROWL_SHUTDOWN +* @abstract The distributed notification name that tells Growl to shutdown. +* @discussion The Growl preference pane posts this notification when the +* "Stop Growl" button is clicked. +*/ +#define GROWL_SHUTDOWN XSTR("GrowlShutdown") +/*! @defined GROWL_PING + * @abstract A distributed notification to check whether Growl is running. + * @discussion This is used by the Growl preference pane. If it receives a + * GROWL_PONG, the preference pane takes this to mean that Growl is running. + */ +#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") +/*! @defined GROWL_PONG + * @abstract The distributed notification sent in reply to GROWL_PING. + * @discussion GrowlHelperApp posts this in reply to GROWL_PING. + */ +#define GROWL_PONG XSTR("What Do You Want From Me, Woman") +/*! @defined GROWL_IS_READY + * @abstract The distributed notification sent when Growl starts up. + * @discussion GrowlHelperApp posts this when it has begin listening on all of + * its sources for new notifications. GrowlApplicationBridge (in + * Growl.framework), upon receiving this notification, reregisters using the + * registration dictionary supplied by its delegate. + */ +#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") +/*! @defined GROWL_NOTIFICATION_CLICKED + * @abstract The distributed notification sent when a supported notification is clicked. + * @discussion When a Growl notification with a click context is clicked on by + * the user, Growl posts this distributed notification. + * The GrowlApplicationBridge responds to this notification by calling a + * callback in its delegate. + */ +#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") +#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") + +/*! @group Other symbols */ +/* Symbols which don't fit into any of the other categories. */ + +/*! @defined GROWL_KEY_CLICKED_CONTEXT + * @abstract Used internally as the key for the clickedContext passed over DNC. + * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the + * click context that was supplied in the original notification. + */ +#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") +/*! @defined GROWL_REG_DICT_EXTENSION + * @abstract The filename extension for registration dictionaries. + * @discussion The GrowlApplicationBridge in Growl.framework registers with + * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) + * and opening it in the GrowlHelperApp. This happens whether or not Growl is + * running; if it was stopped, it quits immediately without listening for + * notifications. + */ +#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") + + +#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" + +#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/Growl.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/Growl.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Headers/Growl.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,6 @@ +#include "GrowlDefines.h" + +#ifdef __OBJC__ +# include "GrowlApplicationBridge.h" +#endif +#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Resources/Info.plist unison-2.48.3/uimac14/Frameworks/Growl.framework/Resources/Info.plist --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Resources/Info.plist 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + Growl + CFBundleIdentifier + com.growl.growlframework + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.2.1 + CFBundleSignature + GRRR + CFBundleVersion + 1.2.1 + NSPrincipalClass + GrowlApplicationBridge + + Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Growl differ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,780 @@ +// +// GrowlApplicationBridge-Carbon.h +// Growl +// +// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. +// Based on GrowlApplicationBridge.h by Evan Schoenberg. +// This source code is in the public domain. You may freely link it into any +// program. +// + +#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ +#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ + +#include +#include + +#ifndef GROWL_EXPORT +#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE +#endif + +/*! @header GrowlApplicationBridge-Carbon.h + * @abstract Declares an API that Carbon applications can use to interact with Growl. + * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX + * to Growl (such as your application's name and what notifications it may + * post) and to provide information to your application (such as that Growl + * is listening for notifications or that a notification has been clicked). + * + * You can set the Growldelegate with Growl_SetDelegate and find out the + * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more + * information about the delegate. + */ + +__BEGIN_DECLS + +/*! @struct Growl_Delegate + * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. + * @discussion The Growl delegate provides your interface to + * GrowlApplicationBridge. When GrowlApplicationBridge needs information about + * your application, it looks for it in the delegate; when Growl or the user + * does something that you might be interested in, GrowlApplicationBridge + * looks for a callback in the delegate and calls it if present + * (meaning, if it is not NULL). + * XXX on all of that + * @field size The size of the delegate structure. + * @field applicationName The name of your application. + * @field registrationDictionary A dictionary describing your application and the notifications it can send out. + * @field applicationIconData Your application's icon. + * @field growlInstallationWindowTitle The title of the installation window. + * @field growlInstallationInformation Text to display in the installation window. + * @field growlUpdateWindowTitle The title of the update window. + * @field growlUpdateInformation Text to display in the update window. + * @field referenceCount A count of owners of the delegate. + * @field retain Called when GrowlApplicationBridge receives this delegate. + * @field release Called when GrowlApplicationBridge no longer needs this delegate. + * @field growlIsReady Called when GrowlHelperApp is listening for notifications. + * @field growlNotificationWasClicked Called when a Growl notification is clicked. + * @field growlNotificationTimedOut Called when a Growl notification timed out. + */ +struct Growl_Delegate { + /* @discussion This should be sizeof(struct Growl_Delegate). + */ + size_t size; + + /*All of these attributes are optional. + *Optional attributes can be NULL; required attributes that + * are NULL cause setting the Growl delegate to fail. + *XXX - move optional/required status into the discussion for each field + */ + + /* This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * This can be NULL if it is provided elsewhere, namely in an + * auto-discoverable plist file in your app bundle + * (XXX refer to more information on that) or in registrationDictionary. + */ + CFStringRef applicationName; + + /* + * Must contain at least these keys: + * GROWL_NOTIFICATIONS_ALL (CFArray): + * Contains the names of all notifications your application may post. + * + * Can also contain these keys: + * GROWL_NOTIFICATIONS_DEFAULT (CFArray): + * Names of notifications that should be enabled by default. + * If omitted, GROWL_NOTIFICATIONS_ALL will be used. + * GROWL_APP_NAME (CFString): + * Same as the applicationName member of this structure. + * If both are present, the applicationName member shall prevail. + * If this key is present, you may omit applicationName (set it to NULL). + * GROWL_APP_ICON (CFData): + * Same as the iconData member of this structure. + * If both are present, the iconData member shall prevail. + * If this key is present, you may omit iconData (set it to NULL). + * + * If you change the contents of this dictionary after setting the delegate, + * be sure to call Growl_Reregister. + * + * This can be NULL if you have an auto-discoverable plist file in your app + * bundle. (XXX refer to more information on that) + */ + CFDictionaryRef registrationDictionary; + + /* The data can be in any format supported by NSImage. As of + * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and + * PICT formats. + * + * If this is not supplied, Growl will look up your application's icon by + * its application name. + */ + CFDataRef applicationIconData; + + /* Installer display attributes + * + * These four attributes are used by the Growl installer, if this framework + * supports it. + * For any of these being NULL, a localised default will be + * supplied. + */ + + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If Growl is not installed, it will + * be displayed to the user as an explanation of what Growl is and what + * it can do in your application. + * It should probably note that no download is required to install. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationInformation; + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If an older version of Growl is + * installed, it will be displayed to the user as an explanation that an + * updated version of Growl is included in your application and + * no download is required. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateInformation; + + /* This member is provided for use by your retain and release + * callbacks (see below). + * + * GrowlApplicationBridge never directly uses this member. Instead, it + * calls your retain callback (if non-NULL) and your release + * callback (if non-NULL). + */ + unsigned referenceCount; + + //Functions. Currently all of these are optional (any of them can be NULL). + + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRetain and -[NSObject retain].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member would be + * NULL. + * @result A delegate to which GrowlApplicationBridge holds a reference. + */ + void *(*retain)(void *); + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRelease and + * -[NSObject release].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member might be + * free(3). + */ + void (*release)(void *); + + /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was + * launched successfully (or was already running). The application can + * take actions with the knowledge that Growl is installed and functional. + */ + void (*growlIsReady)(void); + + /* Informs the delegate that a Growl notification was clicked. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); + + /* Informs the delegate that a Growl notification timed out. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); +}; + +/*! @struct Growl_Notification + * @abstract Structure describing a Growl notification. + * @discussion XXX + * @field size The size of the notification structure. + * @field name Identifies the notification. + * @field title Short synopsis of the notification. + * @field description Additional text. + * @field iconData An icon for the notification. + * @field priority An indicator of the notification's importance. + * @field reserved Bits reserved for future usage. + * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. + * @field clickContext An identifier to be passed to your click callback when a notification is clicked. + * @field clickCallback A callback to call when the notification is clicked. + */ +struct Growl_Notification { + /* This should be sizeof(struct Growl_Notification). + */ + size_t size; + + /* The notification name distinguishes one type of + * notification from another. The name should be human-readable, as it + * will be displayed in the Growl preference pane. + * + * The name is used in the GROWL_NOTIFICATIONS_ALL and + * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and + * in this member of the Growl_Notification structure. + */ + CFStringRef name; + + /* A notification's title describes the notification briefly. + * It should be easy to read quickly by the user. + */ + CFStringRef title; + + /* The description supplements the title with more + * information. It is usually longer and sometimes involves a list of + * subjects. For example, for a 'Download complete' notification, the + * description might have one filename per line. GrowlMail in Growl 0.6 + * uses a description of '%d new mail(s)' (formatted with the number of + * messages). + */ + CFStringRef description; + + /* The notification icon usually indicates either what + * happened (it may have the same icon as e.g. a toolbar item that + * started the process that led to the notification), or what it happened + * to (e.g. a document icon). + * + * The icon data is optional, so it can be NULL. In that + * case, the application icon is used alone. Not all displays support + * icons. + * + * The data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form + * ats. + */ + CFDataRef iconData; + + /* Priority is new in Growl 0.6, and is represented as a + * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low + * priority, and +2 is Very High priority. + * + * Not all displays support priority. If you do not wish to assign a + * priority to your notification, assign 0. + */ + signed int priority; + + /* These bits are not used in Growl 0.6. Set them to 0. + */ + unsigned reserved: 31; + + /* When the sticky bit is clear, in most displays, + * notifications disappear after a certain amount of time. Sticky + * notifications, however, remain on-screen until the user dismisses them + * explicitly, usually by clicking them. + * + * Sticky notifications were introduced in Growl 0.6. Most notifications + * should not be sticky. Not all displays support sticky notifications, + * and the user may choose in Growl's preference pane to force the + * notification to be sticky or non-sticky, in which case the sticky bit + * in the notification will be ignored. + */ + unsigned isSticky: 1; + + /* If this is not NULL, and your click callback + * is not NULL either, this will be passed to the callback + * when your notification is clicked by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + */ + CFPropertyListRef clickContext; + + /* If this is not NULL, it will be called instead + * of the Growl delegate's click callback when clickContext is + * non-NULL and the notification is clicked on by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + * + * The per-notification click callback is not yet supported as of Growl + * 0.7. + */ + void (*clickCallback)(CFPropertyListRef clickContext); + + CFStringRef identifier; +}; + +#pragma mark - +#pragma mark Easy initialisers + +/*! @defined InitGrowlDelegate + * @abstract Callable macro. Initializes a Growl delegate structure to defaults. + * @discussion Call with a pointer to a struct Growl_Delegate. All of the + * members of the structure will be set to 0 or NULL, except for + * size (which will be set to sizeof(struct Growl_Delegate)) and + * referenceCount (which will be set to 1). + */ +#define InitGrowlDelegate(delegate) \ + do { \ + if (delegate) { \ + (delegate)->size = sizeof(struct Growl_Delegate); \ + (delegate)->applicationName = NULL; \ + (delegate)->registrationDictionary = NULL; \ + (delegate)->applicationIconData = NULL; \ + (delegate)->growlInstallationWindowTitle = NULL; \ + (delegate)->growlInstallationInformation = NULL; \ + (delegate)->growlUpdateWindowTitle = NULL; \ + (delegate)->growlUpdateInformation = NULL; \ + (delegate)->referenceCount = 1U; \ + (delegate)->retain = NULL; \ + (delegate)->release = NULL; \ + (delegate)->growlIsReady = NULL; \ + (delegate)->growlNotificationWasClicked = NULL; \ + (delegate)->growlNotificationTimedOut = NULL; \ + } \ + } while(0) + +/*! @defined InitGrowlNotification + * @abstract Callable macro. Initializes a Growl notification structure to defaults. + * @discussion Call with a pointer to a struct Growl_Notification. All of + * the members of the structure will be set to 0 or NULL, except + * for size (which will be set to + * sizeof(struct Growl_Notification)). + */ +#define InitGrowlNotification(notification) \ + do { \ + if (notification) { \ + (notification)->size = sizeof(struct Growl_Notification); \ + (notification)->name = NULL; \ + (notification)->title = NULL; \ + (notification)->description = NULL; \ + (notification)->iconData = NULL; \ + (notification)->priority = 0; \ + (notification)->reserved = 0U; \ + (notification)->isSticky = false; \ + (notification)->clickContext = NULL; \ + (notification)->clickCallback = NULL; \ + (notification)->identifier = NULL; \ + } \ + } while(0) + +#pragma mark - +#pragma mark Public API + +// @functiongroup Managing the Growl delegate + +/*! @function Growl_SetDelegate + * @abstract Replaces the current Growl delegate with a new one, or removes + * the Growl delegate. + * @param newDelegate + * @result Returns false and does nothing else if a pointer that was passed in + * is unsatisfactory (because it is non-NULL, but at least one + * required member of it is NULL). Otherwise, sets or unsets the + * delegate and returns true. + * @discussion When newDelegate is non-NULL, sets + * the delegate to newDelegate. When it is NULL, + * the current delegate will be unset, and no delegate will be in place. + * + * It is legal for newDelegate to be the current delegate; + * nothing will happen, and Growl_SetDelegate will return true. It is also + * legal for it to be NULL, as described above; again, it will + * return true. + * + * If there was a delegate in place before the call, Growl_SetDelegate will + * call the old delegate's release member if it was non-NULL. If + * newDelegate is non-NULL, Growl_SetDelegate will + * call newDelegate->retain, and set the delegate to its return + * value. + * + * If you are using Growl-WithInstaller.framework, and an older version of + * Growl is installed on the user's system, the user will automatically be + * prompted to update. + * + * GrowlApplicationBridge currently does not copy this structure, nor does it + * retain any of the CF objects in the structure (it regards the structure as + * a container that retains the objects when they are added and releases them + * when they are removed or the structure is destroyed). Also, + * GrowlApplicationBridge currently does not modify any member of the + * structure, except possibly the referenceCount by calling the retain and + * release members. + */ +GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); + +/*! @function Growl_GetDelegate + * @abstract Returns the current Growl delegate, if any. + * @result The current Growl delegate. + * @discussion Returns the last pointer passed into Growl_SetDelegate, or + * NULL if no such call has been made. + * + * This function follows standard Core Foundation reference-counting rules. + * Because it is a Get function, not a Copy function, it will not retain the + * delegate on your behalf. You are responsible for retaining and releasing + * the delegate as needed. + */ +GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); + +#pragma mark - + +// @functiongroup Posting Growl notifications + +/*! @function Growl_PostNotification + * @abstract Posts a Growl notification. + * @param notification The notification to post. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * NULL (or 0 or false as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. + * If the user cancels, this function will have no effect until the next + * application session, at which time when it is called the user will be + * prompted again. The user is also given the option to not be prompted again. + * If the user does choose to install Growl, the requested notification will + * be displayed once Growl is installed and running. + */ +GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); + +/*! @function Growl_PostNotificationWithDictionary +* @abstract Notifies using a userInfo dictionary suitable for passing to +* CFDistributedNotificationCenter. +* @param userInfo The dictionary to notify with. +* @discussion Before Growl 0.6, your application would have posted +* notifications using CFDistributedNotificationCenter by creating a userInfo +* dictionary with the notification data. This had the advantage of allowing +* you to add other data to the dictionary for programs besides Growl that +* might be listening. +* +* This function allows you to use such dictionaries without being restricted +* to using CFDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. +*/ +GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); + +/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext + * @abstract Posts a Growl notification using parameter values. + * @param title The title of the notification. + * @param description The description of the notification. + * @param notificationName The name of the notification as listed in the + * registration dictionary. + * @param iconData Data representing a notification icon. Can be NULL. + * @param priority The priority of the notification (-2 to +2, with -2 + * being Very Low and +2 being Very High). + * @param isSticky If true, requests that this notification wait for a + * response from the user. + * @param clickContext An object to pass to the clickCallback, if any. Can + * be NULL, in which case the clickCallback is not called. + * @discussion Creates a temporary Growl_Notification, fills it out with the + * supplied information, and calls Growl_PostNotification on it. + * See struct Growl_Notification and Growl_PostNotification for more + * information. + * + * The icon data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. + */ +GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( + /*inhale*/ + CFStringRef title, + CFStringRef description, + CFStringRef notificationName, + CFDataRef iconData, + signed int priority, + Boolean isSticky, + CFPropertyListRef clickContext); + +#pragma mark - + +// @functiongroup Registering + +/*! @function Growl_RegisterWithDictionary + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this function with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass NULL, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this function, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This function is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This function was introduced in Growl.framework 0.7. + * @result false if registration failed (e.g. if Growl isn't installed). + */ +GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); + +/*! @function Growl_Reregister + * @abstract Updates your registration with Growl. + * @discussion If your application changes the contents of the + * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the + * Growl delegate, or if it changes the value of that member, or if it + * changes the contents of its auto-discoverable plist, call this function + * to have Growl update its registration information for your application. + * + * Otherwise, this function does not normally need to be called. If you're + * using a delegate, your application will be registered when you set the + * delegate if both the delegate and its registrationDictionary member are + * non-NULL. + * + * This function is now implemented using + * Growl_RegisterWithDictionary. + */ +GROWL_EXPORT void Growl_Reregister(void); + +#pragma mark - + +/*! @function Growl_SetWillRegisterWhenGrowlIsReady + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * growlIsReady callback, if it has one). If this function is + * called with true, one of those tasks will be to reregister + * with Growl (in the manner of Growl_Reregister). + * + * This attribute is automatically set back to false + * (the default) after every GROWL_IS_READY notification. + * @param flag true if you want GrowlApplicationBridge to register with + * Growl when next it is ready; false if not. + */ +GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); +/*! @function Growl_WillRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result true if GrowlApplicationBridge will register with + * Growl when next it posts GROWL_IS_READY; false if not. + */ +GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); + +#pragma mark - + +// @functiongroup Obtaining registration dictionaries + +/*! @function Growl_CopyRegistrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * registrationDictionary member is NULL, this + * function returns NULL. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); + +/*! @function Growl_CopyRegistrationDictionaryFromBundle + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This function looks in a bundle for an auto-discoverable + * registration dictionary file using CFBundleCopyResourceURL. + * If it finds one, it loads the file using CFPropertyList and + * returns the result. + * + * If you pass NULL as the bundle, the main bundle is examined. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary: or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); + +/*! @function Growl_CreateBestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This function creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge examines the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this function returns NULL. + * + * Second, GrowlApplicationBridge calls + * Growl_CreateRegistrationDictionaryByFillingInDictionary with + * whatever dictionary was obtained. The result of that function is the + * result of this function. + * + * GrowlApplicationBridge uses this function when you call + * Growl_SetDelegate, or when you call + * Growl_RegisterWithDictionary with NULL. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); + +#pragma mark - + +// @functiongroup Filling in registration dictionaries + +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If NULL, any missing keys are filled in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); + +#pragma mark - + +// @functiongroup Querying Growl's status + +/*! @function Growl_IsInstalled + * @abstract Determines whether the Growl prefpane and its helper app are + * installed. + * @result Returns true if Growl is installed, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsInstalled(void); + +/*! @function Growl_IsRunning + * @abstract Cycles through the process list to find whether GrowlHelperApp + * is running. + * @result Returns true if Growl is running, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsRunning(void); + +#pragma mark - + +// @functiongroup Launching Growl + +/*! @typedef GrowlLaunchCallback + * @abstract Callback to notify you that Growl is running. + * @param context The context pointer passed to Growl_LaunchIfInstalled. + * @discussion Growl_LaunchIfInstalled calls this callback function if Growl + * was already running or if it launched Growl successfully. + */ +typedef void (*GrowlLaunchCallback)(void *context); + +/*! @function Growl_LaunchIfInstalled + * @abstract Launches GrowlHelperApp if it is not already running. + * @param callback A callback function which will be called if Growl was successfully + * launched or was already running. Can be NULL. + * @param context The context pointer to pass to the callback. Can be NULL. + * @result Returns true if Growl was successfully launched or was already + * running; returns false and does not call the callback otherwise. + * @discussion Returns true and calls the callback (if the callback is not + * NULL) if the Growl helper app began launching or was already + * running. Returns false and performs no other action if Growl could not be + * launched (e.g. because the Growl preference pane is not properly installed). + * + * If Growl_CreateBestRegistrationDictionary returns + * non-NULL, this function will register with Growl atomically. + * + * The callback should take a single argument; this is to allow applications + * to have context-relevant information passed back. It is perfectly + * acceptable for context to be NULL. The callback itself can be + * NULL if you don't want one. + */ +GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); + +#pragma mark - +#pragma mark Constants + +/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER + * @abstract The CFBundleIdentifier of the Growl preference pane bundle. + * @discussion GrowlApplicationBridge uses this to determine whether Growl is + * currently installed, by searching for the Growl preference pane. Your + * application probably does not need to use this macro itself. + */ +#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER +#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") +#endif + +__END_DECLS + +#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,575 @@ +// +// GrowlApplicationBridge.h +// Growl +// +// Created by Evan Schoenberg on Wed Jun 16 2004. +// Copyright 2004-2006 The Growl Project. All rights reserved. +// + +/*! + * @header GrowlApplicationBridge.h + * @abstract Defines the GrowlApplicationBridge class. + * @discussion This header defines the GrowlApplicationBridge class as well as + * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. + */ + +#ifndef __GrowlApplicationBridge_h__ +#define __GrowlApplicationBridge_h__ + +#import +#import +#import "GrowlDefines.h" + +//Forward declarations +@protocol GrowlApplicationBridgeDelegate; + +//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) +#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @class GrowlApplicationBridge + * @abstract A class used to interface with Growl. + * @discussion This class provides a means to interface with Growl. + * + * Currently it provides a way to detect if Growl is installed and launch the + * GrowlHelperApp if it's not already running. + */ +@interface GrowlApplicationBridge : NSObject { + +} + +/*! + * @method isGrowlInstalled + * @abstract Detects whether Growl is installed. + * @discussion Determines if the Growl prefpane and its helper app are installed. + * @result Returns YES if Growl is installed, NO otherwise. + */ ++ (BOOL) isGrowlInstalled; + +/*! + * @method isGrowlRunning + * @abstract Detects whether GrowlHelperApp is currently running. + * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. + * @result Returns YES if GrowlHelperApp is running, NO otherwise. + */ ++ (BOOL) isGrowlRunning; + +#pragma mark - + +/*! + * @method setGrowlDelegate: + * @abstract Set the object which will be responsible for providing and receiving Growl information. + * @discussion This must be called before using GrowlApplicationBridge. + * + * The methods in the GrowlApplicationBridgeDelegate protocol are required + * and return the basic information needed to register with Growl. + * + * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol + * informal protocol are individually optional. They provide a greater + * degree of interaction between the application and growl such as informing + * the application when one of its Growl notifications is clicked by the user. + * + * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol + * informal protocol are individually optional and are only applicable when + * using the Growl-WithInstaller.framework which allows for automated Growl + * installation. + * + * When this method is called, data will be collected from inDelegate, Growl + * will be launched if it is not already running, and the application will be + * registered with Growl. + * + * If using the Growl-WithInstaller framework, if Growl is already installed + * but this copy of the framework has an updated version of Growl, the user + * will be prompted to update automatically. + * + * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. + */ ++ (void) setGrowlDelegate:(NSObject *)inDelegate; + +/*! + * @method growlDelegate + * @abstract Return the object responsible for providing and receiving Growl information. + * @discussion See setGrowlDelegate: for details. + * @result The Growl delegate. + */ ++ (NSObject *) growlDelegate; + +#pragma mark - + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext; + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext + identifier:(NSString *)identifier; + +/*! @method notifyWithDictionary: + * @abstract Notifies using a userInfo dictionary suitable for passing to + * NSDistributedNotificationCenter. + * @param userInfo The dictionary to notify with. + * @discussion Before Growl 0.6, your application would have posted + * notifications using NSDistributedNotificationCenter by + * creating a userInfo dictionary with the notification data. This had the + * advantage of allowing you to add other data to the dictionary for programs + * besides Growl that might be listening. + * + * This method allows you to use such dictionaries without being restricted + * to using NSDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. + */ ++ (void) notifyWithDictionary:(NSDictionary *)userInfo; + +#pragma mark - + +/*! @method registerWithDictionary: + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this method with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass nil, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this method, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This method is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * -growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This method was introduced in Growl.framework 0.7. + */ ++ (BOOL) registerWithDictionary:(NSDictionary *)regDict; + +/*! @method reregisterGrowlNotifications + * @abstract Reregister the notifications for this application. + * @discussion This method does not normally need to be called. If your + * application changes what notifications it is registering with Growl, call + * this method to have the Growl delegate's + * -registrationDictionaryForGrowl method called again and the + * Growl registration information updated. + * + * This method is now implemented using -registerWithDictionary:. + */ ++ (void) reregisterGrowlNotifications; + +#pragma mark - + +/*! @method setWillRegisterWhenGrowlIsReady: + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * -growlIsReady method, if it has one). If this method is + * called with YES, one of those tasks will be to reregister + * with Growl (in the manner of -reregisterGrowlNotifications). + * + * This attribute is automatically set back to NO (the default) + * after every GROWL_IS_READY notification. + * @param flag YES if you want GrowlApplicationBridge to register with + * Growl when next it is ready; NO if not. + */ ++ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; +/*! @method willRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result YES if GrowlApplicationBridge will register with Growl + * when next it posts GROWL_IS_READY; NO if not. + */ ++ (BOOL) willRegisterWhenGrowlIsReady; + +#pragma mark - + +/*! @method registrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * -registrationDictionaryForGrowl method returns + * nil, this method returns nil. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromDelegate; + +/*! @method registrationDictionaryFromBundle: + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This method looks in a bundle for an auto-discoverable + * registration dictionary file using -[NSBundle + * pathForResource:ofType:]. If it finds one, it loads the file using + * +[NSDictionary dictionaryWithContentsOfFile:] and returns the + * result. + * + * If you pass nil as the bundle, the main bundle is examined. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; + +/*! @method bestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This method creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge contacts the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this method returns nil. + * + * Second, GrowlApplicationBridge calls + * +registrationDictionaryByFillingInDictionary: with whatever + * dictionary was obtained. The result of that method is the result of this + * method. + * + * GrowlApplicationBridge uses this method when you call + * +setGrowlDelegate:, or when you call + * +registerWithDictionary: with nil. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) bestRegistrationDictionary; + +#pragma mark - + +/*! @method registrationDictionaryByFillingInDictionary: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; +/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If nil, any missing keys are filled in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ ++ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; + ++ (NSDictionary *) frameworkInfoDictionary; +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @protocol GrowlApplicationBridgeDelegate + * @abstract Required protocol for the Growl delegate. + * @discussion The methods in this protocol are required and are called + * automatically as needed by GrowlApplicationBridge. See + * +[GrowlApplicationBridge setGrowlDelegate:]. + * See also GrowlApplicationBridgeDelegate_InformalProtocol. + */ + +@protocol GrowlApplicationBridgeDelegate + +// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. + +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) + * @abstract Methods which may be optionally implemented by the GrowlDelegate. + * @discussion The methods in this informal protocol will only be called if implemented by the delegate. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) + +/*! + * @method registrationDictionaryForGrowl + * @abstract Return the dictionary used to register this application with Growl. + * @discussion The returned dictionary gives Growl the complete list of + * notifications this application will ever send, and it also specifies which + * notifications should be enabled by default. Each is specified by an array + * of NSString objects. + * + * For most applications, these two arrays can be the same (if all sent + * notifications should be displayed by default). + * + * The NSString objects of these arrays will correspond to the + * notificationName: parameter passed in + * +[GrowlApplicationBridge + * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. + * + * The dictionary should have the required key object pairs: + * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects + * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects + * + * The dictionary may have the following key object pairs: + * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name + * + * You do not need to implement this method if you have an auto-discoverable + * plist file in your app bundle. (XXX refer to more information on that) + * + * @result The NSDictionary to use for registration. + */ +- (NSDictionary *) registrationDictionaryForGrowl; + +/*! + * @method applicationNameForGrowl + * @abstract Return the name of this application which will be used for Growl bookkeeping. + * @discussion This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * You do not need to implement this method if you are providing the + * application name elsewhere, meaning in an auto-discoverable plist file in + * your app bundle (XXX refer to more information on that) or in the result + * of -registrationDictionaryForGrowl. + * + * @result The name of the application using Growl. + */ +- (NSString *) applicationNameForGrowl; + +/*! + * @method applicationIconForGrowl + * @abstract Return the NSImage to treat as the application icon. + * @discussion The delegate may optionally return an NSImage + * object to use as the application icon. If this method is not implemented, + * {{{-applicationIconDataForGrowl}}} is tried. If that method is not + * implemented, the application's own icon is used. Neither method is + * generally needed. + * @result The NSImage to treat as the application icon. + */ +- (NSImage *) applicationIconForGrowl; + +/*! + * @method applicationIconDataForGrowl + * @abstract Return the NSData to treat as the application icon. + * @discussion The delegate may optionally return an NSData + * object to use as the application icon; if this is not implemented, the + * application's own icon is used. This is not generally needed. + * @result The NSData to treat as the application icon. + * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. + */ +- (NSData *) applicationIconDataForGrowl; + +/*! + * @method growlIsReady + * @abstract Informs the delegate that Growl has launched. + * @discussion Informs the delegate that Growl (specifically, the + * GrowlHelperApp) was launched successfully. The application can take actions + * with the knowledge that Growl is installed and functional. + */ +- (void) growlIsReady; + +/*! + * @method growlNotificationWasClicked: + * @abstract Informs the delegate that a Growl notification was clicked. + * @discussion Informs the delegate that a Growl notification was clicked. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationWasClicked:(id)clickContext; + +/*! + * @method growlNotificationTimedOut: + * @abstract Informs the delegate that a Growl notification timed out. + * @discussion Informs the delegate that a Growl notification timed out. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationTimedOut:(id)clickContext; + +@end + +#pragma mark - +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. + * @discussion The methods in this informal protocol will only be called if + * implemented by the delegate. They allow greater control of the information + * presented to the user when installing or upgrading Growl from within your + * application when using Growl-WithInstaller.framework. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + +/*! + * @method growlInstallationWindowTitle + * @abstract Return the title of the installation window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlInstallationWindowTitle; + +/*! + * @method growlUpdateWindowTitle + * @abstract Return the title of the upgrade window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlUpdateWindowTitle; + +/*! + * @method growlInstallationInformation + * @abstract Return the information to display when installing. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation of what Growl is and what it can do in your application. It + * should probably note that no download is required to install. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlInstallationInformation; + +/*! + * @method growlUpdateInformation + * @abstract Return the information to display when upgrading. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation that an updated version of Growl is included in your + * application and no download is required. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlUpdateInformation; + +@end + +//private +@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) ++ (void) _userChoseNotToInstallGrowl; +@end + +#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,348 @@ +// +// GrowlDefines.h +// + +#ifndef _GROWLDEFINES_H +#define _GROWLDEFINES_H + +#ifdef __OBJC__ +#define XSTR(x) (@x) +#define STRING_TYPE NSString * +#else +#define XSTR CFSTR +#define STRING_TYPE CFStringRef +#endif + +/*! @header GrowlDefines.h + * @abstract Defines all the notification keys. + * @discussion Defines all the keys used for registration with Growl and for + * Growl notifications. + * + * Most applications should use the functions or methods of Growl.framework + * instead of posting notifications such as those described here. + * @updated 2004-01-25 + */ + +// UserInfo Keys for Registration +#pragma mark UserInfo Keys for Registration + +/*! @group Registration userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. + * @discussion The values of these keys describe the application and the + * notifications it may post. + * + * Your application must register with Growl before it can post Growl + * notifications (and have them not be ignored). However, as of Growl 0.6, + * posting GROWL_APP_REGISTRATION notifications directly is no longer the + * preferred way to register your application. Your application should instead + * use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ + +/*! @defined GROWL_APP_NAME + * @abstract The name of your application. + * @discussion The name of your application. This should remain stable between + * different versions and incarnations of your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + */ +#define GROWL_APP_NAME XSTR("ApplicationName") +/*! @defined GROWL_APP_ID + * @abstract The bundle identifier of your application. + * @discussion The bundle identifier of your application. This key should + * be unique for your application while there may be several applications + * with the same GROWL_APP_NAME. + * This key is optional. + */ +#define GROWL_APP_ID XSTR("ApplicationId") +/*! @defined GROWL_APP_ICON + * @abstract The image data for your application's icon. + * @discussion Image data representing your application's icon. This may be + * superimposed on a notification icon as a badge, used as the notification + * icon when a notification-specific icon is not supplied, or ignored + * altogether, depending on the display. Must be in a format supported by + * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_APP_ICON XSTR("ApplicationIcon") +/*! @defined GROWL_NOTIFICATIONS_DEFAULT + * @abstract The array of notifications to turn on by default. + * @discussion These are the names of the notifications that should be enabled + * by default when your application registers for the first time. If your + * application reregisters, Growl will look here for any new notification + * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. + */ +#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") +/*! @defined GROWL_NOTIFICATIONS_ALL + * @abstract The array of all notifications your application can send. + * @discussion These are the names of all of the notifications that your + * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good + * notification names. + */ +#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") +/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS + * @abstract A dictionary of human-readable names for your notifications. + * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL + * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. + * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. + * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. + * + * This key is optional. + */ +#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") +/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS +* @abstract A dictionary of descriptions of _when_ each notification occurs +* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are +* descriptions of _when_ each notification occurs, such as "You received a new mail message" or +* "A file finished downloading". +* +* This key is optional. +*/ +#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") + +/*! @defined GROWL_TICKET_VERSION + * @abstract The version of your registration ticket. + * @discussion Include this key in a ticket plist file that you put in your + * application bundle for auto-discovery. The current ticket version is 1. + */ +#define GROWL_TICKET_VERSION XSTR("TicketVersion") +// UserInfo Keys for Notifications +#pragma mark UserInfo Keys for Notifications + +/*! @group Notification userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. + * @discussion The values of these keys describe the content of a Growl + * notification. + * + * Not all of these keys are supported by all displays. Only the name, title, + * and description of a notification are universal. Most of the built-in + * displays do support all of these keys, and most other visual displays + * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays + * support only textual data. + */ + +/*! @defined GROWL_NOTIFICATION_NAME + * @abstract The name of the notification. + * @discussion The name of the notification. Note that if you do not define + * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name + * will the one displayed within the Growl preference pane and should be human-readable. + */ +#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") +/*! @defined GROWL_NOTIFICATION_TITLE + * @abstract The title to display in the notification. + * @discussion The title of the notification. Should be very brief. + * The title usually says what happened, e.g. "Download complete". + */ +#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") +/*! @defined GROWL_NOTIFICATION_DESCRIPTION + * @abstract The description to display in the notification. + * @discussion The description should be longer and more verbose than the title. + * The description usually tells the subject of the action, + * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". + */ +#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") +/*! @defined GROWL_NOTIFICATION_ICON + * @discussion Image data for the notification icon. Must be in a format + * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") +/*! @defined GROWL_NOTIFICATION_APP_ICON + * @discussion Image data for the application icon, in case GROWL_APP_ICON does + * not apply for some reason. Must be in a format supported by NSImage, such + * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") +/*! @defined GROWL_NOTIFICATION_PRIORITY + * @discussion The priority of the notification as an integer number from + * -2 to +2 (+2 being highest). + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") +/*! @defined GROWL_NOTIFICATION_STICKY + * @discussion A Boolean number controlling whether the notification is sticky. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") +/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT + * @abstract Identifies which notification was clicked. + * @discussion An identifier for the notification for clicking purposes. + * + * This will be passed back to the application when the notification is + * clicked. It must be plist-encodable (a data, dictionary, array, number, or + * string object), and it should be unique for each notification you post. + * A good click context would be a UUID string returned by NSProcessInfo or + * CFUUID. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") + +/*! @defined GROWL_DISPLAY_PLUGIN + * @discussion The name of a display plugin which should be used for this notification. + * Optional. If this key is not set or the specified display plugin does not + * exist, the display plugin stored in the application ticket is used. This key + * allows applications to use different default display plugins for their + * notifications. The user can still override those settings in the preference + * pane. + */ +#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") + +/*! @defined GROWL_NOTIFICATION_IDENTIFIER + * @abstract An identifier for the notification for coalescing purposes. + * Notifications with the same identifier fall into the same class; only + * the last notification of a class is displayed on the screen. If a + * notification of the same class is currently being displayed, it is + * replaced by this notification. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") + +/*! @defined GROWL_APP_PID + * @abstract The process identifier of the process which sends this + * notification. If this field is set, the application will only receive + * clicked and timed out notifications which originate from this process. + * + * Optional. + */ +#define GROWL_APP_PID XSTR("ApplicationPID") + +/*! @defined GROWL_NOTIFICATION_PROGRESS +* @abstract If this key is set, it should contain a double value wrapped +* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). +* If this is key is not set, no progress bar is shown. +* +* Optional. Not supported by all display plugins. +*/ +#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") + +// Notifications +#pragma mark Notifications + +/*! @group Notification names */ +/* @abstract Names of distributed notifications used by Growl. + * @discussion These are notifications used by applications (directly or + * indirectly) to interact with Growl, and by Growl for interaction between + * its components. + * + * Most of these should no longer be used in Growl 0.6 and later, in favor of + * Growl.framework's GrowlApplicationBridge APIs. + */ + +/*! @defined GROWL_APP_REGISTRATION + * @abstract The distributed notification for registering your application. + * @discussion This is the name of the distributed notification that can be + * used to register applications with Growl. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_APP_NAME
  • + *
  • GROWL_APP_ICON
  • + *
  • GROWL_NOTIFICATIONS_ALL
  • + *
  • GROWL_NOTIFICATIONS_DEFAULT
  • + *
+ * + * No longer recommended as of Growl 0.6. An alternate method of registering + * is to use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ +#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") +/*! @defined GROWL_APP_REGISTRATION_CONF + * @abstract The distributed notification for confirming registration. + * @discussion The name of the distributed notification sent to confirm the + * registration. Used by the Growl preference pane. Your application probably + * does not need to use this notification. + */ +#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") +/*! @defined GROWL_NOTIFICATION + * @abstract The distributed notification for Growl notifications. + * @discussion This is what it all comes down to. This is the name of the + * distributed notification that your application posts to actually send a + * Growl notification. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_NOTIFICATION_NAME (required)
  • + *
  • GROWL_NOTIFICATION_TITLE (required)
  • + *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • + *
  • GROWL_NOTIFICATION_ICON
  • + *
  • GROWL_NOTIFICATION_APP_ICON
  • + *
  • GROWL_NOTIFICATION_PRIORITY
  • + *
  • GROWL_NOTIFICATION_STICKY
  • + *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • + *
  • GROWL_APP_NAME (required)
  • + *
+ * + * No longer recommended as of Growl 0.6. Three alternate methods of posting + * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and + * Growl_PostNotification. + */ +#define GROWL_NOTIFICATION XSTR("GrowlNotification") +/*! @defined GROWL_SHUTDOWN +* @abstract The distributed notification name that tells Growl to shutdown. +* @discussion The Growl preference pane posts this notification when the +* "Stop Growl" button is clicked. +*/ +#define GROWL_SHUTDOWN XSTR("GrowlShutdown") +/*! @defined GROWL_PING + * @abstract A distributed notification to check whether Growl is running. + * @discussion This is used by the Growl preference pane. If it receives a + * GROWL_PONG, the preference pane takes this to mean that Growl is running. + */ +#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") +/*! @defined GROWL_PONG + * @abstract The distributed notification sent in reply to GROWL_PING. + * @discussion GrowlHelperApp posts this in reply to GROWL_PING. + */ +#define GROWL_PONG XSTR("What Do You Want From Me, Woman") +/*! @defined GROWL_IS_READY + * @abstract The distributed notification sent when Growl starts up. + * @discussion GrowlHelperApp posts this when it has begin listening on all of + * its sources for new notifications. GrowlApplicationBridge (in + * Growl.framework), upon receiving this notification, reregisters using the + * registration dictionary supplied by its delegate. + */ +#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") +/*! @defined GROWL_NOTIFICATION_CLICKED + * @abstract The distributed notification sent when a supported notification is clicked. + * @discussion When a Growl notification with a click context is clicked on by + * the user, Growl posts this distributed notification. + * The GrowlApplicationBridge responds to this notification by calling a + * callback in its delegate. + */ +#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") +#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") + +/*! @group Other symbols */ +/* Symbols which don't fit into any of the other categories. */ + +/*! @defined GROWL_KEY_CLICKED_CONTEXT + * @abstract Used internally as the key for the clickedContext passed over DNC. + * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the + * click context that was supplied in the original notification. + */ +#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") +/*! @defined GROWL_REG_DICT_EXTENSION + * @abstract The filename extension for registration dictionaries. + * @discussion The GrowlApplicationBridge in Growl.framework registers with + * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) + * and opening it in the GrowlHelperApp. This happens whether or not Growl is + * running; if it was stopped, it quits immediately without listening for + * notifications. + */ +#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") + + +#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" + +#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/Growl.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/Growl.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Headers/Growl.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,6 @@ +#include "GrowlDefines.h" + +#ifdef __OBJC__ +# include "GrowlApplicationBridge.h" +#endif +#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Resources/Info.plist unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Resources/Info.plist --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/A/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/A/Resources/Info.plist 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + Growl + CFBundleIdentifier + com.growl.growlframework + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.2.1 + CFBundleSignature + GRRR + CFBundleVersion + 1.2.1 + NSPrincipalClass + GrowlApplicationBridge + + Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Growl differ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,780 @@ +// +// GrowlApplicationBridge-Carbon.h +// Growl +// +// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. +// Based on GrowlApplicationBridge.h by Evan Schoenberg. +// This source code is in the public domain. You may freely link it into any +// program. +// + +#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ +#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ + +#include +#include + +#ifndef GROWL_EXPORT +#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE +#endif + +/*! @header GrowlApplicationBridge-Carbon.h + * @abstract Declares an API that Carbon applications can use to interact with Growl. + * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX + * to Growl (such as your application's name and what notifications it may + * post) and to provide information to your application (such as that Growl + * is listening for notifications or that a notification has been clicked). + * + * You can set the Growldelegate with Growl_SetDelegate and find out the + * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more + * information about the delegate. + */ + +__BEGIN_DECLS + +/*! @struct Growl_Delegate + * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. + * @discussion The Growl delegate provides your interface to + * GrowlApplicationBridge. When GrowlApplicationBridge needs information about + * your application, it looks for it in the delegate; when Growl or the user + * does something that you might be interested in, GrowlApplicationBridge + * looks for a callback in the delegate and calls it if present + * (meaning, if it is not NULL). + * XXX on all of that + * @field size The size of the delegate structure. + * @field applicationName The name of your application. + * @field registrationDictionary A dictionary describing your application and the notifications it can send out. + * @field applicationIconData Your application's icon. + * @field growlInstallationWindowTitle The title of the installation window. + * @field growlInstallationInformation Text to display in the installation window. + * @field growlUpdateWindowTitle The title of the update window. + * @field growlUpdateInformation Text to display in the update window. + * @field referenceCount A count of owners of the delegate. + * @field retain Called when GrowlApplicationBridge receives this delegate. + * @field release Called when GrowlApplicationBridge no longer needs this delegate. + * @field growlIsReady Called when GrowlHelperApp is listening for notifications. + * @field growlNotificationWasClicked Called when a Growl notification is clicked. + * @field growlNotificationTimedOut Called when a Growl notification timed out. + */ +struct Growl_Delegate { + /* @discussion This should be sizeof(struct Growl_Delegate). + */ + size_t size; + + /*All of these attributes are optional. + *Optional attributes can be NULL; required attributes that + * are NULL cause setting the Growl delegate to fail. + *XXX - move optional/required status into the discussion for each field + */ + + /* This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * This can be NULL if it is provided elsewhere, namely in an + * auto-discoverable plist file in your app bundle + * (XXX refer to more information on that) or in registrationDictionary. + */ + CFStringRef applicationName; + + /* + * Must contain at least these keys: + * GROWL_NOTIFICATIONS_ALL (CFArray): + * Contains the names of all notifications your application may post. + * + * Can also contain these keys: + * GROWL_NOTIFICATIONS_DEFAULT (CFArray): + * Names of notifications that should be enabled by default. + * If omitted, GROWL_NOTIFICATIONS_ALL will be used. + * GROWL_APP_NAME (CFString): + * Same as the applicationName member of this structure. + * If both are present, the applicationName member shall prevail. + * If this key is present, you may omit applicationName (set it to NULL). + * GROWL_APP_ICON (CFData): + * Same as the iconData member of this structure. + * If both are present, the iconData member shall prevail. + * If this key is present, you may omit iconData (set it to NULL). + * + * If you change the contents of this dictionary after setting the delegate, + * be sure to call Growl_Reregister. + * + * This can be NULL if you have an auto-discoverable plist file in your app + * bundle. (XXX refer to more information on that) + */ + CFDictionaryRef registrationDictionary; + + /* The data can be in any format supported by NSImage. As of + * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and + * PICT formats. + * + * If this is not supplied, Growl will look up your application's icon by + * its application name. + */ + CFDataRef applicationIconData; + + /* Installer display attributes + * + * These four attributes are used by the Growl installer, if this framework + * supports it. + * For any of these being NULL, a localised default will be + * supplied. + */ + + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If Growl is not installed, it will + * be displayed to the user as an explanation of what Growl is and what + * it can do in your application. + * It should probably note that no download is required to install. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlInstallationInformation; + /* If this is NULL, Growl will use a default, + * localized title. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateWindowTitle; + /* This information may be as long or short as desired (the + * window will be sized to fit it). If an older version of Growl is + * installed, it will be displayed to the user as an explanation that an + * updated version of Growl is included in your application and + * no download is required. + * + * If this is NULL, Growl will use a default, localized + * explanation. + * + * Only used if you're using Growl-WithInstaller.framework. Otherwise, + * this member is ignored. + */ + CFStringRef growlUpdateInformation; + + /* This member is provided for use by your retain and release + * callbacks (see below). + * + * GrowlApplicationBridge never directly uses this member. Instead, it + * calls your retain callback (if non-NULL) and your release + * callback (if non-NULL). + */ + unsigned referenceCount; + + //Functions. Currently all of these are optional (any of them can be NULL). + + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRetain and -[NSObject retain].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member would be + * NULL. + * @result A delegate to which GrowlApplicationBridge holds a reference. + */ + void *(*retain)(void *); + /* When you call Growl_SetDelegate(newDelegate), it will call + * oldDelegate->release(oldDelegate), and then it will call + * newDelegate->retain(newDelegate), and the return value from retain + * is what will be set as the delegate. + * (This means that this member works like CFRelease and + * -[NSObject release].) + * This member is optional (it can be NULL). + * For a delegate allocated with malloc, this member might be + * free(3). + */ + void (*release)(void *); + + /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was + * launched successfully (or was already running). The application can + * take actions with the knowledge that Growl is installed and functional. + */ + void (*growlIsReady)(void); + + /* Informs the delegate that a Growl notification was clicked. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); + + /* Informs the delegate that a Growl notification timed out. It is only + * sent for notifications sent with a non-NULL clickContext, + * so if you want to receive a message when a notification is clicked, + * clickContext must not be NULL when calling + * Growl_PostNotification or + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. + */ + void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); +}; + +/*! @struct Growl_Notification + * @abstract Structure describing a Growl notification. + * @discussion XXX + * @field size The size of the notification structure. + * @field name Identifies the notification. + * @field title Short synopsis of the notification. + * @field description Additional text. + * @field iconData An icon for the notification. + * @field priority An indicator of the notification's importance. + * @field reserved Bits reserved for future usage. + * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. + * @field clickContext An identifier to be passed to your click callback when a notification is clicked. + * @field clickCallback A callback to call when the notification is clicked. + */ +struct Growl_Notification { + /* This should be sizeof(struct Growl_Notification). + */ + size_t size; + + /* The notification name distinguishes one type of + * notification from another. The name should be human-readable, as it + * will be displayed in the Growl preference pane. + * + * The name is used in the GROWL_NOTIFICATIONS_ALL and + * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and + * in this member of the Growl_Notification structure. + */ + CFStringRef name; + + /* A notification's title describes the notification briefly. + * It should be easy to read quickly by the user. + */ + CFStringRef title; + + /* The description supplements the title with more + * information. It is usually longer and sometimes involves a list of + * subjects. For example, for a 'Download complete' notification, the + * description might have one filename per line. GrowlMail in Growl 0.6 + * uses a description of '%d new mail(s)' (formatted with the number of + * messages). + */ + CFStringRef description; + + /* The notification icon usually indicates either what + * happened (it may have the same icon as e.g. a toolbar item that + * started the process that led to the notification), or what it happened + * to (e.g. a document icon). + * + * The icon data is optional, so it can be NULL. In that + * case, the application icon is used alone. Not all displays support + * icons. + * + * The data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form + * ats. + */ + CFDataRef iconData; + + /* Priority is new in Growl 0.6, and is represented as a + * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low + * priority, and +2 is Very High priority. + * + * Not all displays support priority. If you do not wish to assign a + * priority to your notification, assign 0. + */ + signed int priority; + + /* These bits are not used in Growl 0.6. Set them to 0. + */ + unsigned reserved: 31; + + /* When the sticky bit is clear, in most displays, + * notifications disappear after a certain amount of time. Sticky + * notifications, however, remain on-screen until the user dismisses them + * explicitly, usually by clicking them. + * + * Sticky notifications were introduced in Growl 0.6. Most notifications + * should not be sticky. Not all displays support sticky notifications, + * and the user may choose in Growl's preference pane to force the + * notification to be sticky or non-sticky, in which case the sticky bit + * in the notification will be ignored. + */ + unsigned isSticky: 1; + + /* If this is not NULL, and your click callback + * is not NULL either, this will be passed to the callback + * when your notification is clicked by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + */ + CFPropertyListRef clickContext; + + /* If this is not NULL, it will be called instead + * of the Growl delegate's click callback when clickContext is + * non-NULL and the notification is clicked on by the user. + * + * Click feedback was introduced in Growl 0.6, and it is optional. Not + * all displays support click feedback. + * + * The per-notification click callback is not yet supported as of Growl + * 0.7. + */ + void (*clickCallback)(CFPropertyListRef clickContext); + + CFStringRef identifier; +}; + +#pragma mark - +#pragma mark Easy initialisers + +/*! @defined InitGrowlDelegate + * @abstract Callable macro. Initializes a Growl delegate structure to defaults. + * @discussion Call with a pointer to a struct Growl_Delegate. All of the + * members of the structure will be set to 0 or NULL, except for + * size (which will be set to sizeof(struct Growl_Delegate)) and + * referenceCount (which will be set to 1). + */ +#define InitGrowlDelegate(delegate) \ + do { \ + if (delegate) { \ + (delegate)->size = sizeof(struct Growl_Delegate); \ + (delegate)->applicationName = NULL; \ + (delegate)->registrationDictionary = NULL; \ + (delegate)->applicationIconData = NULL; \ + (delegate)->growlInstallationWindowTitle = NULL; \ + (delegate)->growlInstallationInformation = NULL; \ + (delegate)->growlUpdateWindowTitle = NULL; \ + (delegate)->growlUpdateInformation = NULL; \ + (delegate)->referenceCount = 1U; \ + (delegate)->retain = NULL; \ + (delegate)->release = NULL; \ + (delegate)->growlIsReady = NULL; \ + (delegate)->growlNotificationWasClicked = NULL; \ + (delegate)->growlNotificationTimedOut = NULL; \ + } \ + } while(0) + +/*! @defined InitGrowlNotification + * @abstract Callable macro. Initializes a Growl notification structure to defaults. + * @discussion Call with a pointer to a struct Growl_Notification. All of + * the members of the structure will be set to 0 or NULL, except + * for size (which will be set to + * sizeof(struct Growl_Notification)). + */ +#define InitGrowlNotification(notification) \ + do { \ + if (notification) { \ + (notification)->size = sizeof(struct Growl_Notification); \ + (notification)->name = NULL; \ + (notification)->title = NULL; \ + (notification)->description = NULL; \ + (notification)->iconData = NULL; \ + (notification)->priority = 0; \ + (notification)->reserved = 0U; \ + (notification)->isSticky = false; \ + (notification)->clickContext = NULL; \ + (notification)->clickCallback = NULL; \ + (notification)->identifier = NULL; \ + } \ + } while(0) + +#pragma mark - +#pragma mark Public API + +// @functiongroup Managing the Growl delegate + +/*! @function Growl_SetDelegate + * @abstract Replaces the current Growl delegate with a new one, or removes + * the Growl delegate. + * @param newDelegate + * @result Returns false and does nothing else if a pointer that was passed in + * is unsatisfactory (because it is non-NULL, but at least one + * required member of it is NULL). Otherwise, sets or unsets the + * delegate and returns true. + * @discussion When newDelegate is non-NULL, sets + * the delegate to newDelegate. When it is NULL, + * the current delegate will be unset, and no delegate will be in place. + * + * It is legal for newDelegate to be the current delegate; + * nothing will happen, and Growl_SetDelegate will return true. It is also + * legal for it to be NULL, as described above; again, it will + * return true. + * + * If there was a delegate in place before the call, Growl_SetDelegate will + * call the old delegate's release member if it was non-NULL. If + * newDelegate is non-NULL, Growl_SetDelegate will + * call newDelegate->retain, and set the delegate to its return + * value. + * + * If you are using Growl-WithInstaller.framework, and an older version of + * Growl is installed on the user's system, the user will automatically be + * prompted to update. + * + * GrowlApplicationBridge currently does not copy this structure, nor does it + * retain any of the CF objects in the structure (it regards the structure as + * a container that retains the objects when they are added and releases them + * when they are removed or the structure is destroyed). Also, + * GrowlApplicationBridge currently does not modify any member of the + * structure, except possibly the referenceCount by calling the retain and + * release members. + */ +GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); + +/*! @function Growl_GetDelegate + * @abstract Returns the current Growl delegate, if any. + * @result The current Growl delegate. + * @discussion Returns the last pointer passed into Growl_SetDelegate, or + * NULL if no such call has been made. + * + * This function follows standard Core Foundation reference-counting rules. + * Because it is a Get function, not a Copy function, it will not retain the + * delegate on your behalf. You are responsible for retaining and releasing + * the delegate as needed. + */ +GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); + +#pragma mark - + +// @functiongroup Posting Growl notifications + +/*! @function Growl_PostNotification + * @abstract Posts a Growl notification. + * @param notification The notification to post. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * NULL (or 0 or false as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. + * If the user cancels, this function will have no effect until the next + * application session, at which time when it is called the user will be + * prompted again. The user is also given the option to not be prompted again. + * If the user does choose to install Growl, the requested notification will + * be displayed once Growl is installed and running. + */ +GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); + +/*! @function Growl_PostNotificationWithDictionary +* @abstract Notifies using a userInfo dictionary suitable for passing to +* CFDistributedNotificationCenter. +* @param userInfo The dictionary to notify with. +* @discussion Before Growl 0.6, your application would have posted +* notifications using CFDistributedNotificationCenter by creating a userInfo +* dictionary with the notification data. This had the advantage of allowing +* you to add other data to the dictionary for programs besides Growl that +* might be listening. +* +* This function allows you to use such dictionaries without being restricted +* to using CFDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. +*/ +GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); + +/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext + * @abstract Posts a Growl notification using parameter values. + * @param title The title of the notification. + * @param description The description of the notification. + * @param notificationName The name of the notification as listed in the + * registration dictionary. + * @param iconData Data representing a notification icon. Can be NULL. + * @param priority The priority of the notification (-2 to +2, with -2 + * being Very Low and +2 being Very High). + * @param isSticky If true, requests that this notification wait for a + * response from the user. + * @param clickContext An object to pass to the clickCallback, if any. Can + * be NULL, in which case the clickCallback is not called. + * @discussion Creates a temporary Growl_Notification, fills it out with the + * supplied information, and calls Growl_PostNotification on it. + * See struct Growl_Notification and Growl_PostNotification for more + * information. + * + * The icon data can be in any format supported by NSImage. As of Mac OS X + * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. + */ +GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( + /*inhale*/ + CFStringRef title, + CFStringRef description, + CFStringRef notificationName, + CFDataRef iconData, + signed int priority, + Boolean isSticky, + CFPropertyListRef clickContext); + +#pragma mark - + +// @functiongroup Registering + +/*! @function Growl_RegisterWithDictionary + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this function with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass NULL, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this function, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This function is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This function was introduced in Growl.framework 0.7. + * @result false if registration failed (e.g. if Growl isn't installed). + */ +GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); + +/*! @function Growl_Reregister + * @abstract Updates your registration with Growl. + * @discussion If your application changes the contents of the + * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the + * Growl delegate, or if it changes the value of that member, or if it + * changes the contents of its auto-discoverable plist, call this function + * to have Growl update its registration information for your application. + * + * Otherwise, this function does not normally need to be called. If you're + * using a delegate, your application will be registered when you set the + * delegate if both the delegate and its registrationDictionary member are + * non-NULL. + * + * This function is now implemented using + * Growl_RegisterWithDictionary. + */ +GROWL_EXPORT void Growl_Reregister(void); + +#pragma mark - + +/*! @function Growl_SetWillRegisterWhenGrowlIsReady + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * growlIsReady callback, if it has one). If this function is + * called with true, one of those tasks will be to reregister + * with Growl (in the manner of Growl_Reregister). + * + * This attribute is automatically set back to false + * (the default) after every GROWL_IS_READY notification. + * @param flag true if you want GrowlApplicationBridge to register with + * Growl when next it is ready; false if not. + */ +GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); +/*! @function Growl_WillRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result true if GrowlApplicationBridge will register with + * Growl when next it posts GROWL_IS_READY; false if not. + */ +GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); + +#pragma mark - + +// @functiongroup Obtaining registration dictionaries + +/*! @function Growl_CopyRegistrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * registrationDictionary member is NULL, this + * function returns NULL. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); + +/*! @function Growl_CopyRegistrationDictionaryFromBundle + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This function looks in a bundle for an auto-discoverable + * registration dictionary file using CFBundleCopyResourceURL. + * If it finds one, it loads the file using CFPropertyList and + * returns the result. + * + * If you pass NULL as the bundle, the main bundle is examined. + * + * This function does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use + * Growl_CreateRegistrationDictionaryByFillingInDictionary: or + * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * to try to fill in missing keys. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); + +/*! @function Growl_CreateBestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This function creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge examines the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this function returns NULL. + * + * Second, GrowlApplicationBridge calls + * Growl_CreateRegistrationDictionaryByFillingInDictionary with + * whatever dictionary was obtained. The result of that function is the + * result of this function. + * + * GrowlApplicationBridge uses this function when you call + * Growl_SetDelegate, or when you call + * Growl_RegisterWithDictionary with NULL. + * + * This function was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); + +#pragma mark - + +// @functiongroup Filling in registration dictionaries + +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); +/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys + * @abstract Tries to fill in missing keys in a registration dictionary. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If NULL, any missing keys are filled in. + * @result The dictionary with the keys filled in. + * @discussion This function examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This function was introduced in Growl.framework 0.7. + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ +GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); + +#pragma mark - + +// @functiongroup Querying Growl's status + +/*! @function Growl_IsInstalled + * @abstract Determines whether the Growl prefpane and its helper app are + * installed. + * @result Returns true if Growl is installed, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsInstalled(void); + +/*! @function Growl_IsRunning + * @abstract Cycles through the process list to find whether GrowlHelperApp + * is running. + * @result Returns true if Growl is running, false otherwise. + */ +GROWL_EXPORT Boolean Growl_IsRunning(void); + +#pragma mark - + +// @functiongroup Launching Growl + +/*! @typedef GrowlLaunchCallback + * @abstract Callback to notify you that Growl is running. + * @param context The context pointer passed to Growl_LaunchIfInstalled. + * @discussion Growl_LaunchIfInstalled calls this callback function if Growl + * was already running or if it launched Growl successfully. + */ +typedef void (*GrowlLaunchCallback)(void *context); + +/*! @function Growl_LaunchIfInstalled + * @abstract Launches GrowlHelperApp if it is not already running. + * @param callback A callback function which will be called if Growl was successfully + * launched or was already running. Can be NULL. + * @param context The context pointer to pass to the callback. Can be NULL. + * @result Returns true if Growl was successfully launched or was already + * running; returns false and does not call the callback otherwise. + * @discussion Returns true and calls the callback (if the callback is not + * NULL) if the Growl helper app began launching or was already + * running. Returns false and performs no other action if Growl could not be + * launched (e.g. because the Growl preference pane is not properly installed). + * + * If Growl_CreateBestRegistrationDictionary returns + * non-NULL, this function will register with Growl atomically. + * + * The callback should take a single argument; this is to allow applications + * to have context-relevant information passed back. It is perfectly + * acceptable for context to be NULL. The callback itself can be + * NULL if you don't want one. + */ +GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); + +#pragma mark - +#pragma mark Constants + +/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER + * @abstract The CFBundleIdentifier of the Growl preference pane bundle. + * @discussion GrowlApplicationBridge uses this to determine whether Growl is + * currently installed, by searching for the Growl preference pane. Your + * application probably does not need to use this macro itself. + */ +#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER +#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") +#endif + +__END_DECLS + +#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,575 @@ +// +// GrowlApplicationBridge.h +// Growl +// +// Created by Evan Schoenberg on Wed Jun 16 2004. +// Copyright 2004-2006 The Growl Project. All rights reserved. +// + +/*! + * @header GrowlApplicationBridge.h + * @abstract Defines the GrowlApplicationBridge class. + * @discussion This header defines the GrowlApplicationBridge class as well as + * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. + */ + +#ifndef __GrowlApplicationBridge_h__ +#define __GrowlApplicationBridge_h__ + +#import +#import +#import "GrowlDefines.h" + +//Forward declarations +@protocol GrowlApplicationBridgeDelegate; + +//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) +#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @class GrowlApplicationBridge + * @abstract A class used to interface with Growl. + * @discussion This class provides a means to interface with Growl. + * + * Currently it provides a way to detect if Growl is installed and launch the + * GrowlHelperApp if it's not already running. + */ +@interface GrowlApplicationBridge : NSObject { + +} + +/*! + * @method isGrowlInstalled + * @abstract Detects whether Growl is installed. + * @discussion Determines if the Growl prefpane and its helper app are installed. + * @result Returns YES if Growl is installed, NO otherwise. + */ ++ (BOOL) isGrowlInstalled; + +/*! + * @method isGrowlRunning + * @abstract Detects whether GrowlHelperApp is currently running. + * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. + * @result Returns YES if GrowlHelperApp is running, NO otherwise. + */ ++ (BOOL) isGrowlRunning; + +#pragma mark - + +/*! + * @method setGrowlDelegate: + * @abstract Set the object which will be responsible for providing and receiving Growl information. + * @discussion This must be called before using GrowlApplicationBridge. + * + * The methods in the GrowlApplicationBridgeDelegate protocol are required + * and return the basic information needed to register with Growl. + * + * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol + * informal protocol are individually optional. They provide a greater + * degree of interaction between the application and growl such as informing + * the application when one of its Growl notifications is clicked by the user. + * + * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol + * informal protocol are individually optional and are only applicable when + * using the Growl-WithInstaller.framework which allows for automated Growl + * installation. + * + * When this method is called, data will be collected from inDelegate, Growl + * will be launched if it is not already running, and the application will be + * registered with Growl. + * + * If using the Growl-WithInstaller framework, if Growl is already installed + * but this copy of the framework has an updated version of Growl, the user + * will be prompted to update automatically. + * + * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. + */ ++ (void) setGrowlDelegate:(NSObject *)inDelegate; + +/*! + * @method growlDelegate + * @abstract Return the object responsible for providing and receiving Growl information. + * @discussion See setGrowlDelegate: for details. + * @result The Growl delegate. + */ ++ (NSObject *) growlDelegate; + +#pragma mark - + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext; + +/*! + * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: + * @abstract Send a Growl notification. + * @discussion This is the preferred means for sending a Growl notification. + * The notification name and at least one of the title and description are + * required (all three are preferred). All other parameters may be + * nil (or 0 or NO as appropriate) to accept default values. + * + * If using the Growl-WithInstaller framework, if Growl is not installed the + * user will be prompted to install Growl. If the user cancels, this method + * will have no effect until the next application session, at which time when + * it is called the user will be prompted again. The user is also given the + * option to not be prompted again. If the user does choose to install Growl, + * the requested notification will be displayed once Growl is installed and + * running. + * + * @param title The title of the notification displayed to the user. + * @param description The full description of the notification displayed to the user. + * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. + * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. + * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. + * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. + * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). + * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. + */ ++ (void) notifyWithTitle:(NSString *)title + description:(NSString *)description + notificationName:(NSString *)notifName + iconData:(NSData *)iconData + priority:(signed int)priority + isSticky:(BOOL)isSticky + clickContext:(id)clickContext + identifier:(NSString *)identifier; + +/*! @method notifyWithDictionary: + * @abstract Notifies using a userInfo dictionary suitable for passing to + * NSDistributedNotificationCenter. + * @param userInfo The dictionary to notify with. + * @discussion Before Growl 0.6, your application would have posted + * notifications using NSDistributedNotificationCenter by + * creating a userInfo dictionary with the notification data. This had the + * advantage of allowing you to add other data to the dictionary for programs + * besides Growl that might be listening. + * + * This method allows you to use such dictionaries without being restricted + * to using NSDistributedNotificationCenter. The keys for this dictionary + * can be found in GrowlDefines.h. + */ ++ (void) notifyWithDictionary:(NSDictionary *)userInfo; + +#pragma mark - + +/*! @method registerWithDictionary: + * @abstract Register your application with Growl without setting a delegate. + * @discussion When you call this method with a dictionary, + * GrowlApplicationBridge registers your application using that dictionary. + * If you pass nil, GrowlApplicationBridge will ask the delegate + * (if there is one) for a dictionary, and if that doesn't work, it will look + * in your application's bundle for an auto-discoverable plist. + * (XXX refer to more information on that) + * + * If you pass a dictionary to this method, it must include the + * GROWL_APP_NAME key, unless a delegate is set. + * + * This method is mainly an alternative to the delegate system introduced + * with Growl 0.6. Without a delegate, you cannot receive callbacks such as + * -growlIsReady (since they are sent to the delegate). You can, + * however, set a delegate after registering without one. + * + * This method was introduced in Growl.framework 0.7. + */ ++ (BOOL) registerWithDictionary:(NSDictionary *)regDict; + +/*! @method reregisterGrowlNotifications + * @abstract Reregister the notifications for this application. + * @discussion This method does not normally need to be called. If your + * application changes what notifications it is registering with Growl, call + * this method to have the Growl delegate's + * -registrationDictionaryForGrowl method called again and the + * Growl registration information updated. + * + * This method is now implemented using -registerWithDictionary:. + */ ++ (void) reregisterGrowlNotifications; + +#pragma mark - + +/*! @method setWillRegisterWhenGrowlIsReady: + * @abstract Tells GrowlApplicationBridge to register with Growl when Growl + * launches (or not). + * @discussion When Growl has started listening for notifications, it posts a + * GROWL_IS_READY notification on the Distributed Notification + * Center. GrowlApplicationBridge listens for this notification, using it to + * perform various tasks (such as calling your delegate's + * -growlIsReady method, if it has one). If this method is + * called with YES, one of those tasks will be to reregister + * with Growl (in the manner of -reregisterGrowlNotifications). + * + * This attribute is automatically set back to NO (the default) + * after every GROWL_IS_READY notification. + * @param flag YES if you want GrowlApplicationBridge to register with + * Growl when next it is ready; NO if not. + */ ++ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; +/*! @method willRegisterWhenGrowlIsReady + * @abstract Reports whether GrowlApplicationBridge will register with Growl + * when Growl next launches. + * @result YES if GrowlApplicationBridge will register with Growl + * when next it posts GROWL_IS_READY; NO if not. + */ ++ (BOOL) willRegisterWhenGrowlIsReady; + +#pragma mark - + +/*! @method registrationDictionaryFromDelegate + * @abstract Asks the delegate for a registration dictionary. + * @discussion If no delegate is set, or if the delegate's + * -registrationDictionaryForGrowl method returns + * nil, this method returns nil. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromDelegate; + +/*! @method registrationDictionaryFromBundle: + * @abstract Looks in a bundle for a registration dictionary. + * @discussion This method looks in a bundle for an auto-discoverable + * registration dictionary file using -[NSBundle + * pathForResource:ofType:]. If it finds one, it loads the file using + * +[NSDictionary dictionaryWithContentsOfFile:] and returns the + * result. + * + * If you pass nil as the bundle, the main bundle is examined. + * + * This method does not attempt to clean up the dictionary in any way - for + * example, if it is missing the GROWL_APP_NAME key, the result + * will be missing it too. Use +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:] or + * +[GrowlApplicationBridge + * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try + * to fill in missing keys. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; + +/*! @method bestRegistrationDictionary + * @abstract Obtains a registration dictionary, filled out to the best of + * GrowlApplicationBridge's knowledge. + * @discussion This method creates a registration dictionary as best + * GrowlApplicationBridge knows how. + * + * First, GrowlApplicationBridge contacts the Growl delegate (if there is + * one) and gets the registration dictionary from that. If no such dictionary + * was obtained, GrowlApplicationBridge looks in your application's main + * bundle for an auto-discoverable registration dictionary file. If that + * doesn't exist either, this method returns nil. + * + * Second, GrowlApplicationBridge calls + * +registrationDictionaryByFillingInDictionary: with whatever + * dictionary was obtained. The result of that method is the result of this + * method. + * + * GrowlApplicationBridge uses this method when you call + * +setGrowlDelegate:, or when you call + * +registerWithDictionary: with nil. + * + * This method was introduced in Growl.framework 0.7. + * @result A registration dictionary. + */ ++ (NSDictionary *) bestRegistrationDictionary; + +#pragma mark - + +/*! @method registrationDictionaryByFillingInDictionary: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Keys are only filled in if missing; if a key is present in the dictionary, + * its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; +/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: + * @abstract Tries to fill in missing keys in a registration dictionary. + * @discussion This method examines the passed-in dictionary for missing keys, + * and tries to work out correct values for them. As of 0.7, it uses: + * + * Key Value + * --- ----- + * GROWL_APP_NAME CFBundleExecutableName + * GROWL_APP_ICON The icon of the application. + * GROWL_APP_LOCATION The location of the application. + * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL + * + * Only those keys that are listed in keys will be filled in. + * Other missing keys are ignored. Also, keys are only filled in if missing; + * if a key is present in the dictionary, its value will not be changed. + * + * This method was introduced in Growl.framework 0.7. + * @param regDict The dictionary to fill in. + * @param keys The keys to fill in. If nil, any missing keys are filled in. + * @result The dictionary with the keys filled in. This is an autoreleased + * copy of regDict. + */ ++ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; + +/*! @brief Tries to fill in missing keys in a notification dictionary. + * @param notifDict The dictionary to fill in. + * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. + * @discussion This function examines the \a notifDict for missing keys, and + * tries to get them from the last known registration dictionary. As of 1.1, + * the keys that it will look for are: + * + * \li GROWL_APP_NAME + * \li GROWL_APP_ICON + * + * @since Growl.framework 1.1 + */ ++ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; + ++ (NSDictionary *) frameworkInfoDictionary; +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @protocol GrowlApplicationBridgeDelegate + * @abstract Required protocol for the Growl delegate. + * @discussion The methods in this protocol are required and are called + * automatically as needed by GrowlApplicationBridge. See + * +[GrowlApplicationBridge setGrowlDelegate:]. + * See also GrowlApplicationBridgeDelegate_InformalProtocol. + */ + +@protocol GrowlApplicationBridgeDelegate + +// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. + +@end + +//------------------------------------------------------------------------------ +#pragma mark - + +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) + * @abstract Methods which may be optionally implemented by the GrowlDelegate. + * @discussion The methods in this informal protocol will only be called if implemented by the delegate. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) + +/*! + * @method registrationDictionaryForGrowl + * @abstract Return the dictionary used to register this application with Growl. + * @discussion The returned dictionary gives Growl the complete list of + * notifications this application will ever send, and it also specifies which + * notifications should be enabled by default. Each is specified by an array + * of NSString objects. + * + * For most applications, these two arrays can be the same (if all sent + * notifications should be displayed by default). + * + * The NSString objects of these arrays will correspond to the + * notificationName: parameter passed in + * +[GrowlApplicationBridge + * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. + * + * The dictionary should have the required key object pairs: + * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects + * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects + * + * The dictionary may have the following key object pairs: + * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name + * + * You do not need to implement this method if you have an auto-discoverable + * plist file in your app bundle. (XXX refer to more information on that) + * + * @result The NSDictionary to use for registration. + */ +- (NSDictionary *) registrationDictionaryForGrowl; + +/*! + * @method applicationNameForGrowl + * @abstract Return the name of this application which will be used for Growl bookkeeping. + * @discussion This name is used both internally and in the Growl preferences. + * + * This should remain stable between different versions and incarnations of + * your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + * + * You do not need to implement this method if you are providing the + * application name elsewhere, meaning in an auto-discoverable plist file in + * your app bundle (XXX refer to more information on that) or in the result + * of -registrationDictionaryForGrowl. + * + * @result The name of the application using Growl. + */ +- (NSString *) applicationNameForGrowl; + +/*! + * @method applicationIconForGrowl + * @abstract Return the NSImage to treat as the application icon. + * @discussion The delegate may optionally return an NSImage + * object to use as the application icon. If this method is not implemented, + * {{{-applicationIconDataForGrowl}}} is tried. If that method is not + * implemented, the application's own icon is used. Neither method is + * generally needed. + * @result The NSImage to treat as the application icon. + */ +- (NSImage *) applicationIconForGrowl; + +/*! + * @method applicationIconDataForGrowl + * @abstract Return the NSData to treat as the application icon. + * @discussion The delegate may optionally return an NSData + * object to use as the application icon; if this is not implemented, the + * application's own icon is used. This is not generally needed. + * @result The NSData to treat as the application icon. + * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. + */ +- (NSData *) applicationIconDataForGrowl; + +/*! + * @method growlIsReady + * @abstract Informs the delegate that Growl has launched. + * @discussion Informs the delegate that Growl (specifically, the + * GrowlHelperApp) was launched successfully. The application can take actions + * with the knowledge that Growl is installed and functional. + */ +- (void) growlIsReady; + +/*! + * @method growlNotificationWasClicked: + * @abstract Informs the delegate that a Growl notification was clicked. + * @discussion Informs the delegate that a Growl notification was clicked. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationWasClicked:(id)clickContext; + +/*! + * @method growlNotificationTimedOut: + * @abstract Informs the delegate that a Growl notification timed out. + * @discussion Informs the delegate that a Growl notification timed out. It + * is only sent for notifications sent with a non-nil + * clickContext, so if you want to receive a message when a notification is + * clicked, clickContext must not be nil when calling + * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. + * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. + */ +- (void) growlNotificationTimedOut:(id)clickContext; + +@end + +#pragma mark - +/*! + * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. + * @discussion The methods in this informal protocol will only be called if + * implemented by the delegate. They allow greater control of the information + * presented to the user when installing or upgrading Growl from within your + * application when using Growl-WithInstaller.framework. + */ +@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) + +/*! + * @method growlInstallationWindowTitle + * @abstract Return the title of the installation window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlInstallationWindowTitle; + +/*! + * @method growlUpdateWindowTitle + * @abstract Return the title of the upgrade window. + * @discussion If not implemented, Growl will use a default, localized title. + * @result An NSString object to use as the title. + */ +- (NSString *)growlUpdateWindowTitle; + +/*! + * @method growlInstallationInformation + * @abstract Return the information to display when installing. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation of what Growl is and what it can do in your application. It + * should probably note that no download is required to install. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlInstallationInformation; + +/*! + * @method growlUpdateInformation + * @abstract Return the information to display when upgrading. + * @discussion This information may be as long or short as desired (the window + * will be sized to fit it). It will be displayed to the user as an + * explanation that an updated version of Growl is included in your + * application and no download is required. + * + * If this is not implemented, Growl will use a default, localized explanation. + * @result An NSAttributedString object to display. + */ +- (NSAttributedString *)growlUpdateInformation; + +@end + +//private +@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) ++ (void) _userChoseNotToInstallGrowl; +@end + +#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,348 @@ +// +// GrowlDefines.h +// + +#ifndef _GROWLDEFINES_H +#define _GROWLDEFINES_H + +#ifdef __OBJC__ +#define XSTR(x) (@x) +#define STRING_TYPE NSString * +#else +#define XSTR CFSTR +#define STRING_TYPE CFStringRef +#endif + +/*! @header GrowlDefines.h + * @abstract Defines all the notification keys. + * @discussion Defines all the keys used for registration with Growl and for + * Growl notifications. + * + * Most applications should use the functions or methods of Growl.framework + * instead of posting notifications such as those described here. + * @updated 2004-01-25 + */ + +// UserInfo Keys for Registration +#pragma mark UserInfo Keys for Registration + +/*! @group Registration userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. + * @discussion The values of these keys describe the application and the + * notifications it may post. + * + * Your application must register with Growl before it can post Growl + * notifications (and have them not be ignored). However, as of Growl 0.6, + * posting GROWL_APP_REGISTRATION notifications directly is no longer the + * preferred way to register your application. Your application should instead + * use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ + +/*! @defined GROWL_APP_NAME + * @abstract The name of your application. + * @discussion The name of your application. This should remain stable between + * different versions and incarnations of your application. + * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and + * "SurfWriter Lite" are not. + */ +#define GROWL_APP_NAME XSTR("ApplicationName") +/*! @defined GROWL_APP_ID + * @abstract The bundle identifier of your application. + * @discussion The bundle identifier of your application. This key should + * be unique for your application while there may be several applications + * with the same GROWL_APP_NAME. + * This key is optional. + */ +#define GROWL_APP_ID XSTR("ApplicationId") +/*! @defined GROWL_APP_ICON + * @abstract The image data for your application's icon. + * @discussion Image data representing your application's icon. This may be + * superimposed on a notification icon as a badge, used as the notification + * icon when a notification-specific icon is not supplied, or ignored + * altogether, depending on the display. Must be in a format supported by + * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_APP_ICON XSTR("ApplicationIcon") +/*! @defined GROWL_NOTIFICATIONS_DEFAULT + * @abstract The array of notifications to turn on by default. + * @discussion These are the names of the notifications that should be enabled + * by default when your application registers for the first time. If your + * application reregisters, Growl will look here for any new notification + * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. + */ +#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") +/*! @defined GROWL_NOTIFICATIONS_ALL + * @abstract The array of all notifications your application can send. + * @discussion These are the names of all of the notifications that your + * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good + * notification names. + */ +#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") +/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS + * @abstract A dictionary of human-readable names for your notifications. + * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL + * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. + * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. + * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. + * + * This key is optional. + */ +#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") +/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS +* @abstract A dictionary of descriptions of _when_ each notification occurs +* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are +* descriptions of _when_ each notification occurs, such as "You received a new mail message" or +* "A file finished downloading". +* +* This key is optional. +*/ +#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") + +/*! @defined GROWL_TICKET_VERSION + * @abstract The version of your registration ticket. + * @discussion Include this key in a ticket plist file that you put in your + * application bundle for auto-discovery. The current ticket version is 1. + */ +#define GROWL_TICKET_VERSION XSTR("TicketVersion") +// UserInfo Keys for Notifications +#pragma mark UserInfo Keys for Notifications + +/*! @group Notification userInfo keys */ +/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. + * @discussion The values of these keys describe the content of a Growl + * notification. + * + * Not all of these keys are supported by all displays. Only the name, title, + * and description of a notification are universal. Most of the built-in + * displays do support all of these keys, and most other visual displays + * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays + * support only textual data. + */ + +/*! @defined GROWL_NOTIFICATION_NAME + * @abstract The name of the notification. + * @discussion The name of the notification. Note that if you do not define + * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name + * will the one displayed within the Growl preference pane and should be human-readable. + */ +#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") +/*! @defined GROWL_NOTIFICATION_TITLE + * @abstract The title to display in the notification. + * @discussion The title of the notification. Should be very brief. + * The title usually says what happened, e.g. "Download complete". + */ +#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") +/*! @defined GROWL_NOTIFICATION_DESCRIPTION + * @abstract The description to display in the notification. + * @discussion The description should be longer and more verbose than the title. + * The description usually tells the subject of the action, + * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". + */ +#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") +/*! @defined GROWL_NOTIFICATION_ICON + * @discussion Image data for the notification icon. Must be in a format + * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") +/*! @defined GROWL_NOTIFICATION_APP_ICON + * @discussion Image data for the application icon, in case GROWL_APP_ICON does + * not apply for some reason. Must be in a format supported by NSImage, such + * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") +/*! @defined GROWL_NOTIFICATION_PRIORITY + * @discussion The priority of the notification as an integer number from + * -2 to +2 (+2 being highest). + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") +/*! @defined GROWL_NOTIFICATION_STICKY + * @discussion A Boolean number controlling whether the notification is sticky. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") +/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT + * @abstract Identifies which notification was clicked. + * @discussion An identifier for the notification for clicking purposes. + * + * This will be passed back to the application when the notification is + * clicked. It must be plist-encodable (a data, dictionary, array, number, or + * string object), and it should be unique for each notification you post. + * A good click context would be a UUID string returned by NSProcessInfo or + * CFUUID. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") + +/*! @defined GROWL_DISPLAY_PLUGIN + * @discussion The name of a display plugin which should be used for this notification. + * Optional. If this key is not set or the specified display plugin does not + * exist, the display plugin stored in the application ticket is used. This key + * allows applications to use different default display plugins for their + * notifications. The user can still override those settings in the preference + * pane. + */ +#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") + +/*! @defined GROWL_NOTIFICATION_IDENTIFIER + * @abstract An identifier for the notification for coalescing purposes. + * Notifications with the same identifier fall into the same class; only + * the last notification of a class is displayed on the screen. If a + * notification of the same class is currently being displayed, it is + * replaced by this notification. + * + * Optional. Not supported by all display plugins. + */ +#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") + +/*! @defined GROWL_APP_PID + * @abstract The process identifier of the process which sends this + * notification. If this field is set, the application will only receive + * clicked and timed out notifications which originate from this process. + * + * Optional. + */ +#define GROWL_APP_PID XSTR("ApplicationPID") + +/*! @defined GROWL_NOTIFICATION_PROGRESS +* @abstract If this key is set, it should contain a double value wrapped +* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). +* If this is key is not set, no progress bar is shown. +* +* Optional. Not supported by all display plugins. +*/ +#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") + +// Notifications +#pragma mark Notifications + +/*! @group Notification names */ +/* @abstract Names of distributed notifications used by Growl. + * @discussion These are notifications used by applications (directly or + * indirectly) to interact with Growl, and by Growl for interaction between + * its components. + * + * Most of these should no longer be used in Growl 0.6 and later, in favor of + * Growl.framework's GrowlApplicationBridge APIs. + */ + +/*! @defined GROWL_APP_REGISTRATION + * @abstract The distributed notification for registering your application. + * @discussion This is the name of the distributed notification that can be + * used to register applications with Growl. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_APP_NAME
  • + *
  • GROWL_APP_ICON
  • + *
  • GROWL_NOTIFICATIONS_ALL
  • + *
  • GROWL_NOTIFICATIONS_DEFAULT
  • + *
+ * + * No longer recommended as of Growl 0.6. An alternate method of registering + * is to use Growl.framework's delegate system. + * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for + * more information. + */ +#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") +/*! @defined GROWL_APP_REGISTRATION_CONF + * @abstract The distributed notification for confirming registration. + * @discussion The name of the distributed notification sent to confirm the + * registration. Used by the Growl preference pane. Your application probably + * does not need to use this notification. + */ +#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") +/*! @defined GROWL_NOTIFICATION + * @abstract The distributed notification for Growl notifications. + * @discussion This is what it all comes down to. This is the name of the + * distributed notification that your application posts to actually send a + * Growl notification. + * + * The userInfo dictionary for this notification can contain these keys: + *
    + *
  • GROWL_NOTIFICATION_NAME (required)
  • + *
  • GROWL_NOTIFICATION_TITLE (required)
  • + *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • + *
  • GROWL_NOTIFICATION_ICON
  • + *
  • GROWL_NOTIFICATION_APP_ICON
  • + *
  • GROWL_NOTIFICATION_PRIORITY
  • + *
  • GROWL_NOTIFICATION_STICKY
  • + *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • + *
  • GROWL_APP_NAME (required)
  • + *
+ * + * No longer recommended as of Growl 0.6. Three alternate methods of posting + * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], + * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and + * Growl_PostNotification. + */ +#define GROWL_NOTIFICATION XSTR("GrowlNotification") +/*! @defined GROWL_SHUTDOWN +* @abstract The distributed notification name that tells Growl to shutdown. +* @discussion The Growl preference pane posts this notification when the +* "Stop Growl" button is clicked. +*/ +#define GROWL_SHUTDOWN XSTR("GrowlShutdown") +/*! @defined GROWL_PING + * @abstract A distributed notification to check whether Growl is running. + * @discussion This is used by the Growl preference pane. If it receives a + * GROWL_PONG, the preference pane takes this to mean that Growl is running. + */ +#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") +/*! @defined GROWL_PONG + * @abstract The distributed notification sent in reply to GROWL_PING. + * @discussion GrowlHelperApp posts this in reply to GROWL_PING. + */ +#define GROWL_PONG XSTR("What Do You Want From Me, Woman") +/*! @defined GROWL_IS_READY + * @abstract The distributed notification sent when Growl starts up. + * @discussion GrowlHelperApp posts this when it has begin listening on all of + * its sources for new notifications. GrowlApplicationBridge (in + * Growl.framework), upon receiving this notification, reregisters using the + * registration dictionary supplied by its delegate. + */ +#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") +/*! @defined GROWL_NOTIFICATION_CLICKED + * @abstract The distributed notification sent when a supported notification is clicked. + * @discussion When a Growl notification with a click context is clicked on by + * the user, Growl posts this distributed notification. + * The GrowlApplicationBridge responds to this notification by calling a + * callback in its delegate. + */ +#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") +#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") + +/*! @group Other symbols */ +/* Symbols which don't fit into any of the other categories. */ + +/*! @defined GROWL_KEY_CLICKED_CONTEXT + * @abstract Used internally as the key for the clickedContext passed over DNC. + * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the + * click context that was supplied in the original notification. + */ +#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") +/*! @defined GROWL_REG_DICT_EXTENSION + * @abstract The filename extension for registration dictionaries. + * @discussion The GrowlApplicationBridge in Growl.framework registers with + * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) + * and opening it in the GrowlHelperApp. This happens whether or not Growl is + * running; if it was stopped, it quits immediately without listening for + * notifications. + */ +#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") + + +#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" + +#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,6 @@ +#include "GrowlDefines.h" + +#ifdef __OBJC__ +# include "GrowlApplicationBridge.h" +#endif +#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist --- unison-2.40.102/uimac14/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + Growl + CFBundleIdentifier + com.growl.growlframework + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.2.1 + CFBundleSignature + GRRR + CFBundleVersion + 1.2.1 + NSPrincipalClass + GrowlApplicationBridge + + diff -Nru unison-2.40.102/uimac14/ImageAndTextCell.h unison-2.48.3/uimac14/ImageAndTextCell.h --- unison-2.40.102/uimac14/ImageAndTextCell.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ImageAndTextCell.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,20 @@ +// +// ImageAndTextCell.h +// +// Copyright (c) 2001-2002, Apple. All rights reserved. +// + +#import + +@interface ImageAndTextCell : NSTextFieldCell { +@private + NSImage *image; +} + +- (void)setImage:(NSImage *)anImage; +- (NSImage *)image; + +- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; +- (NSSize)cellSize; + +@end diff -Nru unison-2.40.102/uimac14/ImageAndTextCell.m unison-2.48.3/uimac14/ImageAndTextCell.m --- unison-2.40.102/uimac14/ImageAndTextCell.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ImageAndTextCell.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,131 @@ +/* + ImageAndTextCell.m + Copyright (c) 2001-2004, Apple Computer, Inc., all rights reserved. + Author: Chuck Pisula + + Milestones: + Initially created 3/1/01 + + Subclass of NSTextFieldCell which can display text and an image simultaneously. +*/ + +/* + IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in + consideration of your agreement to the following terms, and your use, installation, + modification or redistribution of this Apple software constitutes acceptance of these + terms. If you do not agree with these terms, please do not use, install, modify or + redistribute this Apple software. + + In consideration of your agreement to abide by the following terms, and subject to these + terms, Apple grants you a personal, non-exclusive license, under Apples copyrights in + this original Apple software (the "Apple Software"), to use, reproduce, modify and + redistribute the Apple Software, with or without modifications, in source and/or binary + forms; provided that if you redistribute the Apple Software in its entirety and without + modifications, you must retain this notice and the following text and disclaimers in all + such redistributions of the Apple Software. Neither the name, trademarks, service marks + or logos of Apple Computer, Inc. may be used to endorse or promote products derived from + the Apple Software without specific prior written permission from Apple. Except as expressly + stated in this notice, no other rights or licenses, express or implied, are granted by Apple + herein, including but not limited to any patent rights that may be infringed by your + derivative works or by other works in which the Apple Software may be incorporated. + + The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, + EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS + USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. + + IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, + REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND + WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR + OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#import "ImageAndTextCell.h" + +@implementation ImageAndTextCell + +- (void)dealloc { + [image release]; + image = nil; + [super dealloc]; +} + +- copyWithZone:(NSZone *)zone { + ImageAndTextCell *cell = (ImageAndTextCell *)[super copyWithZone:zone]; + cell->image = [image retain]; + return cell; +} + +- (void)setImage:(NSImage *)anImage { + if (anImage != image) { + [image release]; + image = [anImage retain]; + } +} + +- (NSImage *)image { + return image; +} + +- (NSRect)imageFrameForCellFrame:(NSRect)cellFrame { + if (image != nil) { + NSRect imageFrame; + imageFrame.size = [image size]; + imageFrame.origin = cellFrame.origin; + imageFrame.origin.x += 3; + imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); + return imageFrame; + } + else + return NSZeroRect; +} + +- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent { + NSRect textFrame, imageFrame; + NSDivideRect (aRect, &imageFrame, &textFrame, 3 + [image size].width, NSMinXEdge); + [super editWithFrame: textFrame inView: controlView editor:textObj delegate:anObject event: theEvent]; +} + +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 +typedef int NSInteger; +#endif +- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(NSInteger)selStart length:(NSInteger)selLength { + NSRect textFrame, imageFrame; + NSDivideRect (aRect, &imageFrame, &textFrame, 3 + [image size].width, NSMinXEdge); + [super selectWithFrame: textFrame inView: controlView editor:textObj delegate:anObject start:selStart length:selLength]; +} + +- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { + if (image != nil) { + NSSize imageSize; + NSRect imageFrame; + + imageSize = [image size]; + NSDivideRect(cellFrame, &imageFrame, &cellFrame, 3 + imageSize.width, NSMinXEdge); + if ([self drawsBackground]) { + [[self backgroundColor] set]; + NSRectFill(imageFrame); + } + imageFrame.origin.x += 3; + imageFrame.size = imageSize; + + if ([controlView isFlipped]) + imageFrame.origin.y += ceil((cellFrame.size.height + imageFrame.size.height) / 2); + else + imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); + + [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; + } + [super drawWithFrame:cellFrame inView:controlView]; +} + +- (NSSize)cellSize { + NSSize cellSize = [super cellSize]; + cellSize.width += (image ? [image size].width : 0) + 3; + return cellSize; +} + +@end + diff -Nru unison-2.40.102/uimac14/Info.plist unison-2.48.3/uimac14/Info.plist --- unison-2.40.102/uimac14/Info.plist 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Info.plist 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,32 @@ + + + + + CFBundleName + Unison + CFBundleDevelopmentRegion + English + CFBundleExecutable + Unison + CFBundleIconFile + Unison.icns + CFBundleIdentifier + edu.upenn.cis.Unison + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleGetInfoString + ${MARKETING_VERSION}, ©1999-2014, licensed under GNU GPL. + NSHumanReadableCopyright + ©1999-2014, licensed under GNU GPL v3. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff -Nru unison-2.40.102/uimac14/Info.plist.template unison-2.48.3/uimac14/Info.plist.template --- unison-2.40.102/uimac14/Info.plist.template 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/Info.plist.template 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,34 @@ + + + + + CFBundleName + Unison + CFBundleDevelopmentRegion + English + CFBundleExecutable + Unison + CFBundleIconFile + Unison.icns + CFBundleIdentifier + edu.upenn.cis.Unison + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + @@VERSION@@ + CFBundleShortVersionString + @@VERSION@@ + CFBundleGetInfoString + @@VERSION@@. ©1999-2007, licensed under GNU GPL. + NSHumanReadableCopyright + ©1999-2006, licensed under GNU GPL. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff -Nru unison-2.40.102/uimac14/main.m unison-2.48.3/uimac14/main.m --- unison-2.40.102/uimac14/main.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/main.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,53 @@ +// +// main.m +// uimac +// +// Created by Trevor Jim on Sun Aug 17 2003. +// Copyright (c) 2003, see file COPYING for details. +// + +#import +#import "Bridge.h" + +int main(int argc, const char *argv[]) +{ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + int i; + + /* When you click-start or use the open command, the program is invoked with + a command-line arg of the form -psn_XXXXXXXXX. The XXXXXXXX is a "process + serial number" and it seems to be important for Carbon programs. We need + to get rid of it if it's there so the ocaml code won't exit. Note, the + extra arg is not added if the binary is invoked directly from the command + line without using the open command. */ + if (argc == 2 && strncmp(argv[1],"-psn_",5) == 0) { + argc--; + argv[1] = NULL; + } + + [Bridge startup:argv]; + + /* Check for invocations that don't start up the gui */ + for (i=1; i + +#import "ProfileController.h" +#import "PreferencesController.h" +#import "NotificationController.h" +#import "ReconItem.h" +#import "ReconTableView.h" +#import "UnisonToolbar.h" +#import "ImageAndTextCell.h" +#import "ProgressCell.h" +#import "ColorGradientView.h" +#import "Bridge.h" + +@interface MyController : NSObject +{ + IBOutlet NSWindow *mainWindow; + UnisonToolbar *toolbar; + + IBOutlet NSWindow *cltoolWindow; + IBOutlet NSButton *cltoolPref; + + IBOutlet ProfileController *profileController; + IBOutlet NSView *chooseProfileView; + NSString *myProfile; + + IBOutlet PreferencesController *preferencesController; + IBOutlet NSView *preferencesView; + + IBOutlet NSView *updatesView; + IBOutlet NSView *ConnectingView; + IBOutlet ColorGradientView *connectingViewGradient; + + NSView *blankView; + + IBOutlet ReconTableView *tableView; + IBOutlet NSTextField *updatesText; + IBOutlet NSTextField *detailsTextView; + IBOutlet NSTextField *statusText; + IBOutlet ColorGradientView *detailsTextViewGradient; + + IBOutlet NSWindow *passwordWindow; + IBOutlet NSTextField *passwordPrompt; + IBOutlet NSTextField *passwordText; + IBOutlet NSButton *passwordCancelButton; + BOOL waitingForPassword; + + IBOutlet NSWindow *aboutWindow; + IBOutlet NSTextField *versionText; + + IBOutlet NSProgressIndicator *progressBar; + + IBOutlet NotificationController *notificationController; + + BOOL syncable; + BOOL duringSync; + BOOL afterSync; + + NSMutableArray *reconItems; + ParentReconItem *rootItem; + OCamlValue *preconn; + + BOOL doneFirstDiff; + IBOutlet NSWindow *diffWindow; + IBOutlet NSTextView *diffView; + IBOutlet NSSegmentedControl *tableModeSelector; + IBOutlet NSProgressIndicator *connectingAnimation; + + IBOutlet NSWindow *preferencesWindow; + IBOutlet NSButton* checkOpenProfile; + IBOutlet NSComboBox *profileBox; + IBOutlet NSTextField *detailsFontLabel; + IBOutlet NSTextField *diffFontLabel; + IBOutlet NSButton *chooseDetailsFont; + IBOutlet NSButton *chooseDiffFont; + + IBOutlet NSSplitView *splitView; + + id fontChangeTarget; + + BOOL isBatchSet; + NSTimer *_timer; + NSAlert *_timeoutAlert; + NSUInteger _secondsRemaining; + + BOOL shouldExitAfterWarning; +} + +- (id)init; +- (void)awakeFromNib; + +- (void)chooseProfiles; +- (IBAction)createButton:(id)sender; +- (IBAction)saveProfileButton:(id)sender; +- (IBAction)cancelProfileButton:(id)sender; +- (NSString *)profile; +- (void)profileSelected:(NSString *)aProfile; + +- (IBAction)showPreferences:(id)sender; +- (IBAction)restartButton:(id)sender; +- (IBAction)rescan:(id)sender; + +- (IBAction)openButton:(id)sender; +- (void)connect:(NSString *)profileName; +- (void)raisePasswordWindow:(NSString *)prompt; +- (void)controlTextDidEndEditing:(NSNotification *)notification; +- (IBAction)endPasswordWindow:(id)sender; +- (void)afterOpen; + +- (IBAction)syncButton:(id)sender; +- (IBAction)tableModeChanged:(id)sender; +- (void)initTableMode; + +- (NSMutableArray *)reconItems; +- (void)updateForChangedItems; +- (void)updateReconItems:(OCamlValue *)items; +- (id)updateForIgnore:(id)i; + +- (void)statusTextSet:(NSString *)s; +- (void)diffViewTextSet:(NSString *)title bodyText:(NSString *)body; +- (void)displayDetails:(ReconItem *)item; +- (void)clearDetails; + +- (IBAction)raiseCltoolWindow:(id)sender; +- (IBAction)cltoolYesButton:(id)sender; +- (IBAction)cltoolNoButton:(id)sender; + +- (IBAction)raiseAboutWindow:(id)sender; +- (IBAction)raiseWindow:(NSWindow *)theWindow; +- (IBAction)onlineHelp:(id)sender; +- (IBAction)installCommandLineTool:(id)sender; + +- (BOOL)validateItem:(SEL) action; +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; +- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem; + +- (void)resizeWindowToSize:(NSSize)newSize; +- (float)toolbarHeightForWindow:(NSWindow *)window; + +- (IBAction) checkOpenProfileChanged:(id)sender; +- (IBAction) chooseFont:(id)sender; +- (void) updateFontDisplay; + +@end + diff -Nru unison-2.40.102/uimac14/MyController.m unison-2.48.3/uimac14/MyController.m --- unison-2.40.102/uimac14/MyController.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/MyController.m 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,1227 @@ +/* Copyright (c) 2003, 2015, see file COPYING for details. */ + +#import "MyController.h" + +/* The following two define are a workaround for an incompatibility between +Ocaml 3.11.2 (and older) and the Mac OS X header files */ +#define uint64 uint64_caml +#define int64 int64_caml + +#define CAML_NAME_SPACE +#include +#include +#include +#include + +@interface NSString (_UnisonUtil) +- (NSString *)trim; +@end + +@implementation MyController + +static MyController *me; // needed by reloadTable and displayStatus, below + +// BCP (11/09): Added per Onne Gorter: +// if user closes main window, terminate app, instead of keeping an empty app around with no window +- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication { + return YES; +} + +- (id)init +{ + if (([super init])) { + + /* Initialize locals */ + me = self; + doneFirstDiff = NO; + + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys: + /* By default, invite user to install cltool */ + @"YES", @"CheckCltool", + @"NO", @"openProfileAtStartup", + @"", @"profileToOpen", + @"NO", @"deleteLogOnExit", + @"", @"detailsFont", + @"", @"diffFont", + nil]; + + [defaults registerDefaults:appDefaults]; + fontChangeTarget = nil; + } + + return self; +} + +- (void) applicationWillTerminate:(NSNotification *)aNotification { + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + [defaults setObject:[NSArchiver archivedDataWithRootObject:[detailsTextView font]] forKey:@"detailsFont"]; + [defaults setObject:[NSArchiver archivedDataWithRootObject:[diffView font]] forKey:@"diffFont"]; + [defaults synchronize]; +} + +- (void)awakeFromNib +{ + [splitView setAutosaveName:@"splitView"]; + + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSFont *defaultFont = [NSFont fontWithName:@"Monaco" size:11]; + NSData *detailsFontData = [defaults dataForKey:@"detailsFont"]; + if (detailsFontData) { + NSFont *tmpFont = (NSFont*) [NSUnarchiver unarchiveObjectWithData:detailsFontData]; + if (tmpFont) + [detailsTextView setFont:tmpFont]; + else + [detailsTextView setFont:defaultFont]; + } else + [detailsTextView setFont:defaultFont]; + [detailsTextView.cell setBackgroundStyle:NSBackgroundStyleRaised]; + [detailsTextView.cell setBackgroundStyle:NSBackgroundStyleRaised]; + + NSColor *startColor = [NSColor colorWithCalibratedRed:0.613 green:0.665 blue:0.715 alpha:1.000]; + NSColor *endColor = [NSColor colorWithCalibratedRed:0.439 green:0.496 blue:0.548 alpha:1.000]; + + [detailsTextViewGradient setStartingColor:startColor]; + [detailsTextViewGradient setEndingColor:endColor]; + [detailsTextViewGradient setAngle:270]; + [connectingViewGradient setStartingColor:startColor]; + [connectingViewGradient setEndingColor:endColor]; + [connectingViewGradient setAngle:270]; + + NSData *diffFontData = [defaults dataForKey:@"diffFont"]; + if (diffFontData) { + NSFont *tmpFont = (NSFont*) [NSUnarchiver unarchiveObjectWithData:diffFontData]; + if (tmpFont) + [diffView setFont:tmpFont]; + else + [diffView setFont:defaultFont]; + } else + [diffView setFont:defaultFont]; + + blankView = [[NSView alloc] init]; + + /* Double clicking in the profile list will open the profile */ + [[profileController tableView] setTarget:self]; + [[profileController tableView] setDoubleAction:@selector(openButton:)]; + + [tableView setAutoresizesOutlineColumn:NO]; + + // use combo-cell for path + [[tableView tableColumnWithIdentifier:@"path"] setDataCell:[[[ImageAndTextCell alloc] init] autorelease]]; + + // Custom progress cell + ProgressCell *progressCell = [[[ProgressCell alloc] init] autorelease]; + [[tableView tableColumnWithIdentifier:@"percentTransferred"] setDataCell:progressCell]; + + /* Set up the version string in the about box. We use a custom + about box just because PRCS doesn't seem capable of getting the + version into the InfoPlist.strings file; otherwise we'd use the + standard about box. */ + [versionText setStringValue:ocamlCall("S", "unisonGetVersion")]; + + /* Command-line processing */ + OCamlValue *clprofile = (id)ocamlCall("@", "unisonInit0"); + + BOOL areRootsSet = (long)ocamlCall("i", "areRootsSet") ? YES : NO; + if (areRootsSet) { + NSLog(@"Roots are on the command line"); + } + else { + NSLog(@"Roots are not set on the command line"); + } + + /* Add toolbar */ + toolbar = [[[UnisonToolbar alloc] + initWithIdentifier: @"unisonToolbar" :self :tableView] autorelease]; + [mainWindow setToolbar: toolbar]; + [toolbar takeTableModeView:tableModeSelector]; + [self initTableMode]; + + + /* Set up the first window the user will see */ + if (clprofile) { + /* A profile name was given on the command line */ + NSString *profileName = [clprofile getField:0 withType:'S']; + [self profileSelected:profileName]; + + /* If invoked from terminal we need to bring the app to the front */ + [NSApp activateIgnoringOtherApps:YES]; + + /* Start the connection */ + [self connect:profileName]; + } + else if (areRootsSet) { + /* If invoked from terminal we need to bring the app to the front */ + [NSApp activateIgnoringOtherApps:YES]; + /* Start the connection with the empty profile name, indicating roots only */ + [self connect:@""]; + } + else { + /* If invoked from terminal we need to bring the app to the front */ + [NSApp activateIgnoringOtherApps:YES]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"openProfileAtStartup"]) { + NSString *profileToOpen = [[NSUserDefaults standardUserDefaults] + stringForKey:@"profileToOpen"]; + if ([[profileToOpen trim] compare:@""] != NSOrderedSame && + [[profileController getProfiles] indexOfObject:profileToOpen] != NSNotFound) { + [self profileSelected:profileToOpen]; + [self connect:profileToOpen]; + } else { + /* Bring up the dialog to choose a profile */ + [self chooseProfiles]; + } + } else { + /* Bring up the dialog to choose a profile */ + [self chooseProfiles]; + } + } + + [mainWindow display]; + [mainWindow makeKeyAndOrderFront:nil]; + + /* unless user has clicked Don't ask me again, ask about cltool */ + if ( ([[NSUserDefaults standardUserDefaults] boolForKey:@"CheckCltool"]) && + (![[NSFileManager defaultManager] + fileExistsAtPath:@"/usr/bin/unison"]) ) + [self raiseCltoolWindow:nil]; +} + +- (IBAction) checkOpenProfileChanged:(id)sender { + [profileBox setEnabled:[checkOpenProfile state]]; + if ([profileBox isEnabled] && [profileBox indexOfSelectedItem] < 0) { + [profileBox selectItemAtIndex:0]; + [[NSUserDefaults standardUserDefaults] setObject:[profileBox itemObjectValueAtIndex:0] forKey:@"profileToOpen"]; + } +} + +- (IBAction) chooseFont:(id)sender { + [[NSFontPanel sharedFontPanel] makeKeyAndOrderFront:self]; + [[NSFontManager sharedFontManager] setDelegate:self]; + fontChangeTarget = sender; +} + +- (void) changeFont:(id)sender { + NSFont *newFont = [sender convertFont:[detailsTextView font]]; + if (fontChangeTarget == chooseDetailsFont) + [detailsTextView setFont:newFont]; + else if (fontChangeTarget == chooseDiffFont) + [diffView setFont:newFont]; + [self updateFontDisplay]; +} + +- (void) updateFontDisplay { + NSFont *detailsFont = [detailsTextView font]; + NSFont *diffFont = [diffView font]; + [detailsFontLabel setStringValue:[NSString stringWithFormat:@"%@ : %d", [detailsFont displayName], (NSInteger) [detailsFont pointSize]]]; + [diffFontLabel setStringValue:[NSString stringWithFormat:@"%@ : %d", [diffFont displayName], (NSInteger) [diffFont pointSize]]]; +} + +- (void)chooseProfiles +{ + [mainWindow setContentView:blankView]; + [self resizeWindowToSize:[chooseProfileView frame].size]; + [mainWindow setContentMinSize: + NSMakeSize(NSWidth([[mainWindow contentView] frame]),150)]; + [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + [mainWindow setContentView:chooseProfileView]; + [toolbar setView:@"chooseProfileView"]; + [mainWindow setTitle:@"Unison"]; + + // profiles get keyboard input + [mainWindow makeFirstResponder:[profileController tableView]]; + [chooseProfileView display]; +} + +- (IBAction)createButton:(id)sender +{ + [preferencesController reset]; + [mainWindow setContentView:blankView]; + [self resizeWindowToSize:[preferencesView frame].size]; + [mainWindow setContentMinSize: + NSMakeSize(400,NSHeight([[mainWindow contentView] frame]))]; + [mainWindow setContentMaxSize: + NSMakeSize(FLT_MAX,NSHeight([[mainWindow contentView] frame]))]; + [mainWindow setContentView:preferencesView]; + [toolbar setView:@"preferencesView"]; +} + +- (IBAction)saveProfileButton:(id)sender +{ + if ([preferencesController validatePrefs]) { + // so the list contains the new profile + [profileController initProfiles]; + [self chooseProfiles]; + } +} + +- (IBAction)cancelProfileButton:(id)sender +{ + [self chooseProfiles]; +} + +/* Only valid once a profile has been selected */ +- (NSString *)profile { + return myProfile; +} + +- (void)profileSelected:(NSString *)aProfile +{ + [aProfile retain]; + [myProfile release]; + myProfile = aProfile; + [mainWindow setTitle: [NSString stringWithFormat:@"Unison: %@", myProfile]]; +} + +- (IBAction)showPreferences:(id)sender { + [profileBox removeAllItems]; + [profileBox addItemsWithObjectValues:[profileController getProfiles]]; + NSUInteger index = [[profileController getProfiles] indexOfObject: + [[NSUserDefaults standardUserDefaults] + stringForKey:@"profileToOpen"]]; + if (index == NSNotFound) { + [checkOpenProfile setState:NSOffState]; + [profileBox setStringValue:@""]; + } else + [profileBox selectItemAtIndex:index]; + + [profileBox setEnabled:[checkOpenProfile state]]; + if ([profileBox isEnabled] && [profileBox indexOfSelectedItem] < 0) + [profileBox selectItemAtIndex:0]; + + [self updateFontDisplay]; + + [self raiseWindow:preferencesWindow]; +} + +- (IBAction)restartButton:(id)sender +{ + [tableView setEditable:NO]; + [self chooseProfiles]; +} + +- (IBAction)rescan:(id)sender +{ + /* There is a delay between turning off the button and it + actually being disabled. Make sure we don't respond. */ + if ([self validateItem:@selector(rescan:)]) { + waitingForPassword = NO; + [self afterOpen]; + } +} + +- (IBAction)openButton:(id)sender +{ + NSString *profile = [profileController selected]; + [self profileSelected:profile]; + [self connect:profile]; + return; +} + +- (void)updateToolbar +{ + [toolbar validateVisibleItems]; + [tableModeSelector setEnabled:((syncable && !duringSync) || afterSync)]; + + // Why? + [updatesView setNeedsDisplay:YES]; +} + +- (void)updateTableViewWithReset:(BOOL)shouldResetSelection +{ + [tableView reloadData]; + if (shouldResetSelection) { + [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; + shouldResetSelection = NO; + } + [updatesView setNeedsDisplay:YES]; +} + +- (void)updateProgressBar:(NSNumber *)newProgress +{ + // NSLog(@"Updating progress bar: %i - %i", (int)[newProgress doubleValue], (int)[progressBar doubleValue]); + [progressBar incrementBy:([newProgress doubleValue] - [progressBar doubleValue])]; +} + +- (void)updateTableViewSelection +{ + int n = [tableView numberOfSelectedRows]; + if (n == 1) [self displayDetails:[tableView itemAtRow:[tableView selectedRow]]]; + else [self clearDetails]; +} + +- (void)outlineViewSelectionDidChange:(NSNotification *)note +{ + [self updateTableViewSelection]; +} + +- (void)connect:(NSString *)profileName +{ + // contact server, propagate prefs + NSLog(@"Connecting to %@...", profileName); + + // Switch to ConnectingView + [mainWindow setContentView:blankView]; + [self resizeWindowToSize:[updatesView frame].size]; + [mainWindow setContentMinSize:NSMakeSize(150,150)]; + [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + [mainWindow setContentView:ConnectingView]; + [toolbar setView:@"connectingView"]; + + // Update (almost) immediately + [ConnectingView display]; + [connectingAnimation startAnimation:self]; + + syncable = NO; + afterSync = NO; + + [self updateToolbar]; + + // will spawn thread on OCaml side and callback when complete + (void)ocamlCall("xS", "unisonInit1", profileName); +} + +CAMLprim value unisonInit1Complete(value v) +{ + id pool = [[NSAutoreleasePool alloc] init]; + if (v == Val_unit) { + NSLog(@"Connected."); + [me->connectingAnimation stopAnimation:me]; + [me->preconn release]; + me->preconn = NULL; + [me performSelectorOnMainThread:@selector(afterOpen:) withObject:nil waitUntilDone:FALSE]; + } else { + // prompting required + me->preconn = [[OCamlValue alloc] initWithValue:Field(v,0)]; // value of Some + [me performSelectorOnMainThread:@selector(unisonInit1Complete:) withObject:nil waitUntilDone:FALSE]; + } + [pool release]; + return Val_unit; +} + +- (void)unisonInit1Complete:(id)ignore +{ + @try { + OCamlValue *prompt = ocamlCall("@@", "openConnectionPrompt", preconn); + if (!prompt) { + // turns out, no prompt needed, but must finish opening connection + ocamlCall("x@", "openConnectionEnd", preconn); + NSLog(@"Connected."); + waitingForPassword = NO; + [self afterOpen]; + return; + } + waitingForPassword = YES; + + [self raisePasswordWindow:[prompt getField:0 withType:'S']]; + } @catch (NSException *ex) { + NSRunAlertPanel(@"Connection Error", [ex description], @"OK", nil, nil); + [self chooseProfiles]; + return; + } + + NSLog(@"Connected."); +} + +- (void)raisePasswordWindow:(NSString *)prompt +{ + // FIX: some prompts don't ask for password, need to look at it + NSLog(@"Got the prompt: '%@'",prompt); + if ((long)ocamlCall("iS", "unisonPasswordMsg", prompt)) { + [passwordPrompt setStringValue:@"Please enter your password"]; + [NSApp beginSheet:passwordWindow + modalForWindow:mainWindow + modalDelegate:nil + didEndSelector:nil + contextInfo:nil]; + return; + } + if ((long)ocamlCall("iS", "unisonPassphraseMsg", prompt)) { + [passwordPrompt setStringValue:@"Please enter your passphrase"]; + [NSApp beginSheet:passwordWindow + modalForWindow:mainWindow + modalDelegate:nil + didEndSelector:nil + contextInfo:nil]; + return; + } + if ((long)ocamlCall("iS", "unisonAuthenticityMsg", prompt)) { + int i = NSRunAlertPanel(@"New host",prompt,@"Yes",@"No",nil); + if (i == NSAlertDefaultReturn) { + ocamlCall("x@s", "openConnectionReply", preconn, "yes"); + prompt = ocamlCall("S@", "openConnectionPrompt", preconn); + if (!prompt) { + // all done with prompts, finish opening connection + ocamlCall("x@", "openConnectionEnd", preconn); + waitingForPassword = NO; + [self afterOpen]; + return; + } + else { + [self raisePasswordWindow:[NSString + stringWithUTF8String:String_val(Field(prompt,0))]]; + return; + } + } + if (i == NSAlertAlternateReturn) { + ocamlCall("x@", "openConnectionCancel", preconn); + return; + } + else { + NSLog(@"Unrecognized response '%d' from NSRunAlertPanel",i); + ocamlCall("x@", "openConnectionCancel", preconn); + return; + } + } + NSLog(@"Unrecognized message from ssh: %@",prompt); + ocamlCall("x@", "openConnectionCancel", preconn); +} + +// The password window will invoke this when Enter occurs, b/c we +// are the delegate. +- (void)controlTextDidEndEditing:(NSNotification *)notification +{ + NSNumber *reason = [[notification userInfo] objectForKey:@"NSTextMovement"]; + int code = [reason intValue]; + if (code == NSReturnTextMovement) + [self endPasswordWindow:self]; +} +// Or, the Continue button will invoke this when clicked +- (IBAction)endPasswordWindow:(id)sender +{ + [passwordWindow orderOut:self]; + [NSApp endSheet:passwordWindow]; + if ([sender isEqualTo:passwordCancelButton]) { + ocamlCall("x@", "openConnectionCancel", preconn); + [self chooseProfiles]; + return; + } + NSString *password = [passwordText stringValue]; + ocamlCall("x@S", "openConnectionReply", preconn, password); + + OCamlValue *prompt = ocamlCall("@@", "openConnectionPrompt", preconn); + if (!prompt) { + // all done with prompts, finish opening connection + ocamlCall("x@", "openConnectionEnd", preconn); + waitingForPassword = NO; + [self afterOpen]; + } + else { + [self raisePasswordWindow:[prompt getField:0 withType:'S']]; + } +} + +- (void)afterOpen:(id)ignore +{ + [self afterOpen]; +} + +- (void)afterOpen +{ + if (waitingForPassword) return; + // move to updates window after clearing it + [self updateReconItems:nil]; + [progressBar setDoubleValue:0.0]; + [progressBar stopAnimation:self]; + // [self clearDetails]; + [mainWindow setContentView:blankView]; + [self resizeWindowToSize:[updatesView frame].size]; + [mainWindow setContentMinSize: + NSMakeSize(NSWidth([[mainWindow contentView] frame]),200)]; + [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + [mainWindow setContentView:updatesView]; + [toolbar setView:@"updatesView"]; + + syncable = NO; + afterSync = NO; + + [tableView deselectAll:self]; + [self updateToolbar]; + [self updateProgressBar:[NSNumber numberWithDouble:0.0]]; + + // this should depend on the number of reconitems, and is now done + // in updateReconItems: + // reconItems table gets keyboard input + //[mainWindow makeFirstResponder:tableView]; + [tableView scrollRowToVisible:0]; + + [preconn release]; + preconn = nil; // so old preconn can be garbage collected + // This will run in another thread spawned in OCaml and will return immediately + // We'll get a call back to unisonInit2Complete() when it is complete + ocamlCall("x", "unisonInit2"); +} + +- (void)doSync +{ + [tableView setEditable:NO]; + syncable = NO; + duringSync = YES; + + [self updateToolbar]; + + // This will run in another thread spawned in OCaml and will return immediately + // We'll get a call back to syncComplete() when it is complete + ocamlCall("x", "unisonSynchronize"); +} + +- (IBAction)syncButton:(id)sender +{ + [self doSync]; +} + + +- (void)afterUpdate:(id)retainedReconItems +{ + // NSLog(@"In afterUpdate:..."); + [self updateReconItems:retainedReconItems]; + [retainedReconItems release]; + + [notificationController updateFinishedFor:[self profile]]; + + // label the left and right columns with the roots + NSString *leftHost = [(NSString *)ocamlCall("S", "unisonFirstRootString") trim]; + NSString *rightHost = [(NSString *)ocamlCall("S", "unisonSecondRootString") trim]; + /* + [[[tableView tableColumnWithIdentifier:@"left"] headerCell] setObjectValue:lefthost]; + [[[tableView tableColumnWithIdentifier:@"right"] headerCell] setObjectValue:rightHost]; + */ + [mainWindow setTitle: [NSString stringWithFormat:@"Unison: %@ (%@ <-> %@)", + [self profile], leftHost, rightHost]]; + + // initial sort + [tableView setSortDescriptors:[NSArray arrayWithObjects: + [[tableView tableColumnWithIdentifier:@"fileSizeString"] sortDescriptorPrototype], + [[tableView tableColumnWithIdentifier:@"path"] sortDescriptorPrototype], + nil]]; + + [self updateTableViewWithReset:([reconItems count] > 0)]; + [self updateToolbar]; + isBatchSet = (long)ocamlCall("i", "isBatchSet") ? YES : NO; + if (isBatchSet) { + NSLog(@"batch set on the command line"); + } + else { + NSLog(@"batch not set on the command line"); + } + + if (isBatchSet) { + [self doSync]; + } +} + +CAMLprim value unisonInit2Complete(value v) +{ + id pool = [[NSAutoreleasePool alloc] init]; + [me performSelectorOnMainThread:@selector(afterUpdate:) withObject:[[OCamlValue alloc] initWithValue:v] waitUntilDone:FALSE]; + [pool release]; + return Val_unit; +} + +- (void)afterSync:(id)ignore +{ + [notificationController syncFinishedFor:[self profile]]; + duringSync = NO; + afterSync = YES; + [self updateToolbar]; + + int i; + for (i = 0; i < [reconItems count]; i++) { + [[reconItems objectAtIndex:i] resetProgress]; + } + + [self updateTableViewSelection]; + + [self updateTableViewWithReset:FALSE]; +} + +- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo +{ + [_timer invalidate]; + + switch (returnCode) { + case NSAlertAlternateReturn: + return; + break; + + default: + [[NSApplication sharedApplication] performSelector: @selector(terminate:) withObject: nil afterDelay: 0.0]; + break; + } +} + +- (void)updateCountdown +{ + if (_secondsRemaining == 0) { + [_timer invalidate]; + [[_timeoutAlert window] orderOut: nil]; + [self alertDidEnd: _timeoutAlert returnCode: NSAlertDefaultReturn contextInfo: nil]; + } else { + [_timeoutAlert setMessageText: [NSString stringWithFormat: @"Unison will quit in %lu seconds", _secondsRemaining]]; + _secondsRemaining--; + } +} + + +- (void)quitIfBatch:(id)ignore +{ + if (isBatchSet) { + NSLog(@"Automatically quitting because of -batch"); + _timeoutAlert = [NSAlert alertWithMessageText: @"" defaultButton: @"Quit" alternateButton: @"Cancel" otherButton: nil informativeTextWithFormat: @""]; + + _secondsRemaining = 10; + + _timer = [NSTimer scheduledTimerWithTimeInterval: 1 target: self selector: @selector(updateCountdown) userInfo: nil repeats: YES]; + + [_timeoutAlert beginSheetModalForWindow: mainWindow modalDelegate: self didEndSelector: @selector(alertDidEnd:returnCode:contextInfo:) contextInfo: NULL]; + } +} + +// TODO: (BCP, 3/2012) Note that the string literal "~/unison.log" here is wrong -- +// this is a user-settable preference (in ubase/trace.ml) and we should ask for its value. +CAMLprim value syncComplete() +{ + id pool = [[NSAutoreleasePool alloc] init]; + [me performSelectorOnMainThread:@selector(afterSync:) withObject:nil waitUntilDone:FALSE]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"deleteLogOnExit"]) + [[NSFileManager defaultManager] removeItemAtPath:[@"~/unison.log" stringByExpandingTildeInPath] error:nil]; + [pool release]; + + [me performSelectorOnMainThread:@selector(quitIfBatch:) withObject:nil waitUntilDone:FALSE]; + + return Val_unit; +} + +// A function called from ocaml +- (void)reloadTable:(NSNumber *)i +{ + // NSLog(@"*** ReloadTable: %i", [i intValue]); + + [[reconItems objectAtIndex:[i intValue]] resetProgress]; + [self updateTableViewWithReset:FALSE]; +} + +CAMLprim value reloadTable(value row) +{ + id pool = [[NSAutoreleasePool alloc] init]; + // NSLog(@"OCaml says... ReloadTable: %i", Int_val(row)); + NSNumber *num = [[NSNumber alloc] initWithInt:Int_val(row)]; + [me performSelectorOnMainThread:@selector(reloadTable:) withObject:num waitUntilDone:FALSE]; + [num release]; + [pool release]; + return Val_unit; +} + +- (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { + if (item == nil) item = rootItem; + return [[item children] count]; +} + +- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { + return [item isKindOfClass:[ParentReconItem class]]; +} + +- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item { + if (item == nil) item = rootItem; + return [[item children] objectAtIndex:index]; +} + +- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { + NSString *identifier = [tableColumn identifier]; + if (item == nil) item = rootItem; + + if ([identifier isEqualToString:@"percentTransferred"] && (!duringSync && !afterSync)) return nil; + + return [item valueForKey:identifier]; +} + +static NSDictionary *_SmallGreyAttributes = nil; + +- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(NSCell *)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item { + NSString *identifier = [tableColumn identifier]; + if ([identifier isEqualToString:@"path"]) { + // The file icon + [(ImageAndTextCell*)cell setImage:[item fileIcon]]; + + // For parents, format the file count into the text + long fileCount = [item fileCount]; + if (fileCount > 1) { + NSString *countString = [NSString stringWithFormat:@" (%ld files)", fileCount]; + NSString *fullString = [(NSString *)[cell objectValue] stringByAppendingString:countString]; + NSMutableAttributedString *as = [[NSMutableAttributedString alloc] initWithString:fullString]; + + if (!_SmallGreyAttributes) { + NSColor *txtColor = [NSColor grayColor]; + NSFont *txtFont = [NSFont systemFontOfSize:9.0]; + _SmallGreyAttributes = [[NSDictionary dictionaryWithObjectsAndKeys:txtFont, + NSFontAttributeName, txtColor, NSForegroundColorAttributeName, nil] retain]; + } + [as setAttributes:_SmallGreyAttributes range:NSMakeRange([fullString length] - [countString length], [countString length])]; + [cell setAttributedStringValue:as]; + [as release]; + } + } else if ([identifier isEqualToString:@"percentTransferred"]) { + [(ProgressCell*)cell setIcon:[item direction]]; + [(ProgressCell*)cell setStatusString:[item progressString]]; + [(ProgressCell*)cell setIsActive:[item isKindOfClass:[LeafReconItem class]]]; + } +} + +- (void)outlineView:(NSOutlineView *)outlineView + sortDescriptorsDidChange:(NSArray *)oldDescriptors { + NSArray *originalSelection = [outlineView selectedObjects]; + + // do we want to catch case of object changes to allow resort in same direction for progress / direction? + // Could check if our objects change and if the first item at the head of new and old were the same + [rootItem sortUsingDescriptors:[outlineView sortDescriptors]]; + [outlineView reloadData]; + [outlineView setSelectedObjects:originalSelection]; +} + +// Delegate methods + +- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item { + return NO; +} + +- (NSMutableArray *)reconItems // used in ReconTableView only +{ + return reconItems; +} + +- (int)tableMode +{ + return [tableModeSelector selectedSegment]; +} + +- (IBAction)tableModeChanged:(id)sender +{ + [[NSUserDefaults standardUserDefaults] setInteger:[self tableMode]+1 forKey:@"TableLayout"]; + [self updateForChangedItems]; +} + +- (void)initTableMode +{ + int mode = [[NSUserDefaults standardUserDefaults] integerForKey:@"TableLayout"] - 1; + if (mode == -1) mode = 1; + [tableModeSelector setSelectedSegment:mode]; +} + +- (void)updateReconItems:(OCamlValue *)caml_reconItems +{ + [reconItems release]; + reconItems = [[NSMutableArray alloc] init]; + long i, n =[caml_reconItems count]; + for (i=0; i0) { + [tableView setEditable:YES]; + + // reconItems table gets keyboard input + [mainWindow makeFirstResponder:tableView]; + + syncable = YES; + } + else { + [tableView setEditable:NO]; + afterSync = YES; // rescan should be enabled + + // reconItems table no longer gets keyboard input + [mainWindow makeFirstResponder:nil]; + } + [self updateToolbar]; +} + +- (id)updateForIgnore:(id)item +{ + long j = (long)ocamlCall("ii", "unisonUpdateForIgnore", [reconItems indexOfObjectIdenticalTo:item]); + NSLog(@"Updating for ignore..."); + [self updateReconItems:(OCamlValue *)ocamlCall("@", "unisonState")]; + return [reconItems objectAtIndex:j]; +} + +// A function called from ocaml +CAMLprim value displayStatus(value s) +{ + id pool = [[NSAutoreleasePool alloc] init]; + NSString *str = [[NSString alloc] initWithUTF8String:String_val(s)]; + // NSLog(@"displayStatus: %@", str); + [me performSelectorOnMainThread:@selector(statusTextSet:) withObject:str waitUntilDone:FALSE]; + [str release]; + [pool release]; + return Val_unit; +} + +- (void)statusTextSet:(NSString *)s { + /* filter out strings with # reconitems, and empty strings */ + if (!NSEqualRanges([s rangeOfString:@"reconitems"], + NSMakeRange(NSNotFound,0))) return; + [statusText setStringValue:s]; +} + +// Called from ocaml to dislpay progress bar +CAMLprim value displayGlobalProgress(value p) +{ + id pool = [[NSAutoreleasePool alloc] init]; + NSNumber *num = [[NSNumber alloc] initWithDouble:Double_val(p)]; + [me performSelectorOnMainThread:@selector(updateProgressBar:) + withObject:num waitUntilDone:FALSE]; + [num release]; + [pool release]; + return Val_unit; +} + +// Called from ocaml to display diff +CAMLprim value displayDiff(value s, value s2) +{ + id pool = [[NSAutoreleasePool alloc] init]; + [me performSelectorOnMainThread:@selector(diffViewTextSet:) + withObject:[NSArray arrayWithObjects:[NSString stringWithUTF8String:String_val(s)], + [NSString stringWithUTF8String:String_val(s2)], nil] + waitUntilDone:FALSE]; + [pool release]; + return Val_unit; +} + +// Called from ocaml to display diff error messages +CAMLprim value displayDiffErr(value s) +{ + id pool = [[NSAutoreleasePool alloc] init]; + NSString * str = [NSString stringWithUTF8String:String_val(s)]; + str = [[str componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; + [me->statusText performSelectorOnMainThread:@selector(setStringValue:) + withObject:str waitUntilDone:FALSE]; + [pool release]; + return Val_unit; +} + +- (void)diffViewTextSet:(NSArray *)args +{ + [self diffViewTextSet:[args objectAtIndex:0] bodyText:[args objectAtIndex:1]]; +} + +- (void)diffViewTextSet:(NSString *)title bodyText:(NSString *)body { + if ([body length]==0) return; + [diffWindow setTitle:title]; + //[diffView setFont:diffFont]; + [diffView setString:body]; + if (!doneFirstDiff) { + /* On first open, position the diff window to the right of + the main window, but without going off the mainwindow's screen */ + float screenOriginX = [[mainWindow screen] visibleFrame].origin.x; + float screenWidth = [[mainWindow screen] visibleFrame].size.width; + float mainOriginX = [mainWindow frame].origin.x; + float mainOriginY = [mainWindow frame].origin.y; + float mainWidth = [mainWindow frame].size.width; + float mainHeight = [mainWindow frame].size.height; + float diffWidth = [diffWindow frame].size.width; + + float diffX = mainOriginX+mainWidth; + float maxX = screenOriginX+screenWidth-diffWidth; + if (diffX > maxX) diffX = maxX; + float diffY = mainOriginY + mainHeight; + + NSPoint diffOrigin = NSMakePoint(diffX,diffY); + [diffWindow cascadeTopLeftFromPoint:diffOrigin]; + + doneFirstDiff = YES; + } + [diffWindow orderFront:nil]; +} + +- (void)displayDetails:(ReconItem *)item +{ + //[detailsTextView setFont:diffFont]; + NSString *text = [item details]; + if (!text) text = @""; + [detailsTextView setStringValue:text]; +} + +- (void)clearDetails +{ + [detailsTextView setStringValue:@""]; +} + +- (IBAction)raiseCltoolWindow:(id)sender +{ + [cltoolPref setState:[[NSUserDefaults standardUserDefaults] boolForKey:@"CheckCltool"] ? NSOffState : NSOnState]; + [self raiseWindow: cltoolWindow]; +} + +- (IBAction)cltoolYesButton:(id)sender; +{ + [[NSUserDefaults standardUserDefaults] setBool:([cltoolPref state] != NSOnState) forKey:@"CheckCltool"]; + [self installCommandLineTool:self]; + [cltoolWindow close]; +} + +- (IBAction)cltoolNoButton:(id)sender; +{ + [[NSUserDefaults standardUserDefaults] setBool:([cltoolPref state] != NSOnState) forKey:@"CheckCltool"]; + [cltoolWindow close]; +} + +- (IBAction)raiseAboutWindow:(id)sender +{ + [self raiseWindow: aboutWindow]; +} + +- (void)raiseWindow:(NSWindow *)theWindow +{ + NSRect screenFrame = [[mainWindow screen] visibleFrame]; + NSRect mainWindowFrame = [mainWindow frame]; + NSRect theWindowFrame = [theWindow frame]; + + float winX = mainWindowFrame.origin.x + + (mainWindowFrame.size.width - theWindowFrame.size.width)/2; + float winY = mainWindowFrame.origin.y + + (mainWindowFrame.size.height + theWindowFrame.size.height)/2; + + if (winXmaxX) winX=maxX; + float minY = screenFrame.origin.y+theWindowFrame.size.height; + if (winYmaxY) winY=maxY; + + [theWindow cascadeTopLeftFromPoint: + NSMakePoint(winX,winY)]; + + [theWindow makeKeyAndOrderFront:nil]; +} + +- (IBAction)onlineHelp:(id)sender +{ + [[NSWorkspace sharedWorkspace] + openURL:[NSURL URLWithString:@"http://www.cis.upenn.edu/~bcpierce/unison/docs.html"]]; +} + +/* from http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html */ +#include +#include +- (IBAction)installCommandLineTool:(id)sender +{ + /* Install the command-line tool in /usr/bin/unison. + Requires root privilege, so we ask for it and + pass the task off to /bin/sh. */ + + OSStatus myStatus; + + AuthorizationFlags myFlags = kAuthorizationFlagDefaults; + AuthorizationRef myAuthorizationRef; + myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, + myFlags, &myAuthorizationRef); + if (myStatus != errAuthorizationSuccess) return; + + { + AuthorizationItem myItems = {kAuthorizationRightExecute, 0, + NULL, 0}; + AuthorizationRights myRights = {1, &myItems}; + myFlags = kAuthorizationFlagDefaults | + kAuthorizationFlagInteractionAllowed | + kAuthorizationFlagPreAuthorize | + kAuthorizationFlagExtendRights; + myStatus = + AuthorizationCopyRights(myAuthorizationRef,&myRights,NULL,myFlags,NULL); + } + if (myStatus == errAuthorizationSuccess) { + NSBundle *bundle = [NSBundle mainBundle]; + NSString *bundle_path = [bundle bundlePath]; + NSString *exec_path = + [bundle_path stringByAppendingString:@"/Contents/MacOS/cltool"]; + // Not sure why but this doesn't work: + // [bundle pathForResource:@"cltool" ofType:nil]; + + if (exec_path == nil) return; + char *args[] = { "-f", (char *)[exec_path UTF8String], + "/usr/bin/unison", NULL }; + + myFlags = kAuthorizationFlagDefaults; + myStatus = AuthorizationExecuteWithPrivileges + (myAuthorizationRef, "/bin/cp", myFlags, args, + NULL); + } + AuthorizationFree (myAuthorizationRef, kAuthorizationFlagDefaults); + + /* + if (myStatus == errAuthorizationCanceled) + NSLog(@"The attempt was canceled\n"); + else if (myStatus) + NSLog(@"There was an authorization error: %ld\n", myStatus); + */ +} + +- (BOOL)validateItem:(SEL) action +{ + if (action == @selector(syncButton:)) return syncable; + // FIXME Restarting during sync is disabled because it causes UI corruption + else if (action == @selector(restartButton:)) return !duringSync; + else if (action == @selector(rescan:)) return ((syncable && !duringSync) || afterSync); + else return YES; +} + +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem +{ + return [self validateItem:[menuItem action]]; +} + +- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem +{ + return [self validateItem:[toolbarItem action]]; +} + +- (void)resizeWindowToSize:(NSSize)newSize +{ + NSRect aFrame; + + float newHeight = newSize.height+[self toolbarHeightForWindow:mainWindow]; + float newWidth = newSize.width; + + aFrame = [NSWindow contentRectForFrameRect:[mainWindow frame] + styleMask:[mainWindow styleMask]]; + + aFrame.origin.y += aFrame.size.height; + aFrame.origin.y -= newHeight; + aFrame.size.height = newHeight; + aFrame.size.width = newWidth; + + aFrame = [NSWindow frameRectForContentRect:aFrame + styleMask:[mainWindow styleMask]]; + + [mainWindow setFrame:aFrame display:YES animate:YES]; +} + +- (float)toolbarHeightForWindow:(NSWindow *)window +{ + NSToolbar *aToolbar; + float toolbarHeight = 0.0; + NSRect windowFrame; + + aToolbar = [window toolbar]; + if(aToolbar && [aToolbar isVisible]) + { + windowFrame = [NSWindow contentRectForFrameRect:[window frame] + styleMask:[window styleMask]]; + toolbarHeight = NSHeight(windowFrame) + - NSHeight([[window contentView] frame]); + } + return toolbarHeight; +} + +CAMLprim value fatalError(value s) +{ + NSString *str = [[NSString alloc] initWithUTF8String:String_val(s)]; + + [me performSelectorOnMainThread:@selector(fatalError:) withObject:str waitUntilDone:FALSE]; + [str release]; + return Val_unit; +} + +- (void)fatalError:(NSString *)msg { + NSRunAlertPanel(@"Fatal error", msg, @"Exit", nil, nil); + exit(1); +} + +/* Returns true if we need to exit, false if we proceed */ + +CAMLprim value warnPanel(value s) +{ + NSString *str = [[NSString alloc] initWithUTF8String:String_val(s)]; + + [me performSelectorOnMainThread:@selector(warnPanel:) withObject:str waitUntilDone:TRUE]; + [str release]; + if (me -> shouldExitAfterWarning) { + return Val_true; + } else { + return Val_false; + } +} + +- (void)warnPanel:(NSString *)msg { + int warnVal = NSRunAlertPanel(@"Warning", msg, @"Proceed", @"Exit", nil); + NSLog(@"Warning Panel Returned %d",warnVal); + if (warnVal == NSAlertAlternateReturn) { + shouldExitAfterWarning = YES; + } else { + shouldExitAfterWarning = FALSE; + } +} + +@end + +@implementation NSString (_UnisonUtil) +- (NSString *)trim +{ + NSCharacterSet *ws = [NSCharacterSet whitespaceCharacterSet]; + int len = [self length], i = len; + while (i && [ws characterIsMember:[self characterAtIndex:i-1]]) i--; + return (i == len) ? self : [self substringToIndex:i]; +} +@end diff -Nru unison-2.40.102/uimac14/NotificationController.h unison-2.48.3/uimac14/NotificationController.h --- unison-2.40.102/uimac14/NotificationController.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/NotificationController.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,23 @@ +// +// NotificationController.h +// uimac +// +// Created by Alan Schmitt on 02/02/06. +// Copyright 2006, see file COPYING for details. All rights reserved. +// + +#import +#import + +@interface NotificationController : NSObject +{ +} + +- (void)updateFinishedFor: (NSString *)profile; +- (void)syncFinishedFor: (NSString *)profile; + +/* Implement the GrowlApplicationBridgeDelegate protocol */ +- (NSDictionary *)registrationDictionaryForGrowl; +- (NSString *)applicationNameForGrowl; + +@end diff -Nru unison-2.40.102/uimac14/NotificationController.m unison-2.48.3/uimac14/NotificationController.m --- unison-2.40.102/uimac14/NotificationController.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/NotificationController.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,65 @@ +// +// NotificationController.m +// uimac +// +// Created by Alan Schmitt on 02/02/06. +// Copyright 2006, see file COPYING for details. All rights reserved. +// + +#import "NotificationController.h" + +#define NOTIFY_UPDATE @"Scan finished" +#define NOTIFY_SYNC @"Synchronization finished" + +/* Show a simple notification */ +static void simpleNotify(NSString *name, NSString *descFmt, NSString *profile); + +@implementation NotificationController + +- (void)awakeFromNib +{ + [GrowlApplicationBridge setGrowlDelegate:self]; +} + +- (void)updateFinishedFor: (NSString *)profile +{ + simpleNotify(NOTIFY_UPDATE, + @"Profile '%@' is finished scanning for updates", + profile); +} + +- (void)syncFinishedFor: (NSString *)profile { + simpleNotify(NOTIFY_SYNC, + @"Profile '%@' is finished synchronizing", + profile); +} + +- (NSDictionary *)registrationDictionaryForGrowl +{ + NSArray* notifications = [NSArray arrayWithObjects: + NOTIFY_UPDATE, + NOTIFY_SYNC, + nil]; + return [NSDictionary dictionaryWithObjectsAndKeys: + notifications, GROWL_NOTIFICATIONS_ALL, + notifications, GROWL_NOTIFICATIONS_DEFAULT, + nil]; +} + +- (NSString *)applicationNameForGrowl +{ + return @"Unison"; +} + +@end + +static void simpleNotify(NSString *name, NSString *descFmt, NSString *profile) +{ + [GrowlApplicationBridge notifyWithTitle:name + description:[NSString stringWithFormat:descFmt, profile] + notificationName:name + iconData:nil + priority:0 + isSticky:false + clickContext:nil]; +} \ No newline at end of file diff -Nru unison-2.40.102/uimac14/PreferencesController.h unison-2.48.3/uimac14/PreferencesController.h --- unison-2.40.102/uimac14/PreferencesController.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/PreferencesController.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,20 @@ +/* PreferencesController */ + +#import + +@interface PreferencesController : NSObject +{ + IBOutlet NSTextField *firstRootText; + IBOutlet NSButtonCell *localButtonCell; + IBOutlet NSTextField *profileNameText; + IBOutlet NSButtonCell *remoteButtonCell; + IBOutlet NSTextField *secondRootHost; + IBOutlet NSTextField *secondRootText; + IBOutlet NSTextField *secondRootUser; +} +- (IBAction)anyEnter:(id)sender; +- (IBAction)localClick:(id)sender; +- (IBAction)remoteClick:(id)sender; +- (BOOL)validatePrefs; +- (void)reset; +@end diff -Nru unison-2.40.102/uimac14/PreferencesController.m unison-2.48.3/uimac14/PreferencesController.m --- unison-2.40.102/uimac14/PreferencesController.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/PreferencesController.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,89 @@ +#import "PreferencesController.h" +#import "Bridge.h" + +@implementation PreferencesController + +- (void)reset +{ + [profileNameText setStringValue:@""]; + [firstRootText setStringValue:@""]; + [secondRootUser setStringValue:@""]; + [secondRootHost setStringValue:@""]; + [secondRootText setStringValue:@""]; + [remoteButtonCell setState:NSOnState]; + [localButtonCell setState:NSOffState]; + [secondRootUser setSelectable:YES]; + [secondRootUser setEditable:YES]; + [secondRootHost setSelectable:YES]; + [secondRootHost setEditable:YES]; +} + +- (BOOL)validatePrefs +{ + NSString *profileName = [profileNameText stringValue]; + if (profileName == nil | [profileName isEqualTo:@""]) { + // FIX: should check for already existing names too + NSRunAlertPanel(@"Error",@"You must enter a profile name",@"OK",nil,nil); + return NO; + } + NSString *firstRoot = [firstRootText stringValue]; + if (firstRoot == nil | [firstRoot isEqualTo:@""]) { + NSRunAlertPanel(@"Error",@"You must enter a first root",@"OK",nil,nil); + return NO; + } + NSString *secondRoot; + if ([remoteButtonCell state] == NSOnState) { + NSString *user = [secondRootUser stringValue]; + if (user == nil | [user isEqualTo:@""]) { + NSRunAlertPanel(@"Error",@"You must enter a user",@"OK",nil,nil); + return NO; + } + NSString *host = [secondRootHost stringValue]; + if (host == nil | [host isEqualTo:@""]) { + NSRunAlertPanel(@"Error",@"You must enter a host",@"OK",nil,nil); + return NO; + } + NSString *file = [secondRootText stringValue]; + // OK for empty file, e.g., ssh://foo@bar/ + secondRoot = [NSString stringWithFormat:@"ssh://%@@%@/%@",user,host,file]; + } + else { + secondRoot = [secondRootText stringValue]; + if (secondRoot == nil | [secondRoot isEqualTo:@""]) { + NSRunAlertPanel(@"Error",@"You must enter a second root file",@"OK",nil,nil); + return NO; + } + } + ocamlCall("xSSS", "unisonProfileInit", profileName, firstRoot, secondRoot); + return YES; +} + +/* The target when enter is pressed in any of the text fields */ +// FIX: this is broken, it takes tab, mouse clicks, etc. +- (IBAction)anyEnter:(id)sender +{ + NSLog(@"enter"); + [self validatePrefs]; +} + +- (IBAction)localClick:(id)sender +{ + NSLog(@"local"); + [secondRootUser setStringValue:@""]; + [secondRootHost setStringValue:@""]; + [secondRootUser setSelectable:NO]; + [secondRootUser setEditable:NO]; + [secondRootHost setSelectable:NO]; + [secondRootHost setEditable:NO]; +} + +- (IBAction)remoteClick:(id)sender +{ + NSLog(@"remote"); + [secondRootUser setSelectable:YES]; + [secondRootUser setEditable:YES]; + [secondRootHost setSelectable:YES]; + [secondRootHost setEditable:YES]; +} + +@end diff -Nru unison-2.40.102/uimac14/ProfileController.h unison-2.48.3/uimac14/ProfileController.h --- unison-2.40.102/uimac14/ProfileController.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProfileController.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,20 @@ +/* ProfileController */ +/* Copyright (c) 2003, see file COPYING for details. */ + +#import + +@interface ProfileController : NSObject +{ + IBOutlet NSTableView *tableView; + NSMutableArray *profiles; + int defaultIndex; // -1 if no default, else the index in profiles of @"default" +} +- (void)initProfiles; +- (int)numberOfRowsInTableView:(NSTableView *)aTableView; +- (id)tableView:(NSTableView *)aTableView + objectValueForTableColumn:(NSTableColumn *)aTableColumn + row:(int)rowIndex; +- (NSString *)selected; +- (NSTableView *)tableView; // allows MyController to set up firstResponder +- (NSMutableArray*) getProfiles; +@end diff -Nru unison-2.40.102/uimac14/ProfileController.m unison-2.48.3/uimac14/ProfileController.m --- unison-2.40.102/uimac14/ProfileController.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProfileController.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,84 @@ +/* Copyright (c) 2003, see file COPYING for details. */ + +#import "ProfileController.h" +#import "Bridge.h" + +@implementation ProfileController + +NSString *unisonDirectory() +{ + return (NSString *)ocamlCall("S", "unisonDirectory"); +} + +- (void)initProfiles +{ + NSString *directory = unisonDirectory(); +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + NSArray *files = [[NSFileManager defaultManager] directoryContentsAtPath:directory]; +#else + NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directory error:nil]; +#endif + unsigned int count = [files count]; + unsigned int i,j; + + [profiles release]; + profiles = [[NSMutableArray alloc] init]; + defaultIndex = -1; + + for (i = j = 0; i < count; i++) { + NSString *file = [files objectAtIndex:i]; + if ([[file pathExtension] isEqualTo:@"prf"]) { + NSString *withoutExtension = [file stringByDeletingPathExtension]; + [profiles insertObject:withoutExtension atIndex:j]; + if ([@"default" isEqualTo:withoutExtension]) defaultIndex = j; + j++; + } + } + if (j > 0) + [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; +} + +- (void)awakeFromNib +{ + // start with the default profile selected + [self initProfiles]; + if (defaultIndex >= 0) + [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:defaultIndex] byExtendingSelection:NO]; + // on awake the scroll bar is inactive, but after adding profiles we might need it; + // reloadData makes it happen. Q: is setNeedsDisplay more efficient? + [tableView reloadData]; +} + +- (int)numberOfRowsInTableView:(NSTableView *)aTableView +{ + if (!profiles) return 0; + else return [profiles count]; +} + +- (id)tableView:(NSTableView *)aTableView + objectValueForTableColumn:(NSTableColumn *)aTableColumn + row:(int)rowIndex +{ + if (rowIndex >= 0 && rowIndex < [profiles count]) + return [profiles objectAtIndex:rowIndex]; + else return @"[internal error!]"; +} + +- (NSString *)selected +{ + int rowIndex = [tableView selectedRow]; + if (rowIndex >= 0 && rowIndex < [profiles count]) + return [profiles objectAtIndex:rowIndex]; + else return @"[internal error!]"; +} + +- (NSTableView *)tableView +{ + return tableView; +} + +- (NSMutableArray*)getProfiles { + return profiles; +} + +@end diff -Nru unison-2.40.102/uimac14/ProfileTableView.h unison-2.48.3/uimac14/ProfileTableView.h --- unison-2.40.102/uimac14/ProfileTableView.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProfileTableView.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,11 @@ +/* ProfileTableView */ + +#import + +@class MyController; + +@interface ProfileTableView : NSTableView +{ + IBOutlet MyController *myController; +} +@end diff -Nru unison-2.40.102/uimac14/ProfileTableView.m unison-2.48.3/uimac14/ProfileTableView.m --- unison-2.40.102/uimac14/ProfileTableView.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProfileTableView.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,36 @@ +#import "MyController.h" +#import "ProfileTableView.h" + +@implementation ProfileTableView + +- (void)keyDown:(NSEvent *)event +{ + /* some keys return zero-length strings */ + if ([[event characters] length] == 0) { + [super keyDown:event]; + return; + } + + unichar c = [[event characters] characterAtIndex:0]; + switch (c) { + case '\r': + [myController openButton:self]; + break; + default: + [super keyDown:event]; + break; + } +} + +/* Override default highlight colour to match ReconTableView */ +- (id)_highlightColorForCell:(NSCell *)cell +{ + if(([[self window] firstResponder] == self) && + [[self window] isMainWindow] && + [[self window] isKeyWindow]) + + return [NSColor colorWithCalibratedRed:0.7 green:0.75 blue:0.8 alpha:1.0]; + else return [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:0.8 alpha:1.0]; +} + +@end diff -Nru unison-2.40.102/uimac14/ProgressCell.h unison-2.48.3/uimac14/ProgressCell.h --- unison-2.40.102/uimac14/ProgressCell.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProgressCell.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,15 @@ +#import + +@interface ProgressCell : NSCell +{ + float _minVal, _maxVal; // defaults to 0.0, 100.0 + BOOL _isActive; + BOOL _useFullView; // default: NO + BOOL _isError; // default: NO + NSImage *_icon; + NSString *_statusString; +} +- (void)setStatusString:(NSString *)string; +- (void)setIcon:(NSImage *)image; +- (void)setIsActive:(BOOL)yn; +@end diff -Nru unison-2.40.102/uimac14/ProgressCell.m unison-2.48.3/uimac14/ProgressCell.m --- unison-2.40.102/uimac14/ProgressCell.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ProgressCell.m 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,199 @@ +/****************************************************************************** + * Copyright 2008, 2015 (see file COPYING for more information) + * + * Loosely based on TorrentCell from Transmission (.png files are from + * the original). + *****************************************************************************/ + +#import "ProgressCell.h" + +#define BAR_HEIGHT 12.0 + +static NSImage *_ProgressWhite, *_ProgressBlue, *_ProgressGray, *_ProgressGreen, + *_ProgressAdvanced, *_ProgressEndWhite, *_ProgressEndBlue, + *_ProgressEndGray, *_ProgressEndGreen, *_ProgressLightGreen, + *_ProgressEndAdvanced, * _ErrorImage; +static NSSize ZeroSize; + +@implementation ProgressCell + ++ (void) initialize +{ + NSSize startSize = NSMakeSize(100.0, BAR_HEIGHT); + ZeroSize = NSMakeSize(0.0, 0.0); + + _ProgressWhite = [NSImage imageNamed: @"ProgressBarWhite.png"]; + [_ProgressWhite setScalesWhenResized: YES]; + + _ProgressBlue = [NSImage imageNamed: @"ProgressBarBlue.png"]; + [_ProgressBlue setScalesWhenResized: YES]; + [_ProgressBlue setSize: startSize]; + + _ProgressGray = [NSImage imageNamed: @"ProgressBarGray.png"]; + [_ProgressGray setScalesWhenResized: YES]; + [_ProgressGray setSize: startSize]; + + _ProgressGreen = [NSImage imageNamed: @"ProgressBarGreen.png"]; + [_ProgressGreen setScalesWhenResized: YES]; + + _ProgressLightGreen = [NSImage imageNamed: @"ProgressBarLightGreen.png"]; + [_ProgressLightGreen setScalesWhenResized: YES]; + + _ProgressAdvanced = [NSImage imageNamed: @"ProgressBarAdvanced.png"]; + [_ProgressAdvanced setScalesWhenResized: YES]; + + _ProgressEndWhite = [NSImage imageNamed: @"ProgressBarEndWhite.png"]; + _ProgressEndBlue = [NSImage imageNamed: @"ProgressBarEndBlue.png"]; + _ProgressEndGray = [NSImage imageNamed: @"ProgressBarEndGray.png"]; + _ProgressEndGreen = [NSImage imageNamed: @"ProgressBarEndGreen.png"]; + _ProgressEndAdvanced = [NSImage imageNamed: @"ProgressBarEndAdvanced.png"]; + + _ErrorImage = [[NSImage imageNamed: @"Error.tiff"] copy]; + [_ErrorImage setFlipped: YES]; +} + +- (id)init +{ + self = [super init]; + _minVal = 0.0; + _maxVal = 100.0; + _isActive = YES; + _statusString = @""; + + return self; +} + + - (void)dealloc + { + [_icon release]; + [_statusString release]; + [super dealloc]; + } + +- (void)setStatusString:(NSString *)string +{ + _statusString = [string retain]; +} + +- (void)setIcon:(NSImage *)image +{ + _icon = [image retain]; +} + +- (void)setIsActive:(BOOL)yn +{ + _isActive = yn; +} + +- (void)drawBarImage:(NSImage *)barImage width:(float)width point:(NSPoint)point +{ + if (width <= 0.0) + return; + + if ([barImage size].width < width) + [barImage setSize: NSMakeSize(width * 2.0, BAR_HEIGHT)]; + + [barImage compositeToPoint: point fromRect: NSMakeRect(0, 0, width, BAR_HEIGHT) operation: NSCompositeSourceOver]; +} + +- (void)drawBar:(float)width point:(NSPoint)point +{ + id objectValue = [self objectValue]; + if (!objectValue) return; + + float value = [objectValue floatValue]; + float progress = (value - _minVal)/ (_maxVal - _minVal); + + width -= 2.0; + float completedWidth, remainingWidth = 0.0; + + //bar images and widths + NSImage * barLeftEnd, * barRightEnd, * barComplete, * barRemaining; + if (progress >= 1.0) { + completedWidth = width; + barLeftEnd = _ProgressEndGreen; + barRightEnd = _ProgressEndGreen; + barComplete = _ProgressGreen; + barRemaining = _ProgressLightGreen; + } + else { + completedWidth = progress * width; + remainingWidth = width - completedWidth; + barLeftEnd = (remainingWidth == width) ? _ProgressEndWhite + : ((_isActive) ? _ProgressEndBlue : _ProgressEndGray); + barRightEnd = (completedWidth < width) ? _ProgressEndWhite + : ((_isActive) ? _ProgressEndBlue : _ProgressEndGray); + barComplete = _isActive ? _ProgressBlue : _ProgressGray; + barRemaining = _ProgressWhite; + } + + [barLeftEnd compositeToPoint: point operation: NSCompositeSourceOver]; + + point.x += 1.0; + [self drawBarImage: barComplete width: completedWidth point: point]; + + point.x += completedWidth; + [self drawBarImage: barRemaining width: remainingWidth point: point]; + + point.x += remainingWidth; + [barRightEnd compositeToPoint: point operation: NSCompositeSourceOver]; +} + +- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)view +{ + NSPoint pen = cellFrame.origin; + const float PADDING = 3.0; + + // progress bar + pen.y += PADDING + BAR_HEIGHT; + float mainWidth = cellFrame.size.width; + float barWidth = mainWidth; + [self drawBar: barWidth point: pen]; + + //icon + NSImage * image = _isError ? _ErrorImage : _icon; + if (image) { + NSSize imageSize = [image size]; + NSRect imageFrame; + imageFrame.origin = cellFrame.origin; + imageFrame.size = imageSize; + imageFrame.origin.x += ceil((cellFrame.size.width - imageSize.width) / 2); + imageFrame.origin.y += [view isFlipped] ? + ceil((cellFrame.size.height + imageSize.height) / 2) + : ceil((cellFrame.size.height - imageSize.height) / 2); + [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; + } + + // status string + if (_statusString) { + BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: view] + isEqual: [NSColor alternateSelectedControlColor]]; + NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; + [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail]; + + NSDictionary * statusAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: + highlighted ? [NSColor whiteColor] : [NSColor darkGrayColor], NSForegroundColorAttributeName, + [NSFont boldSystemFontOfSize: 9.0], NSFontAttributeName, + paragraphStyle, NSParagraphStyleAttributeName, nil]; + [paragraphStyle release]; + + NSSize statusSize = [_statusString sizeWithAttributes: statusAttributes]; + pen = cellFrame.origin; + pen.x += (cellFrame.size.width - statusSize.width) * 0.5; + pen.y += (cellFrame.size.height - statusSize.height) * 0.5; + + [_statusString drawInRect: NSMakeRect(pen.x, pen.y, statusSize.width, statusSize.height) + withAttributes: statusAttributes]; + [statusAttributes release]; + } +} + +- (id)copyWithZone: (NSZone *)zone +{ + ProgressCell *newObj = [super copyWithZone: zone]; + newObj->_statusString = [_statusString retain]; + newObj->_icon = [_icon retain]; + return newObj; +} + +@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarAdvanced.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarAdvanced.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarBlue.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarBlue.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarEndAdvanced.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarEndAdvanced.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarEndBlue.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarEndBlue.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarEndGray.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarEndGray.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarEndGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarEndGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarEndWhite.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarEndWhite.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarGray.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarGray.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarLightGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarLightGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/progressicons/ProgressBarWhite.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/progressicons/ProgressBarWhite.png differ diff -Nru unison-2.40.102/uimac14/ReconItem.h unison-2.48.3/uimac14/ReconItem.h --- unison-2.40.102/uimac14/ReconItem.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ReconItem.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,80 @@ +/* ReconItem */ + +#import + +@class OCamlValue; + +@interface ReconItem : NSObject +{ + ReconItem *parent; + NSString *path; + NSString *fullPath; + BOOL selected; + NSImage *direction; + NSString *directionSortString; + double fileSize; + double bytesTransferred; + BOOL resolved; +} +- (BOOL)selected; +- (void)setSelected:(BOOL)x; +- (NSString *)path; +- (NSString *)fullPath; +- (NSString *)left; +- (NSString *)right; +- (NSImage *)direction; +- (NSImage *)fileIcon; +- (long)fileCount; +- (double)fileSize; +- (NSString *)fileSizeString; +- (double)bytesTransferred; +- (NSString *)bytesTransferredString; +- (void)setDirection:(char *)d; +- (void) doAction:(unichar)action; +- (void) doIgnore:(unichar)action; +- (NSString *)progress; +- (NSString *)progressString; +- (void)resetProgress; +- (NSString *)details; +- (NSString *)updateDetails; +- (BOOL)isConflict; +- (BOOL)changedFromDefault; +- (void)revertDirection; +- (BOOL)canDiff; +- (void)showDiffs; +- (NSString *)leftSortKey; +- (NSString *)rightSortKey; +- (NSString *)replicaSortKey:(NSString *)sortString; +- (NSString *)directionSortKey; +- (NSString *)progressSortKey; +- (NSString *)pathSortKey; +- (NSArray *)children; +- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot; +- (ReconItem *)parent; +- (void)setPath:(NSString *)aPath; +- (void)setFullPath:(NSString *)p; +- (void)setParent:(ReconItem *)p; +- (void)willChange; +@end + +@interface LeafReconItem : ReconItem +{ + NSString *left; + NSString *right; + NSString *progress; + NSString *details; + OCamlValue *ri; // an ocaml Common.reconItem + long index; // index in Ri list +} +- initWithRiAndIndex:(OCamlValue *)v index:(long)i; +@end + +@interface ParentReconItem : ReconItem +{ + NSMutableArray *_children; + long fileCount; +} +- (void)addChild:(ReconItem *)item nested:(BOOL)useNesting; +- (void)sortUsingDescriptors:(NSArray *)sortDescriptors; +- (BOOL)hasConflictedChildren; +@end diff -Nru unison-2.40.102/uimac14/ReconItem.m unison-2.48.3/uimac14/ReconItem.m --- unison-2.40.102/uimac14/ReconItem.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ReconItem.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,862 @@ +#import "ReconItem.h" +#import "Bridge.h" + +#import + +@implementation ReconItem + +- init { + [super init]; + selected = NO; // NB only used/updated during sorts. Not a + // reliable indicator of whether item is selected + fileSize = -1.; + bytesTransferred = -1.; + return self; +} + +- (void)dealloc +{ + [path release]; + [fullPath release]; + // [direction release]; // assuming retained by cache, so not retained + // [directionSortString release]; // no retain/release necessary because is constant + [super dealloc]; +} + +- (ReconItem *)parent +{ + return parent; +} + +- (void)setParent:(ReconItem *)p +{ + parent = p; +} + +- (void)willChange +{ + // propagate up parent chain + [parent willChange]; +} + +- (NSArray *)children +{ + return nil; +} + +- (BOOL)selected +{ + return selected; +} + +- (void)setSelected:(BOOL)x +{ + selected = x; +} + +- (NSString *)path +{ + return path; +} + +- (void)setPath:(NSString *)aPath +{ + [path autorelease]; + path = [aPath retain]; + + // invalidate + [fullPath autorelease]; + fullPath = nil; +} + +- (NSString *)fullPath +{ + if (!fullPath) { + NSString *parentPath = [parent fullPath]; + [self setFullPath:(([parentPath length] > 0) ? [parentPath stringByAppendingFormat:@"/%@", path] : path)]; + } + + return fullPath; +} + +- (void)setFullPath:(NSString *)p +{ + [fullPath autorelease]; + fullPath = [p retain]; +} + +- (NSString *)left +{ + return nil; +} + +- (NSString *)right +{ + return nil; +} + +static NSMutableDictionary *_ChangeIconsByType = nil; + +- (NSImage *)changeIconFor:(NSString *)type other:(NSString *)other +{ + if (![type length]) { + if ([other isEqual:@"Created"]) { + type = @"Absent"; + } else if ([other length]) { + type = @"Unmodified"; + } else + return nil; + } + + NSImage *result = [_ChangeIconsByType objectForKey:type]; + if (!result) { + NSString *imageName = [NSString stringWithFormat:@"Change_%@.png", type]; + result = [NSImage imageNamed:imageName]; + if (!_ChangeIconsByType) _ChangeIconsByType = [[NSMutableDictionary alloc] init]; + [_ChangeIconsByType setObject:result forKey:type]; + } + return result; +} + +- (NSImage *)leftIcon +{ + return [self changeIconFor:[self left] other:[self right]]; +} + +- (NSImage *)rightIcon +{ + return [self changeIconFor:[self right] other:[self left]]; +} + + +- (double)computeFileSize +{ + return 0.; +} + +- (double)bytesTransferred +{ + return 0.; +} + +- (long)fileCount +{ + return 1; +} + +- (double)fileSize +{ + if (fileSize == -1.) fileSize = [self computeFileSize]; + return fileSize; +} + +- (NSString *)formatFileSize:(double)size +{ + if (size == 0) return @"--"; + if (size < 1024) return @"< 1KB"; // return [NSString stringWithFormat:@"%i bytes", size]; + size /= 1024; + if (size < 1024) return [NSString stringWithFormat:@"%i KB", (int)size]; + size /= 1024; + if (size < 1024) return [NSString stringWithFormat:@"%1.1f MB", size]; + size = size / 1024; + return [NSString stringWithFormat:@"%1.1f GB", size]; +} + +- (NSString *)fileSizeString +{ + return [self formatFileSize:[self fileSize]]; +} + +- (NSString *)bytesTransferredString +{ + return [self formatFileSize:[self bytesTransferred]]; +} + +- (NSNumber *)percentTransferred +{ + double size = [self computeFileSize]; + return (size > 0) ? [NSNumber numberWithDouble:([self bytesTransferred] / (size) * 100.0)] + : nil; +} + +static NSMutableDictionary *_iconsByExtension = nil; + +- (NSImage *)iconForExtension:(NSString *)extension +{ + NSImage *icon = [_iconsByExtension objectForKey:extension]; + if (!_iconsByExtension) _iconsByExtension = [[NSMutableDictionary alloc] init]; + if (!icon) { + icon = [[NSWorkspace sharedWorkspace] iconForFileType:extension]; + [icon setSize:NSMakeSize(16.0, 16.0)]; + [_iconsByExtension setObject:icon forKey:extension]; + } + return icon; +} + +- (NSImage *)fileIcon +{ + return [self iconForExtension:NSFileTypeForHFSTypeCode(kOpenFolderIcon)]; +} + +- (NSString *)dirString +{ + return @"<-?->"; +} + +- (NSImage *)direction +{ + if (direction) return direction; + NSString * dirString = [self dirString]; + + BOOL changedFromDefault = [self changedFromDefault]; + + if ([dirString isEqual:@"<-?->"]) { + if (changedFromDefault | resolved) { + direction = [NSImage imageNamed: @"table-skip.tif"]; + directionSortString = @"3"; + } + else { + direction = [NSImage imageNamed: @"table-conflict.tif"]; + directionSortString = @"2"; + } + } + + else if ([dirString isEqual:@"---->"]) { + if (changedFromDefault) { + direction = [NSImage imageNamed: @"table-right-blue.tif"]; + directionSortString = @"6"; + } + else { + direction = [NSImage imageNamed: @"table-right-green.tif"]; + directionSortString = @"8"; + } + } + + else if ([dirString isEqual:@"<----"]) { + if (changedFromDefault) { + direction = [NSImage imageNamed: @"table-left-blue.tif"]; + directionSortString = @"5"; + } + else { + direction = [NSImage imageNamed: @"table-left-green.tif"]; + directionSortString = @"7"; + } + } + + else if ([dirString isEqual:@"<-M->"]) { + direction = [NSImage imageNamed: @"table-merge.tif"]; + directionSortString = @"4"; + } + + else if ([dirString isEqual:@"<--->"]) { + direction = [NSImage imageNamed: @"table-mixed.tif"]; + directionSortString = @"9"; + } + + else { + direction = [NSImage imageNamed: @"table-error.tif"]; + directionSortString = @"1"; + } + + [direction retain]; + return direction; +} + +- (void)setDirection:(char *)d +{ + [direction autorelease]; + direction = nil; +} + +- (void)doAction:(unichar)action +{ + switch (action) { + case '>': + [self setDirection:"unisonRiSetRight"]; + break; + case '<': + [self setDirection:"unisonRiSetLeft"]; + break; + case '/': + [self setDirection:"unisonRiSetConflict"]; + resolved = YES; + break; + case '-': + [self setDirection:"unisonRiForceOlder"]; + break; + case '+': + [self setDirection:"unisonRiForceNewer"]; + break; + case 'm': + [self setDirection:"unisonRiSetMerge"]; + break; + case 'd': + [self showDiffs]; + break; + case 'R': + [self revertDirection]; + break; + default: + NSLog(@"ReconItem.doAction : unknown action"); + break; + } +} + +- (void)doIgnore:(unichar)action +{ + switch (action) { + case 'I': + ocamlCall("xS", "unisonIgnorePath", [self fullPath]); + break; + case 'E': + ocamlCall("xS", "unisonIgnoreExt", [self path]); + break; + case 'N': + ocamlCall("xS", "unisonIgnoreName", [self path]); + break; + default: + NSLog(@"ReconItem.doIgnore : unknown ignore"); + break; + } +} + +/* Sorting functions. These have names equal to + column identifiers + "SortKey", and return NSStrings that + can be automatically sorted with their compare method */ + +- (NSString *) leftSortKey +{ + return [self replicaSortKey:[self left]]; +} + +- (NSString *) rightSortKey +{ + return [self replicaSortKey:[self right]]; +} + +- (NSString *) replicaSortKey:(NSString *)sortString +{ + /* sort order for left and right replicas */ + + if ([sortString isEqualToString:@"Created"]) return @"1"; + else if ([sortString isEqualToString:@"Deleted"]) return @"2"; + else if ([sortString isEqualToString:@"Modified"]) return @"3"; + else if ([sortString isEqualToString:@""]) return @"4"; + else return @"5"; +} + +- (NSString *) directionSortKey +{ + /* Since the direction indicators are unsortable images, use + directionSortString instead */ + + if ([directionSortString isEqual:@""]) + [self direction]; + return directionSortString; +} + +- (NSString *) progressSortKey +{ + /* Percentages, "done" and "" are sorted OK without help, + but "start " should be sorted after "" and before "0%" */ + + NSString * progressString = [self progress]; + if ([progressString isEqualToString:@"start "]) progressString = @" "; + return progressString; +} + +- (NSString *) pathSortKey +{ + /* default alphanumeric sort is fine for paths */ + return [self path]; +} + +- (NSString *)progress +{ + return nil; +} + +- (BOOL)transferInProgress +{ + double soFar = [self bytesTransferred]; + return (soFar > 0) && (soFar < [self fileSize]); +} + +- (void)resetProgress +{ +} + +- (NSString *)progressString +{ + NSString *progress = [self progress]; + if ([progress length] == 0. || [progress hasSuffix:@"%"]) + progress = [self transferInProgress] ? [self bytesTransferredString] : @""; + else if ([progress isEqual:@"done"]) progress = @""; + return progress; +} + +- (NSString *)details +{ + return nil; +} + +- (NSString *)updateDetails +{ + return [self details]; +} + +- (BOOL)isConflict +{ + return NO; +} + +- (BOOL)changedFromDefault +{ + return NO; +} + +- (void)revertDirection +{ + [self willChange]; + [direction release]; + direction = nil; + resolved = NO; +} + +- (BOOL)canDiff +{ + return NO; +} + +- (void)showDiffs +{ +} + +- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot +{ + return self; +} + +- (NSString *)description +{ + return [NSString stringWithFormat:@"ReconItem: %@ %@", fullPath, path]; +} + +- (NSString *)debugDescription +{ + return [self description]; +} +@end + + +// --- Leaf items -- actually corresponding to ReconItems in OCaml +@implementation LeafReconItem + +- initWithRiAndIndex:(OCamlValue *)v index:(long)i +{ + [super init]; + ri = [v retain]; + index = i; + resolved = NO; + directionSortString = @""; + return self; +} + +-(void)dealloc +{ + [ri release]; + [left release]; + [right release]; + [progress release]; + [details release]; + + [super dealloc]; +} + +- (NSString *)path +{ + if (!path) path = [(NSString *)ocamlCall("S@", "unisonRiToPath", ri) retain]; + return path; +} + +- (NSString *)left +{ + if (!left) left = [(NSString *)ocamlCall("S@", "unisonRiToLeft", ri) retain]; + return left; +} + +- (NSString *)right +{ + if (!right) right = [(NSString *)ocamlCall("S@", "unisonRiToRight", ri) retain]; + return right; +} + +- (double)computeFileSize +{ + return [(NSNumber *)ocamlCall("N@", "unisonRiToFileSize", ri) doubleValue]; +} + +- (double)bytesTransferred +{ + if (bytesTransferred == -1.) { + // need to force to fileSize if done, otherwise may not match up to 100% + bytesTransferred = ([[self progress] isEqual:@"done"]) ? [self fileSize] + : [(NSNumber*)ocamlCall("N@", "unisonRiToBytesTransferred", ri) doubleValue]; + } + return bytesTransferred; +} + +- (NSImage *)fileIcon +{ + NSString *extension = [[self path] pathExtension]; + + if ([@"" isEqual:extension]) { + NSString *type = (NSString *)ocamlCall("S@", "unisonRiToFileType", ri); + extension = [type isEqual:@"dir"] + ? NSFileTypeForHFSTypeCode(kGenericFolderIcon) + : NSFileTypeForHFSTypeCode(kGenericDocumentIcon); + } + return [self iconForExtension:extension]; +} + +- (NSString *)dirString +{ + return (NSString *)ocamlCall("S@", "unisonRiToDirection", ri); +} + +- (void)setDirection:(char *)d +{ + [self willChange]; + [super setDirection:d]; + ocamlCall("x@", d, ri); +} + +- (NSString *)progress +{ + if (!progress) { + progress = [(NSString *)ocamlCall("S@", "unisonRiToProgress", ri) retain]; + if ([progress isEqual:@"FAILED"]) [self updateDetails]; + } + return progress; +} + +- (void)resetProgress +{ + // Get rid of the memoized progress because we expect it to change + [self willChange]; + bytesTransferred = -1.; + [progress release]; + + // Force update now so we get the result while the OCaml thread is available + // [self progress]; + // [self bytesTransferred]; + progress = nil; +} + +- (NSString *)details +{ + if (details) return details; + return [self updateDetails]; +} + +- (NSString *)updateDetails +{ + [details autorelease]; + details = [(NSString *)ocamlCall("S@", "unisonRiToDetails", ri) retain]; + return details; +} + +- (BOOL)isConflict +{ + return ((long)ocamlCall("i@", "unisonRiIsConflict", ri) ? YES : NO); +} + +- (BOOL)changedFromDefault +{ + return ((long)ocamlCall("i@", "changedFromDefault", ri) ? YES : NO); +} + +- (void)revertDirection +{ + ocamlCall("x@", "unisonRiRevert", ri); + [super revertDirection]; +} + +- (BOOL)canDiff +{ + return ((long)ocamlCall("i@", "canDiff", ri) ? YES : NO); +} + +- (void)showDiffs +{ + ocamlCall("x@i", "runShowDiffs", ri, index); +} + +@end + +@interface NSImage (TintedImage) +- (NSImage *)tintedImageWithColor:(NSColor *) tint operation:(NSCompositingOperation) op; +@end + +@implementation NSImage (TintedImage) + +- (NSImage *)tintedImageWithColor:(NSColor *) tint operation:(NSCompositingOperation) op +{ + NSSize size = [self size]; + NSRect imageBounds = NSMakeRect(0, 0, size.width, size.height); + NSImage *newImage = [[NSImage alloc] initWithSize:size]; + + [newImage lockFocus]; + [self compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver]; + [tint set]; + NSRectFillUsingOperation(imageBounds, op); + [newImage unlockFocus]; + + return [newImage autorelease]; +} + +@end + +// ---- Parent nodes in grouped items +@implementation ParentReconItem + +- init +{ + [super init]; + _children = [[NSMutableArray alloc] init]; + return self; +} + +- initWithPath:(NSString *)aPath +{ + [self init]; + path = [aPath retain]; + return self; +} + +- (void)dealloc +{ + [_children release]; + [super dealloc]; +} + +- (NSArray *)children; +{ + return _children; +} + +- (ReconItem *)findChildWithPath:(NSArray *)pathArray level:level{ + ReconItem *item; + NSString *element = [pathArray count] ? [pathArray objectAtIndex:level] : @""; + + for (item in _children) { + if ([item isKindOfClass:[ParentReconItem class]] && [[item path] isEqual:element]) { + return item; + } + } + return nil; +} + +- (void)addChild:(ReconItem *)item pathArray:(NSArray *)pathArray level:(int)level +{ + // NSLog(@"Adding child: %@", pathArray); + NSString *element = [pathArray count] ? [pathArray objectAtIndex:level] : @""; + + // if we're at the leaf of the path, then add the item + if (((0 == [pathArray count]) && (0 == level)) || (level == [pathArray count]-1)) { + [item setParent:self]; + [item setPath:element]; + [_children addObject:item]; + return; + } + + // find / add matching parent node + ReconItem *parentItem = [self findChildWithPath:pathArray level:level]; + if (parentItem == nil || ![parentItem isKindOfClass:[ParentReconItem class]]) { + parentItem = [[ParentReconItem alloc] initWithPath:element]; + [parentItem setParent:self]; + [_children addObject:parentItem]; + [parentItem release]; + } + + [(ParentReconItem *)parentItem addChild:item pathArray:pathArray level:level+1]; +} + +- (void)addChild:(ReconItem *)item nested:(BOOL)nested +{ + [item setPath:nil]; // invalidate/reset + + if (nested) { + [self addChild:item pathArray:[[item path] pathComponents] level:0]; + } else { + [item setParent:self]; + [_children addObject:item]; + } +} + +- (void)sortUsingDescriptors:(NSArray *)sortDescriptors +{ + // sort our children + [_children sortUsingDescriptors:sortDescriptors]; + + // then have them sort theirs + int i = [_children count]; + while (i--) { + id child = [_children objectAtIndex:i]; + if ([child isKindOfClass:[ParentReconItem class]]) [child sortUsingDescriptors:sortDescriptors]; + } +} + +- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot +{ + // replace ourselves? + if (!isRoot && [_children count] == 1) { + ReconItem *child = [_children lastObject]; + [child setPath:[path stringByAppendingFormat:@"/%@", [child path]]]; + return [child collapseParentsWithSingleChildren:NO]; + } + + // recurse + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + ReconItem *replacement = [child collapseParentsWithSingleChildren:NO]; + if (child != replacement) { + [_children replaceObjectAtIndex:i withObject:replacement]; + [replacement setParent:self]; + } + } + return self; +} + +- (void)willChange +{ + // invalidate child-based state + // Assuming caches / constant, so not retained / released + // [direction autorelease]; + // [directionSortString autorelease]; + direction = nil; + directionSortString = nil; + bytesTransferred = -1.; + // fileSize = -1; + // resolved = NO; + + // propagate up parent chain + [parent willChange]; +} + +// Propagation methods +- (void)doAction:(unichar)action +{ + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + [child doAction:action]; + } +} + +- (void)doIgnore:(unichar)action +{ + // handle Path ignores at this level, name and extension at the child nodes + if (action == 'I') { + [super doIgnore:'I']; + } else { + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + [child doIgnore:action]; + } + } +} + +// Rollup methods +- (long)fileCount +{ + if (fileCount == 0) { + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + fileCount += [child fileCount]; + } + } + return fileCount; +} + +- (double)computeFileSize +{ + double size = 0; + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + size += [child fileSize]; + } + return size; +} + +- (double)bytesTransferred +{ + if (bytesTransferred == -1.) { + bytesTransferred = 0.; + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + bytesTransferred += [child bytesTransferred]; + } + } + return bytesTransferred; +} + + + +- (NSString *)dirString +{ + NSString *rollup = nil; + int i = [_children count]; + while (i--) { + ReconItem *child = [_children objectAtIndex:i]; + NSString *dirString = [child dirString]; + if (!rollup || [dirString isEqual:rollup]) { + rollup = dirString; + } else { + // conflict + if ([dirString isEqual:@"---->"] || [dirString isEqual:@"<----"] || [dirString isEqual:@"<--->"]) { + if ([rollup isEqual:@"---->"] || [rollup isEqual:@"<----"] || [rollup isEqual:@"<--->"]) { + rollup = @"<--->"; + } + } else { + rollup = @"<-?->"; + } + } + } + // NSLog(@"dirString for %@: %@", path, rollup); + return rollup; +} + +- (BOOL)hasConflictedChildren +{ + NSString *dirString = [self dirString]; + BOOL result = [dirString isEqual:@"<--->"] || [dirString isEqual:@"<-?->"]; + // NSLog(@"hasConflictedChildren (%@): %@: %i", [self path], dirString, result); + return result; +} + +static NSMutableDictionary *_parentImages = nil; +static NSColor *_veryLightGreyColor = nil; +- (NSImage *)direction +{ + if (!_parentImages) { + _parentImages = [[NSMutableDictionary alloc] init]; + _veryLightGreyColor = [[NSColor colorWithCalibratedRed:0.7 green:0.7 blue:0.7 alpha:1.0] retain]; + } + NSImage *baseImage = [super direction]; + NSImage *parentImage = [_parentImages objectForKey:baseImage]; + if (!parentImage) { + // make parent images a grey version of the leaf images + parentImage = [baseImage tintedImageWithColor:_veryLightGreyColor operation:NSCompositeSourceIn]; + [_parentImages setObject:parentImage forKey:baseImage]; + } + return parentImage; +} + +@end + diff -Nru unison-2.40.102/uimac14/ReconTableView.h unison-2.48.3/uimac14/ReconTableView.h --- unison-2.40.102/uimac14/ReconTableView.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ReconTableView.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,43 @@ +// +// ReconTableView.h +// +// NSTableView extended to handle additional keyboard events for the reconcile window. +// The keyDown: method is redefined. +// +// Created by Trevor Jim on Wed Aug 27 2003. +// Copyright (c) 2003, 2014, licensed under GNU GPL. +// + +#import + +@interface ReconTableView : NSOutlineView { + BOOL editable; +} +- (BOOL)editable; +- (void)setEditable:(BOOL)x; +- (BOOL)validateItem:(SEL) action; +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; +- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem; +- (IBAction)ignorePath:(id)sender; +- (IBAction)ignoreExt:(id)sender; +- (IBAction)ignoreName:(id)sender; +- (IBAction)copyLR:(id)sender; +- (IBAction)copyRL:(id)sender; +- (IBAction)leaveAlone:(id)sender; +- (IBAction)forceOlder:(id)sender; +- (IBAction)forceNewer:(id)sender; +- (IBAction)selectConflicts:(id)sender; +- (IBAction)revert:(id)sender; +- (IBAction)merge:(id)sender; +- (IBAction)showDiff:(id)sender; +- (BOOL)canDiffSelection; +@end + +@interface NSOutlineView (_UnisonExtras) +- (NSArray *)selectedObjects; +- (NSEnumerator *)selectedObjectEnumerator; +- (void)setSelectedObjects:(NSArray *)selection; + +- (void)expandChildrenIfSpace; + +@end diff -Nru unison-2.40.102/uimac14/ReconTableView.m unison-2.48.3/uimac14/ReconTableView.m --- unison-2.40.102/uimac14/ReconTableView.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ReconTableView.m 2014-12-29 18:34:45.000000000 +0000 @@ -0,0 +1,298 @@ +// +// ReconTableView.m +// Unison +// +// Created by Trevor Jim on Wed Aug 27 2003. +// Copyright (c) 2003, 2015. See file COPYING for details. +// + +#import "ReconTableView.h" +#import "ReconItem.h" +#import "MyController.h" + +@implementation NSOutlineView (_UnisonExtras) + +- (NSArray *)selectedObjects +{ + NSMutableArray *result = [NSMutableArray array]; + NSIndexSet *set = [self selectedRowIndexes]; + NSUInteger index = [set firstIndex]; + while (index != NSNotFound) { + [result addObject:[self itemAtRow:index]]; + index = [set indexGreaterThanIndex: index]; + } + return result; +} + +- (void)setSelectedObjects:(NSArray *)selectedObjects +{ + NSMutableIndexSet *set = [NSMutableIndexSet indexSet]; + int i = [selectedObjects count]; + while (i--) { + int index = [self rowForItem:[selectedObjects objectAtIndex:i]]; + if (index >= 0) [set addIndex:index]; + } + [self selectRowIndexes:set byExtendingSelection:NO]; +} + +- (NSEnumerator *)selectedObjectEnumerator +{ + return [[self selectedObjects] objectEnumerator]; +} + +- (int)rowCapacityWithoutScrolling +{ + float bodyHeight = [self visibleRect].size.height; + bodyHeight -= [[self headerView] visibleRect].size.height; + return bodyHeight / ([self rowHeight] + 2.0); +} + +- (BOOL)_canAcceptRowCountWithoutScrolling:(int)rows +{ + return ([self numberOfRows] + rows) <= [self rowCapacityWithoutScrolling]; +} + +- (BOOL)_expandChildrenIfSpace:(id)parent level:(int)level +{ + BOOL didExpand = NO; + id dataSource = [self dataSource]; + int count = [dataSource outlineView:self numberOfChildrenOfItem:parent]; + if (level == 0) { + if (count && ([self isItemExpanded:parent] || [self _canAcceptRowCountWithoutScrolling:count])) { + [self expandItem:parent expandChildren:NO]; + didExpand = YES; + } + } else { + // try expanding each of our children. If all expand, then return YES, + // indicating that it may be worth trying the next level + int i; + for (i=0; i < count; i++) { + id child = [dataSource outlineView:self child:i ofItem:parent]; + didExpand = [self _expandChildrenIfSpace:child level:level-1] || didExpand; + } + } + + return didExpand; +} + +- (void)expandChildrenIfSpace +{ + int level = 1; + while ([self _expandChildrenIfSpace:nil level:level]) level++; +} + +@end + +@implementation ReconTableView + +- (BOOL)editable +{ + return editable; +} + +- (void)setEditable:(BOOL)x +{ + editable = x; +} + +- (BOOL)validateItem:(SEL) action +{ + if (action == @selector(selectAll:) + || action == @selector(selectConflicts:) + || action == @selector(copyLR:) + || action == @selector(copyRL:) + || action == @selector(leaveAlone:) + || action == @selector(forceNewer:) + || action == @selector(forceOlder:) + || action == @selector(revert:) + || action == @selector(ignorePath:) + || action == @selector(ignoreExt:) + || action == @selector(ignoreName:)) + return editable; + else if (action == @selector(merge:)) { + if (!editable) return NO; + else return [self canDiffSelection]; + } + else if (action == @selector(showDiff:)) { + if ((!editable) || (!([self numberOfSelectedRows]==1))) + return NO; + else return [self canDiffSelection]; + } + else return YES; +} + +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem +{ + return [self validateItem:[menuItem action]]; +} + +- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem +{ + return [self validateItem:[toolbarItem action]]; +} + +- (void)doIgnore:(unichar)c +{ + NSEnumerator *e = [self selectedObjectEnumerator]; + ReconItem *item, *last = nil; + while (item = [e nextObject]) { + [item doIgnore:c]; + last = item; + } + if (last) { // something was selected + MyController* controller = (MyController*) [self dataSource]; + last = [controller updateForIgnore:last]; + [self selectRowIndexes:[NSIndexSet indexSetWithIndex:[self rowForItem:last]] byExtendingSelection:NO]; + [self reloadData]; + } +} + +- (IBAction)ignorePath:(id)sender +{ + [self doIgnore:'I']; +} + +- (IBAction)ignoreExt:(id)sender +{ + [self doIgnore:'E']; +} + +- (IBAction)ignoreName:(id)sender +{ + [self doIgnore:'N']; +} + +- (void)doAction:(unichar)c +{ + int numSelected = 0; + NSEnumerator *e = [self selectedObjectEnumerator]; + ReconItem *item, *last = nil; + while (item = [e nextObject]) { + numSelected++; + [item doAction:c]; + last = item; + } + if (numSelected>0) { + int nextRow = [self rowForItem:last] + 1; + if (numSelected == 1 && [self numberOfRows] > nextRow && c!='d') { + // Move to next row, unless already at last row, or if more than one row selected + [self selectRowIndexes:[NSIndexSet indexSetWithIndex:nextRow] byExtendingSelection:NO]; + [self scrollRowToVisible:nextRow]; + } + [self reloadData]; + } +} + +- (IBAction)copyLR:(id)sender +{ + [self doAction:'>']; +} + +- (IBAction)copyRL:(id)sender +{ + [self doAction:'<']; +} + +- (IBAction)leaveAlone:(id)sender +{ + [self doAction:'/']; +} + +- (IBAction)forceOlder:(id)sender +{ + [self doAction:'-']; +} + +- (IBAction)forceNewer:(id)sender +{ + [self doAction:'+']; +} + +- (IBAction)selectConflicts:(id)sender +{ + [self deselectAll:self]; + MyController* controller = (MyController*) [self dataSource]; + NSMutableArray *reconItems = [controller reconItems]; + int i = 0; + for (; i < [reconItems count]; i++) { + ReconItem *item = [reconItems objectAtIndex:i]; + if ([item isConflict]) + [self selectRowIndexes:[NSIndexSet indexSetWithIndex:[self rowForItem:item]] byExtendingSelection:YES]; + } +} + +- (IBAction)revert:(id)sender +{ + [self doAction:'R']; +} + +- (IBAction)merge:(id)sender +{ + [self doAction:'m']; +} + +- (IBAction)showDiff:(id)sender +{ + [self doAction:'d']; +} + +/* There are menu commands for these, but we add some shortcuts so you don't + have to press the Command key */ +- (void)keyDown:(NSEvent *)event +{ + /* some keys return zero-length strings */ + if ([[event characters] length] == 0) { + [super keyDown:event]; + return; + } + + /* actions are disabled when when menu items are */ + if (!editable) { + [super keyDown:event]; + return; + } + + unichar c = [[event characters] characterAtIndex:0]; + switch (c) { + case '>': + case NSRightArrowFunctionKey: + [self doAction:'>']; + break; + case '<': + case NSLeftArrowFunctionKey: + [self doAction:'<']; + break; + case '?': + case '/': + [self doAction:'/']; + break; + default: + [super keyDown:event]; + break; + } +} + +- (BOOL)canDiffSelection +{ + BOOL canDiff = YES; + NSEnumerator *e = [self selectedObjectEnumerator]; + ReconItem *item; + while (item = [e nextObject]) { + if (![item canDiff]) canDiff= NO; + } + return canDiff; +} + +/* Override default highlight colour because it's hard to see the + conflict/resolution icons */ +- (id)_highlightColorForCell:(NSCell *)cell +{ + if(([[self window] firstResponder] == self) && + [[self window] isMainWindow] && + [[self window] isKeyWindow]) + + return [NSColor colorWithCalibratedRed:0.7 green:0.75 blue:0.8 alpha:1.0]; + else return [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:0.8 alpha:1.0]; +} + +@end diff -Nru unison-2.40.102/uimac14/ssselectabletoolbar/README unison-2.48.3/uimac14/ssselectabletoolbar/README --- unison-2.40.102/uimac14/ssselectabletoolbar/README 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ssselectabletoolbar/README 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,58 @@ +SSSelectable Toolbar +-------------------- + +Copyright (c) 2011 Steve Streeting + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Why? +---- + +I needed a preference-pane style selectable toolbar which switched views easily, +allowing different sizes per pane, and not requiring a lot of manual code. I +wanted to do most of the work in Interface Builder still. + +I liked the selectable toolbar in BWToolkit, but it had a few issues such as +crashing Interface Builder, getting the vertical position wrong at times, and +also that in XCode 4, Interface Builder plugins are no longer supported. So I +needed a selectable toolbar that worked in IB without any plugins. + +How to use +---------- + +1) Add all the source files in the 'toolbar' subfolder to your XCode project +2) In Interface Builder, drag & drop an NSToolbar on to your window +3) Change the type to 'SSSelectableToolbar' +4) Connect the 'window' outlet of the toolbar to the parent window +5) Drag & drop NSToolbarItem instances on to the toolbar and check the + 'Selectable' option +6) Change the type of each one to 'SSSelectableToolbarItem' +7) Create a Custom View instance at the root of the document (not in the window) + for each pane and populate them how you like +8) Connect the 'linkedView' outlet of each toolbar item to the corresponding + pane view +9) Connect the 'nextKeyView' outlet of each custom view to the control that + should become the first responder when switching to that tab (Optional) + +And you're ready to go. Each toolbar item will switch to its corresponding pane, +resizing the window as necessary. You can make the window resizable if you like, +and the user size will be remembered when switching back and forth. + + + + diff -Nru unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbar.h unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbar.h --- unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbar.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,27 @@ +// +// SSToolbar.h +// SelectableToolbarHelper +// +// Created by Steven Streeting on 19/06/2011. +// Copyright 2011 Torus Knot Software Ltd. All rights reserved. +// + +#import + +@interface SSSelectableToolbar : NSToolbar +{ + NSWindow* window; + NSView* blankView; + NSInteger defaultItemIndex; +} +@property (nonatomic, retain) IBOutlet NSWindow* window; +@property (nonatomic, assign) NSInteger defaultItemIndex; + +-(NSToolbarItem*)itemWithIdentifier:(NSString*)identifier; +// select the item with the given index, ordered as per the palette and ignoring +// all types of buttons except SSSelectableToolbarItem +-(void)selectItemWithIndex:(NSInteger)idx; +// Convert a selectable item index (ignoring all except selectable items in palette) +// to a main index which can be used for other purposes +-(NSInteger)selectableItemIndexToMainIndex:(NSInteger)idx; +@end diff -Nru unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.h unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.h --- unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,19 @@ +// +// SSToolbarItem.h +// SelectableToolbarHelper +// +// Created by Steven Streeting on 19/06/2011. +// Copyright 2011 Torus Knot Software Ltd. All rights reserved. +// + +#import + + +@interface SSSelectableToolbarItem : NSToolbarItem +{ + NSView* linkedView; +} + +@property (nonatomic, retain) IBOutlet NSView* linkedView; + +@end diff -Nru unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.m unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.m --- unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbarItem.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,22 @@ +// +// SSToolbarItem.m +// SelectableToolbarHelper +// +// Created by Steven Streeting on 19/06/2011. +// Copyright 2011 Torus Knot Software Ltd. All rights reserved. +// + +#import "SSSelectableToolbarItem.h" + + +@implementation SSSelectableToolbarItem + +@synthesize linkedView; + +-(void) dealloc +{ + [linkedView release]; + [super dealloc]; +} + +@end diff -Nru unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbar.m unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbar.m --- unison-2.40.102/uimac14/ssselectabletoolbar/SSSelectableToolbar.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/ssselectabletoolbar/SSSelectableToolbar.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,157 @@ +// +// SSToolbar.m +// SelectableToolbarHelper +// +// Created by Steven Streeting on 19/06/2011. +// Copyright 2011 Torus Knot Software Ltd. All rights reserved. +// + +#import "SSSelectableToolbar.h" +#import "SSSelectableToolbarItem.h" + + +@implementation SSSelectableToolbar +@synthesize window; +@synthesize defaultItemIndex; + +- (id) initWithIdentifier:(NSString *)identifier +{ + if (self = [super initWithIdentifier:identifier]) + { + blankView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]; + } + return self; +} + +- (void) dealloc +{ + [blankView release]; + [window release]; + [super dealloc]; + +} +-(IBAction)toolbarItemClicked:sender +{ + // this is really only here so I can set up a target / action which makes button clickable +} + +-(void)selectDefaultItem:sender +{ + // select the default item first time becomes key + [self selectItemWithIndex:defaultItemIndex]; + // Don't tell us again + [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:window]; + +} + +-(void) awakeFromNib +{ + // Set target / action on all buttons to make them clickable + NSArray* items = [self visibleItems]; + for (NSToolbarItem* item in items) + { + if ([item isKindOfClass:[SSSelectableToolbarItem class]]) + { + [item setTarget:self]; + [item setAction:@selector(toolbarItemClicked:)]; + } + } + + // Wait until window displayed before sizing (important for displaying in sheets) + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(selectDefaultItem:) + name:NSWindowDidBecomeKeyNotification + object:window]; + + +} + +-(NSToolbarItem*)itemWithIdentifier:(NSString*)identifier +{ + for (NSToolbarItem* item in [self items]) + { + if ([[item itemIdentifier] isEqual:identifier]) + return item; + } + return nil; +} + +- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier +{ + [super setSelectedItemIdentifier:itemIdentifier]; + + NSToolbarItem* item = [self itemWithIdentifier:itemIdentifier]; + if ([item isKindOfClass:[SSSelectableToolbarItem class]]) + { + SSSelectableToolbarItem* ssitem = (SSSelectableToolbarItem*)item; + + NSView* view = [ssitem linkedView]; + if (view && window) + { + NSView* oldView = [window contentView]; + NSRect oldFrame = [oldView frame]; + NSRect newFrame = [view frame]; + NSRect oldWinFrame = [window frame]; + NSRect winFrame = oldWinFrame; + float toolbarHeight = NSHeight(oldWinFrame) - NSHeight(oldFrame); + + // resize + winFrame.size.width = newFrame.size.width; + winFrame.size.height = newFrame.size.height + toolbarHeight; + winFrame.origin.y -= NSHeight(winFrame) - NSHeight(oldWinFrame); + [window setContentView:blankView]; + [window setFrame:winFrame display:YES animate:YES]; + [window setContentView:view]; + + // change title + [window setTitle:[ssitem label]]; + + // tab to first control (if nextKeyView connected) + NSView* keyView = [view nextKeyView]; + if (keyView) + [window makeFirstResponder:keyView]; + + + } + } +} + +-(void)selectItemWithIndex:(NSInteger)idx +{ + NSInteger currIdx = 0; + for (NSToolbarItem* item in [self items]) + { + if ([item isKindOfClass:[SSSelectableToolbarItem class]]) + { + if (currIdx == idx) + { + [self setSelectedItemIdentifier:[item itemIdentifier]]; + return; + } + // We're only counting these types, ignore spacing and other default items + ++currIdx; + } + } + +} + +-(NSInteger)selectableItemIndexToMainIndex:(NSInteger)idx +{ + NSInteger selIdx = 0; + NSInteger mainIdx = 0; + for (NSToolbarItem* item in [self items]) + { + if ([item isKindOfClass:[SSSelectableToolbarItem class]]) + { + if (selIdx == idx) + { + return mainIdx; + } + ++selIdx; + } + ++mainIdx; + } + + return -1; +} +@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_Absent.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_Absent.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_Created.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_Created.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_Deleted.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_Deleted.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_Modified.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_Modified.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_PropsChanged.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_PropsChanged.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Change_Unmodified.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Change_Unmodified.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Outline-Deep.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Outline-Deep.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Outline-Flat.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Outline-Flat.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/Outline-Flattened.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/Outline-Flattened.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-conflict.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-conflict.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-error.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-error.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-left-blue.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-left-blue.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-left-green.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-left-green.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-merge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-merge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-mixed.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-mixed.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-right-blue.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-right-blue.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-right-green.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-right-green.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/tableicons/table-skip.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/tableicons/table-skip.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/add.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/add.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/diff.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/diff.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/go.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/go.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/left.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/left.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/merge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/merge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/quit.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/quit.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/rescan.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/rescan.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/restart.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/restart.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/right.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/right.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/save.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/save.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/toolbar/skip.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/toolbar/skip.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/TrevorsUnison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/TrevorsUnison.icns differ diff -Nru unison-2.40.102/uimac14/uimacnew.xcodeproj/project.pbxproj unison-2.48.3/uimac14/uimacnew.xcodeproj/project.pbxproj --- unison-2.40.102/uimac14/uimacnew.xcodeproj/project.pbxproj 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/uimacnew.xcodeproj/project.pbxproj 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,796 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXAggregateTarget section */ + 2A124E780DE1C48400524237 /* Create ExternalSettings */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 2A124E7C0DE1C4A200524237 /* Build configuration list for PBXAggregateTarget "Create ExternalSettings" */; + buildPhases = ( + 2A124E7E0DE1C4BE00524237 /* Run Script (version, ocaml lib dir) */, + ); + dependencies = ( + ); + name = "Create ExternalSettings"; + productName = "Create ExternalSettings"; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 2A3C3F7D09922D4900E404E9 /* NotificationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A3C3F7B09922D4900E404E9 /* NotificationController.m */; }; + 2E282CC80D9AE2B000439D01 /* unison-blob.o in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E282CC70D9AE2B000439D01 /* unison-blob.o */; }; + 44042CB60BE4FC9B00A6BBB2 /* ProgressCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */; }; + 44042D1B0BE52AED00A6BBB2 /* ProgressBarAdvanced.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */; }; + 44042D1C0BE52AEE00A6BBB2 /* ProgressBarBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */; }; + 44042D1D0BE52AEE00A6BBB2 /* ProgressBarEndAdvanced.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */; }; + 44042D1E0BE52AEE00A6BBB2 /* ProgressBarEndBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */; }; + 44042D1F0BE52AEE00A6BBB2 /* ProgressBarEndGray.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */; }; + 44042D200BE52AEE00A6BBB2 /* ProgressBarEndGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */; }; + 44042D210BE52AEE00A6BBB2 /* ProgressBarEndWhite.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */; }; + 44042D220BE52AEE00A6BBB2 /* ProgressBarGray.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */; }; + 44042D230BE52AEE00A6BBB2 /* ProgressBarGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */; }; + 44042D240BE52AEE00A6BBB2 /* ProgressBarLightGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */; }; + 44042D250BE52AEE00A6BBB2 /* ProgressBarWhite.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */; }; + 440EEAF30C03EC3D00ACAAB0 /* Change_Created.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */; }; + 440EEAF90C03F0B800ACAAB0 /* Change_Deleted.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */; }; + 440EEAFA0C03F0B800ACAAB0 /* Change_Modified.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */; }; + 440EEAFB0C03F0B800ACAAB0 /* Change_PropsChanged.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */; }; + 445A291B0BFA5B3300E4E641 /* Outline-Deep.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */; }; + 445A29270BFA5C1200E4E641 /* Outline-Flat.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A29260BFA5C1200E4E641 /* Outline-Flat.png */; }; + 445A29290BFA5C1B00E4E641 /* Outline-Flattened.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */; }; + 445A2A5E0BFAB6C300E4E641 /* ImageAndTextCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */; }; + 449F03E10BE00DE9003F15C8 /* Bridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 449F03DF0BE00DE9003F15C8 /* Bridge.m */; }; + 44A794A10BE16C380069680C /* ExceptionHandling.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44A794A00BE16C380069680C /* ExceptionHandling.framework */; }; + 44A797F40BE3F9B70069680C /* table-mixed.tif in Resources */ = {isa = PBXBuildFile; fileRef = 44A797F10BE3F9B70069680C /* table-mixed.tif */; }; + 44F472B10C0DB735006428EF /* Change_Absent.png in Resources */ = {isa = PBXBuildFile; fileRef = 44F472AF0C0DB735006428EF /* Change_Absent.png */; }; + 44F472B20C0DB735006428EF /* Change_Unmodified.png in Resources */ = {isa = PBXBuildFile; fileRef = 44F472B00C0DB735006428EF /* Change_Unmodified.png */; }; + 69C625E70664EC3300B3C46A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; + 69C625E80664EC3300B3C46A /* Unison.icns in Resources */ = {isa = PBXBuildFile; fileRef = 69C625CA0664E94E00B3C46A /* Unison.icns */; }; + 69C625EA0664EC3300B3C46A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; + 69C625EB0664EC3300B3C46A /* MyController.m in Sources */ = {isa = PBXBuildFile; fileRef = 69660DC704F08CC100CF23A4 /* MyController.m */; }; + 69C625EC0664EC3300B3C46A /* ProfileController.m in Sources */ = {isa = PBXBuildFile; fileRef = 690F564504F11EC300CF23A4 /* ProfileController.m */; }; + 69C625ED0664EC3300B3C46A /* ReconItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */; }; + 69C625EE0664EC3300B3C46A /* ReconTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 69BA7DA904FD695200CF23A4 /* ReconTableView.m */; }; + 69C625EF0664EC3300B3C46A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 697985CE050CFA2D00CF23A4 /* PreferencesController.m */; }; + 69C625F00664EC3300B3C46A /* ProfileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 691CE181051BB44A00CF23A4 /* ProfileTableView.m */; }; + 69C625F20664EC3300B3C46A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; + 69E407BA07EB95AA00D37AA1 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69E407B907EB95AA00D37AA1 /* Security.framework */; }; + 8450B1381918859E00A2C4D6 /* ColorGradientView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8450B1371918859E00A2C4D6 /* ColorGradientView.m */; }; + 849BE4FF191AC10E001B6FBF /* README in Resources */ = {isa = PBXBuildFile; fileRef = 849BE4FA191AC10E001B6FBF /* README */; }; + 849BE500191AC10E001B6FBF /* SSSelectableToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = 849BE4FC191AC10E001B6FBF /* SSSelectableToolbar.m */; }; + 849BE501191AC10E001B6FBF /* SSSelectableToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 849BE4FE191AC10E001B6FBF /* SSSelectableToolbarItem.m */; }; + B518071C09D6652100B1B21F /* add.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071209D6652100B1B21F /* add.tif */; }; + B518071D09D6652100B1B21F /* diff.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071309D6652100B1B21F /* diff.tif */; }; + B518071E09D6652100B1B21F /* go.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071409D6652100B1B21F /* go.tif */; }; + B518071F09D6652100B1B21F /* left.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071509D6652100B1B21F /* left.tif */; }; + B518072009D6652100B1B21F /* merge.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071609D6652100B1B21F /* merge.tif */; }; + B518072109D6652100B1B21F /* quit.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071709D6652100B1B21F /* quit.tif */; }; + B518072209D6652100B1B21F /* restart.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071809D6652100B1B21F /* restart.tif */; }; + B518072309D6652100B1B21F /* right.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071909D6652100B1B21F /* right.tif */; }; + B518072409D6652100B1B21F /* save.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071A09D6652100B1B21F /* save.tif */; }; + B518072509D6652100B1B21F /* skip.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071B09D6652100B1B21F /* skip.tif */; }; + B554004109C4E5AA0089E1C3 /* UnisonToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */; }; + B5B44C1909DF61A4000DC7AF /* table-conflict.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1109DF61A4000DC7AF /* table-conflict.tif */; }; + B5B44C1A09DF61A4000DC7AF /* table-error.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1209DF61A4000DC7AF /* table-error.tif */; }; + B5B44C1B09DF61A4000DC7AF /* table-left-blue.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */; }; + B5B44C1C09DF61A4000DC7AF /* table-left-green.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1409DF61A4000DC7AF /* table-left-green.tif */; }; + B5B44C1D09DF61A4000DC7AF /* table-merge.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1509DF61A4000DC7AF /* table-merge.tif */; }; + B5B44C1E09DF61A4000DC7AF /* table-right-blue.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */; }; + B5B44C1F09DF61A4000DC7AF /* table-right-green.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1709DF61A4000DC7AF /* table-right-green.tif */; }; + B5B44C2009DF61A4000DC7AF /* table-skip.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1809DF61A4000DC7AF /* table-skip.tif */; }; + B5E03B3909E38B9E0058C7B9 /* rescan.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5E03B3809E38B9E0058C7B9 /* rescan.tif */; }; + BB1ADE26114AEB1100575BFC /* Growl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBE2BCAC11355CDD00B187F2 /* Growl.framework */; }; + BBE2BCAE11355CDD00B187F2 /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE2BCAC11355CDD00B187F2 /* Growl.framework */; }; + DE2444D610C294EA007E1546 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = DE2444D410C294EA007E1546 /* MainMenu.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2A124E7F0DE1C4E400524237 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2A124E780DE1C48400524237; + remoteInfo = "Create ExternalSettings"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 2A3C3F3709922AA600E404E9 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + BB1ADE26114AEB1100575BFC /* Growl.framework in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BB6E50CF10CAA57600E23F8A /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 7; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; + 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 2A3C3F7A09922D4900E404E9 /* NotificationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotificationController.h; sourceTree = ""; }; + 2A3C3F7B09922D4900E404E9 /* NotificationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NotificationController.m; sourceTree = ""; }; + 2E282CC70D9AE2B000439D01 /* unison-blob.o */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.objfile"; name = "unison-blob.o"; path = "../unison-blob.o"; sourceTree = SOURCE_ROOT; }; + 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ExternalSettings.xcconfig; sourceTree = ""; }; + 44042CB30BE4FC9B00A6BBB2 /* ProgressCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProgressCell.h; sourceTree = ""; }; + 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProgressCell.m; sourceTree = ""; }; + 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarAdvanced.png; path = progressicons/ProgressBarAdvanced.png; sourceTree = ""; }; + 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarBlue.png; path = progressicons/ProgressBarBlue.png; sourceTree = ""; }; + 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndAdvanced.png; path = progressicons/ProgressBarEndAdvanced.png; sourceTree = ""; }; + 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndBlue.png; path = progressicons/ProgressBarEndBlue.png; sourceTree = ""; }; + 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndGray.png; path = progressicons/ProgressBarEndGray.png; sourceTree = ""; }; + 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndGreen.png; path = progressicons/ProgressBarEndGreen.png; sourceTree = ""; }; + 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndWhite.png; path = progressicons/ProgressBarEndWhite.png; sourceTree = ""; }; + 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarGray.png; path = progressicons/ProgressBarGray.png; sourceTree = ""; }; + 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarGreen.png; path = progressicons/ProgressBarGreen.png; sourceTree = ""; }; + 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarLightGreen.png; path = progressicons/ProgressBarLightGreen.png; sourceTree = ""; }; + 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarWhite.png; path = progressicons/ProgressBarWhite.png; sourceTree = ""; }; + 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Created.png; sourceTree = ""; }; + 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Deleted.png; sourceTree = ""; }; + 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Modified.png; sourceTree = ""; }; + 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_PropsChanged.png; sourceTree = ""; }; + 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Deep.png"; sourceTree = ""; }; + 445A29260BFA5C1200E4E641 /* Outline-Flat.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Flat.png"; sourceTree = ""; }; + 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Flattened.png"; sourceTree = ""; }; + 445A2A5B0BFAB6A100E4E641 /* ImageAndTextCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageAndTextCell.h; sourceTree = ""; }; + 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ImageAndTextCell.m; sourceTree = ""; }; + 449F03DE0BE00DE9003F15C8 /* Bridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Bridge.h; sourceTree = ""; }; + 449F03DF0BE00DE9003F15C8 /* Bridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Bridge.m; sourceTree = ""; }; + 44A794A00BE16C380069680C /* ExceptionHandling.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ExceptionHandling.framework; path = /System/Library/Frameworks/ExceptionHandling.framework; sourceTree = ""; }; + 44A797F10BE3F9B70069680C /* table-mixed.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-mixed.tif"; sourceTree = ""; }; + 44F472AF0C0DB735006428EF /* Change_Absent.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Absent.png; sourceTree = ""; }; + 44F472B00C0DB735006428EF /* Change_Unmodified.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Unmodified.png; sourceTree = ""; }; + 690F564404F11EC300CF23A4 /* ProfileController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProfileController.h; sourceTree = ""; }; + 690F564504F11EC300CF23A4 /* ProfileController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProfileController.m; sourceTree = ""; }; + 691CE180051BB44A00CF23A4 /* ProfileTableView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProfileTableView.h; sourceTree = ""; }; + 691CE181051BB44A00CF23A4 /* ProfileTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProfileTableView.m; sourceTree = ""; }; + 69660DC604F08CC100CF23A4 /* MyController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MyController.h; sourceTree = ""; }; + 69660DC704F08CC100CF23A4 /* MyController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = MyController.m; sourceTree = ""; }; + 697985CD050CFA2D00CF23A4 /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = ""; }; + 697985CE050CFA2D00CF23A4 /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = ""; }; + 69BA7DA804FD695200CF23A4 /* ReconTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReconTableView.h; sourceTree = ""; }; + 69BA7DA904FD695200CF23A4 /* ReconTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReconTableView.m; sourceTree = ""; }; + 69C625CA0664E94E00B3C46A /* Unison.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Unison.icns; sourceTree = ""; }; + 69C625F40664EC3300B3C46A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 69C625F50664EC3300B3C46A /* Unison.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Unison.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ReconItem.m; sourceTree = ""; }; + 69D3C6FA04F1CC3700CF23A4 /* ReconItem.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ReconItem.h; sourceTree = ""; }; + 69E407B907EB95AA00D37AA1 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = ""; }; + 8450B1361918859E00A2C4D6 /* ColorGradientView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ColorGradientView.h; sourceTree = ""; }; + 8450B1371918859E00A2C4D6 /* ColorGradientView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ColorGradientView.m; sourceTree = ""; }; + 849BE4FA191AC10E001B6FBF /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; }; + 849BE4FB191AC10E001B6FBF /* SSSelectableToolbar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSSelectableToolbar.h; sourceTree = ""; }; + 849BE4FC191AC10E001B6FBF /* SSSelectableToolbar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSSelectableToolbar.m; sourceTree = ""; }; + 849BE4FD191AC10E001B6FBF /* SSSelectableToolbarItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSSelectableToolbarItem.h; sourceTree = ""; }; + 849BE4FE191AC10E001B6FBF /* SSSelectableToolbarItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSSelectableToolbarItem.m; sourceTree = ""; }; + B518071209D6652100B1B21F /* add.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = add.tif; sourceTree = ""; }; + B518071309D6652100B1B21F /* diff.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = diff.tif; sourceTree = ""; }; + B518071409D6652100B1B21F /* go.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = go.tif; sourceTree = ""; }; + B518071509D6652100B1B21F /* left.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = left.tif; sourceTree = ""; }; + B518071609D6652100B1B21F /* merge.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = merge.tif; sourceTree = ""; }; + B518071709D6652100B1B21F /* quit.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = quit.tif; sourceTree = ""; }; + B518071809D6652100B1B21F /* restart.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = restart.tif; sourceTree = ""; }; + B518071909D6652100B1B21F /* right.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = right.tif; sourceTree = ""; }; + B518071A09D6652100B1B21F /* save.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = save.tif; sourceTree = ""; }; + B518071B09D6652100B1B21F /* skip.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = skip.tif; sourceTree = ""; }; + B554003E09C4E5A00089E1C3 /* UnisonToolbar.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = UnisonToolbar.h; sourceTree = ""; }; + B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = UnisonToolbar.m; sourceTree = ""; }; + B5B44C1109DF61A4000DC7AF /* table-conflict.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-conflict.tif"; sourceTree = ""; }; + B5B44C1209DF61A4000DC7AF /* table-error.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-error.tif"; sourceTree = ""; }; + B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-left-blue.tif"; sourceTree = ""; }; + B5B44C1409DF61A4000DC7AF /* table-left-green.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-left-green.tif"; sourceTree = ""; }; + B5B44C1509DF61A4000DC7AF /* table-merge.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-merge.tif"; sourceTree = ""; }; + B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-right-blue.tif"; sourceTree = ""; }; + B5B44C1709DF61A4000DC7AF /* table-right-green.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-right-green.tif"; sourceTree = ""; }; + B5B44C1809DF61A4000DC7AF /* table-skip.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-skip.tif"; sourceTree = ""; }; + B5E03B3809E38B9E0058C7B9 /* rescan.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = rescan.tif; sourceTree = ""; }; + BBE2BCAC11355CDD00B187F2 /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Growl.framework; path = Frameworks/Growl.framework; sourceTree = ""; }; + DE2444D510C294EA007E1546 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 69C625F10664EC3300B3C46A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 69C625F20664EC3300B3C46A /* Cocoa.framework in Frameworks */, + 69E407BA07EB95AA00D37AA1 /* Security.framework in Frameworks */, + 44A794A10BE16C380069680C /* ExceptionHandling.framework in Frameworks */, + 2E282CC80D9AE2B000439D01 /* unison-blob.o in Frameworks */, + BBE2BCAE11355CDD00B187F2 /* Growl.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 69C625F50664EC3300B3C46A /* Unison.app */, + ); + name = Products; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* uimac */ = { + isa = PBXGroup; + children = ( + 44042D0F0BE52AD700A6BBB2 /* progressicons */, + B5B44C1009DF61A4000DC7AF /* tableicons */, + B518071109D6652000B1B21F /* toolbar */, + 44A795C90BE2B91B0069680C /* Classes */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + 69C625F40664EC3300B3C46A /* Info.plist */, + 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */, + 2E282CB80D9AE16300439D01 /* External objects */, + ); + name = uimac; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 29B97316FDCFA39411CA2CEA /* main.m */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + DE2444D410C294EA007E1546 /* MainMenu.xib */, + 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, + 69C625CA0664E94E00B3C46A /* Unison.icns */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, + BBE2BCAC11355CDD00B187F2 /* Growl.framework */, + 44A794A00BE16C380069680C /* ExceptionHandling.framework */, + 69E407B907EB95AA00D37AA1 /* Security.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 2E282CB80D9AE16300439D01 /* External objects */ = { + isa = PBXGroup; + children = ( + 2E282CC70D9AE2B000439D01 /* unison-blob.o */, + ); + name = "External objects"; + sourceTree = ""; + }; + 44042D0F0BE52AD700A6BBB2 /* progressicons */ = { + isa = PBXGroup; + children = ( + 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */, + 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */, + 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */, + 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */, + 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */, + 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */, + 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */, + 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */, + 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */, + 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */, + 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */, + ); + name = progressicons; + sourceTree = ""; + }; + 44A795C90BE2B91B0069680C /* Classes */ = { + isa = PBXGroup; + children = ( + 849BE4F9191AC10E001B6FBF /* ssselectabletoolbar */, + 8450B1361918859E00A2C4D6 /* ColorGradientView.h */, + 8450B1371918859E00A2C4D6 /* ColorGradientView.m */, + 69660DC604F08CC100CF23A4 /* MyController.h */, + 69660DC704F08CC100CF23A4 /* MyController.m */, + 2A3C3F7A09922D4900E404E9 /* NotificationController.h */, + 2A3C3F7B09922D4900E404E9 /* NotificationController.m */, + 69BA7DA804FD695200CF23A4 /* ReconTableView.h */, + 69BA7DA904FD695200CF23A4 /* ReconTableView.m */, + 69D3C6FA04F1CC3700CF23A4 /* ReconItem.h */, + 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */, + 445A2A5B0BFAB6A100E4E641 /* ImageAndTextCell.h */, + 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */, + 44042CB30BE4FC9B00A6BBB2 /* ProgressCell.h */, + 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */, + 690F564404F11EC300CF23A4 /* ProfileController.h */, + 690F564504F11EC300CF23A4 /* ProfileController.m */, + 697985CD050CFA2D00CF23A4 /* PreferencesController.h */, + 697985CE050CFA2D00CF23A4 /* PreferencesController.m */, + 691CE180051BB44A00CF23A4 /* ProfileTableView.h */, + 691CE181051BB44A00CF23A4 /* ProfileTableView.m */, + B554003E09C4E5A00089E1C3 /* UnisonToolbar.h */, + B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */, + 449F03DE0BE00DE9003F15C8 /* Bridge.h */, + 449F03DF0BE00DE9003F15C8 /* Bridge.m */, + ); + name = Classes; + sourceTree = ""; + }; + 849BE4F9191AC10E001B6FBF /* ssselectabletoolbar */ = { + isa = PBXGroup; + children = ( + 849BE4FA191AC10E001B6FBF /* README */, + 849BE4FB191AC10E001B6FBF /* SSSelectableToolbar.h */, + 849BE4FC191AC10E001B6FBF /* SSSelectableToolbar.m */, + 849BE4FD191AC10E001B6FBF /* SSSelectableToolbarItem.h */, + 849BE4FE191AC10E001B6FBF /* SSSelectableToolbarItem.m */, + ); + path = ssselectabletoolbar; + sourceTree = ""; + }; + B518071109D6652000B1B21F /* toolbar */ = { + isa = PBXGroup; + children = ( + B5E03B3809E38B9E0058C7B9 /* rescan.tif */, + B518071209D6652100B1B21F /* add.tif */, + B518071309D6652100B1B21F /* diff.tif */, + B518071409D6652100B1B21F /* go.tif */, + B518071509D6652100B1B21F /* left.tif */, + B518071609D6652100B1B21F /* merge.tif */, + B518071709D6652100B1B21F /* quit.tif */, + B518071809D6652100B1B21F /* restart.tif */, + B518071909D6652100B1B21F /* right.tif */, + B518071A09D6652100B1B21F /* save.tif */, + B518071B09D6652100B1B21F /* skip.tif */, + ); + path = toolbar; + sourceTree = ""; + }; + B5B44C1009DF61A4000DC7AF /* tableicons */ = { + isa = PBXGroup; + children = ( + 44F472AF0C0DB735006428EF /* Change_Absent.png */, + 44F472B00C0DB735006428EF /* Change_Unmodified.png */, + 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */, + 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */, + 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */, + 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */, + 44A797F10BE3F9B70069680C /* table-mixed.tif */, + B5B44C1109DF61A4000DC7AF /* table-conflict.tif */, + B5B44C1209DF61A4000DC7AF /* table-error.tif */, + B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */, + B5B44C1409DF61A4000DC7AF /* table-left-green.tif */, + B5B44C1509DF61A4000DC7AF /* table-merge.tif */, + B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */, + B5B44C1709DF61A4000DC7AF /* table-right-green.tif */, + B5B44C1809DF61A4000DC7AF /* table-skip.tif */, + 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */, + 445A29260BFA5C1200E4E641 /* Outline-Flat.png */, + 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */, + ); + path = tableicons; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 69C625DD0664EC3300B3C46A /* uimac */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2A3C3F280992245300E404E9 /* Build configuration list for PBXNativeTarget "uimac" */; + buildPhases = ( + 2E282CBA0D9AE17300439D01 /* Run Script (make unison-blob.o) */, + 69C625E50664EC3300B3C46A /* Resources */, + 69C625E90664EC3300B3C46A /* Sources */, + 69C625F10664EC3300B3C46A /* Frameworks */, + 2A3C3F3709922AA600E404E9 /* CopyFiles */, + BB6E50CF10CAA57600E23F8A /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + 2A124E800DE1C4E400524237 /* PBXTargetDependency */, + ); + name = uimac; + productInstallPath = "$(HOME)/Applications"; + productName = uimac; + productReference = 69C625F50664EC3300B3C46A /* Unison.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0410; + }; + buildConfigurationList = 2A3C3F2C0992245300E404E9 /* Build configuration list for PBXProject "uimacnew" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* uimac */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 69C625DD0664EC3300B3C46A /* uimac */, + 2A124E780DE1C48400524237 /* Create ExternalSettings */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 69C625E50664EC3300B3C46A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69C625E70664EC3300B3C46A /* InfoPlist.strings in Resources */, + 69C625E80664EC3300B3C46A /* Unison.icns in Resources */, + B518071C09D6652100B1B21F /* add.tif in Resources */, + B518071D09D6652100B1B21F /* diff.tif in Resources */, + B518071E09D6652100B1B21F /* go.tif in Resources */, + B518071F09D6652100B1B21F /* left.tif in Resources */, + B518072009D6652100B1B21F /* merge.tif in Resources */, + B518072109D6652100B1B21F /* quit.tif in Resources */, + B518072209D6652100B1B21F /* restart.tif in Resources */, + B518072309D6652100B1B21F /* right.tif in Resources */, + B518072409D6652100B1B21F /* save.tif in Resources */, + B518072509D6652100B1B21F /* skip.tif in Resources */, + B5B44C1909DF61A4000DC7AF /* table-conflict.tif in Resources */, + B5B44C1A09DF61A4000DC7AF /* table-error.tif in Resources */, + B5B44C1B09DF61A4000DC7AF /* table-left-blue.tif in Resources */, + B5B44C1C09DF61A4000DC7AF /* table-left-green.tif in Resources */, + B5B44C1D09DF61A4000DC7AF /* table-merge.tif in Resources */, + B5B44C1E09DF61A4000DC7AF /* table-right-blue.tif in Resources */, + B5B44C1F09DF61A4000DC7AF /* table-right-green.tif in Resources */, + B5B44C2009DF61A4000DC7AF /* table-skip.tif in Resources */, + B5E03B3909E38B9E0058C7B9 /* rescan.tif in Resources */, + 44A797F40BE3F9B70069680C /* table-mixed.tif in Resources */, + 44042D1B0BE52AED00A6BBB2 /* ProgressBarAdvanced.png in Resources */, + 44042D1C0BE52AEE00A6BBB2 /* ProgressBarBlue.png in Resources */, + 44042D1D0BE52AEE00A6BBB2 /* ProgressBarEndAdvanced.png in Resources */, + 44042D1E0BE52AEE00A6BBB2 /* ProgressBarEndBlue.png in Resources */, + 44042D1F0BE52AEE00A6BBB2 /* ProgressBarEndGray.png in Resources */, + 44042D200BE52AEE00A6BBB2 /* ProgressBarEndGreen.png in Resources */, + 44042D210BE52AEE00A6BBB2 /* ProgressBarEndWhite.png in Resources */, + 44042D220BE52AEE00A6BBB2 /* ProgressBarGray.png in Resources */, + 44042D230BE52AEE00A6BBB2 /* ProgressBarGreen.png in Resources */, + 44042D240BE52AEE00A6BBB2 /* ProgressBarLightGreen.png in Resources */, + 44042D250BE52AEE00A6BBB2 /* ProgressBarWhite.png in Resources */, + 445A291B0BFA5B3300E4E641 /* Outline-Deep.png in Resources */, + 445A29270BFA5C1200E4E641 /* Outline-Flat.png in Resources */, + 445A29290BFA5C1B00E4E641 /* Outline-Flattened.png in Resources */, + 440EEAF30C03EC3D00ACAAB0 /* Change_Created.png in Resources */, + 440EEAF90C03F0B800ACAAB0 /* Change_Deleted.png in Resources */, + 440EEAFA0C03F0B800ACAAB0 /* Change_Modified.png in Resources */, + 440EEAFB0C03F0B800ACAAB0 /* Change_PropsChanged.png in Resources */, + 44F472B10C0DB735006428EF /* Change_Absent.png in Resources */, + 44F472B20C0DB735006428EF /* Change_Unmodified.png in Resources */, + DE2444D610C294EA007E1546 /* MainMenu.xib in Resources */, + 849BE4FF191AC10E001B6FBF /* README in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2A124E7E0DE1C4BE00524237 /* Run Script (version, ocaml lib dir) */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script (version, ocaml lib dir)"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if [ -x /usr/libexec/path_helper ]; then\n eval `/usr/libexec/path_helper -s`\nfi\nif [ ! -x ${PROJECT_DIR}/../Makefile.ProjectInfo ]; then\n if [ ! -x ${PROJECT_DIR}/../mkProjectInfo ]; then\n cd ${PROJECT_DIR}/..; ocamlc -o mkProjectInfo unix.cma str.cma mkProjectInfo.ml\n fi\n cd ${PROJECT_DIR}/..; ./mkProjectInfo > Makefile.ProjectInfo\nfi\nOCAMLLIBDIR=`ocamlc -v | tail -n -1 | sed -e 's/.* //g' | sed -e 's/\\\\\\/\\\\//g' | tr -d '\\r'`\nsource ${PROJECT_DIR}/../Makefile.ProjectInfo\necho MARKETING_VERSION = $VERSION > ${PROJECT_DIR}/ExternalSettings.xcconfig\necho OCAMLLIBDIR = $OCAMLLIBDIR >> ${PROJECT_DIR}/ExternalSettings.xcconfig"; + }; + 2E282CBA0D9AE17300439D01 /* Run Script (make unison-blob.o) */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script (make unison-blob.o)"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"Building unison-blob.o...\"\nif [ -x /usr/libexec/path_helper ]; then\n eval `/usr/libexec/path_helper -s`\nfi\ncd ${PROJECT_DIR}/..\nmake unison-blob.o\necho \"done\""; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 69C625E90664EC3300B3C46A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69C625EA0664EC3300B3C46A /* main.m in Sources */, + 69C625EB0664EC3300B3C46A /* MyController.m in Sources */, + 69C625EC0664EC3300B3C46A /* ProfileController.m in Sources */, + 69C625ED0664EC3300B3C46A /* ReconItem.m in Sources */, + 69C625EE0664EC3300B3C46A /* ReconTableView.m in Sources */, + 69C625EF0664EC3300B3C46A /* PreferencesController.m in Sources */, + 69C625F00664EC3300B3C46A /* ProfileTableView.m in Sources */, + 2A3C3F7D09922D4900E404E9 /* NotificationController.m in Sources */, + B554004109C4E5AA0089E1C3 /* UnisonToolbar.m in Sources */, + 449F03E10BE00DE9003F15C8 /* Bridge.m in Sources */, + 44042CB60BE4FC9B00A6BBB2 /* ProgressCell.m in Sources */, + 445A2A5E0BFAB6C300E4E641 /* ImageAndTextCell.m in Sources */, + 8450B1381918859E00A2C4D6 /* ColorGradientView.m in Sources */, + 849BE500191AC10E001B6FBF /* SSSelectableToolbar.m in Sources */, + 849BE501191AC10E001B6FBF /* SSSelectableToolbarItem.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 2A124E800DE1C4E400524237 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2A124E780DE1C48400524237 /* Create ExternalSettings */; + targetProxy = 2A124E7F0DE1C4E400524237 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C165DFE840E0CC02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + DE2444D410C294EA007E1546 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + DE2444D510C294EA007E1546 /* English */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 2A124E790DE1C48400524237 /* Development */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + PRODUCT_NAME = "Create ExternalSettings"; + }; + name = Development; + }; + 2A124E7A0DE1C48400524237 /* Deployment */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + PRODUCT_NAME = "Create ExternalSettings"; + ZERO_LINK = NO; + }; + name = Deployment; + }; + 2A124E7B0DE1C48400524237 /* Default */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "Create ExternalSettings"; + }; + name = Default; + }; + 2A3C3F290992245300E404E9 /* Development */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COPY_PHASE_STRIP = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(FRAMEWORK_SEARCH_PATHS)", + "$(SRCROOT)", + "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", + "\"$(SRCROOT)/Frameworks\"", + ); + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Applications"; + LIBRARY_SEARCH_PATHS = ""; + NSZombieEnabled = YES; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ( + "-L$(OCAMLLIBDIR)", + "-lunix", + "-lthreadsnat", + "-lcamlstr", + "-lbigarray", + "-lasmrun", + ); + PRODUCT_NAME = Unison; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = app; + ZERO_LINK = YES; + }; + name = Development; + }; + 2A3C3F2A0992245300E404E9 /* Deployment */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COPY_PHASE_STRIP = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(FRAMEWORK_SEARCH_PATHS)", + "$(SRCROOT)", + "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", + "\"$(SRCROOT)/Frameworks\"", + ); + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Applications"; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ( + "-L$(OCAMLLIBDIR)", + "-lunix", + "-lthreadsnat", + "-lcamlstr", + "-lbigarray", + "-lasmrun", + ); + PRODUCT_NAME = Unison; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = app; + ZERO_LINK = NO; + }; + name = Deployment; + }; + 2A3C3F2B0992245300E404E9 /* Default */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(FRAMEWORK_SEARCH_PATHS)", + "$(SRCROOT)", + "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", + "\"$(SRCROOT)/Frameworks\"", + ); + FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Applications"; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ( + "-L$(OCAMLLIBDIR)", + "-lunix", + "-lthreadsnat", + "-lcamlstr", + "-lbigarray", + "-lasmrun", + ); + PRODUCT_NAME = Unison; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = app; + ZERO_LINK = NO; + }; + name = Default; + }; + 2A3C3F2D0992245300E404E9 /* Development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; + LIBRARY_SEARCH_PATHS = ""; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; + }; + name = Development; + }; + 2A3C3F2E0992245300E404E9 /* Deployment */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; + LIBRARY_SEARCH_PATHS = ""; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; + }; + name = Deployment; + }; + 2A3C3F2F0992245300E404E9 /* Default */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; + LIBRARY_SEARCH_PATHS = ""; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; + }; + name = Default; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2A124E7C0DE1C4A200524237 /* Build configuration list for PBXAggregateTarget "Create ExternalSettings" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2A124E790DE1C48400524237 /* Development */, + 2A124E7A0DE1C48400524237 /* Deployment */, + 2A124E7B0DE1C48400524237 /* Default */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Default; + }; + 2A3C3F280992245300E404E9 /* Build configuration list for PBXNativeTarget "uimac" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2A3C3F290992245300E404E9 /* Development */, + 2A3C3F2A0992245300E404E9 /* Deployment */, + 2A3C3F2B0992245300E404E9 /* Default */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Default; + }; + 2A3C3F2C0992245300E404E9 /* Build configuration list for PBXProject "uimacnew" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2A3C3F2D0992245300E404E9 /* Development */, + 2A3C3F2E0992245300E404E9 /* Deployment */, + 2A3C3F2F0992245300E404E9 /* Default */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Default; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimac14/Unison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimac14/Unison.icns differ diff -Nru unison-2.40.102/uimac14/UnisonToolbar.h unison-2.48.3/uimac14/UnisonToolbar.h --- unison-2.40.102/uimac14/UnisonToolbar.h 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/UnisonToolbar.h 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,33 @@ +// +// UnisonToolbar.h +// +// Extended NSToolbar with several views +// +// Created by Ben Willmore on Sun March 12 2006. +// Copyright (c) 2006, licensed under GNU GPL. +// + +#import + +@class ReconTableView, MyController; + +@interface UnisonToolbar : NSToolbar +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060) + +#endif +{ + ReconTableView* tableView; + MyController* myController; + NSString* currentView; + NSView* tableModeView; +} + +- initWithIdentifier:(NSString *) identifier :(MyController *) aController :(ReconTableView *) aTableView; +- (NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier: (NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted; +- (NSArray *) itemIdentifiersForView: (NSString *) whichView; +- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar; +- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar; +- (void) setView: (NSString *) whichView; +- (void)takeTableModeView:(NSView *)view; + +@end diff -Nru unison-2.40.102/uimac14/UnisonToolbar.m unison-2.48.3/uimac14/UnisonToolbar.m --- unison-2.40.102/uimac14/UnisonToolbar.m 1970-01-01 00:00:00.000000000 +0000 +++ unison-2.48.3/uimac14/UnisonToolbar.m 2014-07-05 21:55:19.000000000 +0000 @@ -0,0 +1,216 @@ +// +// UnisonToolbar.h +// +// Extended NSToolbar with several views +// +// Created by Ben Willmore on Sun March 12 2006. +// Copyright (c) 2006, licensed under GNU GPL. +// + +#import "UnisonToolbar.h" +#import "MyController.h" + +static NSString* QuitItemIdentifier = @"Quit"; +static NSString* OpenItemIdentifier = @"Open"; +static NSString* NewItemIdentifier = @"New"; +static NSString* GoItemIdentifier = @"Go"; +static NSString* CancelItemIdentifier = @"Cancel"; +static NSString* SaveItemIdentifier = @"Save"; +static NSString* RestartItemIdentifier = @"Restart"; +static NSString* RescanItemIdentifier = @"Rescan"; +static NSString* RToLItemIdentifier = @"RToL"; +static NSString* MergeItemIdentifier = @"Merge"; +static NSString* LToRItemIdentifier = @"LToR"; +static NSString* SkipItemIdentifier = @"Skip"; +static NSString* DiffItemIdentifier = @"Diff"; +static NSString* TableModeIdentifier = @"TableMode"; + +@implementation UnisonToolbar + +- initWithIdentifier:(NSString *) identifier :(MyController *) aController :(ReconTableView *) aTableView { + + if ((self = [super initWithIdentifier: identifier])) { + [self setAllowsUserCustomization: NO]; + [self setAutosavesConfiguration: NO]; + [self setDelegate: self]; + myController = aController; + tableView = aTableView; + currentView = @""; + } + + return self; +} + +- (void)takeTableModeView:(NSView *)view +{ + tableModeView = [view retain]; + [view setHidden:YES]; +} + +- (NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier: (NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted { + + NSToolbarItem *toolbarItem = [[[NSToolbarItem alloc] initWithItemIdentifier: itemIdent] autorelease]; + if ([itemIdent isEqual: QuitItemIdentifier]) { + [toolbarItem setLabel: @"Quit"]; + [toolbarItem setImage: [NSImage imageNamed: @"quit.tif"]]; + [toolbarItem setTarget:NSApp]; + [toolbarItem setAction:@selector(terminate:)]; + } + else if ([itemIdent isEqual: OpenItemIdentifier]) { + [toolbarItem setLabel: @"Open"]; + [toolbarItem setImage: [NSImage imageNamed: @"go.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(openButton:)]; + } + else if ([itemIdent isEqual: NewItemIdentifier]) { + [toolbarItem setLabel: @"New"]; + [toolbarItem setImage: [NSImage imageNamed: @"add.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(createButton:)]; + } + else if ([itemIdent isEqual: CancelItemIdentifier]) { + [toolbarItem setLabel: @"Cancel"]; + [toolbarItem setImage: [NSImage imageNamed: @"restart.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(chooseProfiles)]; + } + else if ([itemIdent isEqual: SaveItemIdentifier]) { + [toolbarItem setLabel: @"Save"]; + [toolbarItem setImage: [NSImage imageNamed: @"save.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(saveProfileButton:)]; + } + else if ([itemIdent isEqual: GoItemIdentifier]) { + [toolbarItem setLabel: @"Go"]; + [toolbarItem setImage: [NSImage imageNamed: @"go.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(syncButton:)]; + } + else if ([itemIdent isEqual: RestartItemIdentifier]) { + [toolbarItem setLabel: @"Restart"]; + [toolbarItem setImage: [NSImage imageNamed: @"restart.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(restartButton:)]; + } + else if ([itemIdent isEqual: RescanItemIdentifier]) { + [toolbarItem setLabel: @"Rescan"]; + [toolbarItem setImage: [NSImage imageNamed: @"rescan.tif"]]; + [toolbarItem setTarget:myController]; + [toolbarItem setAction:@selector(rescan:)]; + } + else if ([itemIdent isEqual: RToLItemIdentifier]) { + [toolbarItem setLabel: @"Right to left"]; + [toolbarItem setImage: [NSImage imageNamed: @"left.tif"]]; + [toolbarItem setTarget:tableView]; + [toolbarItem setAction:@selector(copyRL:)]; + } + else if ([itemIdent isEqual: MergeItemIdentifier]) { + [toolbarItem setLabel: @"Merge"]; + [toolbarItem setImage: [NSImage imageNamed: @"merge.tif"]]; + [toolbarItem setTarget:tableView]; + [toolbarItem setAction:@selector(merge:)]; + } + else if ([itemIdent isEqual: LToRItemIdentifier]) { + [toolbarItem setLabel: @"Left to right"]; + [toolbarItem setImage: [NSImage imageNamed: @"right.tif"]]; + [toolbarItem setTarget:tableView]; + [toolbarItem setAction:@selector(copyLR:)]; + } + else if ([itemIdent isEqual: SkipItemIdentifier]) { + [toolbarItem setLabel: @"Skip"]; + [toolbarItem setImage: [NSImage imageNamed: @"skip.tif"]]; + [toolbarItem setTarget:tableView]; + [toolbarItem setAction:@selector(leaveAlone:)]; + } + else if ([itemIdent isEqual: DiffItemIdentifier]) { + [toolbarItem setLabel: @"Diff"]; + [toolbarItem setImage: [NSImage imageNamed: @"diff.tif"]]; + [toolbarItem setTarget:tableView]; + [toolbarItem setAction:@selector(showDiff:)]; + } + else if ([itemIdent isEqual: TableModeIdentifier]) { + [toolbarItem setLabel:@"Layout"]; + [toolbarItem setToolTip:@"Switch table nesting"]; + [tableModeView setHidden:NO]; + [toolbarItem setView:tableModeView]; + //[toolbarItem setMinSize:NSMakeSize(NSWidth([tableModeView frame]),NSHeight([tableModeView frame])+10)]; + //[toolbarItem setMaxSize:NSMakeSize(NSWidth([tableModeView frame]),NSHeight([tableModeView frame])+10)]; + } + + return toolbarItem; +} + +- (NSArray *) itemIdentifiersForView: (NSString *) whichView { + if ([whichView isEqual: @"chooseProfileView"]) { + return [NSArray arrayWithObjects: QuitItemIdentifier, NewItemIdentifier, OpenItemIdentifier, nil]; + } + else if ([whichView isEqual: @"preferencesView"]) { + return [NSArray arrayWithObjects: QuitItemIdentifier, SaveItemIdentifier, CancelItemIdentifier, nil]; + } + else if ([whichView isEqual: @"ConnectingView"]) { + return [NSArray arrayWithObjects: QuitItemIdentifier, nil]; + } + else if ([whichView isEqual: @"updatesView"]) { + return [NSArray arrayWithObjects: QuitItemIdentifier, + RestartItemIdentifier, + NSToolbarSpaceItemIdentifier, + GoItemIdentifier, + RescanItemIdentifier, + NSToolbarSpaceItemIdentifier, + RToLItemIdentifier, MergeItemIdentifier, LToRItemIdentifier, + SkipItemIdentifier, + NSToolbarSpaceItemIdentifier, + DiffItemIdentifier, + TableModeIdentifier, nil]; + } + else { + return [NSArray arrayWithObjects: QuitItemIdentifier, Nil]; + } +} + +- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar { + return [NSArray arrayWithObjects: QuitItemIdentifier, NewItemIdentifier, OpenItemIdentifier, nil]; +} + +- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar { + return [NSArray arrayWithObjects: QuitItemIdentifier, OpenItemIdentifier, NewItemIdentifier, + CancelItemIdentifier, SaveItemIdentifier, + GoItemIdentifier, RestartItemIdentifier, RescanItemIdentifier, + RToLItemIdentifier, MergeItemIdentifier, LToRItemIdentifier, + SkipItemIdentifier, DiffItemIdentifier, + NSToolbarSpaceItemIdentifier, nil]; +} + +- (void) setView: (NSString *) whichView { + if ([whichView isEqual:currentView]) return; + + currentView = whichView; + + int i; + NSArray *identifiers; + NSString *oldIdentifier; + NSString *newIdentifier; + + identifiers=[self itemIdentifiersForView:whichView]; + for (i=0; i<[identifiers count]; i++) { + newIdentifier = [identifiers objectAtIndex:i]; + if (i<[[self items] count]) { + oldIdentifier = [[[self items] objectAtIndex:i] itemIdentifier]; + if ([newIdentifier isEqual: oldIdentifier] ) { + [[[self items] objectAtIndex:i] setEnabled:YES]; + } + else { + [self removeItemAtIndex:i]; + [self insertItemWithItemIdentifier:newIdentifier atIndex:i]; + } + } + else { + [self insertItemWithItemIdentifier:newIdentifier atIndex:i]; + } + } + while ([[self items] count] > [identifiers count]) { + [self removeItemAtIndex:[identifiers count]]; + } +} + +@end diff -Nru unison-2.40.102/uimacbridge.ml unison-2.48.3/uimacbridge.ml --- unison-2.40.102/uimacbridge.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacbridge.ml 2012-08-09 14:06:21.000000000 +0000 @@ -17,6 +17,7 @@ mutable whatHappened : Util.confirmation option; mutable statusMessage : string option };; let theState = ref [| |];; +let unsynchronizedPaths = ref None;; let unisonDirectory() = System.fspathToPrintString Os.unisonDir ;; @@ -126,6 +127,7 @@ (* Load the profile and command-line arguments *) (* Restore prefs to their default values, if necessary *) if not !firstTime then Prefs.resetToDefaults(); + unsynchronizedPaths := None; (* Tell the preferences module the name of the profile *) Prefs.profileName := Some(profileName); @@ -232,7 +234,7 @@ let t = Trace.startTimer "Checking for updates" in let findUpdates () = Trace.status "Looking for changes"; - let updates = Update.findUpdates () in + let updates = Update.findUpdates ~wantWatcher:() !unsynchronizedPaths in Trace.showTimer t; updates in let reconcile updates = Recon.reconcileAll updates in @@ -252,6 +254,8 @@ whatHappened = None; statusMessage = None }) reconItemList in theState := Array.of_list stateItemList; + unsynchronizedPaths := + Some (List.map (fun ri -> ri.path1) reconItemList, []); if dangerousPaths <> [] then begin Prefs.set Globals.batch false; Util.warn (Uicommon.dangerousPathMsg dangerousPaths) @@ -388,25 +392,72 @@ Update.commitUpdates(); Trace.showTimer t; + let failureList = + Array.fold_right + (fun si l -> + match si.whatHappened with + Some (Util.Failed err) -> + (si, [err], "transport failure") :: l + | _ -> + l) + !theState [] + in + let failureCount = List.length failureList in let failures = - let count = - Array.fold_left - (fun l si -> - l + (match si.whatHappened with Some(Util.Failed(_)) -> 1 | _ -> 0)) - 0 !theState in - if count = 0 then "" else - Printf.sprintf "%d failure%s" count (if count=1 then "" else "s") in + if failureCount = 0 then [] else + [Printf.sprintf "%d failure%s" + failureCount (if failureCount = 1 then "" else "s")] + in + let partialList = + Array.fold_right + (fun si l -> + match si.whatHappened with + Some Util.Succeeded + when partiallyProblematic si.ri && + not (problematic si.ri) -> + let errs = + match si.ri.replicas with + Different diff -> diff.errors1 @ diff.errors2 + | _ -> assert false + in + (si, errs, + "partial transfer (errors during update detection)") :: l + | _ -> + l) + !theState [] + in + let partialCount = List.length partialList in + let partials = + if partialCount = 0 then [] else + [Printf.sprintf "%d partially transferred" partialCount] + in + let skippedList = + Array.fold_right + (fun si l -> + match si.ri.replicas with + Problem err -> + (si, [err], "error during update detection") :: l + | Different diff when diff.direction = Conflict -> + (si, [], + if diff.default_direction = Conflict then + "conflict" + else "skipped") :: l + | _ -> + l) + !theState [] + in + let skippedCount = List.length skippedList in let skipped = - let count = - Array.fold_left - (fun l si -> - l + (if problematic si.ri then 1 else 0)) - 0 !theState in - if count = 0 then "" else - Printf.sprintf "%d skipped" count in + if skippedCount = 0 then [] else + [Printf.sprintf "%d skipped" skippedCount] + in + unsynchronizedPaths := + Some (List.map (fun (si, _, _) -> si.ri.path1) + (failureList @ partialList @ skippedList), + []); Trace.status - (Printf.sprintf "Synchronization complete %s%s%s" - failures (if failures=""||skipped="" then "" else ", ") skipped); + (Printf.sprintf "Synchronization complete %s" + (String.concat ", " (failures @ partials @ skipped))); end;; Callback.register "unisonSynchronize" unisonSynchronize;; diff -Nru unison-2.40.102/uimacbridgenew.ml unison-2.48.3/uimacbridgenew.ml --- unison-2.40.102/uimacbridgenew.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacbridgenew.ml 2014-07-05 21:55:19.000000000 +0000 @@ -18,6 +18,7 @@ mutable whatHappened : Util.confirmation option; mutable statusMessage : string option };; let theState = ref [| |];; +let unsynchronizedPaths = ref None;; let unisonDirectory() = System.fspathToString Os.unisonDir ;; @@ -82,6 +83,21 @@ let fatalError message = Trace.log (message ^ "\n"); displayFatalError message + +(* Defined in MyController.m; display the warning and ask whether to + exit or proceed *) +external displayWarnPanel : string -> bool = "warnPanel";; + +let setWarnPrinter() = + Util.warnPrinter := + Some(fun s -> + Trace.log ("Warning: " ^ s ^ "\n"); + if not (Prefs.read Globals.batch) then begin + if (displayWarnPanel s) then begin + Lwt_unix.run (Update.unlockArchives ()); + exit Uicommon.fatalExit + end + end) let doInOtherThread f = Thread.create @@ -187,29 +203,50 @@ ;; Callback.register "unisonInit0" unisonInit0;; +(* Utility function to tell the UI whether roots were set *) + +let areRootsSet () = + match Globals.rawRoots() with + | [] -> false + | _ -> true +;; +Callback.register "areRootsSet" areRootsSet;; + +(* Utility function to tell the UI whether -batch is set *) + +let isBatchSet () = + Prefs.read Globals.batch +;; +Callback.register "isBatchSet" isBatchSet;; + (* The first time we load preferences, we also read the command line arguments; if we re-load prefs (because the user selected a new profile) we ignore the command line *) let firstTime = ref(true) -(* After figuring out the profile name *) +(* After figuring out the profile name. If the profileName is the empty + string, it means that only the roots were specified on the command + line *) let do_unisonInit1 profileName = (* Load the profile and command-line arguments *) (* Restore prefs to their default values, if necessary *) if not !firstTime then Prefs.resetToDefaults(); + unsynchronizedPaths := None; - (* Tell the preferences module the name of the profile *) - Prefs.profileName := Some(profileName); + if profileName <> "" then begin + (* Tell the preferences module the name of the profile *) + Prefs.profileName := Some(profileName); - (* If the profile does not exist, create an empty one (this should only - happen if the profile is 'default', since otherwise we will already - have checked that the named one exists). *) - if not(System.file_exists (Prefs.profilePathname profileName)) then - Prefs.addComment "Unison preferences file"; - - (* Load the profile *) - (Trace.debug "" (fun() -> Util.msg "about to load prefs"); - Prefs.loadTheFile()); + (* If the profile does not exist, create an empty one (this should only + happen if the profile is 'default', since otherwise we will already + have checked that the named one exists). *) + if not(System.file_exists (Prefs.profilePathname profileName)) then + Prefs.addComment "Unison preferences file"; + + (* Load the profile *) + (Trace.debug "" (fun() -> Util.msg "about to load prefs"); + Prefs.loadTheFile()) + end; (* Parse the command line. This will temporarily override settings from the profile. *) @@ -296,6 +333,9 @@ Printf.eprintf "\n" ); + (* Install the warning panel, hopefully it's not too late *) + setWarnPrinter(); + Lwt_unix.run (Uicommon.validateAndFixupPrefs () >>= Globals.propagatePrefs); @@ -318,7 +358,7 @@ let t = Trace.startTimer "Checking for updates" in let findUpdates () = Trace.status "Looking for changes"; - let updates = Update.findUpdates () in + let updates = Update.findUpdates ~wantWatcher:() !unsynchronizedPaths in Trace.showTimer t; updates in let reconcile updates = Recon.reconcileAll updates in @@ -343,6 +383,8 @@ whatHappened = None; statusMessage = None }) reconItemList in theState := Array.of_list stateItemList; + unsynchronizedPaths := + Some (List.map (fun ri -> ri.path1) reconItemList, []); if dangerousPaths <> [] then begin Prefs.set Globals.batch false; Util.warn (Uicommon.dangerousPathMsg dangerousPaths) @@ -401,7 +443,7 @@ Callback.register "unisonRiToFileType" unisonRiToFileType;; let direction2niceString = function (* from Uicommon where it's not exported *) - Conflict -> "<-?->" + Conflict _ -> "<-?->" | Replica1ToReplica2 -> "---->" | Replica2ToReplica1 -> "<----" | Merge -> "<-M->" @@ -424,7 +466,7 @@ let unisonRiSetConflict ri = match ri.ri.replicas with Problem _ -> () - | Different diff -> diff.direction <- Conflict;; + | Different diff -> diff.direction <- Conflict "skip requested";; Callback.register "unisonRiSetConflict" unisonRiSetConflict;; let unisonRiSetMerge ri = match ri.ri.replicas with @@ -442,7 +484,7 @@ match (ri.statusMessage, ri.whatHappened,ri.ri.replicas) with (None,None,_) -> "" | (Some s,None,_) -> Unicode.protect s - | (_,_,Different {direction = Conflict}) -> "" + | (_,_,Different {direction = Conflict "files differed"}) -> "" | (_,_,Problem _) -> "" | (_,Some Util.Succeeded,_) -> "done" | (_,Some (Util.Failed s),_) -> "FAILED";; @@ -577,36 +619,69 @@ Trace.showTimer t; commitUpdates (); + let failureList = + Array.fold_right + (fun si l -> + match si.whatHappened with + Some (Util.Failed err) -> + (si, [err], "transport failure") :: l + | _ -> + l) + !theState [] + in + let failureCount = List.length failureList in let failures = - let count = - Array.fold_left - (fun l si -> - l + (match si.whatHappened with Some(Util.Failed(_)) -> 1 | _ -> 0)) - 0 !theState in - if count = 0 then [] else - [Printf.sprintf "%d failure%s" count (if count=1 then "" else "s")] in + if failureCount = 0 then [] else + [Printf.sprintf "%d failure%s" + failureCount (if failureCount = 1 then "" else "s")] + in + let partialList = + Array.fold_right + (fun si l -> + match si.whatHappened with + Some Util.Succeeded + when partiallyProblematic si.ri && + not (problematic si.ri) -> + let errs = + match si.ri.replicas with + Different diff -> diff.errors1 @ diff.errors2 + | _ -> assert false + in + (si, errs, + "partial transfer (errors during update detection)") :: l + | _ -> + l) + !theState [] + in + let partialCount = List.length partialList in let partials = - let count = - Array.fold_left - (fun l si -> - l + match si.whatHappened with - Some Util.Succeeded - when partiallyProblematic si.ri && - not (problematic si.ri) -> - 1 - | _ -> - 0) - 0 !theState in - if count = 0 then [] else - [Printf.sprintf "%d partially transferred" count] in + if partialCount = 0 then [] else + [Printf.sprintf "%d partially transferred" partialCount] + in + let skippedList = + Array.fold_right + (fun si l -> + match si.ri.replicas with + Problem err -> + (si, [err], "error during update detection") :: l + | Different diff when (isConflict diff.direction) -> + (si, [], + if (isConflict diff.default_direction) then + "conflict" + else "skipped") :: l + | _ -> + l) + !theState [] + in + let skippedCount = List.length skippedList in let skipped = - let count = - Array.fold_left - (fun l si -> - l + (if problematic si.ri then 1 else 0)) - 0 !theState in - if count = 0 then [] else - [Printf.sprintf "%d skipped" count] in + if skippedCount = 0 then [] else + [Printf.sprintf "%d skipped" skippedCount] + in + unsynchronizedPaths := + Some (List.map (fun (si, _, _) -> si.ri.path1) + (failureList @ partialList @ skippedList), + []); Trace.status (Printf.sprintf "Synchronization complete %s" (String.concat ", " (failures @ partials @ skipped))); @@ -683,7 +758,7 @@ the current setting is Conflict *) let unisonRiIsConflict ri = match ri.ri.replicas with - | Different {default_direction = Conflict} -> true + | Different {default_direction = Conflict "files differ"} -> true | _ -> false;; Callback.register "unisonRiIsConflict" unisonRiIsConflict;; diff -Nru unison-2.40.102/uimacnew/Info.plist.template unison-2.48.3/uimacnew/Info.plist.template --- unison-2.40.102/uimacnew/Info.plist.template 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew/Info.plist.template 2014-07-05 21:55:19.000000000 +0000 @@ -23,9 +23,9 @@ CFBundleShortVersionString @@VERSION@@ CFBundleGetInfoString - @@VERSION@@. ©1999-2007, licensed under GNU GPL. + @@VERSION@@. ©1999-2014, licensed under GNU GPL. NSHumanReadableCopyright - ©1999-2006, licensed under GNU GPL. + ©1999-2014, licensed under GNU GPL. NSMainNibFile MainMenu NSPrincipalClass diff -Nru unison-2.40.102/uimacnew/uimacnew.xcodeproj/project.pbxproj unison-2.48.3/uimacnew/uimacnew.xcodeproj/project.pbxproj --- unison-2.40.102/uimacnew/uimacnew.xcodeproj/project.pbxproj 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew/uimacnew.xcodeproj/project.pbxproj 2010-09-06 16:37:04.000000000 +0000 @@ -560,6 +560,8 @@ 2A3C3F290992245300E404E9 /* Development */ = { isa = XCBuildConfiguration; buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1)"; + ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1 = x86_64; COPY_PHASE_STRIP = NO; FRAMEWORK_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS)", @@ -586,6 +588,7 @@ ); PREBINDING = NO; PRODUCT_NAME = Unison; + SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk"; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( "-Wmost", @@ -600,6 +603,8 @@ 2A3C3F2A0992245300E404E9 /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1)"; + ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1 = x86_64; COPY_PHASE_STRIP = YES; FRAMEWORK_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS)", @@ -623,6 +628,7 @@ ); PREBINDING = NO; PRODUCT_NAME = Unison; + SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk"; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( "-Wmost", @@ -637,6 +643,8 @@ 2A3C3F2B0992245300E404E9 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1)"; + ARCHS_STANDARD_64_BIT_PRE_XCODE_3_1 = x86_64; FRAMEWORK_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS)", "$(SRCROOT)", @@ -657,6 +665,7 @@ ); PREBINDING = NO; PRODUCT_NAME = Unison; + SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk"; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( "-Wmost", diff -Nru unison-2.40.102/uimacnew09/Bridge.h unison-2.48.3/uimacnew09/Bridge.h --- unison-2.40.102/uimacnew09/Bridge.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Bridge.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,58 +0,0 @@ -// -// Bridge.h -// uimac -// -// Created by Craig Federighi on 4/25/07. -// Copyright 2007 __MyCompanyName__. All rights reserved. -// -#import - -/* - Bridge supports safe calling from C back to OCaml by using daemon threads - spawned from OCaml to make the actual calls and converting all argument / return values - in the OCaml thread (when in possession of the OCaml lock) -*/ -@interface Bridge : NSObject { -} -+ (void)startup:(const char **)argv; -@end - -/* - ocamlCall(sig, funcName, [args...]); - - Call ocaml function (via safe thread handoff mechanism). - Args/return values are converted to/from C/OCaml according to the - supplied type signture string. Type codes are: - x - void (for return type) - i - long - s - char * - S - NSString * - N - NSNumber * - @ - OCamlValue (see below) - - Examples: - long count = (long)ocamlCall("iS", "lengthOfString", @"Some String"); - - (void)ocamlCall("x", "someVoidOCamlFunction"); - - OCamlValue *v = (id)ocamlCall("@Si", "makeArray", @"Some String", 10); - NSString s = [v getField:0 withType:'S']; -*/ -extern void *ocamlCall(const char *argTypes, ...); - -// Wrapper/proxy for unconverted OCaml values -@interface OCamlValue : NSObject { - long _v; -} -- initWithValue:(long)v; - -- (void *)getField:(long)i withType:(char)t; - // get value by position. See ocamlCall for list of type conversion codes - -- (long)count; - // count of items in array - -- (long)value; - // returns Ocaml value directly -- not safe to use except in direct callback from OCaml - // (i.e. in the OCaml thread) -@end diff -Nru unison-2.40.102/uimacnew09/Bridge.m unison-2.48.3/uimacnew09/Bridge.m --- unison-2.40.102/uimacnew09/Bridge.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Bridge.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,418 +0,0 @@ -// -// Bridge.m -// uimac -// -// Created by Craig Federighi on 4/25/07. -// Copyright 1999-2008 (see COPYING for details) -// - -#import "Bridge.h" - -/* The following two define are a workaround for an incompatibility between - Ocaml 3.11.2 (and older) and the Mac OS X header files */ -#define uint64 uint64_caml -#define int64 int64_caml - -#define CAML_NAME_SPACE -#include -#include -#include -#include -#include -#import - -#include -#include - -/* - CMF, April 2007: Alternate strategy for solving UI crashes based on - http://alan.petitepomme.net/cwn/2005.03.08.html#9: - 1) Run OCaml in a separate thread from the Cocoa main run loop. - 2) Handle all calls to OCaml as callbacks -- have an OCaml thread - hang in C-land and use mutexes and conditions to pass control from the - C calling thread to the OCaml callback thread. - - Value Conversion Done in Bridge Thread: - Value creation/conversion (like calls to caml_named_value or caml_copy_string) - or access calls (like Field) need to occur in the OCaml thread. We do this by - passing C args for conversion to the bridgeThreadWait() thread. - - Example of vulnerability: - Field(caml_reconItems,j) could dereference caml_reconItems - when the GC (running independently in an OCaml thread) could be moving it. -*/ - -pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER; -pthread_cond_t init_cond = PTHREAD_COND_INITIALIZER; -static BOOL doneInit = NO; - -pthread_mutex_t global_call_lock = PTHREAD_MUTEX_INITIALIZER; -pthread_cond_t global_call_cond = PTHREAD_COND_INITIALIZER; -pthread_mutex_t global_res_lock = PTHREAD_MUTEX_INITIALIZER; -pthread_cond_t global_res_cond = PTHREAD_COND_INITIALIZER; - -@implementation Bridge -static Bridge *_instance = NULL; - -const char **the_argv; - -- (void)_ocamlStartup:(id)ignore -{ - - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - pthread_mutex_lock(&init_lock); - - /* Initialize ocaml gc, etc. */ - caml_startup((char **)the_argv); // cast to avoid warning, caml_startup assumes non-const, - // NSApplicationMain assumes const - - // Register these with the collector - // NSLog(@"*** _ocamlStartup - back from startup; signalling! (%d)", pthread_self()); - doneInit = TRUE; - pthread_cond_signal(&init_cond); - pthread_mutex_unlock(&init_lock); - - // now start the callback thread - // NSLog(@"*** _ocamlStartup - calling callbackThreadCreate (%d)", pthread_self()); - value *f = caml_named_value("callbackThreadCreate"); - (void)caml_callback_exn(*f,Val_unit); - [pool release]; -} - -+ (void)startup:(const char **)argv -{ - if (_instance) return; - - _instance = [[Bridge alloc] init]; - - [[NSExceptionHandler defaultExceptionHandler] setDelegate:_instance]; - [[NSExceptionHandler defaultExceptionHandler] setExceptionHandlingMask: - (NSLogUncaughtExceptionMask | NSLogTopLevelExceptionMask)]; - - // Init OCaml in another thread and wait for it to be ready - pthread_mutex_lock(&init_lock); - the_argv = argv; - [NSThread detachNewThreadSelector:@selector(_ocamlStartup:) - toTarget:_instance withObject:nil]; - - // NSLog(@"*** waiting for completion of caml_init"); - while (!doneInit) pthread_cond_wait(&init_cond, &init_lock); - pthread_mutex_unlock(&init_lock); - // NSLog(@"*** caml_init complete!"); -} - -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 -typedef unsigned int NSUInteger; -#endif -- (BOOL)exceptionHandler:(NSExceptionHandler *)sender shouldLogException:(NSException *)exception mask:(NSUInteger)aMask -{ - // if (![[exception name] isEqual:@"OCamlException"]) return YES; - - NSString *msg = [NSString stringWithFormat:@"Uncaught exception: %@", [exception reason]]; - msg = [[msg componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; - NSLog(@"%@", msg); - NSRunAlertPanel(@"Fatal error", msg, @"Exit", nil, nil); - exit(1); - return FALSE; -} - -@end - - -// CallState struct is allocated on the C thread stack and then handed -// to the OCaml callback thread to perform value conversion and issue the call -typedef struct { - enum { SafeCall, OldCall, FieldAccess } opCode; - - // New style calls - const char *argTypes; - va_list args; - - // Field access - value *valueP; - long fieldIndex; - char fieldType; - - // Return values - char *exception; - void *retV; - BOOL _autorelease; - - // for old style (unsafe) calls - value call, a1, a2, a3, ret; - int argCount; -} CallState; - -static CallState *_CallState = NULL; -static CallState *_RetState = NULL; - -// Our OCaml callback server thread -- waits for call then makes them -// Called from thread spawned from OCaml -CAMLprim value bridgeThreadWait(value ignore) -{ - CAMLparam0(); - CAMLlocal1 (args); - args = caml_alloc_tuple(3); - - // NSLog(@"*** bridgeThreadWait init! (%d) Taking lock...", pthread_self()); - while (TRUE) { - // unblock ocaml while we wait for work - caml_enter_blocking_section(); - - pthread_mutex_lock(&global_call_lock); - while (!_CallState) pthread_cond_wait(&global_call_cond, &global_call_lock); - - // pick up our work and free up the call lock for other threads - CallState *cs = _CallState; - _CallState = NULL; - pthread_mutex_unlock(&global_call_lock); - - // NSLog(@"*** bridgeThreadWait: have call -- leaving caml_blocking_section"); - - // we have a call to do -- get the ocaml lock - caml_leave_blocking_section(); - - // NSLog(@"*** bridgeThreadWait: doing call"); - - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - - char retType = 'v'; - value e = Val_unit; - if (cs->opCode == SafeCall) { - int i; - char *fname = va_arg(cs->args, char *); - value *f = caml_named_value(fname); - // varargs with C-based args -- convert them to OCaml values based on type code string - const char *p = cs->argTypes; - retType = *p++; - int argCount = 0; - for(; *p != '\0'; p++) { - const char *str; - switch (*p) { - case 's': - str = va_arg(cs->args, const char *); - Store_field (args, argCount, caml_copy_string(str)); - break; - case 'S': - str = [va_arg(cs->args, NSString *) UTF8String]; - Store_field (args, argCount, caml_copy_string(str)); - break; - case 'i': - Store_field (args, argCount, Val_long(va_arg(cs->args, long))); - break; - case '@': - Store_field (args, argCount, [va_arg(cs->args, OCamlValue *) value]); - break; - default: - NSCAssert1(0, @"Unknown input type '%c'", *p); - break; - } - argCount++; - NSCAssert(argCount <= 3, @"More than 3 arguments"); - } - // Call OCaml -- TODO: add support for > 3 args - if (argCount == 3) e = caml_callback3_exn(*f,Field(args,0),Field(args,1),Field(args,2)); - else if (argCount == 2) e = caml_callback2_exn(*f,Field(args,0),Field(args,1)); - else if (argCount == 1) e = caml_callback_exn(*f,Field(args,0)); - else e = caml_callback_exn(*f,Val_unit); - for (i = 0; i < argCount; i++) Store_field (args, i, Val_unit); - } else if (cs->opCode == OldCall) { - // old style (unsafe) version where OCaml values were passed directly from C thread - if (cs->argCount == 3) e = caml_callback3_exn(cs->call,cs->a1,cs->a2,cs->a3); - else if (cs->argCount == 2) e = caml_callback2_exn(cs->call,cs->a1,cs->a2); - else e = caml_callback_exn(cs->call,cs->a1); - retType = 'v'; - } else if (cs->opCode == FieldAccess) { - long index = cs->fieldIndex; - e = (index == -1) ? Val_long(Wosize_val(*cs->valueP)) : Field(*cs->valueP, index); - retType = cs->fieldType; - } - - // Process return value - cs->_autorelease = FALSE; - cs->ret = e; // OCaml return type -- unsafe... - if (!Is_exception_result(e)) { - switch (retType) { - case 'S': - *((NSString **)&cs->retV) = (e == Val_unit) ? NULL : [[NSString alloc] initWithUTF8String:String_val(e)]; - cs->_autorelease = TRUE; - break; - case 'N': - if (Is_long (e)) { - *((NSNumber **)&cs->retV) = [[NSNumber alloc] initWithLong:Long_val(e)]; - } else { - *((NSNumber **)&cs->retV) = [[NSNumber alloc] initWithDouble:Double_val(e)]; - } - cs->_autorelease = TRUE; - break; - case '@': - *((NSObject **)&cs->retV) = (e == Val_unit) ? NULL : [[OCamlValue alloc] initWithValue:e]; - cs->_autorelease = TRUE; - break; - case 'i': - *((long *)&cs->retV) = Long_val(e); - break; - case 'x': - break; - default: - NSCAssert1(0, @"Unknown return type '%c'", retType); - break; - } - } - - if (Is_exception_result(e)) { - // get exception string -- it will get thrown back in the calling thread - value *f = caml_named_value("unisonExnInfo"); - // We leak memory here... - cs->exception = strdup(String_val(caml_callback(*f,Extract_exception(e)))); - } - - [pool release]; - - // NSLog(@"*** bridgeThreadWait: returning"); - - // we're done, signal back - pthread_mutex_lock(&global_res_lock); - _RetState = cs; - pthread_cond_signal(&global_res_cond); - pthread_mutex_unlock(&global_res_lock); - } - // Never get here... - CAMLreturn (Val_unit); -} - -void *_passCall(CallState *cs) -{ - pthread_mutex_lock(&global_call_lock); - _CallState = cs; - - // signal so call can happen on other thread - pthread_mutex_lock(&global_res_lock); - pthread_cond_signal(&global_call_cond); - pthread_mutex_unlock(&global_call_lock); - - // NSLog(@"*** _passCall (%d) -- performing signal and waiting", pthread_self()); - - // wait until done -- make sure the result is for our call - while (_RetState != cs) pthread_cond_wait(&global_res_cond, &global_res_lock); - _RetState = NULL; - pthread_mutex_unlock(&global_res_lock); - - // NSLog(@"*** doCallback -- back with result"); - if (cs->exception) { - @throw [NSException exceptionWithName:@"OCamlException" - reason:[NSString stringWithUTF8String:cs->exception] - userInfo:nil]; - } - if (cs->_autorelease) [((id)cs->retV) autorelease]; - return cs->retV; -} - -void *ocamlCall(const char *argTypes, ...) -{ - CallState cs; - cs.opCode = SafeCall; - cs.exception = NULL; - cs.argTypes = argTypes; - va_start(cs.args, argTypes); - void * res = _passCall(&cs); - - va_end(cs.args); - return res; -} - -void *getField(value *vP, long index, char type) -{ - CallState cs; - cs.opCode = FieldAccess; - cs.valueP = vP; - cs.fieldIndex = index; - cs.fieldType = type; - cs.exception = NULL; - return _passCall(&cs); -} - -@implementation OCamlValue - -- initWithValue:(long)v -{ - [super init]; - _v = v; - caml_register_global_root((value *)&_v); - return self; -} - -- (long)count -{ - return (long)getField((value *) &_v, -1, 'i'); -} - -- (void *)getField:(long)i withType:(char)t -{ - return getField((value *)&_v, i, t); -} - -- (long)value -{ - // Unsafe to use! - return _v; -} - -- (void)dealloc -{ - _v = Val_unit; - caml_remove_global_root((value *)&_v); - [super dealloc]; -} -@end - - -// Legacy OCaml call API -- no longer needed -#if 0 - -extern value doCallback (value c, int argcount, value v1, value v2, value v3, BOOL exitOnException); -extern value Callback_checkexn(value c,value v); -extern value Callback2_checkexn(value c,value v1,value v2); -extern value Callback3_checkexn(value c,value v1,value v2,value v3); - -void reportExn(const char *msg) { - NSString *s = [NSString stringWithFormat:@"Uncaught exception: %s", msg]; - s = [[s componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; - NSLog(@"%@",s); - NSRunAlertPanel(@"Fatal error",s,@"Exit",nil,nil); -} - -// FIXME! Claim is that value conversion must also happen in the OCaml thread... -value doCallback (value c, int argcount, value v1, value v2, value v3, BOOL exitOnException) { - // NSLog(@"*** doCallback: (%d) -- trying to acquire global lock", pthread_self()); - CallState cs; - cs.opCode = OldCall; - cs.exception = NULL; - cs.call = c; - cs.a1 = v1; - cs.a2 = v2; - cs.a3 = v3; - cs.argCount = argcount; - @try { - return _passCall(&cs); - } @catch (NSException *ex) { - if (exitOnException) { - reportExn(cs.exception); - exit(1); - } - @throw ex; - } -} - -value Callback_checkexn(value c,value v) { - return doCallback(c, 1, v, 0, 0, TRUE); -} - -value Callback2_checkexn(value c,value v1,value v2) { - return doCallback(c, 2, v1, v2, 0, TRUE); -} - -value Callback3_checkexn(value c,value v1,value v2,value v3) { - return doCallback(c, 3, v1, v2, v3, TRUE); -} -#endif Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Info.plist unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Info.plist --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/License.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/License.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbP.tiff differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Info.plist unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Info.plist --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkit - CFBundleIdentifier - com.brandonwalkin.BWToolkit - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - BWToolkit - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.2.5 - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/MacOS/BWToolkit and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/MacOS/BWToolkit differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddMiniBottomBar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddMiniBottomBar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddMiniBottomBar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddMiniBottomBar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAddMiniBottomBar; - SuperClass = NSView; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddRegularBottomBar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddRegularBottomBar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddRegularBottomBar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddRegularBottomBar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAddRegularBottomBar; - SuperClass = NSView; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddSmallBottomBar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddSmallBottomBar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddSmallBottomBar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAddSmallBottomBar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAddSmallBottomBar; - SuperClass = NSView; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAnchoredButtonBar; - SuperClass = NSView; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBarInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButtonBarInspector.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButton.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButton.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButton.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredButton.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAnchoredButton; - SuperClass = NSButton; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredPopUpButton.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredPopUpButton.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredPopUpButton.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWAnchoredPopUpButton.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWAnchoredPopUpButton; - SuperClass = NSPopUpButton; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWBottomBarLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWBottomBarLibrary.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWButtonBarLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWButtonBarLibrary.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWControllersLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWControllersLibrary.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWGradientBoxInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWGradientBoxInspector.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWHyperlinkButtonInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWHyperlinkButtonInspector.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWInsetTextField.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWInsetTextField.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWInsetTextField.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWInsetTextField.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWInsetTextField; - SuperClass = NSTextField; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWRemoveBottomBar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWRemoveBottomBar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWRemoveBottomBar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWRemoveBottomBar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWRemoveBottomBar; - SuperClass = NSView; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbar.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbar.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbar.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbar.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWSelectableToolbar; - SuperClass = NSToolbar; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbarInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSelectableToolbarInspector.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSheetController.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSheetController.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSheetController.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSheetController.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -{ - Actions = { - "openSheet:" = id; - "closeSheet:" = id; - "messageDelegateAndCloseSheet:" = id; - }; - Outlets = { - sheet = NSWindow; - parentWindow = NSWindow; - delegate = id; - }; - ClassName = BWSheetController; - SuperClass = NSObject; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitView.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitView.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitView.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitView.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -{ - Actions = - { - "toggleCollapse:" = id; - }; - Outlets = - { - }; - ClassName = BWSplitView; - SuperClass = NSSplitView; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitViewInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitViewInspector.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitViewLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWSplitViewLibrary.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWStyledTextFieldInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWStyledTextFieldInspector.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTexturedSliderCell; - SuperClass = NSSliderCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSlider.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSlider.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSlider.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSlider.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTexturedSlider; - SuperClass = NSSlider; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTexturedSliderInspector.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenFieldCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenFieldCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenFieldCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenFieldCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTokenFieldCell; - SuperClass = NSTokenFieldCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenField.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenField.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenField.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTokenField.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTokenField; - SuperClass = NSTokenField; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItem.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItem.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItem.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItem.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWToolbarItem; - SuperClass = NSToolbarItem; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItemInspector.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItemInspector.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItemsLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarItemsLibrary.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowColorsItem.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowColorsItem.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowColorsItem.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowColorsItem.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWToolbarShowColorsItem; - SuperClass = NSToolbarItem; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowFontsItem.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowFontsItem.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowFontsItem.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWToolbarShowFontsItem.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWToolbarShowFontsItem; - SuperClass = NSToolbarItem; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButtonCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButtonCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButtonCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButtonCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentButtonCell; - SuperClass = NSButtonCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButton.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButton.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButton.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentButton.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentButton; - SuperClass = NSButton; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckboxCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckboxCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckboxCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckboxCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentCheckboxCell; - SuperClass = NSButtonCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckbox.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckbox.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckbox.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentCheckbox.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentCheckbox; - SuperClass = NSButton; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentControlsLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentControlsLibrary.nib differ diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButtonCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButtonCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButtonCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButtonCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentPopUpButtonCell; - SuperClass = NSPopUpButtonCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButton.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButton.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButton.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentPopUpButton.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentPopUpButton; - SuperClass = NSPopUpButton; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentScroller.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentScroller.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentScroller.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentScroller.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentScroller; - SuperClass = NSScroller; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSliderCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSliderCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSliderCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSliderCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentSliderCell; - SuperClass = NSSliderCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSlider.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSlider.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSlider.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentSlider.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentSlider; - SuperClass = NSSlider; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableViewCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableViewCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableViewCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableViewCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentTableViewCell; - SuperClass = NSTextFieldCell; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableView.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableView.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableView.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTableView.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentTableView; - SuperClass = NSTableView; -} diff -Nru unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTextFieldCell.classdescription unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTextFieldCell.classdescription --- unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTextFieldCell.classdescription 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/BWTransparentTextFieldCell.classdescription 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -{ - Actions = { - // Define action descriptions here, for example - // "myAction:" = id; - }; - Outlets = { - // Define outlet descriptions here, for example - // myOutlet = NSView; - }; - ClassName = BWTransparentTextFieldCell; - SuperClass = NSTextFieldCell; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/English.lproj/BWToolkitLibrary.nib and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/English.lproj/BWToolkitLibrary.nib differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/English.lproj/InfoPlist.strings and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/English.lproj/InfoPlist.strings differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/GradientWellPattern.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/GradientWellPattern.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode1Pressed.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode1Pressed.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode1.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode1.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode2Pressed.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode2Pressed.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode2.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode2.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode3Pressed.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode3Pressed.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode3.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarMode3.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarModeSelection.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-ButtonBarModeSelection.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowBlueLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowBlueLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowBlueRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowBlueRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewArrowRedRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewBackground.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Inspector-SplitViewBackground.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddMiniBottomBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddMiniBottomBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddRegularBottomBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddRegularBottomBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddSheetBottomBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddSheetBottomBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddSmallBottomBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AddSmallBottomBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredButtonBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredButtonBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredPopUpButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-AnchoredPopUpButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-GradientBox.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-GradientBox.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-GradientSplitView.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-GradientSplitView.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-HorizontalSplitView.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-HorizontalSplitView.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-InsetTextField.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-InsetTextField.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-RemoveBottomBar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-RemoveBottomBar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-SelectableToolbar.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-SelectableToolbar.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-SheetController.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ShowColors.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ShowColors.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ShowFonts.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ShowFonts.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-StyledTextField.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-StyledTextField.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedAddButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedAddButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedRemoveButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedRemoveButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedSlider.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TexturedSlider.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TokenField.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TokenField.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ToolbarItem.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-ToolbarItem.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentCheckboxCell.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentCheckboxCell.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentCheckbox.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentCheckbox.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentLabel.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentLabel.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentPopUpButton.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentPopUpButton.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentSlider.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentSlider.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentTableView.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentTableView.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentTextView.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-TransparentTextView.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-VerticalSplitView.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/Library-VerticalSplitView.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/BWToolkit.ibplugin/Contents/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/BWToolkit.ibplugin/Contents/Resources/ToolbarItemFonts.tiff differ diff -Nru unison-2.40.102/uimacnew09/cltool.c unison-2.48.3/uimacnew09/cltool.c --- unison-2.40.102/uimacnew09/cltool.c 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/cltool.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -/* cltool.c - - This is a command-line tool for Mac OS X that looks up the unison - application, where ever it has been installed, and runs it. This - is intended to be installed in a standard place (e.g., - /usr/bin/unison) to make it easy to invoke unison as a server, or - to use unison from the command line when it has been installed with - a GUI. - - */ - -#import -#import -#include - -#define BUFSIZE 1024 -#define EXECPATH "/Contents/MacOS/Unison" - -int main(int argc, char **argv) { - - /* Look up the application by its bundle identifier, which is given - in the Info.plist file. This will continue to work even if the - user changes the name of the application, unlike - fullPathForApplication. */ - - FSRef fsref; - OSStatus status; - int len; - char buf[BUFSIZE]; - - status = LSFindApplicationForInfo(kLSUnknownCreator,CFSTR("edu.upenn.cis.Unison"),NULL,&fsref,NULL); - if (status) { - if (status == kLSApplicationNotFoundErr) { - fprintf(stderr,"Error: can't find the Unison application using the Launch Services database.\n"); - fprintf(stderr,"Try launching Unison from the Finder, and then try this again.\n",status); - } - else fprintf(stderr,"Error: can't find Unison application (%ld).\n",status); - exit(1); - } - - status = FSRefMakePath(&fsref,(UInt8 *)buf,BUFSIZE); - if (status) { - fprintf(stderr,"Error: problem building path to Unison application (%ld).\n",status); - exit(1); - } - - len = strlen(buf); - if (len + strlen(EXECPATH) + 1 > BUFSIZE) { - fprintf(stderr,"Error: path to Unison application exceeds internal buffer size (%d).\n",BUFSIZE); - exit(1); - } - strcat(buf,EXECPATH); - - /* It's important to pass the absolute path on to the GUI, - that's how it knows where to find the bundle, e.g., the - Info.plist file. */ - argv[0] = buf; - - // printf("The Unison executable is at %s\n",argv[0]); - // printf("Running...\n"); - - execv(argv[0],argv); - - /* If we get here the execv has failed; print an error message to stderr */ - perror("unison"); - exit(1); -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/English.lproj/InfoPlist.strings and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/English.lproj/InfoPlist.strings differ diff -Nru unison-2.40.102/uimacnew09/English.lproj/MainMenu.xib unison-2.48.3/uimacnew09/English.lproj/MainMenu.xib --- unison-2.40.102/uimacnew09/English.lproj/MainMenu.xib 2011-07-19 14:47:51.000000000 +0000 +++ unison-2.48.3/uimacnew09/English.lproj/MainMenu.xib 1970-01-01 00:00:00.000000000 +0000 @@ -1,6463 +0,0 @@ - - - - 1050 - 10K540 - 823 - 1038.36 - 461.00 - - YES - - YES - com.apple.InterfaceBuilder.CocoaPlugin - com.brandonwalkin.BWToolkit - - - YES - 823 - 1.2.5 - - - - YES - - - - - YES - com.apple.InterfaceBuilder.CocoaPlugin - com.brandonwalkin.BWToolkit - - - PluginDependencyRecalculationVersion - - - - YES - - - NSApplication - - - - FirstResponder - - - NSApplication - - - 4111 - 2 - {{0, 364}, {480, 360}} - 1881669632 - Unison - NSWindow - - View - - {1.79769e+308, 1.79769e+308} - {213, 107} - - - 256 - - YES - - - 296 - {{370, 317}, {83, 24}} - - YES - - 67239424 - 0 - - LucidaGrande - 13 - 1044 - - - - YES - - 24 - - NSImage - Outline-Flat - - - 1 - 2 - - - 25.333333969116211 - - NSImage - Outline-Flattened - - O - 2 - YES - 2 - - - 25.333333969116211 - - NSImage - Outline-Deep - - D - 3 - 2 - - - 1 - - - - {480, 360} - - {{0, 0}, {1440, 878}} - {213, 129} - {1.79769e+308, 1.79769e+308} - mainWindow - - - MainMenu - - YES - - - Unison - - 1048576 - 2147483647 - - NSImage - NSMenuCheckmark - - - NSImage - NSMenuMixedState - - submenuAction: - - Unison - - YES - - - About Unison - - 1048576 - 2147483647 - - - - - - YES - YES - - - 1048576 - 2147483647 - - - - - - Preferences... - , - 1048576 - 2147483647 - - - - - - Install command-line tool - - 1048576 - 2147483647 - - - - - - YES - YES - - - 1048576 - 2147483647 - - - - - - Hide Unison - h - 1048576 - 2147483647 - - - - - - Hide Others - h - 1572864 - 2147483647 - - - - - - Show All - - 1048576 - 2147483647 - - - - - - YES - YES - - - 1048576 - 2147483647 - - - - - - Quit Unison - q - 1048576 - 2147483647 - - - - - _NSAppleMenu - - - - - Edit - - 1048576 - 2147483647 - - - submenuAction: - - - Edit - - - YES - - - Cut - x - 1048576 - 2147483647 - - - - - - Copy - c - 1048576 - 2147483647 - - - - - - Paste - v - 1048576 - 2147483647 - - - - - - Select All - a - 1048576 - 2147483647 - - - - - - Select Conflicts - - 1048576 - 2147483647 - - - - - - - - - Actions - - 1048576 - 2147483647 - - - submenuAction: - - Actions - - YES - - - Propagate Left to Right - > - 1048576 - 2147483647 - - - - - - Propagate Right to Left - < - 1048576 - 2147483647 - - - - - - Propagate Newer to Older - - 1048576 - 2147483647 - - - - - - Propagate Older to Newer - - 1048576 - 2147483647 - - - - - - Leave Alone - / - 1048576 - 2147483647 - - - - - - Revert to Unison's Recommendation - - 1048576 - 2147483647 - - - - - - Merge - - 1048576 - 2147483647 - - - - - - Diff - - 1048576 - 2147483647 - - - - - - YES - YES - - - 1048576 - 2147483647 - - - - - - Restart - r - 1048576 - 2147483647 - - - - - - Rescan - - 2147483647 - - - - - - Synchronize all - g - 1048576 - 2147483647 - - - - - - - - - Ignore - - 1048576 - 2147483647 - - - submenuAction: - - Ignore - - YES - - - Ignore Path - i - 1048576 - 2147483647 - - - - - - Ignore Extension - e - 1048576 - 2147483647 - - - - - - Ignore Name - n - 1048576 - 2147483647 - - - - - - - - - Help - - 1048576 - 2147483647 - - - submenuAction: - - Help - - YES - - - Unison Online Help - ? - 1048576 - 2147483647 - - - - - - - - _NSMainMenu - - - - 256 - - YES - - - 266 - {{17, 236}, {329, 25}} - - YES - - 67239424 - 138412032 - UGxlYXNlIGNob29zZSBhIHByb2ZpbGUgb3IgY3JlYXRlIGEgbmV3IG9uZQo - - - - 6 - System - controlColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - - - - 256 - {{651, -524}, {84, 32}} - - YES - - 67239424 - 134217728 - Quit - - - -2038284033 - 1 - - - - - - 200 - 25 - - - - - 274 - - YES - - - 2304 - - YES - - - 274 - {306, 190} - - YES - - - 256 - {306, 17} - - - - - - 256 - {{307, 0}, {16, 17}} - - - - YES - - profiles - 303.47698974609375 - 47.477001190185547 - 1000 - - 75628096 - 2048 - Profiles - - LucidaGrande - 11 - 3100 - - - 3 - MC4zMzMzMzI5OQA - - - 6 - System - headerTextColor - - - - - 338820672 - 1024 - - - - 3 - MQA - - - - 3 - YES - - - - 3 - 2 - - - 6 - System - gridColor - - 3 - MC41AA - - - 17 - -1035993088 - - - 4 - 15 - 0 - YES - 0 - - - {{1, 17}, {306, 190}} - - - - - 6 - System - controlBackgroundColor - - - 4 - - - - 256 - {{307, 17}, {15, 190}} - - - _doScroller: - 0.99473685026168823 - - - - -2147483392 - {{-100, -100}, {113, 15}} - - 1 - - _doScroller: - 0.99047619104385376 - - - - 2304 - - YES - - - {{1, 0}, {306, 17}} - - - - - 4 - - - - {{20, 20}, {323, 208}} - - - 18 - - - - - QSAAAEEgAABBmAAAQZgAAA - - - {363, 281} - NSView - NSResponder - - - - 274 - - YES - - - 274 - - YES - - - 274 - - YES - - - 2304 - - YES - - - 256 - {730, 411} - - YES - - - 256 - {730, 17} - - - - - - -2147483392 - {{-26, 0}, {16, 17}} - - - - YES - - path - 426 - 27.095703125 - 1000 - - 75628096 - 2048 - Path - - - 6 - System - headerColor - - - - - - 338820672 - 1024 - - LucidaGrande - 12 - 16 - - - - - - 3 - YES - - - pathSortKey - YES - compare: - - - - fileSizeString - 70 - 70 - 70 - - 75628096 - 134219776 - Size - - - - - - 338820672 - 67109888 - - - - - - 3 - YES - - - fileSize - NO - compare: - - - - leftIcon - 16 - 16 - 16 - - 75628096 - 2048 - < - - - 3 - MC4zMzMzMzI5OQA - - - - - 130560 - 33554432 - 0 - 0 - 0 - YES - - - - leftSortKey - YES - compare: - - - - percentTransferred - 76.63916015625 - 42.10107421875 - 100 - - 75628096 - 134219776 - Action - - - - - - 338820672 - 67109888 - - - - - - - - directionSortKey - YES - compare: - - - - rightIcon - 16 - 16 - 16 - - 75628096 - 2048 - > - - - - - - 130560 - 33554432 - 0 - 0 - 0 - YES - - - - rightSortKey - YES - compare: - - - - 3 - 2 - - - 18 - -635437056 - - - 4 - 15 - 0 - YES - 0 - - - {{0, 17}, {730, 411}} - - - - - 4 - - - - -2147483392 - {{-30, 17}, {15, 391}} - - - _doScroller: - 0.96419435739517212 - - - - -2147483392 - {{-100, -100}, {629, 15}} - - 1 - - _doScroller: - 0.99841266870498657 - - - - 2304 - - YES - - - {730, 17} - - - - - 4 - - - - {730, 428} - - - 528 - - - - - - AAAAAAAAAABBoAAAQaAAAA - - - - 274 - - YES - - - 274 - {{2, 5}, {726, 74}} - - YES - - 69336577 - 272760832 - Label - - - - - - - - {{0, 437}, {730, 85}} - - - 1 - MC42NzU3Njg1MjI3IDAuNzIxOTQ4MTMwNiAwLjc2NTMwNjEyMjQAA - - - 1 - MC41MTM3NjcxODUyIDAuNTY4NDkwNTE3IDAuNjE3MzQ2OTM4OAA - - - 1 - MC42MTk2MDA4NjE0IDAuNjYxMTkyMDA1MSAwLjcxOTM4Nzc1NTEAA - - - 1 - MC41NTc2NjQ2NjM5IDAuNTk4ODkyNDg5OSAwLjY0Mjg1NzE0MjkAA - - - 1 - MC40Mjc4NDM2NjA5IDAuNDc5NDI1MTUwOSAwLjUyMDQwODE2MzMAA - - NO - YES - YES - NO - 0.30000001192092896 - 0.0 - - - {{0, 24}, {730, 522}} - - - NO - - YES - - YES - - - YES - - - - YES - - - YES - - - - YES - - YES - - - - - YES - - - - - - YES - - YES - - - - - YES - - - - - 0 - NO - - - - 1314 - - {{589, 6}, {122, 12}} - - 16652 - 100 - - - - 258 - {{3, 6}, {582, 14}} - - YES - - 67239488 - 272762880 - Idle - - - - - - - - {730, 546} - - NSView - NSResponder - - - MyController - - - ProfileController - - - PreferencesController - - - NotificationController - - - - 256 - - YES - - - 258 - - YES - - - 256 - - YES - - - 256 - {{11, 20}, {30, 17}} - - YES - - 67239424 - 4194304 - RmlsZToKA - - - - - - - - - 258 - {{46, 18}, {427, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - 6 - System - textBackgroundColor - - - - 6 - System - textColor - - - - - - {{2, 2}, {493, 51}} - - - - {{20, 129}, {497, 71}} - - {0, 0} - - 67239424 - 0 - First root - - - - 3 - MCAwLjgwMDAwMDAxAA - - - - 3 - 0 - 2 - NO - - - - 258 - - YES - - - 256 - - YES - - - 256 - {{12, 39}, {70, 38}} - - YES - 2 - 1 - - YES - - -2080244224 - 0 - Remote - - - 1211912703 - 0 - - NSRadioButton - - - - - - 200 - 25 - - - 67239424 - 0 - Local - - - 1 - 1211912703 - 0 - - - - 200 - 25 - - - {70, 18} - {4, 2} - 1143472128 - NSActionCell - - 67239424 - 0 - Radio - - 1211912703 - 0 - - - 400 - 75 - - - - - - - - - 256 - {{97, 58}, {37, 17}} - - YES - - 67239424 - 4194304 - User: - - - - - - - - - 256 - {{134, 56}, {91, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - - - - - - 256 - {{236, 58}, {38, 17}} - - YES - - 67239424 - 4194304 - Host: - - - - - - - - - 258 - {{274, 56}, {199, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - - - - - - 256 - {{11, 16}, {30, 17}} - - YES - - 67239424 - 4194304 - File: - - - - - - - - - 258 - {{46, 14}, {427, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - - - - - {{2, 2}, {493, 86}} - - - - {{20, 16}, {497, 106}} - - {0, 0} - - 67239424 - 0 - Second root - - - - 3 - MCAwLjgwMDAwMDAxAA - - - - 3 - 0 - 2 - NO - - - - 256 - {{20, 213}, {87, 17}} - - YES - - 67239424 - 4194304 - Profile name: - - - - - - - - - 258 - {{106, 208}, {408, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - - - - - {534, 250} - - NSView - - NSResponder - - - - 256 - - YES - - - 1325 - - {{419, 263}, {32, 32}} - - 20490 - 100 - - - - 274 - - YES - - - 301 - {{304, 254}, {263, 19}} - - YES - - 68288064 - 138544128 - Connecting... - - LucidaGrande - 16 - 16 - - - - - - - - {871, 577} - - - 1 - MC42NzU3Njg1MjI3IDAuNzIxOTQ4MTMwNiAwLjc2NTMwNjEyMjQAA - - - 1 - MC41MTM3NjcxODUyIDAuNTY4NDkwNTE3IDAuNjE3MzQ2OTM4OAA - - - 1 - MC42MTk2MDA4NjE0IDAuNjYxMTkyMDA1MSAwLjcxOTM4Nzc1NTEAA - - - 1 - MC41NTc2NjQ2NjM5IDAuNTk4ODkyNDg5OSAwLjY0Mjg1NzE0MjkAA - - - 1 - MC40Mjc4NDM2NjA5IDAuNDc5NDI1MTUwOSAwLjUyMDQwODE2MzMAA - - NO - NO - YES - NO - 0.30000001192092896 - 0.0 - - - {871, 577} - - NSView - - NSResponder - - - 7 - 2 - {{2, 118}, {227, 128}} - 1886912512 - PasswordWindow - NSWindow - - View - - {1.79769e+308, 1.79769e+308} - {213, 107} - - - 256 - - YES - - - 256 - {{20, 60}, {187, 22}} - - YES - - -1804468671 - 4195328 - - - - YES - - - - - - - 256 - {{115, 12}, {98, 32}} - - YES - - 67239424 - 137887744 - Continue - - - -2038284033 - 1 - - Helvetica - 13 - 16 - - - - - - - - 200 - 25 - - - - - 256 - {{14, 12}, {84, 32}} - - YES - - 67239424 - 137887744 - Cancel - - - -2038284033 - 1 - - - - - - - - 200 - 25 - - - - - 256 - {{17, 90}, {193, 17}} - - YES - - 67239488 - 4196352 - UGxlYXNlIGVudGVyIHlvdXIgcGFzc3dvcmQKA - - - - - - - - {227, 128} - - {{0, 0}, {1440, 878}} - {213, 129} - {1.79769e+308, 1.79769e+308} - - - 3 - 2 - {{194, 458}, {262, 266}} - 1886912512 - - NSWindow - - View - - {1.79769e+308, 1.79769e+308} - {213, 107} - - - 256 - - YES - - - 256 - {{22, 152}, {220, 22}} - - YES - - -2079195584 - 138413056 - Unison - - LucidaGrande-Bold - 18 - 16 - - - - - - - - - 256 - {{22, 20}, {224, 52}} - - YES - - -2080244224 - 138412032 - wqkgQ29weXJpZ2h0IDE5OTktMjAwNi4KClRoaXMgc29mdHdhcmUgaXMgbGljZW5zZWQgdW5kZXIgdGhl -IEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlLg - - LucidaGrande - 10 - 2843 - - - - - - - - - 256 - - YES - - YES - Apple PDF pasteboard type - Apple PICT pasteboard type - Apple PNG pasteboard type - NSFilenamesPboardType - NeXT Encapsulated PostScript v1.2 pasteboard type - NeXT TIFF v4.0 pasteboard type - - - {{20, 182}, {224, 64}} - - YES - - 130560 - 33554432 - - NSImage - Unison - - 0 - 0 - 0 - NO - - YES - - - - 256 - {{22, 101}, {224, 18}} - - YES - - -2079195584 - 138413056 - Sync you very much! - - Optima-Italic - 12 - 16 - - - - - - - - - 256 - {{22, 127}, {220, 17}} - - YES - - -2079195584 - 138413056 - ?.?.? - - - - - - - - {262, 266} - - {{0, 0}, {1440, 878}} - {213, 129} - {1.79769e+308, 1.79769e+308} - - - 15 - 2 - {{519, 382}, {505, 342}} - 1886912512 - Diff - - NSWindow - - - View - - {1.79769e+308, 1.79769e+308} - {213, 107} - - - 256 - - YES - - - 319 - - YES - - - 2304 - - YES - - - 2322 - {505, 14} - - - - - - - - - - - YES - - - 6 - - - - 505 - 1 - - - 11236 - 0 - - - - YES - - YES - NSBackgroundColor - NSColor - - - YES - - 6 - System - selectedTextBackgroundColor - - - - 6 - System - selectedTextColor - - - - - - - YES - - YES - NSColor - NSUnderline - - - YES - - 1 - MCAwIDEAA - - - - - - - 6 - {1010, 1e+07} - {114, 0} - - - - {505, 342} - - - - - - {1, -1} - 0 - - 4 - - - - -2147483392 - {{-30, 1}, {15, 356}} - - - _doScroller: - 1 - - - - -2147483392 - {{-100, -100}, {87, 18}} - - 1 - - _doScroller: - 1 - 0.94565218687057495 - - - {505, 342} - - - 528 - - - - - - {505, 342} - - {{0, 0}, {1440, 878}} - {213, 129} - {1.79769e+308, 1.79769e+308} - - - 1 - 2 - {{163, 135}, {400, 229}} - 1886912512 - Unison - NSWindow - - View - - {1.79769e+308, 1.79769e+308} - {213, 107} - - - 256 - - YES - - - 256 - {{302, 12}, {84, 32}} - - YES - - -2080244224 - 134217728 - Yes - - - -2038284033 - 1 - - - - - - 200 - 25 - - - - - 256 - {{20, 188}, {383, 21}} - - YES - - 67239424 - 4194304 - Would you like to install the Unison command-line tool? - - LucidaGrande-Bold - 12 - 16 - - - - - - - - - 256 - {{17, 36}, {145, 18}} - - YES - - 67239424 - 131072 - Don't ask me again - - - 1211912703 - 2 - - NSSwitch - - - - 200 - 25 - - - - - 256 - {{218, 12}, {84, 32}} - - YES - - 67239424 - 134217728 - No - - - -2038284033 - 1 - - - - - - 200 - 25 - - - - - 256 - {{17, 60}, {366, 120}} - - YES - - 67239424 - 272629760 - VGhlIGNvbW1hbmQtbGluZSB0b29sIGlzIGEgc21hbGwgcHJvZ3JhbSB0aGF0IGNhbiBiZSBpbnN0YWxs -ZWQgaW4gYSBzdGFuZGFyZCBwbGFjZSBvbiB5b3VyIGNvbXB1dGVyICgvdXNyL2Jpbi91bmlzb24pIHNv -IFVuaXNvbiBjYW4gZWFzaWx5IGJlIGZvdW5kLiBJZiB5b3Ugd2FudCB0byBiZSBhYmxlIHRvIHN5bmNo -cm9uaXplIGZpbGVzIG9uIHRoaXMgY29tcHV0ZXIgYnkgcnVubmluZyBVbmlzb24gb24gYSByZW1vdGUg -Y29tcHV0ZXIsIHlvdSBzaG91bGQgcHJvYmFibHkgaW5zdGFsbCBpdC4KCklmIHlvdSBkb24ndCBpbnN0 -YWxsIGl0IG5vdywgeW91IGNhbiBkbyBzbyBsYXRlciBieSBjaG9vc2luZyAnSW5zdGFsbCBjb21tYW5k -LWxpbmUgdG9vbCcgZnJvbSB0aGUgVW5pc29uIG1lbnUuCg - - - - - - - - {400, 229} - - {{0, 0}, {1440, 878}} - {213, 129} - {1.79769e+308, 1.79769e+308} - - - 3 - 2 - {{235, 475}, {446, 84}} - 1954022400 - General - NSWindow - - - DFA39F36-D425-433A-8BF7-3AE795530EBF - - - YES - YES - YES - NO - 1 - 1 - - YES - - YES - 0D5950D1-D4A8-44C6-9DBC-251CFEF852E2 - BWToolbarShowFontsItem - NSToolbarFlexibleSpaceItem - NSToolbarSeparatorItem - NSToolbarSpaceItem - - - YES - - - 0D5950D1-D4A8-44C6-9DBC-251CFEF852E2 - - General - General - - - - NSImage - NSPreferencesGeneral - - - toggleActiveView: - {0, 0} - {0, 0} - YES - YES - -1 - YES - 0 - - - BWToolbarShowFontsItem - Fonts - Fonts - Show Font Panel - - - 12582912 - - YES - - YES - - - - TU0AKgAAAwyAACBQOCQWDQeEQmFQuGQ2HQ+IRGJROHAOLCJ/Rl3v+OO+KR+QSGRQYOSVtO+UIt6ytNyO -XS+YQYHzM7BubIZyzk9PGeIqYz+gRIBUMIiSjNoEUkIuymL1zU8j0GpVOEg6rHYPVlDRYBgB3V9nOOxD -aqWWpAG0BEQ2ttAu3BGhgIAPi6ABs3cCWa9TEG32azcC4EAWgAgB9YcAN3FDZ941nXvIRGuCINZVkvPM -IsM5utxYAY19gBwaMjvnTL3I6mGzMHpcE68hujZCYRbV+UkEAB+bsAU9zHp6cGfariQTJ5sMtp28s0vf -nJsK9FchHqEOOP8AOntIp5d09cXwACrA5LgfzEN1+kTQTWJcKe8y4QAPD6L2mOyo+HIXERBf/JOlA0ro -fCWoGBUDjsC0FM6rrnHud7fAq/TIAhCpcgJDAQvu9aDgNDwqP8C5UQwvLDn0ACcnKvMJqnEghglGBcp4 -eI0tMfMCoMrgZRCZTAgK3TeO0dIjt2fjURYvi+lygjMHm/KHRCfkfAAfsqgA5Z2jTE0cSQkEXPGXLunl -IjdyOhzqAipCkhE64AJQd49Rs4cupABk7SWgbgnpJ6Ir6BpcteBIhoIlZ6lZQosToicSCpPxUIyfxvSK -b82oY+USBDHwRIJGxnSaslFIitwFm0+Uqn6b6RLiCMPAMGT5SKAExRXUKFxIMrcEue1diPSEzI+rgh1G -XK4ypK09BM65vVqhFAm1SBvxtPiRMIEVRm1YtIABXZ7V6jNf1qrgy1aS8bCxSBWKDA4FH5Ys2wGPVTzn -WtWQ8bTrne0EOKnVptMnNrQEVU7v1CuI7K4Q1TjTSEuKDEhc2CglTl7ItpxYEUfGSgjQQkva4kNEg7IJ -fGOS6uJULiKlfUhiypsJg6LENkaOWMft92WqYEoGCUDMIMjCDmg5x0gIy9gcuN0oEDqEOuTbrkcgZ7oG -duopDniBB+whKoGC6HnS651IGQSQiIwgdIGFqQ6+jhYIGPuppDnSBauAAFWYn+pIFqiBbzu+/b/wCYIC -AA8BAAADAAAAAQAgAAABAQADAAAAAQAgAAABAgADAAAABAAAA8YBAwADAAAAAQAFAAABBgADAAAAAQAC -AAABEQAEAAAAAQAAAAgBEgADAAAAAQABAAABFQADAAAAAQAEAAABFgADAAAAAQAgAAABFwAEAAAAAQAA -AwQBHAADAAAAAQABAAABPQADAAAAAQACAAABUgADAAAAAQABAAABUwADAAAABAAAA86HcwAHAAACKAAA -A9YAAAAAAAgACAAIAAgAAQABAAEAAQAAAihBREJFAhAAAG1udHJSR0IgWFlaIAfPAAYAAwAAAAAAAGFj -c3BBUFBMAAAAAG5vbmUAAAAAAAAAAAAAAAABAAAAAAD21gABAAAAANMtQURCRQAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmNwcnQAAAD8AAAAMmRlc2MAAAEwAAAAZHd0 -cHQAAAGUAAAAFGJrcHQAAAGoAAAAFHJUUkMAAAG8AAAADmdUUkMAAAHMAAAADmJUUkMAAAHcAAAADnJY -WVoAAAHsAAAAFGdYWVoAAAIAAAAAFGJYWVoAAAIUAAAAFHRleHQAAAAAQ29weXJpZ2h0IDE5OTkgQWRv -YmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQAAABkZXNjAAAAAAAAAApBcHBsZSBSR0IAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAGN1cnYAAAAAAAAAAQHN -AABjdXJ2AAAAAAAAAAEBzQAAY3VydgAAAAAAAAABAc0AAFhZWiAAAAAAAAB5vQAAQVIAAAS5WFlaIAAA -AAAAAFb4AACsLwAAHQNYWVogAAAAAAAAJiIAABJ/AACxcA - - - - - YES - - - - TU0AKgAAAaiAACBQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmLFWBquNR+QQYiQNdwMAyGURkGStdhK -XERxTEJQN3ymbRAiCqdLsAz0ANWgEWBryb0WEgWkMwRUsIgSnCKgNUzwNNUarQQzAKtDMHV0ABWwGZt2 -M8QNE1e0N2BkWtAIqiG4Ihy3NePi7UK0TYzQMZwOpwIqiDBKp3YVmvLEDS8za1QK8ABvXwOZNmPvLAB0 -5mT4uNHeD2eD2AKv8B6UAOjUYqBM3ORIIz0Asx/7PVACawcIblugfeCLMunH0TWxA704CHd+cnWQuug4 -Z0gChF29OywLQcOFBGBsyB7Xbwq2ncG+NEPPzJp/em/9iE56BdqBdWIneVgxEXZ8LzkvzH+yBhE7buoG -yKJCIBMDl2fsFHefUGpm/yCEyg71ooGYDQu2TZgAyx9we2yjASgYJoGIa2lA2Z/kZFCqosDrjF6gj9je -gZWoGdyBnuj8RoEOaBjY2AGxQbCBlegZYIeLyBhq2AbIJFByoGUSBkWmiPxCgUdgBK8IIEe0bRxLkwzF -MaDICAAPAQAAAwAAAAEAGAAAAQEAAwAAAAEAGAAAAQIAAwAAAAQAAAJiAQMAAwAAAAEABQAAAQYAAwAA -AAEAAgAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEABAAAARYAAwAAAAEAGAAAARcABAAA -AAEAAAGgARwAAwAAAAEAAQAAAT0AAwAAAAEAAgAAAVIAAwAAAAEAAQAAAVMAAwAAAAQAAAJqh3MABwAA -AigAAAJyAAAAAAAIAAgACAAIAAEAAQABAAEAAAIoQURCRQIQAABtbnRyUkdCIFhZWiAHzwAGAAMAAAAA -AABhY3NwQVBQTAAAAABub25lAAAAAAAAAAAAAAAAAQAAAAAA9tYAAQAAAADTLUFEQkUAAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApjcHJ0AAAA/AAAADJkZXNjAAABMAAA -AGR3dHB0AAABlAAAABRia3B0AAABqAAAABRyVFJDAAABvAAAAA5nVFJDAAABzAAAAA5iVFJDAAAB3AAA -AA5yWFlaAAAB7AAAABRnWFlaAAACAAAAABRiWFlaAAACFAAAABR0ZXh0AAAAAENvcHlyaWdodCAxOTk5 -IEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkAAAAZGVzYwAAAAAAAAAKQXBwbGUgUkdCAAAAAAAAAAAA -AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -AAAAAAAAAAAAAFhZWiAAAAAAAADzUQABAAAAARbMWFlaIAAAAAAAAAAAAAAAAAAAAABjdXJ2AAAAAAAA -AAEBzQAAY3VydgAAAAAAAAABAc0AAGN1cnYAAAAAAAAAAQHNAABYWVogAAAAAAAAeb0AAEFSAAAEuVhZ -WiAAAAAAAABW+AAArC8AAB0DWFlaIAAAAAAAACYiAAASfwAAsXA - - - - - - 3 - MCAwAA - - - - orderFrontFontPanel: - {0, 0} - {0, 0} - YES - YES - -1 - YES - 0 - - - NSToolbarFlexibleSpaceItem - - Flexible Space - - - - - - {1, 5} - {20000, 32} - YES - YES - -1 - YES - 0 - - YES - YES - - - 1048576 - 2147483647 - - - - - - NSToolbarSeparatorItem - - Separator - - - - - - {12, 5} - {12, 1000} - YES - YES - -1 - YES - 0 - - YES - YES - - - 1048576 - 2147483647 - - - - - - NSToolbarSpaceItem - - Space - - - - - - {32, 5} - {32, 32} - YES - YES - -1 - YES - 0 - - YES - YES - - - 1048576 - 2147483647 - - - - - - - - YES - - - - - - - - YES - - - - - YES - - - - - YES - - YES - 0D5950D1-D4A8-44C6-9DBC-251CFEF852E2 - BWToolbarShowFontsItem - - - YES - - - 256 - - YES - - - 268 - {{18, 45}, {174, 18}} - - YES - - -2080244224 - 0 - Open profile on startup: - - - 1211912703 - 2 - - NSImage - NSSwitch - - - - - 200 - 25 - - - - - 268 - {{18, 18}, {410, 18}} - - YES - - 67239424 - 0 - Delete log-file (~/unison.log) automatically on complete sync - - - 1211912703 - 2 - - - - - 200 - 25 - - - - - 268 - {{198, 40}, {231, 26}} - - YES - - 72482368 - 272630784 - - - - YES - - - 5 - YES - YES - - - - 274 - {15, 0} - - - YES - - YES - - - 12 - 10 - 1000 - - 75628032 - 0 - - - - 3 - MC4zMzMzMzI5ODU2AA - - - - - 338820672 - 1024 - - - YES - - - - 3 - YES - - - - 3 - 2 - - - 19 - tableViewAction: - -767524864 - - - - 1 - 15 - 0 - YES - 0 - - - - - {446, 84} - - - - 256 - - YES - - - 268 - {{125, 50}, {213, 17}} - - - YES - - 68288064 - 272630784 - xxxx - - - - - - - - - 268 - {{343, 45}, {59, 25}} - - - YES - - -2080244224 - 134217728 - choose - - - -2038152961 - 163 - - - 400 - 75 - - - - - 268 - {{125, 20}, {213, 17}} - - - YES - - 68288064 - 272630784 - xxxx - - - - - - - - - 268 - {{343, 15}, {59, 25}} - - - YES - - -2080244224 - 134217728 - choose - - - -2038152961 - 163 - - - 400 - 75 - - - - - 268 - {{17, 20}, {106, 17}} - - - YES - - 68288064 - 71304192 - Diff font: - - - - - - - - - 268 - {{17, 50}, {106, 17}} - - - YES - - 68288064 - 71304192 - Details font: - - - - - - - - {422, 87} - - - - - BAtzdHJlYW10eXBlZIHoA4QBQISEhAxOU0RpY3Rpb25hcnkAhIQITlNPYmplY3QAhYQBaQKShISECE5T -U3RyaW5nAZSEASskMEQ1OTUwRDEtRDRBOC00NEM2LTlEQkMtMjUxQ0ZFRjg1MkUyhpKEhIQHTlNWYWx1 -ZQCUhAEqhIQLe0NHU2l6ZT1kZH2agb4BgaIAhpKElpcWQldUb29sYmFyU2hvd0ZvbnRzSXRlbYaShJiZ -mZqBpgGBpQCGhg - - 0D5950D1-D4A8-44C6-9DBC-251CFEF852E2 - Window - {480, 348} - YES - - YES - - YES - - - YES - - - - {1.79769e+308, 1.79769e+308} - - {{0, 0}, {1920, 1178}} - {1.79769e+308, 1.79769e+308} - - - YES - - - - - YES - - - terminate: - - - - 139 - - - - hideOtherApplications: - - - - 146 - - - - hide: - - - - 152 - - - - unhideAllApplications: - - - - 153 - - - - cut: - - - - 175 - - - - paste: - - - - 176 - - - - selectAll: - - - - 179 - - - - copy: - - - - 181 - - - - updatesView - - - - 210 - - - - chooseProfileView - - - - 211 - - - - mainWindow - - - - 216 - - - - tableView - - - - 218 - - - - dataSource - - - - 219 - - - - profileController - - - - 221 - - - - endPasswordWindow: - - - - 240 - - - - passwordWindow - - - - 241 - - - - passwordText - - - - 242 - - - - endPasswordWindow: - - - - 243 - - - - ignorePath: - - - - 258 - - - - ignoreExt: - - - - 259 - - - - ignoreName: - - - - 260 - - - - copyLR: - - - - 270 - - - - copyRL: - - - - 271 - - - - selectConflicts: - - - - 273 - - - - revert: - - - - 274 - - - - forceNewer: - - - - 282 - - - - forceOlder: - - - - 283 - - - - leaveAlone: - - - - 285 - - - - profileNameText - - - - 332 - - - - preferencesController - - - - 350 - - - - preferencesView - - - - 358 - - - - firstRootText - - - - 373 - - - - secondRootUser - - - - 374 - - - - secondRootHost - - - - 375 - - - - secondRootText - - - - 376 - - - - remoteButtonCell - - - - 377 - - - - localButtonCell - - - - 378 - - - - nextKeyView - - - - 379 - - - - nextKeyView - - - - 380 - - - - nextKeyView - - - - 381 - - - - nextKeyView - - - - 382 - - - - nextKeyView - - - - 383 - - - - remoteClick: - - - - 386 - - - - localClick: - - - - 387 - - - - passwordCancelButton - - - - 395 - - - - delegate - - - - 396 - - - - myController - - - - 400 - - - - aboutWindow - - - - 412 - - - - versionText - - - - 413 - - - - onlineHelp: - - - - 416 - - - - syncButton: - - - - 421 - - - - ConnectingView - - - - 425 - - - - restartButton: - - - - 431 - - - - passwordPrompt - - - - 436 - - - - notificationController - - - - 438 - - - - raiseAboutWindow: - - - - 462 - - - - diffWindow - - - - 479 - - - - diffView - - - - 480 - - - - merge: - - - - 482 - - - - showDiff: - - - - 483 - - - - rescan: - - - - 485 - - - - progressBar - - - - 487 - - - - cltoolPref - - - - 497 - - - - cltoolWindow - - - - 500 - - - - cltoolNoButton: - - - - 503 - - - - cltoolYesButton: - - - - 505 - - - - initialFirstResponder - - - - 506 - - - - raiseCltoolWindow: - - - - 507 - - - - tableModeSelector - - - - 516 - - - - tableModeChanged: - - - - 517 - - - - delegate - - - - 571 - - - - showPreferences: - - - - 572 - - - - connectingAnimation - - - - 578 - - - - statusText - - - - 585 - - - - delegate - - - - 605 - - - - dataSource - - - - 606 - - - - detailsTextView - - - - 609 - - - - tableView - - - - 610 - - - - value: values.openProfileAtStartup - - - - - - value: values.openProfileAtStartup - value - values.openProfileAtStartup - 2 - - - 655 - - - - value: values.deleteLogOnExit - - - - - - value: values.deleteLogOnExit - value - values.deleteLogOnExit - 2 - - - 656 - - - - value: values.profileToOpen - - - - - - value: values.profileToOpen - value - values.profileToOpen - 2 - - - 658 - - - - preferencesWindow - - - - 659 - - - - detailsFontLabel - - - - 661 - - - - diffFontLabel - - - - 662 - - - - profileBox - - - - 664 - - - - checkOpenProfile - - - - 665 - - - - checkOpenProfileChanged: - - - - 670 - - - - chooseFont: - - - - 672 - - - - chooseFont: - - - - 673 - - - - chooseDetailsFont - - - - 676 - - - - chooseDiffFont - - - - 677 - - - - splitView - - - - 684 - - - - - YES - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 21 - - - YES - - - - Window - - - 2 - - - YES - - - - - - 515 - - - YES - - - - - - 29 - - - YES - - - - - - - - MainMenu - - - 56 - - - YES - - - - - - 57 - - - YES - - - - - - - - - - - - - - - 129 - - - - - 134 - - - - - 136 - - - - - 144 - - - - - 145 - - - - - 149 - - - - - 150 - - - - - 196 - - - - - 414 - - - - - 428 - - - - - 103 - - - YES - - - - - - 106 - - - YES - - - - - - 111 - - - - - 163 - - - YES - - - - - - 169 - - - YES - - - - - - - - - - 157 - - - - - 160 - - - - - 171 - - - - - 172 - - - - - 269 - - - - - 253 - - - YES - - - - - - 254 - - - YES - - - - - - - - 255 - - - - - 256 - - - - - 257 - - - - - 261 - - - YES - - - - - - 262 - - - YES - - - - - - - - - - - - - - - - - 263 - - - - - 266 - - - - - 267 - - - - - 268 - - - - - 281 - - - - - 284 - - - - - 417 - - - - - 419 - - - - - 420 - - - - - 430 - - - - - 481 - - - - - 484 - - - - - 197 - - - YES - - - - - - chooseProfileView - - - 199 - - - YES - - - - - - 201 - - - YES - - - - - - 203 - - - YES - - - - - - - - - 205 - - - YES - - - - - - 202 - - - YES - - - - - - 198 - - - YES - - - - - - updatesView - - - 209 - - - MyController - - - 217 - - - ProfileController - - - 234 - - - YES - - - - PasswordWindow - - - 235 - - - YES - - - - - - - - - 236 - - - YES - - - - - - 237 - - - YES - - - - - - 238 - - - YES - - - - - - 239 - - - YES - - - - - - 307 - - - YES - - - - - - - PreferencesView - - - 321 - - - YES - - - - - - - 323 - - - YES - - - - - - - - - - - - 329 - - - YES - - - - - - 330 - - - YES - - - - - - 331 - - - PreferencesController - - - 402 - - - YES - - - - AboutWindow - - - 401 - - - YES - - - - - - - - - - 406 - - - YES - - - - - - 407 - - - YES - - - - - - 409 - - - YES - - - - - - 410 - - - YES - - - - - - 411 - - - YES - - - - - - 437 - - - NotificationController - - - 475 - - - YES - - - - DiffWindow - - - 476 - - - YES - - - - - - 477 - - - YES - - - - - - - - 478 - - - - - 488 - - - YES - - - - CltoolWindow - - - 489 - - - YES - - - - - - - - - - 491 - - - YES - - - - - - 493 - - - YES - - - - - - 494 - - - YES - - - - - - 495 - - - YES - - - - - - 496 - - - YES - - - - - - 527 - - - - - 528 - - - - - 529 - - - - - 531 - - - - - 532 - - - - - 533 - - - - - 534 - - - - - 543 - - - - - 544 - - - - - 545 - - - - - 546 - - - - - 547 - - - - - 548 - - - - - 549 - - - - - 551 - - - - - 552 - - - - - 553 - - - - - 554 - - - - - 555 - - - - - 557 - - - - - 561 - - - - - 562 - - - - - 563 - - - - - 569 - - - - - 570 - - - - - 362 - - - YES - - - - - - 535 - - - - - 363 - - - YES - - - - - - 536 - - - - - 364 - - - YES - - - - - - - - 556 - - - - - 366 - - - - - 365 - - - - - 367 - - - YES - - - - - - 537 - - - - - 368 - - - YES - - - - - - 538 - - - - - 369 - - - YES - - - - - - 539 - - - - - 370 - - - YES - - - - - - 540 - - - - - 371 - - - YES - - - - - - 541 - - - - - 372 - - - YES - - - - - - 542 - - - - - 586 - - - YES - - - - - - - 589 - - - YES - - - - - - 607 - - - YES - - - - - - 608 - - - - - 486 - - - - - 590 - - - YES - - - - - - - - - 594 - - - YES - - - - - - - - - - 599 - - - YES - - - - - - 600 - - - - - 598 - - - YES - - - - - - 601 - - - - - 597 - - - YES - - - - - - 602 - - - - - 596 - - - YES - - - - - - 603 - - - - - 595 - - - YES - - - - - - 604 - - - - - 593 - - - - - 592 - - - - - 591 - - - - - 583 - - - YES - - - - - - 584 - - - - - 618 - - - YES - - - - - - - PreferencesWindow - - - 619 - - - YES - - - - - - - - 423 - - - YES - - - - - ConnectingView - - - 576 - - - - - 620 - - - YES - - - - - - - - - - 621 - - - - - 622 - - - - - 624 - - - - - 626 - - - - - 627 - - - - - 628 - - - - - 653 - - - - - 678 - - - YES - - - - - - - - - - - 636 - - - YES - - - - - - 639 - - - - - 637 - - - YES - - - - - - 638 - - - - - 640 - - - YES - - - - - - 643 - - - - - 641 - - - YES - - - - - - 642 - - - - - 644 - - - YES - - - - - - 645 - - - - - 646 - - - YES - - - - - - 647 - - - - - 629 - - - YES - - - - - - 634 - - - - - 630 - - - YES - - - - - - 633 - - - - - 631 - - - YES - - - - - - 632 - - - - - 681 - - - YES - - - - - - 682 - - - YES - - - - - - 683 - - - - - - - YES - - YES - -3.IBPluginDependency - -3.ImportedFromIB2 - 103.IBPluginDependency - 103.ImportedFromIB2 - 106.IBEditorWindowLastContentRect - 106.IBPluginDependency - 106.ImportedFromIB2 - 111.IBPluginDependency - 111.ImportedFromIB2 - 129.IBPluginDependency - 129.ImportedFromIB2 - 134.IBPluginDependency - 134.ImportedFromIB2 - 136.IBPluginDependency - 136.ImportedFromIB2 - 144.IBPluginDependency - 144.ImportedFromIB2 - 145.IBPluginDependency - 145.ImportedFromIB2 - 149.IBPluginDependency - 149.ImportedFromIB2 - 150.IBPluginDependency - 150.ImportedFromIB2 - 157.IBPluginDependency - 157.ImportedFromIB2 - 160.IBPluginDependency - 160.ImportedFromIB2 - 163.IBPluginDependency - 163.ImportedFromIB2 - 169.IBEditorWindowLastContentRect - 169.IBPluginDependency - 169.ImportedFromIB2 - 171.IBPluginDependency - 171.ImportedFromIB2 - 172.IBPluginDependency - 172.ImportedFromIB2 - 196.IBPluginDependency - 196.ImportedFromIB2 - 197.IBEditorWindowLastContentRect - 197.IBPluginDependency - 197.ImportedFromIB2 - 198.IBEditorWindowLastContentRect - 198.IBPluginDependency - 198.ImportedFromIB2 - 199.IBPluginDependency - 199.ImportedFromIB2 - 2.IBPluginDependency - 2.ImportedFromIB2 - 201.IBPluginDependency - 201.ImportedFromIB2 - 202.IBPluginDependency - 202.ImportedFromIB2 - 203.IBPluginDependency - 203.ImportedFromIB2 - 205.CustomClassName - 205.IBPluginDependency - 205.ImportedFromIB2 - 209.ImportedFromIB2 - 21.IBEditorWindowLastContentRect - 21.IBPluginDependency - 21.IBWindowTemplateEditedContentRect - 21.ImportedFromIB2 - 21.windowTemplate.hasMinSize - 21.windowTemplate.minSize - 217.ImportedFromIB2 - 234.IBEditorWindowLastContentRect - 234.IBPluginDependency - 234.IBWindowTemplateEditedContentRect - 234.ImportedFromIB2 - 234.windowTemplate.hasMinSize - 234.windowTemplate.minSize - 235.IBPluginDependency - 235.ImportedFromIB2 - 236.CustomClassName - 236.IBPluginDependency - 236.ImportedFromIB2 - 237.IBPluginDependency - 237.ImportedFromIB2 - 238.IBPluginDependency - 238.ImportedFromIB2 - 239.IBPluginDependency - 239.ImportedFromIB2 - 253.IBPluginDependency - 253.ImportedFromIB2 - 254.IBEditorWindowLastContentRect - 254.IBPluginDependency - 254.ImportedFromIB2 - 255.IBPluginDependency - 255.ImportedFromIB2 - 256.IBPluginDependency - 256.ImportedFromIB2 - 257.IBPluginDependency - 257.ImportedFromIB2 - 261.IBPluginDependency - 261.ImportedFromIB2 - 262.IBEditorWindowLastContentRect - 262.IBPluginDependency - 262.ImportedFromIB2 - 263.IBPluginDependency - 263.ImportedFromIB2 - 266.IBPluginDependency - 266.ImportedFromIB2 - 267.IBPluginDependency - 267.ImportedFromIB2 - 268.IBPluginDependency - 268.ImportedFromIB2 - 269.IBPluginDependency - 269.ImportedFromIB2 - 281.IBPluginDependency - 281.ImportedFromIB2 - 284.IBPluginDependency - 284.ImportedFromIB2 - 29.IBEditorWindowLastContentRect - 29.IBPluginDependency - 29.ImportedFromIB2 - 307.IBEditorWindowLastContentRect - 307.IBPluginDependency - 307.ImportedFromIB2 - 321.IBPluginDependency - 321.ImportedFromIB2 - 323.IBPluginDependency - 323.ImportedFromIB2 - 329.IBPluginDependency - 329.ImportedFromIB2 - 330.IBPluginDependency - 330.ImportedFromIB2 - 331.ImportedFromIB2 - 362.IBPluginDependency - 362.ImportedFromIB2 - 363.IBPluginDependency - 363.ImportedFromIB2 - 364.IBPluginDependency - 364.ImportedFromIB2 - 365.IBPluginDependency - 365.ImportedFromIB2 - 366.IBPluginDependency - 366.ImportedFromIB2 - 367.IBPluginDependency - 367.ImportedFromIB2 - 368.IBPluginDependency - 368.ImportedFromIB2 - 369.IBPluginDependency - 369.ImportedFromIB2 - 370.IBPluginDependency - 370.ImportedFromIB2 - 371.IBPluginDependency - 371.ImportedFromIB2 - 372.IBPluginDependency - 372.ImportedFromIB2 - 401.IBPluginDependency - 401.ImportedFromIB2 - 402.IBEditorWindowLastContentRect - 402.IBPluginDependency - 402.IBWindowTemplateEditedContentRect - 402.ImportedFromIB2 - 402.windowTemplate.hasMinSize - 402.windowTemplate.minSize - 406.IBPluginDependency - 406.ImportedFromIB2 - 407.IBPluginDependency - 407.ImportedFromIB2 - 409.IBPluginDependency - 409.ImportedFromIB2 - 410.IBPluginDependency - 410.ImportedFromIB2 - 411.IBPluginDependency - 411.ImportedFromIB2 - 414.IBPluginDependency - 414.ImportedFromIB2 - 417.IBPluginDependency - 417.ImportedFromIB2 - 419.IBPluginDependency - 419.ImportedFromIB2 - 420.IBPluginDependency - 420.ImportedFromIB2 - 423.IBEditorWindowLastContentRect - 423.IBPluginDependency - 423.ImportedFromIB2 - 428.IBPluginDependency - 428.ImportedFromIB2 - 430.IBPluginDependency - 430.ImportedFromIB2 - 437.ImportedFromIB2 - 475.IBEditorWindowLastContentRect - 475.IBPluginDependency - 475.IBWindowTemplateEditedContentRect - 475.ImportedFromIB2 - 475.windowTemplate.hasMinSize - 475.windowTemplate.minSize - 476.IBPluginDependency - 476.ImportedFromIB2 - 477.IBPluginDependency - 477.ImportedFromIB2 - 478.IBPluginDependency - 478.ImportedFromIB2 - 481.IBPluginDependency - 481.ImportedFromIB2 - 484.IBPluginDependency - 484.ImportedFromIB2 - 486.IBPluginDependency - 486.ImportedFromIB2 - 488.IBEditorWindowLastContentRect - 488.IBPluginDependency - 488.IBWindowTemplateEditedContentRect - 488.ImportedFromIB2 - 488.windowTemplate.hasMinSize - 488.windowTemplate.minSize - 489.IBPluginDependency - 489.ImportedFromIB2 - 491.IBPluginDependency - 491.ImportedFromIB2 - 493.IBPluginDependency - 493.ImportedFromIB2 - 494.IBPluginDependency - 494.ImportedFromIB2 - 495.IBPluginDependency - 495.ImportedFromIB2 - 496.IBPluginDependency - 496.ImportedFromIB2 - 515.IBPluginDependency - 515.ImportedFromIB2 - 527.IBPluginDependency - 528.IBPluginDependency - 529.IBPluginDependency - 531.IBPluginDependency - 532.IBPluginDependency - 533.IBPluginDependency - 534.IBPluginDependency - 535.IBPluginDependency - 536.IBPluginDependency - 537.IBPluginDependency - 538.IBPluginDependency - 539.IBPluginDependency - 540.IBPluginDependency - 541.IBPluginDependency - 542.IBPluginDependency - 543.IBPluginDependency - 544.IBPluginDependency - 545.IBPluginDependency - 546.IBPluginDependency - 547.IBPluginDependency - 548.IBPluginDependency - 549.IBPluginDependency - 551.IBPluginDependency - 552.IBPluginDependency - 553.IBPluginDependency - 554.IBPluginDependency - 555.IBPluginDependency - 556.IBPluginDependency - 557.IBPluginDependency - 557.IBShouldRemoveOnLegacySave - 56.IBPluginDependency - 56.ImportedFromIB2 - 561.IBPluginDependency - 561.IBShouldRemoveOnLegacySave - 562.IBPluginDependency - 562.IBShouldRemoveOnLegacySave - 563.IBPluginDependency - 563.IBShouldRemoveOnLegacySave - 569.IBPluginDependency - 569.IBShouldRemoveOnLegacySave - 57.IBEditorWindowLastContentRect - 57.IBPluginDependency - 57.ImportedFromIB2 - 570.IBPluginDependency - 570.IBShouldRemoveOnLegacySave - 576.IBPluginDependency - 583.IBPluginDependency - 584.IBPluginDependency - 586.IBPluginDependency - 589.IBPluginDependency - 590.IBPluginDependency - 590.ImportedFromIB2 - 591.IBPluginDependency - 591.IBShouldRemoveOnLegacySave - 592.IBPluginDependency - 592.IBShouldRemoveOnLegacySave - 593.IBPluginDependency - 593.IBShouldRemoveOnLegacySave - 594.CustomClassName - 594.IBPluginDependency - 594.ImportedFromIB2 - 595.IBPluginDependency - 595.ImportedFromIB2 - 596.IBPluginDependency - 596.ImportedFromIB2 - 597.IBPluginDependency - 597.ImportedFromIB2 - 598.IBPluginDependency - 598.ImportedFromIB2 - 599.IBPluginDependency - 599.ImportedFromIB2 - 600.IBPluginDependency - 600.ImportedFromIB2 - 601.IBPluginDependency - 601.ImportedFromIB2 - 602.IBPluginDependency - 602.IBShouldRemoveOnLegacySave - 603.IBPluginDependency - 603.IBShouldRemoveOnLegacySave - 604.IBPluginDependency - 604.IBShouldRemoveOnLegacySave - 607.IBPluginDependency - 608.IBPluginDependency - 618.IBEditorWindowLastContentRect - 618.IBPluginDependency - 618.IBWindowTemplateEditedContentRect - 618.NSWindowTemplate.visibleAtLaunch - 619.IBPluginDependency - 620.IBEditorWindowLastContentRect - 620.IBPluginDependency - 622.IBPluginDependency - 624.IBPluginDependency - 626.IBPluginDependency - 627.IBPluginDependency - 628.IBPluginDependency - 629.IBPluginDependency - 630.IBPluginDependency - 631.IBPluginDependency - 632.IBPluginDependency - 633.IBPluginDependency - 634.IBPluginDependency - 636.IBPluginDependency - 637.IBPluginDependency - 638.IBPluginDependency - 639.IBPluginDependency - 640.IBPluginDependency - 641.IBPluginDependency - 642.IBPluginDependency - 643.IBPluginDependency - 644.IBPluginDependency - 645.IBPluginDependency - 646.IBPluginDependency - 647.IBPluginDependency - 653.IBPluginDependency - 678.IBPluginDependency - 681.IBPluginDependency - 682.IBPluginDependency - 683.IBPluginDependency - - - YES - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{582, 1091}, {202, 23}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{407, 1011}, {179, 103}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{345, 795}, {363, 281}} - com.apple.InterfaceBuilder.CocoaPlugin - - {{289, 361}, {730, 546}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - ProfileTableView - com.apple.InterfaceBuilder.CocoaPlugin - - - {{717, 719}, {480, 360}} - com.apple.InterfaceBuilder.CocoaPlugin - {{717, 719}, {480, 360}} - - - {213, 107} - - {{345, 994}, {227, 128}} - com.apple.InterfaceBuilder.CocoaPlugin - {{345, 994}, {227, 128}} - - - {213, 107} - com.apple.InterfaceBuilder.CocoaPlugin - - NSSecureTextField - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{520, 1051}, {191, 63}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{451, 881}, {323, 233}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{326, 1114}, {317, 20}} - com.apple.InterfaceBuilder.CocoaPlugin - - {{345, 803}, {534, 250}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{345, 879}, {262, 266}} - com.apple.InterfaceBuilder.CocoaPlugin - {{345, 879}, {262, 266}} - - - {213, 107} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{443, 288}, {871, 577}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - - {{345, 792}, {505, 342}} - com.apple.InterfaceBuilder.CocoaPlugin - {{345, 792}, {505, 342}} - - - {213, 107} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{345, 916}, {400, 229}} - com.apple.InterfaceBuilder.CocoaPlugin - {{345, 916}, {400, 229}} - - - {213, 107} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - {{338, 941}, {266, 173}} - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - ReconTableView - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - {{446, 645}, {446, 84}} - com.apple.InterfaceBuilder.CocoaPlugin - {{446, 645}, {446, 84}} - - com.apple.InterfaceBuilder.CocoaPlugin - {{466, 530}, {616, 0}} - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - com.brandonwalkin.BWToolkit - - - - YES - - - YES - - - - - YES - - - YES - - - - 684 - - - - YES - - FirstResponder - NSObject - - YES - - YES - copyLR: - copyRL: - forceNewer: - forceOlder: - ignoreExt: - ignoreName: - ignorePath: - leaveAlone: - merge: - revert: - selectConflicts: - showDiff: - - - YES - id - id - id - id - id - id - id - id - id - id - id - id - - - - YES - - YES - copyLR: - copyRL: - forceNewer: - forceOlder: - ignoreExt: - ignoreName: - ignorePath: - leaveAlone: - merge: - revert: - selectConflicts: - showDiff: - - - YES - - copyLR: - id - - - copyRL: - id - - - forceNewer: - id - - - forceOlder: - id - - - ignoreExt: - id - - - ignoreName: - id - - - ignorePath: - id - - - leaveAlone: - id - - - merge: - id - - - revert: - id - - - selectConflicts: - id - - - showDiff: - id - - - - - IBUserSource - - - - - MyController - NSObject - - YES - - YES - cancelProfileButton: - checkOpenProfileChanged: - chooseFont: - cltoolNoButton: - cltoolYesButton: - createButton: - endPasswordWindow: - installCommandLineTool: - onlineHelp: - openButton: - raiseAboutWindow: - raiseCltoolWindow: - raiseWindow: - rescan: - restartButton: - saveProfileButton: - showPreferences: - syncButton: - tableModeChanged: - - - YES - id - id - id - id - id - id - id - id - id - id - id - id - NSWindow - id - id - id - id - id - id - - - - YES - - YES - cancelProfileButton: - checkOpenProfileChanged: - chooseFont: - cltoolNoButton: - cltoolYesButton: - createButton: - endPasswordWindow: - installCommandLineTool: - onlineHelp: - openButton: - raiseAboutWindow: - raiseCltoolWindow: - raiseWindow: - rescan: - restartButton: - saveProfileButton: - showPreferences: - syncButton: - tableModeChanged: - - - YES - - cancelProfileButton: - id - - - checkOpenProfileChanged: - id - - - chooseFont: - id - - - cltoolNoButton: - id - - - cltoolYesButton: - id - - - createButton: - id - - - endPasswordWindow: - id - - - installCommandLineTool: - id - - - onlineHelp: - id - - - openButton: - id - - - raiseAboutWindow: - id - - - raiseCltoolWindow: - id - - - raiseWindow: - NSWindow - - - rescan: - id - - - restartButton: - id - - - saveProfileButton: - id - - - showPreferences: - id - - - syncButton: - id - - - tableModeChanged: - id - - - - - YES - - YES - ConnectingView - aboutWindow - checkOpenProfile - chooseDetailsFont - chooseDiffFont - chooseProfileView - cltoolPref - cltoolWindow - connectingAnimation - detailsFontLabel - detailsTextView - diffFontLabel - diffView - diffWindow - fontChangeTarget - mainWindow - notificationController - passwordCancelButton - passwordPrompt - passwordText - passwordWindow - preferencesController - preferencesView - preferencesWindow - profileBox - profileController - progressBar - splitView - statusText - tableModeSelector - tableView - updatesText - updatesView - versionText - - - YES - NSView - NSWindow - NSButton - NSButton - NSButton - NSView - NSButton - NSWindow - NSProgressIndicator - NSTextField - NSTextField - NSTextField - NSTextView - NSWindow - id - NSWindow - NotificationController - NSButton - NSTextField - NSTextField - NSWindow - PreferencesController - NSView - NSWindow - NSComboBox - ProfileController - NSProgressIndicator - NSSplitView - NSTextField - NSSegmentedControl - ReconTableView - NSTextField - NSView - NSTextField - - - - YES - - YES - ConnectingView - aboutWindow - checkOpenProfile - chooseDetailsFont - chooseDiffFont - chooseProfileView - cltoolPref - cltoolWindow - connectingAnimation - detailsFontLabel - detailsTextView - diffFontLabel - diffView - diffWindow - fontChangeTarget - mainWindow - notificationController - passwordCancelButton - passwordPrompt - passwordText - passwordWindow - preferencesController - preferencesView - preferencesWindow - profileBox - profileController - progressBar - splitView - statusText - tableModeSelector - tableView - updatesText - updatesView - versionText - - - YES - - ConnectingView - NSView - - - aboutWindow - NSWindow - - - checkOpenProfile - NSButton - - - chooseDetailsFont - NSButton - - - chooseDiffFont - NSButton - - - chooseProfileView - NSView - - - cltoolPref - NSButton - - - cltoolWindow - NSWindow - - - connectingAnimation - NSProgressIndicator - - - detailsFontLabel - NSTextField - - - detailsTextView - NSTextField - - - diffFontLabel - NSTextField - - - diffView - NSTextView - - - diffWindow - NSWindow - - - fontChangeTarget - id - - - mainWindow - NSWindow - - - notificationController - NotificationController - - - passwordCancelButton - NSButton - - - passwordPrompt - NSTextField - - - passwordText - NSTextField - - - passwordWindow - NSWindow - - - preferencesController - PreferencesController - - - preferencesView - NSView - - - preferencesWindow - NSWindow - - - profileBox - NSComboBox - - - profileController - ProfileController - - - progressBar - NSProgressIndicator - - - splitView - NSSplitView - - - statusText - NSTextField - - - tableModeSelector - NSSegmentedControl - - - tableView - ReconTableView - - - updatesText - NSTextField - - - updatesView - NSView - - - versionText - NSTextField - - - - - IBProjectSource - MyController.h - - - - MyController - NSObject - - IBUserSource - - - - - NSOutlineView - - IBProjectSource - ReconTableView.h - - - - NSOutlineView - NSTableView - - IBUserSource - - - - - NSSegmentedControl - NSControl - - IBUserSource - - - - - NotificationController - NSObject - - IBProjectSource - NotificationController.h - - - - NotificationController - NSObject - - IBUserSource - - - - - PreferencesController - NSObject - - YES - - YES - anyEnter: - localClick: - remoteClick: - - - YES - id - id - id - - - - YES - - YES - anyEnter: - localClick: - remoteClick: - - - YES - - anyEnter: - id - - - localClick: - id - - - remoteClick: - id - - - - - YES - - YES - firstRootText - localButtonCell - profileNameText - remoteButtonCell - secondRootHost - secondRootText - secondRootUser - - - YES - NSTextField - NSButtonCell - NSTextField - NSButtonCell - NSTextField - NSTextField - NSTextField - - - - YES - - YES - firstRootText - localButtonCell - profileNameText - remoteButtonCell - secondRootHost - secondRootText - secondRootUser - - - YES - - firstRootText - NSTextField - - - localButtonCell - NSButtonCell - - - profileNameText - NSTextField - - - remoteButtonCell - NSButtonCell - - - secondRootHost - NSTextField - - - secondRootText - NSTextField - - - secondRootUser - NSTextField - - - - - IBProjectSource - PreferencesController.h - - - - PreferencesController - NSObject - - IBUserSource - - - - - ProfileController - NSObject - - tableView - NSTableView - - - tableView - - tableView - NSTableView - - - - IBProjectSource - ProfileController.h - - - - ProfileController - NSObject - - IBUserSource - - - - - ProfileTableView - NSTableView - - myController - MyController - - - myController - - myController - MyController - - - - IBProjectSource - ProfileTableView.h - - - - ProfileTableView - NSTableView - - IBUserSource - - - - - ReconTableView - NSOutlineView - - YES - - YES - copyLR: - copyRL: - forceNewer: - forceOlder: - ignoreExt: - ignoreName: - ignorePath: - leaveAlone: - merge: - revert: - selectConflicts: - showDiff: - - - YES - id - id - id - id - id - id - id - id - id - id - id - id - - - - YES - - YES - copyLR: - copyRL: - forceNewer: - forceOlder: - ignoreExt: - ignoreName: - ignorePath: - leaveAlone: - merge: - revert: - selectConflicts: - showDiff: - - - YES - - copyLR: - id - - - copyRL: - id - - - forceNewer: - id - - - forceOlder: - id - - - ignoreExt: - id - - - ignoreName: - id - - - ignorePath: - id - - - leaveAlone: - id - - - merge: - id - - - revert: - id - - - selectConflicts: - id - - - showDiff: - id - - - - - - - ReconTableView - NSOutlineView - - IBUserSource - - - - - - YES - - BWGradientBox - NSView - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWGradientBox.h - - - - BWInsetTextField - NSTextField - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWInsetTextField.h - - - - BWSelectableToolbar - NSToolbar - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWSelectableToolbar.h - - - - BWSplitView - NSSplitView - - toggleCollapse: - id - - - toggleCollapse: - - toggleCollapse: - id - - - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWSplitView.h - - - - BWToolbarShowFontsItem - NSToolbarItem - - IBFrameworkSource - BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h - - - - NSApplication - - IBFrameworkSource - BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h - - - - NSObject - - IBFrameworkSource - ExceptionHandling.framework/Headers/NSExceptionHandler.h - - - - NSObject - - IBFrameworkSource - Growl.framework/Headers/GrowlApplicationBridge.h - - - - NSView - - IBFrameworkSource - BWToolkitFramework.framework/Headers/NSView+BWAdditions.h - - - - NSWindow - - IBFrameworkSource - BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h - - - - - 0 - IBCocoaFramework - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - - YES - ../uimacnew.xcodeproj - 3 - - YES - - YES - NSMenuCheckmark - NSMenuMixedState - NSPreferencesGeneral - NSSwitch - Outline-Deep - Outline-Flat - Outline-Flattened - Unison - - - YES - {9, 8} - {7, 2} - {32, 32} - {15, 15} - {24, 16} - {24, 16} - {24, 16} - {128, 128} - - - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/License.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/License.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Resources/TransparentSliderTriangleThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/BWToolkitFramework and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/BWToolkitFramework differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -// -// BWAnchoredButtonBar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonBar : NSView -{ - BOOL isResizable, isAtBottom, handleIsRightAligned; - int selectedIndex; - id splitViewDelegate; -} - -@property BOOL isResizable, isAtBottom, handleIsRightAligned; -@property int selectedIndex; - -// The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations -// you'd like to provide. -@property (assign) id splitViewDelegate; - -+ (BOOL)wasBorderedBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredButton : NSButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWAnchoredPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWAnchoredPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -// -// BWAnchoredPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWAnchoredPopUpButton : NSPopUpButton -{ - BOOL isAtLeftEdgeOfBar; - BOOL isAtRightEdgeOfBar; - NSPoint topAndLeftInset; -} - -@property BOOL isAtLeftEdgeOfBar; -@property BOOL isAtRightEdgeOfBar; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWGradientBox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -// -// BWGradientBox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWGradientBox : NSView -{ - NSColor *fillStartingColor, *fillEndingColor, *fillColor; - NSColor *topBorderColor, *bottomBorderColor; - float topInsetAlpha, bottomInsetAlpha; - - BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; -} - -@property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; -@property float topInsetAlpha, bottomInsetAlpha; -@property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWHyperlinkButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWHyperlinkButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// BWHyperlinkButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWHyperlinkButton : NSButton -{ - NSString *urlString; -} - -@property (copy, nonatomic) NSString *urlString; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWInsetTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWInsetTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWInsetTextField : NSTextField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSelectableToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -// -// BWSelectableToolbar.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@class BWSelectableToolbarHelper; - -// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object -// for the key @"BWClickedItem" in the supplied userInfo dictionary. -extern NSString * const BWSelectableToolbarItemClickedNotification; - -@interface BWSelectableToolbar : NSToolbar -{ - BWSelectableToolbarHelper *helper; - NSMutableArray *itemIdentifiers; - NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; - BOOL inIB; - - // For the IB inspector - int selectedIndex; - BOOL isPreferencesToolbar; -} - -// Call one of these methods to set the active tab. -- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. -- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. - -// Programmatically disable or enable a toolbar item. -- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSheetController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -// -// BWSheetController.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWSheetController : NSObject -{ - NSWindow *sheet; - NSWindow *parentWindow; - id delegate; -} - -@property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; -@property (nonatomic, retain) IBOutlet id delegate; - -- (IBAction)openSheet:(id)sender; -- (IBAction)closeSheet:(id)sender; -- (IBAction)messageDelegateAndCloseSheet:(id)sender; - -// The optional delegate should implement the method: -// - (BOOL)shouldCloseSheet:(id)sender -// Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender -// object is the button that requested the close. This is helpful because in the event that there are multiple buttons -// hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWSplitView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -// -// BWSplitView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. -// All code is provided under the New BSD license. -// - -#import - -@interface BWSplitView : NSSplitView -{ - NSColor *color; - BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; - id secondaryDelegate; - NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; - NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; - NSArray *stateForLastPreferredCalculations; - int collapsiblePopupSelection; - float uncollapsedSize; - - // Collapse button - NSButton *toggleCollapseButton; - BOOL isAnimating; -} - -@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; -@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; -@property (retain) NSArray *stateForLastPreferredCalculations; -@property (retain) NSButton *toggleCollapseButton; -@property (assign) id secondaryDelegate; -@property BOOL collapsibleSubviewCollapsed; -@property int collapsiblePopupSelection; -@property BOOL dividerCanCollapse; - -// The split view divider color -@property (copy) NSColor *color; - -// Flag for whether a custom divider color is enabled. If not, the standard divider color is used. -@property BOOL colorIsEnabled; - -// Call this method to collapse or expand a subview configured as collapsible in the IB inspector. -- (IBAction)toggleCollapse:(id)sender; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// BWStyledTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextFieldCell : NSTextFieldCell -{ - BOOL shadowIsBelow, hasShadow, hasGradient; - NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - - NSShadow *shadow; - NSMutableDictionary *previousAttributes; -} - -@property BOOL shadowIsBelow, hasShadow, hasGradient; -@property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWStyledTextField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// BWStyledTextField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWStyledTextField : NSTextField -{ - -} - -- (BOOL)hasGradient; -- (void)setHasGradient:(BOOL)flag; -- (NSColor *)startingColor; -- (void)setStartingColor:(NSColor *)color; -- (NSColor *)endingColor; -- (void)setEndingColor:(NSColor *)color; - -- (NSColor *)solidColor; -- (void)setSolidColor:(NSColor *)color; - -- (BOOL)hasShadow; -- (void)setHasShadow:(BOOL)flag; -- (BOOL)shadowIsBelow; -- (void)setShadowIsBelow:(BOOL)flag; -- (NSColor *)shadowColor; -- (void)setShadowColor:(NSColor *)color; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// BWTexturedSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSliderCell : NSSliderCell -{ - BOOL isPressed; - int trackHeight; -} - -@property int trackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTexturedSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -// -// BWTexturedSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTexturedSlider : NSSlider -{ - int trackHeight, indicatorIndex; - NSRect sliderCellRect; - NSButton *minButton, *maxButton; -} - -@property int indicatorIndex; -@property (retain) NSButton *minButton; -@property (retain) NSButton *maxButton; - -- (int)trackHeight; -- (void)setTrackHeight:(int)newTrackHeight; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTokenAttachmentCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "NSTokenAttachmentCell.h" - -@interface BWTokenAttachmentCell : NSTokenAttachmentCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenFieldCell : NSTokenFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTokenField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTokenField.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTokenField : NSTokenField -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarItem : NSToolbarItem -{ - NSString *identifierString; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowColorsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowColorsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowColorsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolbarShowFontsItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWToolbarShowFontsItem.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWToolbarShowFontsItem : NSToolbarItem -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWToolkitFramework.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -// -// BWToolkitFramework.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -// This is a convenience header for importing the BWToolkit framework into your classes. - -#import "BWAnchoredButton.h" -#import "BWAnchoredButtonBar.h" -#import "BWAnchoredButtonCell.h" -#import "BWAnchoredPopUpButton.h" -#import "BWAnchoredPopUpButtonCell.h" -#import "BWGradientBox.h" -#import "BWHyperlinkButton.h" -#import "BWHyperlinkButtonCell.h" -#import "BWInsetTextField.h" -#import "BWSelectableToolbar.h" -#import "BWSheetController.h" -#import "BWSplitView.h" -#import "BWStyledTextField.h" -#import "BWStyledTextFieldCell.h" -#import "BWTexturedSlider.h" -#import "BWTexturedSliderCell.h" -#import "BWTokenAttachmentCell.h" -#import "BWTokenField.h" -#import "BWTokenFieldCell.h" -#import "BWToolbarItem.h" -#import "BWToolbarShowColorsItem.h" -#import "BWToolbarShowFontsItem.h" -#import "BWTransparentButton.h" -#import "BWTransparentButtonCell.h" -#import "BWTransparentCheckbox.h" -#import "BWTransparentCheckboxCell.h" -#import "BWTransparentPopUpButton.h" -#import "BWTransparentPopUpButtonCell.h" -#import "BWTransparentScroller.h" -#import "BWTransparentScrollView.h" -#import "BWTransparentSlider.h" -#import "BWTransparentSliderCell.h" -#import "BWTransparentTableView.h" -#import "BWTransparentTableViewCell.h" -#import "BWTransparentTextFieldCell.h" -#import "BWUnanchoredButton.h" -#import "BWUnanchoredButtonCell.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentButton.h" - -@interface BWTransparentButtonCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentButton : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckboxCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWTransparentCheckboxCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWTransparentCheckbox.h" - -@interface BWTransparentCheckboxCell : NSButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentCheckbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentCheckbox.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentCheckbox : NSButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButtonCell : NSPopUpButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentPopUpButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentPopUpButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentPopUpButton : NSPopUpButton -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScroller.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScroller.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScroller : NSScroller -{ - BOOL isVertical; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentScrollView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentScrollView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentScrollView : NSScrollView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSliderCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSliderCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSliderCell : NSSliderCell -{ - BOOL isPressed; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentSlider.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentSlider.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentSlider : NSSlider -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableViewCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableViewCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableViewCell : NSTextFieldCell -{ - BOOL mIsEditingOrSelecting; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTableView.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTableView : NSTableView -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWTransparentTextFieldCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWTransparentTextFieldCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWTransparentTextFieldCell : NSTextFieldCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButtonCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -// -// BWUnanchoredButtonCell.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import -#import "BWAnchoredButtonCell.h" - -@interface BWUnanchoredButtonCell : BWAnchoredButtonCell -{ - -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/BWUnanchoredButton.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// BWUnanchoredButton.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface BWUnanchoredButton : NSButton -{ - NSPoint topAndLeftInset; -} - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSApplication+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -// -// NSApplication+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSApplication (BWAdditions) - -+ (BOOL)bwIsOnLeopard; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSColor+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSColor+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSColor (BWAdditions) - -// Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. -- (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSImage+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -// -// NSImage+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSImage (BWAdditions) - -// Draw a solid color over an image - taking into account alpha. Useful for coloring template images. -- (NSImage *)bwTintedImageWithColor:(NSColor *)tint; - -// Rotate an image 90 degrees clockwise or counterclockwise -- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachmentCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachmentCell : NSTextAttachmentCell -{ - id _representedObject; - id _textColor; - id _reserved; - struct { - unsigned int _selected:1; - unsigned int _edgeStyle:2; - unsigned int _reserved:29; - } _tacFlags; -} - -+ (void)initialize; -- (id)initTextCell:(id)fp8; -- (id)init; -- (void)dealloc; -- (id)representedObject; -- (void)setRepresentedObject:(id)fp8; -- (int)interiorBackgroundStyle; -- (BOOL)_hasMenu; -- (id)tokenForegroundColor; -- (id)tokenBackgroundColor; -- (id)textColor; -- (void)setTextColor:(id)fp8; -- (id)pullDownImage; -- (id)menu; -- (NSSize)cellSizeForBounds:(NSRect)fp8; -- (NSSize)cellSize; -- (NSRect)drawingRectForBounds:(NSRect)fp8; -- (NSRect)titleRectForBounds:(NSRect)fp8; -- (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; -- (NSPoint)cellBaselineOffset; -- (NSRect)pullDownRectForBounds:(NSRect)fp8; -- (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; -- (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; -- (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSTokenAttachment.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -/* - * Generated by class-dump 3.1.2. - * - * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. - */ - -#import - -@interface NSTokenAttachment : NSTextAttachment -{ - id _delegate; -} - -- (id)initWithDelegate:(id)fp8; -- (void)encodeWithCoder:(id)fp8; -- (id)initWithCoder:(id)fp8; -- (id)attachmentCell; -- (id)delegate; -- (void)setDelegate:(id)fp8; - -@end - diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSView+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -// -// NSView+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSView (BWAdditions) - -- (void)bwBringToFront; - -// Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes -- (id)bwAnimator; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Headers/NSWindow+BWAdditions.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -// -// NSWindow+BWAdditions.h -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import - -@interface NSWindow (BWAdditions) - -- (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; -- (BOOL)bwIsTextured; - -@end diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ButtonBarPullDownArrow.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-06-14T20:29:08-04:00 - 2008-06-14T20:29:31-04:00 - 2008-06-14T20:29:31-04:00 - - - - JPEG - 3 - 5 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIAAMABQMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AMyv7J+2b4/YW79s0z/Sdm708jbz7Ps3qb/5 v9X+2/zv6r6KS89SSU//2Q== - - - - - - uuid:3233F5DEE23BDD1188A5F807AAD5B5AB - uuid:d364bcf4-ecbc-9348-b5a9-7f85a6b611f5 - - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - uuid:72448EAFE13BDD1188A5F807AAD5B5AB - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;5F3E335AFF780C9D7CD7E1ADA05DBE38 - - - 5 - 3 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;DECD3C4701D62E29B6EB81157F585A9F - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 5 0 0 3 0 0 cm q 0.5000026 -0.0002287 m 0.0000771 1.0002303 l 0.9999280 1.0002303 l 0.5000026 -0.0002287 l h W n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream - endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006676 00000 n -0000000004 00001 f -0000000000 00000 f -0000006727 00000 n -0000009859 00000 n -0000006851 00000 n -0000007032 00000 n -0000007211 00000 n -0000007177 00000 n -0000010121 00000 n -0000000077 00000 n -trailer <<10B89CB6AA9C4EF8AF41B07220157CA1>]>> startxref 10293 %%EOF \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleBitmap.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleBitmap.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -%PDF-1.7 % -1 0 obj <> endobj 12 0 obj <>stream - - - - - application/pdf - - - Adobe Photoshop CS3 Macintosh - 2008-02-16T21:30:46-05:00 - 2008-02-16T21:30:59-05:00 - 2008-02-16T21:30:59-05:00 - - - - JPEG - 16 - 16 - /9j/4AAQSkZJRgABAgAASABIAAD/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwI CAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM DAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDP/AABEIABAAEAMBIgACEQEDEQH/3QAEAAH/xAE/AAABBQEBAQEBAQAAAAAA AAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggF AwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH 1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNT FWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaW prbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/AOpzLsjqlznPeRjgkV1DQR+8795zksO7J6Xc xzHk45IFlR1EfvN/dc1XLcN+FY5rmn0STseOI8ClVhvzbGta0+kCC954jwCSn//Z - - - - - - uuid:7750097D68DEDC11BB92BDC6FD4C7FBA - uuid:d55aa6fe-4f87-9045-bedc-eced5d1cc5dd - - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - uuid:7650097D68DEDC11BB92BDC6FD4C7FBA - - - - 1 - 720000/10000 - 720000/10000 - 2 - 256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;6484DE694EED10FCB1360A97BFC32F0A - - - 16 - 16 - 1 - 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;26EC271C894309D0BBA2E3379EE65237 - - - - 3 - sRGB IEC61966-2.1 - - - Adobe Photoshop for Macintosh - - - - - - - - - - - - - - - - - - - - - - - - - endstream endobj 2 0 obj <> endobj 5 0 obj <> endobj 7 0 obj <>stream -q q 16 0 0 16 0 0 cm q 0.4999998 1.0000093 m 0.7761371 1.0000093 1.0000090 0.7761374 1.0000090 0.5000001 c 1.0000090 0.2238628 0.7761371 -0.0000091 0.4999998 -0.0000091 c 0.2238625 -0.0000091 -0.0000094 0.2238628 -0.0000094 0.5000001 c -0.0000094 0.7761374 0.2238625 1.0000093 0.4999998 1.0000093 c h W* n /Im0 Do Q Q Q endstream endobj 8 0 obj <>/ColorSpace<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]/ExtGState<>>>>> endobj 10 0 obj [/ICCBased 9 0 R] endobj 9 0 obj <>stream -HyTSwoɞc [5, BHBK!aPVX=u:XKèZ\;v^N߽~w.MhaUZ>31[_& (DԬlK/jq'VOV?:OsRUzdWRab5? Ζ&VϳS7Trc3MQ]Ymc:B :Ŀ9ᝩ*UUZ<"2V[4ZLOMa?\⎽"?.KH6|zӷJ.Hǟy~Nϳ}Vdfc -n~Y&+`;A4I d|(@zPZ@;=`=v0v <\$ x -^AD W P$@P>T !-dZP C; t -@A/a<v}a1'X Mp'G}a|OY 48"BDH4)EH+ҍ "~rL"(*DQ)*E]a4zBgE#jB=0HIpp0MxJ$D1(%ˉ^Vq%],D"y"Hi$9@"m!#}FL&='dr%w{ȟ/_QXWJ%4R(cci+**FPvu? 6 Fs2hriStݓ.ҍu_џ0 7F4a`cfb|xn51)F]6{̤0]1̥& "rcIXrV+kuu5E4v}}Cq9JN')].uJ - - wG x2^9{oƜchk`>b$eJ~ :Eb~,m,-Uݖ,Y¬*6X[ݱF=3뭷Y~dó Qti zf6~`{v.Ng#{}}c1X%6fmFN9NN8SΥ'g\\R]Z\t]\7u}&ps[6v_`) {Q5W=b -_zžAe#``/VKPo !]#N}R|:|}n=/ȯo#JuW_ `$ 6+P-AܠԠUA' %8佐b8]+<q苰0C +_ XZ0nSPEUJ#JK#ʢi$aͷ**>2@ꨖОnu&kj6;k%G PApѳqM㽦5͊---SbhZKZO9uM/O\^W8i׹ĕ{̺]7Vھ]Y=&`͖5_ Ыbhו ۶^ Mw7n<< t|hӹ훩' ZL$h՛BdҞ@iءG&vVǥ8nRĩ7u\ЭD-u`ֲK³8%yhYѹJº;.! -zpg_XQKFAǿ=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km  endstream endobj 6 0 obj <>stream -rrruuuyyy~~~~~~yyyuuurrrwww||||||www}}}}}}¿úżżĺǿ¾ endstream endobj 11 0 obj <> endobj xref 0 13 0000000003 65535 f -0000000016 00000 n -0000006720 00000 n -0000000004 00001 f -0000000000 00000 f -0000006771 00000 n -0000010096 00000 n -0000006899 00000 n -0000007269 00000 n -0000007448 00000 n -0000007414 00000 n -0000011086 00000 n -0000000077 00000 n -trailer <<4866DB5336014798BED9528D03CDD3B2>]>> startxref 11258 %%EOF \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - BWToolkitFramework - CFBundleIdentifier - com.brandonwalkin.BWToolkitFramework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleSignature - ???? - CFBundleVersion - 1.2.5 - NSPrincipalClass - BWToolkit - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Library-SheetController.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Library-SheetController.tif differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/License.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fnil\fcharset0 LucidaGrande;} -{\colortbl;\red255\green255\blue255;\red73\green73\blue73;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\deftab720 -\pard\pardeftab720\sl400\sa280\ql\qnatural - -\f0\fs24 \cf2 Copyright (c) 2010, Brandon Walkin -\f1 \uc0\u8232 -\f0 All rights reserved.\ -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural -\ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ -{\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ -{\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\pardeftab720\sl400\sa280\ql\qnatural -\cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf --- unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/Release Notes.rtf 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Monaco;} -{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red196\green26\blue22;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1} -{\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid101\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2} -{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid201\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}} -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\f0\b\fs54 \cf0 BWToolkit -\fs36 \ - -\b0 Plugin for Interface Builder 3\ - -\b \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs30 \cf0 Version 1.2.5\ -January 20, 2010\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 Installation -\b0\fs28 \ -\ -Note: If you're building on 10.5, you'll need to build BWToolkit from source.\ -\ -Step 1. Double click the BWToolkit.ibplugin file to load the plugin into Interface Builder\ -\ -Note: Interface Builder will reference this file rather than copy it to another location. Keep the .ibplugin file in a location where it won't be deleted.\ -\ -Step 2. In the Xcode project you want to use the plugin in:\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }Right click the Linked Frameworks folder and click Add -> Existing Frameworks. Select the BWToolkitFramework.framework directory.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls2\ilvl0\cf0 {\listtext \'95 }Right click your target and click Add -> New Build Phase -> New Copy Files Build Phase. For destination, select Frameworks, leave the path field blank, and close the window.\ -\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural -\ls3\ilvl0\cf0 {\listtext \'95 }Drag the BWToolkit framework from Linked Frameworks to the Copy Files build phase you just added.\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural -\cf0 \ -Note: You'll have to repeat step 2 for each project you want to use BWToolkit in.\ -\ -If you need to reference BWToolkit objects in your classes, you can import the main header like so:\ -\ -\pard\tx560\pardeftab560\ql\qnatural\pardirnatural - -\f1\fs24 \cf2 \CocoaLigature0 #import \cf3 -\f0\fs28 \cf0 \CocoaLigature1 \ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\fs32 \cf0 \ -\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b\fs36 \cf0 License\ -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural - -\b0\fs28 \cf0 \ -All source code is provided under the three clause BSD license. Attribution is appreciated but by no means required.\ -\ -\ -} \ No newline at end of file Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoLarge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoLarge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoSmall.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderPhotoSmall.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerLoud.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerLoud.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerQuiet.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderSpeakerQuiet.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TexturedSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemColors.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemColors.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemFonts.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/ToolbarItemFonts.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentButtonRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOffP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentCheckboxOnP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpFillP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpLeftP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightN.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightN.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightP.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpPullDownRightP.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentPopUpRightP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerKnobVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotBottom.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotBottom.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotHorizontalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotHorizontalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotLeft.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotLeft.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotRight.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotRight.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotTop.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotTop.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotVerticalFill.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentScrollerSlotVerticalFill.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackFill.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackFill.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackLeft.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackLeft.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackRight.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTrackRight.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbN.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbN.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbP.tiff and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/BWToolkitFramework.framework/Versions/Current/Resources/TransparentSliderTriangleThumbP.tiff differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Growl differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,780 +0,0 @@ -// -// GrowlApplicationBridge-Carbon.h -// Growl -// -// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. -// Based on GrowlApplicationBridge.h by Evan Schoenberg. -// This source code is in the public domain. You may freely link it into any -// program. -// - -#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ -#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ - -#include -#include - -#ifndef GROWL_EXPORT -#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE -#endif - -/*! @header GrowlApplicationBridge-Carbon.h - * @abstract Declares an API that Carbon applications can use to interact with Growl. - * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX - * to Growl (such as your application's name and what notifications it may - * post) and to provide information to your application (such as that Growl - * is listening for notifications or that a notification has been clicked). - * - * You can set the Growldelegate with Growl_SetDelegate and find out the - * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more - * information about the delegate. - */ - -__BEGIN_DECLS - -/*! @struct Growl_Delegate - * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. - * @discussion The Growl delegate provides your interface to - * GrowlApplicationBridge. When GrowlApplicationBridge needs information about - * your application, it looks for it in the delegate; when Growl or the user - * does something that you might be interested in, GrowlApplicationBridge - * looks for a callback in the delegate and calls it if present - * (meaning, if it is not NULL). - * XXX on all of that - * @field size The size of the delegate structure. - * @field applicationName The name of your application. - * @field registrationDictionary A dictionary describing your application and the notifications it can send out. - * @field applicationIconData Your application's icon. - * @field growlInstallationWindowTitle The title of the installation window. - * @field growlInstallationInformation Text to display in the installation window. - * @field growlUpdateWindowTitle The title of the update window. - * @field growlUpdateInformation Text to display in the update window. - * @field referenceCount A count of owners of the delegate. - * @field retain Called when GrowlApplicationBridge receives this delegate. - * @field release Called when GrowlApplicationBridge no longer needs this delegate. - * @field growlIsReady Called when GrowlHelperApp is listening for notifications. - * @field growlNotificationWasClicked Called when a Growl notification is clicked. - * @field growlNotificationTimedOut Called when a Growl notification timed out. - */ -struct Growl_Delegate { - /* @discussion This should be sizeof(struct Growl_Delegate). - */ - size_t size; - - /*All of these attributes are optional. - *Optional attributes can be NULL; required attributes that - * are NULL cause setting the Growl delegate to fail. - *XXX - move optional/required status into the discussion for each field - */ - - /* This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * This can be NULL if it is provided elsewhere, namely in an - * auto-discoverable plist file in your app bundle - * (XXX refer to more information on that) or in registrationDictionary. - */ - CFStringRef applicationName; - - /* - * Must contain at least these keys: - * GROWL_NOTIFICATIONS_ALL (CFArray): - * Contains the names of all notifications your application may post. - * - * Can also contain these keys: - * GROWL_NOTIFICATIONS_DEFAULT (CFArray): - * Names of notifications that should be enabled by default. - * If omitted, GROWL_NOTIFICATIONS_ALL will be used. - * GROWL_APP_NAME (CFString): - * Same as the applicationName member of this structure. - * If both are present, the applicationName member shall prevail. - * If this key is present, you may omit applicationName (set it to NULL). - * GROWL_APP_ICON (CFData): - * Same as the iconData member of this structure. - * If both are present, the iconData member shall prevail. - * If this key is present, you may omit iconData (set it to NULL). - * - * If you change the contents of this dictionary after setting the delegate, - * be sure to call Growl_Reregister. - * - * This can be NULL if you have an auto-discoverable plist file in your app - * bundle. (XXX refer to more information on that) - */ - CFDictionaryRef registrationDictionary; - - /* The data can be in any format supported by NSImage. As of - * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and - * PICT formats. - * - * If this is not supplied, Growl will look up your application's icon by - * its application name. - */ - CFDataRef applicationIconData; - - /* Installer display attributes - * - * These four attributes are used by the Growl installer, if this framework - * supports it. - * For any of these being NULL, a localised default will be - * supplied. - */ - - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If Growl is not installed, it will - * be displayed to the user as an explanation of what Growl is and what - * it can do in your application. - * It should probably note that no download is required to install. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationInformation; - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If an older version of Growl is - * installed, it will be displayed to the user as an explanation that an - * updated version of Growl is included in your application and - * no download is required. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateInformation; - - /* This member is provided for use by your retain and release - * callbacks (see below). - * - * GrowlApplicationBridge never directly uses this member. Instead, it - * calls your retain callback (if non-NULL) and your release - * callback (if non-NULL). - */ - unsigned referenceCount; - - //Functions. Currently all of these are optional (any of them can be NULL). - - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRetain and -[NSObject retain].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member would be - * NULL. - * @result A delegate to which GrowlApplicationBridge holds a reference. - */ - void *(*retain)(void *); - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRelease and - * -[NSObject release].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member might be - * free(3). - */ - void (*release)(void *); - - /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was - * launched successfully (or was already running). The application can - * take actions with the knowledge that Growl is installed and functional. - */ - void (*growlIsReady)(void); - - /* Informs the delegate that a Growl notification was clicked. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); - - /* Informs the delegate that a Growl notification timed out. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); -}; - -/*! @struct Growl_Notification - * @abstract Structure describing a Growl notification. - * @discussion XXX - * @field size The size of the notification structure. - * @field name Identifies the notification. - * @field title Short synopsis of the notification. - * @field description Additional text. - * @field iconData An icon for the notification. - * @field priority An indicator of the notification's importance. - * @field reserved Bits reserved for future usage. - * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. - * @field clickContext An identifier to be passed to your click callback when a notification is clicked. - * @field clickCallback A callback to call when the notification is clicked. - */ -struct Growl_Notification { - /* This should be sizeof(struct Growl_Notification). - */ - size_t size; - - /* The notification name distinguishes one type of - * notification from another. The name should be human-readable, as it - * will be displayed in the Growl preference pane. - * - * The name is used in the GROWL_NOTIFICATIONS_ALL and - * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and - * in this member of the Growl_Notification structure. - */ - CFStringRef name; - - /* A notification's title describes the notification briefly. - * It should be easy to read quickly by the user. - */ - CFStringRef title; - - /* The description supplements the title with more - * information. It is usually longer and sometimes involves a list of - * subjects. For example, for a 'Download complete' notification, the - * description might have one filename per line. GrowlMail in Growl 0.6 - * uses a description of '%d new mail(s)' (formatted with the number of - * messages). - */ - CFStringRef description; - - /* The notification icon usually indicates either what - * happened (it may have the same icon as e.g. a toolbar item that - * started the process that led to the notification), or what it happened - * to (e.g. a document icon). - * - * The icon data is optional, so it can be NULL. In that - * case, the application icon is used alone. Not all displays support - * icons. - * - * The data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form - * ats. - */ - CFDataRef iconData; - - /* Priority is new in Growl 0.6, and is represented as a - * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low - * priority, and +2 is Very High priority. - * - * Not all displays support priority. If you do not wish to assign a - * priority to your notification, assign 0. - */ - signed int priority; - - /* These bits are not used in Growl 0.6. Set them to 0. - */ - unsigned reserved: 31; - - /* When the sticky bit is clear, in most displays, - * notifications disappear after a certain amount of time. Sticky - * notifications, however, remain on-screen until the user dismisses them - * explicitly, usually by clicking them. - * - * Sticky notifications were introduced in Growl 0.6. Most notifications - * should not be sticky. Not all displays support sticky notifications, - * and the user may choose in Growl's preference pane to force the - * notification to be sticky or non-sticky, in which case the sticky bit - * in the notification will be ignored. - */ - unsigned isSticky: 1; - - /* If this is not NULL, and your click callback - * is not NULL either, this will be passed to the callback - * when your notification is clicked by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - */ - CFPropertyListRef clickContext; - - /* If this is not NULL, it will be called instead - * of the Growl delegate's click callback when clickContext is - * non-NULL and the notification is clicked on by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - * - * The per-notification click callback is not yet supported as of Growl - * 0.7. - */ - void (*clickCallback)(CFPropertyListRef clickContext); - - CFStringRef identifier; -}; - -#pragma mark - -#pragma mark Easy initialisers - -/*! @defined InitGrowlDelegate - * @abstract Callable macro. Initializes a Growl delegate structure to defaults. - * @discussion Call with a pointer to a struct Growl_Delegate. All of the - * members of the structure will be set to 0 or NULL, except for - * size (which will be set to sizeof(struct Growl_Delegate)) and - * referenceCount (which will be set to 1). - */ -#define InitGrowlDelegate(delegate) \ - do { \ - if (delegate) { \ - (delegate)->size = sizeof(struct Growl_Delegate); \ - (delegate)->applicationName = NULL; \ - (delegate)->registrationDictionary = NULL; \ - (delegate)->applicationIconData = NULL; \ - (delegate)->growlInstallationWindowTitle = NULL; \ - (delegate)->growlInstallationInformation = NULL; \ - (delegate)->growlUpdateWindowTitle = NULL; \ - (delegate)->growlUpdateInformation = NULL; \ - (delegate)->referenceCount = 1U; \ - (delegate)->retain = NULL; \ - (delegate)->release = NULL; \ - (delegate)->growlIsReady = NULL; \ - (delegate)->growlNotificationWasClicked = NULL; \ - (delegate)->growlNotificationTimedOut = NULL; \ - } \ - } while(0) - -/*! @defined InitGrowlNotification - * @abstract Callable macro. Initializes a Growl notification structure to defaults. - * @discussion Call with a pointer to a struct Growl_Notification. All of - * the members of the structure will be set to 0 or NULL, except - * for size (which will be set to - * sizeof(struct Growl_Notification)). - */ -#define InitGrowlNotification(notification) \ - do { \ - if (notification) { \ - (notification)->size = sizeof(struct Growl_Notification); \ - (notification)->name = NULL; \ - (notification)->title = NULL; \ - (notification)->description = NULL; \ - (notification)->iconData = NULL; \ - (notification)->priority = 0; \ - (notification)->reserved = 0U; \ - (notification)->isSticky = false; \ - (notification)->clickContext = NULL; \ - (notification)->clickCallback = NULL; \ - (notification)->identifier = NULL; \ - } \ - } while(0) - -#pragma mark - -#pragma mark Public API - -// @functiongroup Managing the Growl delegate - -/*! @function Growl_SetDelegate - * @abstract Replaces the current Growl delegate with a new one, or removes - * the Growl delegate. - * @param newDelegate - * @result Returns false and does nothing else if a pointer that was passed in - * is unsatisfactory (because it is non-NULL, but at least one - * required member of it is NULL). Otherwise, sets or unsets the - * delegate and returns true. - * @discussion When newDelegate is non-NULL, sets - * the delegate to newDelegate. When it is NULL, - * the current delegate will be unset, and no delegate will be in place. - * - * It is legal for newDelegate to be the current delegate; - * nothing will happen, and Growl_SetDelegate will return true. It is also - * legal for it to be NULL, as described above; again, it will - * return true. - * - * If there was a delegate in place before the call, Growl_SetDelegate will - * call the old delegate's release member if it was non-NULL. If - * newDelegate is non-NULL, Growl_SetDelegate will - * call newDelegate->retain, and set the delegate to its return - * value. - * - * If you are using Growl-WithInstaller.framework, and an older version of - * Growl is installed on the user's system, the user will automatically be - * prompted to update. - * - * GrowlApplicationBridge currently does not copy this structure, nor does it - * retain any of the CF objects in the structure (it regards the structure as - * a container that retains the objects when they are added and releases them - * when they are removed or the structure is destroyed). Also, - * GrowlApplicationBridge currently does not modify any member of the - * structure, except possibly the referenceCount by calling the retain and - * release members. - */ -GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); - -/*! @function Growl_GetDelegate - * @abstract Returns the current Growl delegate, if any. - * @result The current Growl delegate. - * @discussion Returns the last pointer passed into Growl_SetDelegate, or - * NULL if no such call has been made. - * - * This function follows standard Core Foundation reference-counting rules. - * Because it is a Get function, not a Copy function, it will not retain the - * delegate on your behalf. You are responsible for retaining and releasing - * the delegate as needed. - */ -GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); - -#pragma mark - - -// @functiongroup Posting Growl notifications - -/*! @function Growl_PostNotification - * @abstract Posts a Growl notification. - * @param notification The notification to post. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * NULL (or 0 or false as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. - * If the user cancels, this function will have no effect until the next - * application session, at which time when it is called the user will be - * prompted again. The user is also given the option to not be prompted again. - * If the user does choose to install Growl, the requested notification will - * be displayed once Growl is installed and running. - */ -GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); - -/*! @function Growl_PostNotificationWithDictionary -* @abstract Notifies using a userInfo dictionary suitable for passing to -* CFDistributedNotificationCenter. -* @param userInfo The dictionary to notify with. -* @discussion Before Growl 0.6, your application would have posted -* notifications using CFDistributedNotificationCenter by creating a userInfo -* dictionary with the notification data. This had the advantage of allowing -* you to add other data to the dictionary for programs besides Growl that -* might be listening. -* -* This function allows you to use such dictionaries without being restricted -* to using CFDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. -*/ -GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); - -/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext - * @abstract Posts a Growl notification using parameter values. - * @param title The title of the notification. - * @param description The description of the notification. - * @param notificationName The name of the notification as listed in the - * registration dictionary. - * @param iconData Data representing a notification icon. Can be NULL. - * @param priority The priority of the notification (-2 to +2, with -2 - * being Very Low and +2 being Very High). - * @param isSticky If true, requests that this notification wait for a - * response from the user. - * @param clickContext An object to pass to the clickCallback, if any. Can - * be NULL, in which case the clickCallback is not called. - * @discussion Creates a temporary Growl_Notification, fills it out with the - * supplied information, and calls Growl_PostNotification on it. - * See struct Growl_Notification and Growl_PostNotification for more - * information. - * - * The icon data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. - */ -GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( - /*inhale*/ - CFStringRef title, - CFStringRef description, - CFStringRef notificationName, - CFDataRef iconData, - signed int priority, - Boolean isSticky, - CFPropertyListRef clickContext); - -#pragma mark - - -// @functiongroup Registering - -/*! @function Growl_RegisterWithDictionary - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this function with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass NULL, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this function, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This function is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This function was introduced in Growl.framework 0.7. - * @result false if registration failed (e.g. if Growl isn't installed). - */ -GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); - -/*! @function Growl_Reregister - * @abstract Updates your registration with Growl. - * @discussion If your application changes the contents of the - * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the - * Growl delegate, or if it changes the value of that member, or if it - * changes the contents of its auto-discoverable plist, call this function - * to have Growl update its registration information for your application. - * - * Otherwise, this function does not normally need to be called. If you're - * using a delegate, your application will be registered when you set the - * delegate if both the delegate and its registrationDictionary member are - * non-NULL. - * - * This function is now implemented using - * Growl_RegisterWithDictionary. - */ -GROWL_EXPORT void Growl_Reregister(void); - -#pragma mark - - -/*! @function Growl_SetWillRegisterWhenGrowlIsReady - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * growlIsReady callback, if it has one). If this function is - * called with true, one of those tasks will be to reregister - * with Growl (in the manner of Growl_Reregister). - * - * This attribute is automatically set back to false - * (the default) after every GROWL_IS_READY notification. - * @param flag true if you want GrowlApplicationBridge to register with - * Growl when next it is ready; false if not. - */ -GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); -/*! @function Growl_WillRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result true if GrowlApplicationBridge will register with - * Growl when next it posts GROWL_IS_READY; false if not. - */ -GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); - -#pragma mark - - -// @functiongroup Obtaining registration dictionaries - -/*! @function Growl_CopyRegistrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * registrationDictionary member is NULL, this - * function returns NULL. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); - -/*! @function Growl_CopyRegistrationDictionaryFromBundle - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This function looks in a bundle for an auto-discoverable - * registration dictionary file using CFBundleCopyResourceURL. - * If it finds one, it loads the file using CFPropertyList and - * returns the result. - * - * If you pass NULL as the bundle, the main bundle is examined. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary: or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); - -/*! @function Growl_CreateBestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This function creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge examines the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this function returns NULL. - * - * Second, GrowlApplicationBridge calls - * Growl_CreateRegistrationDictionaryByFillingInDictionary with - * whatever dictionary was obtained. The result of that function is the - * result of this function. - * - * GrowlApplicationBridge uses this function when you call - * Growl_SetDelegate, or when you call - * Growl_RegisterWithDictionary with NULL. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); - -#pragma mark - - -// @functiongroup Filling in registration dictionaries - -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If NULL, any missing keys are filled in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); - -#pragma mark - - -// @functiongroup Querying Growl's status - -/*! @function Growl_IsInstalled - * @abstract Determines whether the Growl prefpane and its helper app are - * installed. - * @result Returns true if Growl is installed, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsInstalled(void); - -/*! @function Growl_IsRunning - * @abstract Cycles through the process list to find whether GrowlHelperApp - * is running. - * @result Returns true if Growl is running, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsRunning(void); - -#pragma mark - - -// @functiongroup Launching Growl - -/*! @typedef GrowlLaunchCallback - * @abstract Callback to notify you that Growl is running. - * @param context The context pointer passed to Growl_LaunchIfInstalled. - * @discussion Growl_LaunchIfInstalled calls this callback function if Growl - * was already running or if it launched Growl successfully. - */ -typedef void (*GrowlLaunchCallback)(void *context); - -/*! @function Growl_LaunchIfInstalled - * @abstract Launches GrowlHelperApp if it is not already running. - * @param callback A callback function which will be called if Growl was successfully - * launched or was already running. Can be NULL. - * @param context The context pointer to pass to the callback. Can be NULL. - * @result Returns true if Growl was successfully launched or was already - * running; returns false and does not call the callback otherwise. - * @discussion Returns true and calls the callback (if the callback is not - * NULL) if the Growl helper app began launching or was already - * running. Returns false and performs no other action if Growl could not be - * launched (e.g. because the Growl preference pane is not properly installed). - * - * If Growl_CreateBestRegistrationDictionary returns - * non-NULL, this function will register with Growl atomically. - * - * The callback should take a single argument; this is to allow applications - * to have context-relevant information passed back. It is perfectly - * acceptable for context to be NULL. The callback itself can be - * NULL if you don't want one. - */ -GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); - -#pragma mark - -#pragma mark Constants - -/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER - * @abstract The CFBundleIdentifier of the Growl preference pane bundle. - * @discussion GrowlApplicationBridge uses this to determine whether Growl is - * currently installed, by searching for the Growl preference pane. Your - * application probably does not need to use this macro itself. - */ -#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER -#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") -#endif - -__END_DECLS - -#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,575 +0,0 @@ -// -// GrowlApplicationBridge.h -// Growl -// -// Created by Evan Schoenberg on Wed Jun 16 2004. -// Copyright 2004-2006 The Growl Project. All rights reserved. -// - -/*! - * @header GrowlApplicationBridge.h - * @abstract Defines the GrowlApplicationBridge class. - * @discussion This header defines the GrowlApplicationBridge class as well as - * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. - */ - -#ifndef __GrowlApplicationBridge_h__ -#define __GrowlApplicationBridge_h__ - -#import -#import -#import "GrowlDefines.h" - -//Forward declarations -@protocol GrowlApplicationBridgeDelegate; - -//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) -#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @class GrowlApplicationBridge - * @abstract A class used to interface with Growl. - * @discussion This class provides a means to interface with Growl. - * - * Currently it provides a way to detect if Growl is installed and launch the - * GrowlHelperApp if it's not already running. - */ -@interface GrowlApplicationBridge : NSObject { - -} - -/*! - * @method isGrowlInstalled - * @abstract Detects whether Growl is installed. - * @discussion Determines if the Growl prefpane and its helper app are installed. - * @result Returns YES if Growl is installed, NO otherwise. - */ -+ (BOOL) isGrowlInstalled; - -/*! - * @method isGrowlRunning - * @abstract Detects whether GrowlHelperApp is currently running. - * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. - * @result Returns YES if GrowlHelperApp is running, NO otherwise. - */ -+ (BOOL) isGrowlRunning; - -#pragma mark - - -/*! - * @method setGrowlDelegate: - * @abstract Set the object which will be responsible for providing and receiving Growl information. - * @discussion This must be called before using GrowlApplicationBridge. - * - * The methods in the GrowlApplicationBridgeDelegate protocol are required - * and return the basic information needed to register with Growl. - * - * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol - * informal protocol are individually optional. They provide a greater - * degree of interaction between the application and growl such as informing - * the application when one of its Growl notifications is clicked by the user. - * - * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol - * informal protocol are individually optional and are only applicable when - * using the Growl-WithInstaller.framework which allows for automated Growl - * installation. - * - * When this method is called, data will be collected from inDelegate, Growl - * will be launched if it is not already running, and the application will be - * registered with Growl. - * - * If using the Growl-WithInstaller framework, if Growl is already installed - * but this copy of the framework has an updated version of Growl, the user - * will be prompted to update automatically. - * - * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. - */ -+ (void) setGrowlDelegate:(NSObject *)inDelegate; - -/*! - * @method growlDelegate - * @abstract Return the object responsible for providing and receiving Growl information. - * @discussion See setGrowlDelegate: for details. - * @result The Growl delegate. - */ -+ (NSObject *) growlDelegate; - -#pragma mark - - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext; - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext - identifier:(NSString *)identifier; - -/*! @method notifyWithDictionary: - * @abstract Notifies using a userInfo dictionary suitable for passing to - * NSDistributedNotificationCenter. - * @param userInfo The dictionary to notify with. - * @discussion Before Growl 0.6, your application would have posted - * notifications using NSDistributedNotificationCenter by - * creating a userInfo dictionary with the notification data. This had the - * advantage of allowing you to add other data to the dictionary for programs - * besides Growl that might be listening. - * - * This method allows you to use such dictionaries without being restricted - * to using NSDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. - */ -+ (void) notifyWithDictionary:(NSDictionary *)userInfo; - -#pragma mark - - -/*! @method registerWithDictionary: - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this method with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass nil, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this method, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This method is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * -growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This method was introduced in Growl.framework 0.7. - */ -+ (BOOL) registerWithDictionary:(NSDictionary *)regDict; - -/*! @method reregisterGrowlNotifications - * @abstract Reregister the notifications for this application. - * @discussion This method does not normally need to be called. If your - * application changes what notifications it is registering with Growl, call - * this method to have the Growl delegate's - * -registrationDictionaryForGrowl method called again and the - * Growl registration information updated. - * - * This method is now implemented using -registerWithDictionary:. - */ -+ (void) reregisterGrowlNotifications; - -#pragma mark - - -/*! @method setWillRegisterWhenGrowlIsReady: - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * -growlIsReady method, if it has one). If this method is - * called with YES, one of those tasks will be to reregister - * with Growl (in the manner of -reregisterGrowlNotifications). - * - * This attribute is automatically set back to NO (the default) - * after every GROWL_IS_READY notification. - * @param flag YES if you want GrowlApplicationBridge to register with - * Growl when next it is ready; NO if not. - */ -+ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; -/*! @method willRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result YES if GrowlApplicationBridge will register with Growl - * when next it posts GROWL_IS_READY; NO if not. - */ -+ (BOOL) willRegisterWhenGrowlIsReady; - -#pragma mark - - -/*! @method registrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * -registrationDictionaryForGrowl method returns - * nil, this method returns nil. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromDelegate; - -/*! @method registrationDictionaryFromBundle: - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This method looks in a bundle for an auto-discoverable - * registration dictionary file using -[NSBundle - * pathForResource:ofType:]. If it finds one, it loads the file using - * +[NSDictionary dictionaryWithContentsOfFile:] and returns the - * result. - * - * If you pass nil as the bundle, the main bundle is examined. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; - -/*! @method bestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This method creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge contacts the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this method returns nil. - * - * Second, GrowlApplicationBridge calls - * +registrationDictionaryByFillingInDictionary: with whatever - * dictionary was obtained. The result of that method is the result of this - * method. - * - * GrowlApplicationBridge uses this method when you call - * +setGrowlDelegate:, or when you call - * +registerWithDictionary: with nil. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) bestRegistrationDictionary; - -#pragma mark - - -/*! @method registrationDictionaryByFillingInDictionary: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; -/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If nil, any missing keys are filled in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -+ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; - -+ (NSDictionary *) frameworkInfoDictionary; -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @protocol GrowlApplicationBridgeDelegate - * @abstract Required protocol for the Growl delegate. - * @discussion The methods in this protocol are required and are called - * automatically as needed by GrowlApplicationBridge. See - * +[GrowlApplicationBridge setGrowlDelegate:]. - * See also GrowlApplicationBridgeDelegate_InformalProtocol. - */ - -@protocol GrowlApplicationBridgeDelegate - -// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. - -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) - * @abstract Methods which may be optionally implemented by the GrowlDelegate. - * @discussion The methods in this informal protocol will only be called if implemented by the delegate. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) - -/*! - * @method registrationDictionaryForGrowl - * @abstract Return the dictionary used to register this application with Growl. - * @discussion The returned dictionary gives Growl the complete list of - * notifications this application will ever send, and it also specifies which - * notifications should be enabled by default. Each is specified by an array - * of NSString objects. - * - * For most applications, these two arrays can be the same (if all sent - * notifications should be displayed by default). - * - * The NSString objects of these arrays will correspond to the - * notificationName: parameter passed in - * +[GrowlApplicationBridge - * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. - * - * The dictionary should have the required key object pairs: - * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects - * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects - * - * The dictionary may have the following key object pairs: - * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name - * - * You do not need to implement this method if you have an auto-discoverable - * plist file in your app bundle. (XXX refer to more information on that) - * - * @result The NSDictionary to use for registration. - */ -- (NSDictionary *) registrationDictionaryForGrowl; - -/*! - * @method applicationNameForGrowl - * @abstract Return the name of this application which will be used for Growl bookkeeping. - * @discussion This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * You do not need to implement this method if you are providing the - * application name elsewhere, meaning in an auto-discoverable plist file in - * your app bundle (XXX refer to more information on that) or in the result - * of -registrationDictionaryForGrowl. - * - * @result The name of the application using Growl. - */ -- (NSString *) applicationNameForGrowl; - -/*! - * @method applicationIconForGrowl - * @abstract Return the NSImage to treat as the application icon. - * @discussion The delegate may optionally return an NSImage - * object to use as the application icon. If this method is not implemented, - * {{{-applicationIconDataForGrowl}}} is tried. If that method is not - * implemented, the application's own icon is used. Neither method is - * generally needed. - * @result The NSImage to treat as the application icon. - */ -- (NSImage *) applicationIconForGrowl; - -/*! - * @method applicationIconDataForGrowl - * @abstract Return the NSData to treat as the application icon. - * @discussion The delegate may optionally return an NSData - * object to use as the application icon; if this is not implemented, the - * application's own icon is used. This is not generally needed. - * @result The NSData to treat as the application icon. - * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. - */ -- (NSData *) applicationIconDataForGrowl; - -/*! - * @method growlIsReady - * @abstract Informs the delegate that Growl has launched. - * @discussion Informs the delegate that Growl (specifically, the - * GrowlHelperApp) was launched successfully. The application can take actions - * with the knowledge that Growl is installed and functional. - */ -- (void) growlIsReady; - -/*! - * @method growlNotificationWasClicked: - * @abstract Informs the delegate that a Growl notification was clicked. - * @discussion Informs the delegate that a Growl notification was clicked. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationWasClicked:(id)clickContext; - -/*! - * @method growlNotificationTimedOut: - * @abstract Informs the delegate that a Growl notification timed out. - * @discussion Informs the delegate that a Growl notification timed out. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationTimedOut:(id)clickContext; - -@end - -#pragma mark - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. - * @discussion The methods in this informal protocol will only be called if - * implemented by the delegate. They allow greater control of the information - * presented to the user when installing or upgrading Growl from within your - * application when using Growl-WithInstaller.framework. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - -/*! - * @method growlInstallationWindowTitle - * @abstract Return the title of the installation window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlInstallationWindowTitle; - -/*! - * @method growlUpdateWindowTitle - * @abstract Return the title of the upgrade window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlUpdateWindowTitle; - -/*! - * @method growlInstallationInformation - * @abstract Return the information to display when installing. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation of what Growl is and what it can do in your application. It - * should probably note that no download is required to install. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlInstallationInformation; - -/*! - * @method growlUpdateInformation - * @abstract Return the information to display when upgrading. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation that an updated version of Growl is included in your - * application and no download is required. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlUpdateInformation; - -@end - -//private -@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) -+ (void) _userChoseNotToInstallGrowl; -@end - -#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlDefines.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlDefines.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/GrowlDefines.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,348 +0,0 @@ -// -// GrowlDefines.h -// - -#ifndef _GROWLDEFINES_H -#define _GROWLDEFINES_H - -#ifdef __OBJC__ -#define XSTR(x) (@x) -#define STRING_TYPE NSString * -#else -#define XSTR CFSTR -#define STRING_TYPE CFStringRef -#endif - -/*! @header GrowlDefines.h - * @abstract Defines all the notification keys. - * @discussion Defines all the keys used for registration with Growl and for - * Growl notifications. - * - * Most applications should use the functions or methods of Growl.framework - * instead of posting notifications such as those described here. - * @updated 2004-01-25 - */ - -// UserInfo Keys for Registration -#pragma mark UserInfo Keys for Registration - -/*! @group Registration userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. - * @discussion The values of these keys describe the application and the - * notifications it may post. - * - * Your application must register with Growl before it can post Growl - * notifications (and have them not be ignored). However, as of Growl 0.6, - * posting GROWL_APP_REGISTRATION notifications directly is no longer the - * preferred way to register your application. Your application should instead - * use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ - -/*! @defined GROWL_APP_NAME - * @abstract The name of your application. - * @discussion The name of your application. This should remain stable between - * different versions and incarnations of your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - */ -#define GROWL_APP_NAME XSTR("ApplicationName") -/*! @defined GROWL_APP_ID - * @abstract The bundle identifier of your application. - * @discussion The bundle identifier of your application. This key should - * be unique for your application while there may be several applications - * with the same GROWL_APP_NAME. - * This key is optional. - */ -#define GROWL_APP_ID XSTR("ApplicationId") -/*! @defined GROWL_APP_ICON - * @abstract The image data for your application's icon. - * @discussion Image data representing your application's icon. This may be - * superimposed on a notification icon as a badge, used as the notification - * icon when a notification-specific icon is not supplied, or ignored - * altogether, depending on the display. Must be in a format supported by - * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_APP_ICON XSTR("ApplicationIcon") -/*! @defined GROWL_NOTIFICATIONS_DEFAULT - * @abstract The array of notifications to turn on by default. - * @discussion These are the names of the notifications that should be enabled - * by default when your application registers for the first time. If your - * application reregisters, Growl will look here for any new notification - * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. - */ -#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") -/*! @defined GROWL_NOTIFICATIONS_ALL - * @abstract The array of all notifications your application can send. - * @discussion These are the names of all of the notifications that your - * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good - * notification names. - */ -#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") -/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS - * @abstract A dictionary of human-readable names for your notifications. - * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL - * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. - * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. - * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. - * - * This key is optional. - */ -#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") -/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS -* @abstract A dictionary of descriptions of _when_ each notification occurs -* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are -* descriptions of _when_ each notification occurs, such as "You received a new mail message" or -* "A file finished downloading". -* -* This key is optional. -*/ -#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") - -/*! @defined GROWL_TICKET_VERSION - * @abstract The version of your registration ticket. - * @discussion Include this key in a ticket plist file that you put in your - * application bundle for auto-discovery. The current ticket version is 1. - */ -#define GROWL_TICKET_VERSION XSTR("TicketVersion") -// UserInfo Keys for Notifications -#pragma mark UserInfo Keys for Notifications - -/*! @group Notification userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. - * @discussion The values of these keys describe the content of a Growl - * notification. - * - * Not all of these keys are supported by all displays. Only the name, title, - * and description of a notification are universal. Most of the built-in - * displays do support all of these keys, and most other visual displays - * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays - * support only textual data. - */ - -/*! @defined GROWL_NOTIFICATION_NAME - * @abstract The name of the notification. - * @discussion The name of the notification. Note that if you do not define - * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name - * will the one displayed within the Growl preference pane and should be human-readable. - */ -#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") -/*! @defined GROWL_NOTIFICATION_TITLE - * @abstract The title to display in the notification. - * @discussion The title of the notification. Should be very brief. - * The title usually says what happened, e.g. "Download complete". - */ -#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") -/*! @defined GROWL_NOTIFICATION_DESCRIPTION - * @abstract The description to display in the notification. - * @discussion The description should be longer and more verbose than the title. - * The description usually tells the subject of the action, - * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". - */ -#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") -/*! @defined GROWL_NOTIFICATION_ICON - * @discussion Image data for the notification icon. Must be in a format - * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") -/*! @defined GROWL_NOTIFICATION_APP_ICON - * @discussion Image data for the application icon, in case GROWL_APP_ICON does - * not apply for some reason. Must be in a format supported by NSImage, such - * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") -/*! @defined GROWL_NOTIFICATION_PRIORITY - * @discussion The priority of the notification as an integer number from - * -2 to +2 (+2 being highest). - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") -/*! @defined GROWL_NOTIFICATION_STICKY - * @discussion A Boolean number controlling whether the notification is sticky. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") -/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT - * @abstract Identifies which notification was clicked. - * @discussion An identifier for the notification for clicking purposes. - * - * This will be passed back to the application when the notification is - * clicked. It must be plist-encodable (a data, dictionary, array, number, or - * string object), and it should be unique for each notification you post. - * A good click context would be a UUID string returned by NSProcessInfo or - * CFUUID. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") - -/*! @defined GROWL_DISPLAY_PLUGIN - * @discussion The name of a display plugin which should be used for this notification. - * Optional. If this key is not set or the specified display plugin does not - * exist, the display plugin stored in the application ticket is used. This key - * allows applications to use different default display plugins for their - * notifications. The user can still override those settings in the preference - * pane. - */ -#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") - -/*! @defined GROWL_NOTIFICATION_IDENTIFIER - * @abstract An identifier for the notification for coalescing purposes. - * Notifications with the same identifier fall into the same class; only - * the last notification of a class is displayed on the screen. If a - * notification of the same class is currently being displayed, it is - * replaced by this notification. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") - -/*! @defined GROWL_APP_PID - * @abstract The process identifier of the process which sends this - * notification. If this field is set, the application will only receive - * clicked and timed out notifications which originate from this process. - * - * Optional. - */ -#define GROWL_APP_PID XSTR("ApplicationPID") - -/*! @defined GROWL_NOTIFICATION_PROGRESS -* @abstract If this key is set, it should contain a double value wrapped -* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). -* If this is key is not set, no progress bar is shown. -* -* Optional. Not supported by all display plugins. -*/ -#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") - -// Notifications -#pragma mark Notifications - -/*! @group Notification names */ -/* @abstract Names of distributed notifications used by Growl. - * @discussion These are notifications used by applications (directly or - * indirectly) to interact with Growl, and by Growl for interaction between - * its components. - * - * Most of these should no longer be used in Growl 0.6 and later, in favor of - * Growl.framework's GrowlApplicationBridge APIs. - */ - -/*! @defined GROWL_APP_REGISTRATION - * @abstract The distributed notification for registering your application. - * @discussion This is the name of the distributed notification that can be - * used to register applications with Growl. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_APP_NAME
  • - *
  • GROWL_APP_ICON
  • - *
  • GROWL_NOTIFICATIONS_ALL
  • - *
  • GROWL_NOTIFICATIONS_DEFAULT
  • - *
- * - * No longer recommended as of Growl 0.6. An alternate method of registering - * is to use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ -#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") -/*! @defined GROWL_APP_REGISTRATION_CONF - * @abstract The distributed notification for confirming registration. - * @discussion The name of the distributed notification sent to confirm the - * registration. Used by the Growl preference pane. Your application probably - * does not need to use this notification. - */ -#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") -/*! @defined GROWL_NOTIFICATION - * @abstract The distributed notification for Growl notifications. - * @discussion This is what it all comes down to. This is the name of the - * distributed notification that your application posts to actually send a - * Growl notification. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_NOTIFICATION_NAME (required)
  • - *
  • GROWL_NOTIFICATION_TITLE (required)
  • - *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • - *
  • GROWL_NOTIFICATION_ICON
  • - *
  • GROWL_NOTIFICATION_APP_ICON
  • - *
  • GROWL_NOTIFICATION_PRIORITY
  • - *
  • GROWL_NOTIFICATION_STICKY
  • - *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • - *
  • GROWL_APP_NAME (required)
  • - *
- * - * No longer recommended as of Growl 0.6. Three alternate methods of posting - * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and - * Growl_PostNotification. - */ -#define GROWL_NOTIFICATION XSTR("GrowlNotification") -/*! @defined GROWL_SHUTDOWN -* @abstract The distributed notification name that tells Growl to shutdown. -* @discussion The Growl preference pane posts this notification when the -* "Stop Growl" button is clicked. -*/ -#define GROWL_SHUTDOWN XSTR("GrowlShutdown") -/*! @defined GROWL_PING - * @abstract A distributed notification to check whether Growl is running. - * @discussion This is used by the Growl preference pane. If it receives a - * GROWL_PONG, the preference pane takes this to mean that Growl is running. - */ -#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") -/*! @defined GROWL_PONG - * @abstract The distributed notification sent in reply to GROWL_PING. - * @discussion GrowlHelperApp posts this in reply to GROWL_PING. - */ -#define GROWL_PONG XSTR("What Do You Want From Me, Woman") -/*! @defined GROWL_IS_READY - * @abstract The distributed notification sent when Growl starts up. - * @discussion GrowlHelperApp posts this when it has begin listening on all of - * its sources for new notifications. GrowlApplicationBridge (in - * Growl.framework), upon receiving this notification, reregisters using the - * registration dictionary supplied by its delegate. - */ -#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") -/*! @defined GROWL_NOTIFICATION_CLICKED - * @abstract The distributed notification sent when a supported notification is clicked. - * @discussion When a Growl notification with a click context is clicked on by - * the user, Growl posts this distributed notification. - * The GrowlApplicationBridge responds to this notification by calling a - * callback in its delegate. - */ -#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") -#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") - -/*! @group Other symbols */ -/* Symbols which don't fit into any of the other categories. */ - -/*! @defined GROWL_KEY_CLICKED_CONTEXT - * @abstract Used internally as the key for the clickedContext passed over DNC. - * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the - * click context that was supplied in the original notification. - */ -#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") -/*! @defined GROWL_REG_DICT_EXTENSION - * @abstract The filename extension for registration dictionaries. - * @discussion The GrowlApplicationBridge in Growl.framework registers with - * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) - * and opening it in the GrowlHelperApp. This happens whether or not Growl is - * running; if it was stopped, it quits immediately without listening for - * notifications. - */ -#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") - - -#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" - -#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/Growl.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/Growl.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Headers/Growl.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -#include "GrowlDefines.h" - -#ifdef __OBJC__ -# include "GrowlApplicationBridge.h" -#endif -#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - Growl - CFBundleIdentifier - com.growl.growlframework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.2.1 - CFBundleSignature - GRRR - CFBundleVersion - 1.2.1 - NSPrincipalClass - GrowlApplicationBridge - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Growl differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,780 +0,0 @@ -// -// GrowlApplicationBridge-Carbon.h -// Growl -// -// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. -// Based on GrowlApplicationBridge.h by Evan Schoenberg. -// This source code is in the public domain. You may freely link it into any -// program. -// - -#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ -#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ - -#include -#include - -#ifndef GROWL_EXPORT -#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE -#endif - -/*! @header GrowlApplicationBridge-Carbon.h - * @abstract Declares an API that Carbon applications can use to interact with Growl. - * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX - * to Growl (such as your application's name and what notifications it may - * post) and to provide information to your application (such as that Growl - * is listening for notifications or that a notification has been clicked). - * - * You can set the Growldelegate with Growl_SetDelegate and find out the - * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more - * information about the delegate. - */ - -__BEGIN_DECLS - -/*! @struct Growl_Delegate - * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. - * @discussion The Growl delegate provides your interface to - * GrowlApplicationBridge. When GrowlApplicationBridge needs information about - * your application, it looks for it in the delegate; when Growl or the user - * does something that you might be interested in, GrowlApplicationBridge - * looks for a callback in the delegate and calls it if present - * (meaning, if it is not NULL). - * XXX on all of that - * @field size The size of the delegate structure. - * @field applicationName The name of your application. - * @field registrationDictionary A dictionary describing your application and the notifications it can send out. - * @field applicationIconData Your application's icon. - * @field growlInstallationWindowTitle The title of the installation window. - * @field growlInstallationInformation Text to display in the installation window. - * @field growlUpdateWindowTitle The title of the update window. - * @field growlUpdateInformation Text to display in the update window. - * @field referenceCount A count of owners of the delegate. - * @field retain Called when GrowlApplicationBridge receives this delegate. - * @field release Called when GrowlApplicationBridge no longer needs this delegate. - * @field growlIsReady Called when GrowlHelperApp is listening for notifications. - * @field growlNotificationWasClicked Called when a Growl notification is clicked. - * @field growlNotificationTimedOut Called when a Growl notification timed out. - */ -struct Growl_Delegate { - /* @discussion This should be sizeof(struct Growl_Delegate). - */ - size_t size; - - /*All of these attributes are optional. - *Optional attributes can be NULL; required attributes that - * are NULL cause setting the Growl delegate to fail. - *XXX - move optional/required status into the discussion for each field - */ - - /* This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * This can be NULL if it is provided elsewhere, namely in an - * auto-discoverable plist file in your app bundle - * (XXX refer to more information on that) or in registrationDictionary. - */ - CFStringRef applicationName; - - /* - * Must contain at least these keys: - * GROWL_NOTIFICATIONS_ALL (CFArray): - * Contains the names of all notifications your application may post. - * - * Can also contain these keys: - * GROWL_NOTIFICATIONS_DEFAULT (CFArray): - * Names of notifications that should be enabled by default. - * If omitted, GROWL_NOTIFICATIONS_ALL will be used. - * GROWL_APP_NAME (CFString): - * Same as the applicationName member of this structure. - * If both are present, the applicationName member shall prevail. - * If this key is present, you may omit applicationName (set it to NULL). - * GROWL_APP_ICON (CFData): - * Same as the iconData member of this structure. - * If both are present, the iconData member shall prevail. - * If this key is present, you may omit iconData (set it to NULL). - * - * If you change the contents of this dictionary after setting the delegate, - * be sure to call Growl_Reregister. - * - * This can be NULL if you have an auto-discoverable plist file in your app - * bundle. (XXX refer to more information on that) - */ - CFDictionaryRef registrationDictionary; - - /* The data can be in any format supported by NSImage. As of - * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and - * PICT formats. - * - * If this is not supplied, Growl will look up your application's icon by - * its application name. - */ - CFDataRef applicationIconData; - - /* Installer display attributes - * - * These four attributes are used by the Growl installer, if this framework - * supports it. - * For any of these being NULL, a localised default will be - * supplied. - */ - - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If Growl is not installed, it will - * be displayed to the user as an explanation of what Growl is and what - * it can do in your application. - * It should probably note that no download is required to install. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationInformation; - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If an older version of Growl is - * installed, it will be displayed to the user as an explanation that an - * updated version of Growl is included in your application and - * no download is required. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateInformation; - - /* This member is provided for use by your retain and release - * callbacks (see below). - * - * GrowlApplicationBridge never directly uses this member. Instead, it - * calls your retain callback (if non-NULL) and your release - * callback (if non-NULL). - */ - unsigned referenceCount; - - //Functions. Currently all of these are optional (any of them can be NULL). - - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRetain and -[NSObject retain].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member would be - * NULL. - * @result A delegate to which GrowlApplicationBridge holds a reference. - */ - void *(*retain)(void *); - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRelease and - * -[NSObject release].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member might be - * free(3). - */ - void (*release)(void *); - - /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was - * launched successfully (or was already running). The application can - * take actions with the knowledge that Growl is installed and functional. - */ - void (*growlIsReady)(void); - - /* Informs the delegate that a Growl notification was clicked. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); - - /* Informs the delegate that a Growl notification timed out. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); -}; - -/*! @struct Growl_Notification - * @abstract Structure describing a Growl notification. - * @discussion XXX - * @field size The size of the notification structure. - * @field name Identifies the notification. - * @field title Short synopsis of the notification. - * @field description Additional text. - * @field iconData An icon for the notification. - * @field priority An indicator of the notification's importance. - * @field reserved Bits reserved for future usage. - * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. - * @field clickContext An identifier to be passed to your click callback when a notification is clicked. - * @field clickCallback A callback to call when the notification is clicked. - */ -struct Growl_Notification { - /* This should be sizeof(struct Growl_Notification). - */ - size_t size; - - /* The notification name distinguishes one type of - * notification from another. The name should be human-readable, as it - * will be displayed in the Growl preference pane. - * - * The name is used in the GROWL_NOTIFICATIONS_ALL and - * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and - * in this member of the Growl_Notification structure. - */ - CFStringRef name; - - /* A notification's title describes the notification briefly. - * It should be easy to read quickly by the user. - */ - CFStringRef title; - - /* The description supplements the title with more - * information. It is usually longer and sometimes involves a list of - * subjects. For example, for a 'Download complete' notification, the - * description might have one filename per line. GrowlMail in Growl 0.6 - * uses a description of '%d new mail(s)' (formatted with the number of - * messages). - */ - CFStringRef description; - - /* The notification icon usually indicates either what - * happened (it may have the same icon as e.g. a toolbar item that - * started the process that led to the notification), or what it happened - * to (e.g. a document icon). - * - * The icon data is optional, so it can be NULL. In that - * case, the application icon is used alone. Not all displays support - * icons. - * - * The data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form - * ats. - */ - CFDataRef iconData; - - /* Priority is new in Growl 0.6, and is represented as a - * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low - * priority, and +2 is Very High priority. - * - * Not all displays support priority. If you do not wish to assign a - * priority to your notification, assign 0. - */ - signed int priority; - - /* These bits are not used in Growl 0.6. Set them to 0. - */ - unsigned reserved: 31; - - /* When the sticky bit is clear, in most displays, - * notifications disappear after a certain amount of time. Sticky - * notifications, however, remain on-screen until the user dismisses them - * explicitly, usually by clicking them. - * - * Sticky notifications were introduced in Growl 0.6. Most notifications - * should not be sticky. Not all displays support sticky notifications, - * and the user may choose in Growl's preference pane to force the - * notification to be sticky or non-sticky, in which case the sticky bit - * in the notification will be ignored. - */ - unsigned isSticky: 1; - - /* If this is not NULL, and your click callback - * is not NULL either, this will be passed to the callback - * when your notification is clicked by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - */ - CFPropertyListRef clickContext; - - /* If this is not NULL, it will be called instead - * of the Growl delegate's click callback when clickContext is - * non-NULL and the notification is clicked on by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - * - * The per-notification click callback is not yet supported as of Growl - * 0.7. - */ - void (*clickCallback)(CFPropertyListRef clickContext); - - CFStringRef identifier; -}; - -#pragma mark - -#pragma mark Easy initialisers - -/*! @defined InitGrowlDelegate - * @abstract Callable macro. Initializes a Growl delegate structure to defaults. - * @discussion Call with a pointer to a struct Growl_Delegate. All of the - * members of the structure will be set to 0 or NULL, except for - * size (which will be set to sizeof(struct Growl_Delegate)) and - * referenceCount (which will be set to 1). - */ -#define InitGrowlDelegate(delegate) \ - do { \ - if (delegate) { \ - (delegate)->size = sizeof(struct Growl_Delegate); \ - (delegate)->applicationName = NULL; \ - (delegate)->registrationDictionary = NULL; \ - (delegate)->applicationIconData = NULL; \ - (delegate)->growlInstallationWindowTitle = NULL; \ - (delegate)->growlInstallationInformation = NULL; \ - (delegate)->growlUpdateWindowTitle = NULL; \ - (delegate)->growlUpdateInformation = NULL; \ - (delegate)->referenceCount = 1U; \ - (delegate)->retain = NULL; \ - (delegate)->release = NULL; \ - (delegate)->growlIsReady = NULL; \ - (delegate)->growlNotificationWasClicked = NULL; \ - (delegate)->growlNotificationTimedOut = NULL; \ - } \ - } while(0) - -/*! @defined InitGrowlNotification - * @abstract Callable macro. Initializes a Growl notification structure to defaults. - * @discussion Call with a pointer to a struct Growl_Notification. All of - * the members of the structure will be set to 0 or NULL, except - * for size (which will be set to - * sizeof(struct Growl_Notification)). - */ -#define InitGrowlNotification(notification) \ - do { \ - if (notification) { \ - (notification)->size = sizeof(struct Growl_Notification); \ - (notification)->name = NULL; \ - (notification)->title = NULL; \ - (notification)->description = NULL; \ - (notification)->iconData = NULL; \ - (notification)->priority = 0; \ - (notification)->reserved = 0U; \ - (notification)->isSticky = false; \ - (notification)->clickContext = NULL; \ - (notification)->clickCallback = NULL; \ - (notification)->identifier = NULL; \ - } \ - } while(0) - -#pragma mark - -#pragma mark Public API - -// @functiongroup Managing the Growl delegate - -/*! @function Growl_SetDelegate - * @abstract Replaces the current Growl delegate with a new one, or removes - * the Growl delegate. - * @param newDelegate - * @result Returns false and does nothing else if a pointer that was passed in - * is unsatisfactory (because it is non-NULL, but at least one - * required member of it is NULL). Otherwise, sets or unsets the - * delegate and returns true. - * @discussion When newDelegate is non-NULL, sets - * the delegate to newDelegate. When it is NULL, - * the current delegate will be unset, and no delegate will be in place. - * - * It is legal for newDelegate to be the current delegate; - * nothing will happen, and Growl_SetDelegate will return true. It is also - * legal for it to be NULL, as described above; again, it will - * return true. - * - * If there was a delegate in place before the call, Growl_SetDelegate will - * call the old delegate's release member if it was non-NULL. If - * newDelegate is non-NULL, Growl_SetDelegate will - * call newDelegate->retain, and set the delegate to its return - * value. - * - * If you are using Growl-WithInstaller.framework, and an older version of - * Growl is installed on the user's system, the user will automatically be - * prompted to update. - * - * GrowlApplicationBridge currently does not copy this structure, nor does it - * retain any of the CF objects in the structure (it regards the structure as - * a container that retains the objects when they are added and releases them - * when they are removed or the structure is destroyed). Also, - * GrowlApplicationBridge currently does not modify any member of the - * structure, except possibly the referenceCount by calling the retain and - * release members. - */ -GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); - -/*! @function Growl_GetDelegate - * @abstract Returns the current Growl delegate, if any. - * @result The current Growl delegate. - * @discussion Returns the last pointer passed into Growl_SetDelegate, or - * NULL if no such call has been made. - * - * This function follows standard Core Foundation reference-counting rules. - * Because it is a Get function, not a Copy function, it will not retain the - * delegate on your behalf. You are responsible for retaining and releasing - * the delegate as needed. - */ -GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); - -#pragma mark - - -// @functiongroup Posting Growl notifications - -/*! @function Growl_PostNotification - * @abstract Posts a Growl notification. - * @param notification The notification to post. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * NULL (or 0 or false as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. - * If the user cancels, this function will have no effect until the next - * application session, at which time when it is called the user will be - * prompted again. The user is also given the option to not be prompted again. - * If the user does choose to install Growl, the requested notification will - * be displayed once Growl is installed and running. - */ -GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); - -/*! @function Growl_PostNotificationWithDictionary -* @abstract Notifies using a userInfo dictionary suitable for passing to -* CFDistributedNotificationCenter. -* @param userInfo The dictionary to notify with. -* @discussion Before Growl 0.6, your application would have posted -* notifications using CFDistributedNotificationCenter by creating a userInfo -* dictionary with the notification data. This had the advantage of allowing -* you to add other data to the dictionary for programs besides Growl that -* might be listening. -* -* This function allows you to use such dictionaries without being restricted -* to using CFDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. -*/ -GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); - -/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext - * @abstract Posts a Growl notification using parameter values. - * @param title The title of the notification. - * @param description The description of the notification. - * @param notificationName The name of the notification as listed in the - * registration dictionary. - * @param iconData Data representing a notification icon. Can be NULL. - * @param priority The priority of the notification (-2 to +2, with -2 - * being Very Low and +2 being Very High). - * @param isSticky If true, requests that this notification wait for a - * response from the user. - * @param clickContext An object to pass to the clickCallback, if any. Can - * be NULL, in which case the clickCallback is not called. - * @discussion Creates a temporary Growl_Notification, fills it out with the - * supplied information, and calls Growl_PostNotification on it. - * See struct Growl_Notification and Growl_PostNotification for more - * information. - * - * The icon data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. - */ -GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( - /*inhale*/ - CFStringRef title, - CFStringRef description, - CFStringRef notificationName, - CFDataRef iconData, - signed int priority, - Boolean isSticky, - CFPropertyListRef clickContext); - -#pragma mark - - -// @functiongroup Registering - -/*! @function Growl_RegisterWithDictionary - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this function with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass NULL, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this function, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This function is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This function was introduced in Growl.framework 0.7. - * @result false if registration failed (e.g. if Growl isn't installed). - */ -GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); - -/*! @function Growl_Reregister - * @abstract Updates your registration with Growl. - * @discussion If your application changes the contents of the - * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the - * Growl delegate, or if it changes the value of that member, or if it - * changes the contents of its auto-discoverable plist, call this function - * to have Growl update its registration information for your application. - * - * Otherwise, this function does not normally need to be called. If you're - * using a delegate, your application will be registered when you set the - * delegate if both the delegate and its registrationDictionary member are - * non-NULL. - * - * This function is now implemented using - * Growl_RegisterWithDictionary. - */ -GROWL_EXPORT void Growl_Reregister(void); - -#pragma mark - - -/*! @function Growl_SetWillRegisterWhenGrowlIsReady - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * growlIsReady callback, if it has one). If this function is - * called with true, one of those tasks will be to reregister - * with Growl (in the manner of Growl_Reregister). - * - * This attribute is automatically set back to false - * (the default) after every GROWL_IS_READY notification. - * @param flag true if you want GrowlApplicationBridge to register with - * Growl when next it is ready; false if not. - */ -GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); -/*! @function Growl_WillRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result true if GrowlApplicationBridge will register with - * Growl when next it posts GROWL_IS_READY; false if not. - */ -GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); - -#pragma mark - - -// @functiongroup Obtaining registration dictionaries - -/*! @function Growl_CopyRegistrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * registrationDictionary member is NULL, this - * function returns NULL. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); - -/*! @function Growl_CopyRegistrationDictionaryFromBundle - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This function looks in a bundle for an auto-discoverable - * registration dictionary file using CFBundleCopyResourceURL. - * If it finds one, it loads the file using CFPropertyList and - * returns the result. - * - * If you pass NULL as the bundle, the main bundle is examined. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary: or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); - -/*! @function Growl_CreateBestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This function creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge examines the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this function returns NULL. - * - * Second, GrowlApplicationBridge calls - * Growl_CreateRegistrationDictionaryByFillingInDictionary with - * whatever dictionary was obtained. The result of that function is the - * result of this function. - * - * GrowlApplicationBridge uses this function when you call - * Growl_SetDelegate, or when you call - * Growl_RegisterWithDictionary with NULL. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); - -#pragma mark - - -// @functiongroup Filling in registration dictionaries - -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If NULL, any missing keys are filled in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); - -#pragma mark - - -// @functiongroup Querying Growl's status - -/*! @function Growl_IsInstalled - * @abstract Determines whether the Growl prefpane and its helper app are - * installed. - * @result Returns true if Growl is installed, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsInstalled(void); - -/*! @function Growl_IsRunning - * @abstract Cycles through the process list to find whether GrowlHelperApp - * is running. - * @result Returns true if Growl is running, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsRunning(void); - -#pragma mark - - -// @functiongroup Launching Growl - -/*! @typedef GrowlLaunchCallback - * @abstract Callback to notify you that Growl is running. - * @param context The context pointer passed to Growl_LaunchIfInstalled. - * @discussion Growl_LaunchIfInstalled calls this callback function if Growl - * was already running or if it launched Growl successfully. - */ -typedef void (*GrowlLaunchCallback)(void *context); - -/*! @function Growl_LaunchIfInstalled - * @abstract Launches GrowlHelperApp if it is not already running. - * @param callback A callback function which will be called if Growl was successfully - * launched or was already running. Can be NULL. - * @param context The context pointer to pass to the callback. Can be NULL. - * @result Returns true if Growl was successfully launched or was already - * running; returns false and does not call the callback otherwise. - * @discussion Returns true and calls the callback (if the callback is not - * NULL) if the Growl helper app began launching or was already - * running. Returns false and performs no other action if Growl could not be - * launched (e.g. because the Growl preference pane is not properly installed). - * - * If Growl_CreateBestRegistrationDictionary returns - * non-NULL, this function will register with Growl atomically. - * - * The callback should take a single argument; this is to allow applications - * to have context-relevant information passed back. It is perfectly - * acceptable for context to be NULL. The callback itself can be - * NULL if you don't want one. - */ -GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); - -#pragma mark - -#pragma mark Constants - -/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER - * @abstract The CFBundleIdentifier of the Growl preference pane bundle. - * @discussion GrowlApplicationBridge uses this to determine whether Growl is - * currently installed, by searching for the Growl preference pane. Your - * application probably does not need to use this macro itself. - */ -#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER -#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") -#endif - -__END_DECLS - -#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,575 +0,0 @@ -// -// GrowlApplicationBridge.h -// Growl -// -// Created by Evan Schoenberg on Wed Jun 16 2004. -// Copyright 2004-2006 The Growl Project. All rights reserved. -// - -/*! - * @header GrowlApplicationBridge.h - * @abstract Defines the GrowlApplicationBridge class. - * @discussion This header defines the GrowlApplicationBridge class as well as - * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. - */ - -#ifndef __GrowlApplicationBridge_h__ -#define __GrowlApplicationBridge_h__ - -#import -#import -#import "GrowlDefines.h" - -//Forward declarations -@protocol GrowlApplicationBridgeDelegate; - -//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) -#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @class GrowlApplicationBridge - * @abstract A class used to interface with Growl. - * @discussion This class provides a means to interface with Growl. - * - * Currently it provides a way to detect if Growl is installed and launch the - * GrowlHelperApp if it's not already running. - */ -@interface GrowlApplicationBridge : NSObject { - -} - -/*! - * @method isGrowlInstalled - * @abstract Detects whether Growl is installed. - * @discussion Determines if the Growl prefpane and its helper app are installed. - * @result Returns YES if Growl is installed, NO otherwise. - */ -+ (BOOL) isGrowlInstalled; - -/*! - * @method isGrowlRunning - * @abstract Detects whether GrowlHelperApp is currently running. - * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. - * @result Returns YES if GrowlHelperApp is running, NO otherwise. - */ -+ (BOOL) isGrowlRunning; - -#pragma mark - - -/*! - * @method setGrowlDelegate: - * @abstract Set the object which will be responsible for providing and receiving Growl information. - * @discussion This must be called before using GrowlApplicationBridge. - * - * The methods in the GrowlApplicationBridgeDelegate protocol are required - * and return the basic information needed to register with Growl. - * - * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol - * informal protocol are individually optional. They provide a greater - * degree of interaction between the application and growl such as informing - * the application when one of its Growl notifications is clicked by the user. - * - * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol - * informal protocol are individually optional and are only applicable when - * using the Growl-WithInstaller.framework which allows for automated Growl - * installation. - * - * When this method is called, data will be collected from inDelegate, Growl - * will be launched if it is not already running, and the application will be - * registered with Growl. - * - * If using the Growl-WithInstaller framework, if Growl is already installed - * but this copy of the framework has an updated version of Growl, the user - * will be prompted to update automatically. - * - * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. - */ -+ (void) setGrowlDelegate:(NSObject *)inDelegate; - -/*! - * @method growlDelegate - * @abstract Return the object responsible for providing and receiving Growl information. - * @discussion See setGrowlDelegate: for details. - * @result The Growl delegate. - */ -+ (NSObject *) growlDelegate; - -#pragma mark - - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext; - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext - identifier:(NSString *)identifier; - -/*! @method notifyWithDictionary: - * @abstract Notifies using a userInfo dictionary suitable for passing to - * NSDistributedNotificationCenter. - * @param userInfo The dictionary to notify with. - * @discussion Before Growl 0.6, your application would have posted - * notifications using NSDistributedNotificationCenter by - * creating a userInfo dictionary with the notification data. This had the - * advantage of allowing you to add other data to the dictionary for programs - * besides Growl that might be listening. - * - * This method allows you to use such dictionaries without being restricted - * to using NSDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. - */ -+ (void) notifyWithDictionary:(NSDictionary *)userInfo; - -#pragma mark - - -/*! @method registerWithDictionary: - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this method with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass nil, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this method, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This method is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * -growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This method was introduced in Growl.framework 0.7. - */ -+ (BOOL) registerWithDictionary:(NSDictionary *)regDict; - -/*! @method reregisterGrowlNotifications - * @abstract Reregister the notifications for this application. - * @discussion This method does not normally need to be called. If your - * application changes what notifications it is registering with Growl, call - * this method to have the Growl delegate's - * -registrationDictionaryForGrowl method called again and the - * Growl registration information updated. - * - * This method is now implemented using -registerWithDictionary:. - */ -+ (void) reregisterGrowlNotifications; - -#pragma mark - - -/*! @method setWillRegisterWhenGrowlIsReady: - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * -growlIsReady method, if it has one). If this method is - * called with YES, one of those tasks will be to reregister - * with Growl (in the manner of -reregisterGrowlNotifications). - * - * This attribute is automatically set back to NO (the default) - * after every GROWL_IS_READY notification. - * @param flag YES if you want GrowlApplicationBridge to register with - * Growl when next it is ready; NO if not. - */ -+ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; -/*! @method willRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result YES if GrowlApplicationBridge will register with Growl - * when next it posts GROWL_IS_READY; NO if not. - */ -+ (BOOL) willRegisterWhenGrowlIsReady; - -#pragma mark - - -/*! @method registrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * -registrationDictionaryForGrowl method returns - * nil, this method returns nil. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromDelegate; - -/*! @method registrationDictionaryFromBundle: - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This method looks in a bundle for an auto-discoverable - * registration dictionary file using -[NSBundle - * pathForResource:ofType:]. If it finds one, it loads the file using - * +[NSDictionary dictionaryWithContentsOfFile:] and returns the - * result. - * - * If you pass nil as the bundle, the main bundle is examined. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; - -/*! @method bestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This method creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge contacts the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this method returns nil. - * - * Second, GrowlApplicationBridge calls - * +registrationDictionaryByFillingInDictionary: with whatever - * dictionary was obtained. The result of that method is the result of this - * method. - * - * GrowlApplicationBridge uses this method when you call - * +setGrowlDelegate:, or when you call - * +registerWithDictionary: with nil. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) bestRegistrationDictionary; - -#pragma mark - - -/*! @method registrationDictionaryByFillingInDictionary: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; -/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If nil, any missing keys are filled in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -+ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; - -+ (NSDictionary *) frameworkInfoDictionary; -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @protocol GrowlApplicationBridgeDelegate - * @abstract Required protocol for the Growl delegate. - * @discussion The methods in this protocol are required and are called - * automatically as needed by GrowlApplicationBridge. See - * +[GrowlApplicationBridge setGrowlDelegate:]. - * See also GrowlApplicationBridgeDelegate_InformalProtocol. - */ - -@protocol GrowlApplicationBridgeDelegate - -// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. - -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) - * @abstract Methods which may be optionally implemented by the GrowlDelegate. - * @discussion The methods in this informal protocol will only be called if implemented by the delegate. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) - -/*! - * @method registrationDictionaryForGrowl - * @abstract Return the dictionary used to register this application with Growl. - * @discussion The returned dictionary gives Growl the complete list of - * notifications this application will ever send, and it also specifies which - * notifications should be enabled by default. Each is specified by an array - * of NSString objects. - * - * For most applications, these two arrays can be the same (if all sent - * notifications should be displayed by default). - * - * The NSString objects of these arrays will correspond to the - * notificationName: parameter passed in - * +[GrowlApplicationBridge - * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. - * - * The dictionary should have the required key object pairs: - * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects - * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects - * - * The dictionary may have the following key object pairs: - * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name - * - * You do not need to implement this method if you have an auto-discoverable - * plist file in your app bundle. (XXX refer to more information on that) - * - * @result The NSDictionary to use for registration. - */ -- (NSDictionary *) registrationDictionaryForGrowl; - -/*! - * @method applicationNameForGrowl - * @abstract Return the name of this application which will be used for Growl bookkeeping. - * @discussion This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * You do not need to implement this method if you are providing the - * application name elsewhere, meaning in an auto-discoverable plist file in - * your app bundle (XXX refer to more information on that) or in the result - * of -registrationDictionaryForGrowl. - * - * @result The name of the application using Growl. - */ -- (NSString *) applicationNameForGrowl; - -/*! - * @method applicationIconForGrowl - * @abstract Return the NSImage to treat as the application icon. - * @discussion The delegate may optionally return an NSImage - * object to use as the application icon. If this method is not implemented, - * {{{-applicationIconDataForGrowl}}} is tried. If that method is not - * implemented, the application's own icon is used. Neither method is - * generally needed. - * @result The NSImage to treat as the application icon. - */ -- (NSImage *) applicationIconForGrowl; - -/*! - * @method applicationIconDataForGrowl - * @abstract Return the NSData to treat as the application icon. - * @discussion The delegate may optionally return an NSData - * object to use as the application icon; if this is not implemented, the - * application's own icon is used. This is not generally needed. - * @result The NSData to treat as the application icon. - * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. - */ -- (NSData *) applicationIconDataForGrowl; - -/*! - * @method growlIsReady - * @abstract Informs the delegate that Growl has launched. - * @discussion Informs the delegate that Growl (specifically, the - * GrowlHelperApp) was launched successfully. The application can take actions - * with the knowledge that Growl is installed and functional. - */ -- (void) growlIsReady; - -/*! - * @method growlNotificationWasClicked: - * @abstract Informs the delegate that a Growl notification was clicked. - * @discussion Informs the delegate that a Growl notification was clicked. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationWasClicked:(id)clickContext; - -/*! - * @method growlNotificationTimedOut: - * @abstract Informs the delegate that a Growl notification timed out. - * @discussion Informs the delegate that a Growl notification timed out. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationTimedOut:(id)clickContext; - -@end - -#pragma mark - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. - * @discussion The methods in this informal protocol will only be called if - * implemented by the delegate. They allow greater control of the information - * presented to the user when installing or upgrading Growl from within your - * application when using Growl-WithInstaller.framework. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - -/*! - * @method growlInstallationWindowTitle - * @abstract Return the title of the installation window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlInstallationWindowTitle; - -/*! - * @method growlUpdateWindowTitle - * @abstract Return the title of the upgrade window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlUpdateWindowTitle; - -/*! - * @method growlInstallationInformation - * @abstract Return the information to display when installing. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation of what Growl is and what it can do in your application. It - * should probably note that no download is required to install. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlInstallationInformation; - -/*! - * @method growlUpdateInformation - * @abstract Return the information to display when upgrading. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation that an updated version of Growl is included in your - * application and no download is required. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlUpdateInformation; - -@end - -//private -@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) -+ (void) _userChoseNotToInstallGrowl; -@end - -#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,348 +0,0 @@ -// -// GrowlDefines.h -// - -#ifndef _GROWLDEFINES_H -#define _GROWLDEFINES_H - -#ifdef __OBJC__ -#define XSTR(x) (@x) -#define STRING_TYPE NSString * -#else -#define XSTR CFSTR -#define STRING_TYPE CFStringRef -#endif - -/*! @header GrowlDefines.h - * @abstract Defines all the notification keys. - * @discussion Defines all the keys used for registration with Growl and for - * Growl notifications. - * - * Most applications should use the functions or methods of Growl.framework - * instead of posting notifications such as those described here. - * @updated 2004-01-25 - */ - -// UserInfo Keys for Registration -#pragma mark UserInfo Keys for Registration - -/*! @group Registration userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. - * @discussion The values of these keys describe the application and the - * notifications it may post. - * - * Your application must register with Growl before it can post Growl - * notifications (and have them not be ignored). However, as of Growl 0.6, - * posting GROWL_APP_REGISTRATION notifications directly is no longer the - * preferred way to register your application. Your application should instead - * use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ - -/*! @defined GROWL_APP_NAME - * @abstract The name of your application. - * @discussion The name of your application. This should remain stable between - * different versions and incarnations of your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - */ -#define GROWL_APP_NAME XSTR("ApplicationName") -/*! @defined GROWL_APP_ID - * @abstract The bundle identifier of your application. - * @discussion The bundle identifier of your application. This key should - * be unique for your application while there may be several applications - * with the same GROWL_APP_NAME. - * This key is optional. - */ -#define GROWL_APP_ID XSTR("ApplicationId") -/*! @defined GROWL_APP_ICON - * @abstract The image data for your application's icon. - * @discussion Image data representing your application's icon. This may be - * superimposed on a notification icon as a badge, used as the notification - * icon when a notification-specific icon is not supplied, or ignored - * altogether, depending on the display. Must be in a format supported by - * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_APP_ICON XSTR("ApplicationIcon") -/*! @defined GROWL_NOTIFICATIONS_DEFAULT - * @abstract The array of notifications to turn on by default. - * @discussion These are the names of the notifications that should be enabled - * by default when your application registers for the first time. If your - * application reregisters, Growl will look here for any new notification - * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. - */ -#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") -/*! @defined GROWL_NOTIFICATIONS_ALL - * @abstract The array of all notifications your application can send. - * @discussion These are the names of all of the notifications that your - * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good - * notification names. - */ -#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") -/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS - * @abstract A dictionary of human-readable names for your notifications. - * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL - * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. - * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. - * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. - * - * This key is optional. - */ -#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") -/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS -* @abstract A dictionary of descriptions of _when_ each notification occurs -* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are -* descriptions of _when_ each notification occurs, such as "You received a new mail message" or -* "A file finished downloading". -* -* This key is optional. -*/ -#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") - -/*! @defined GROWL_TICKET_VERSION - * @abstract The version of your registration ticket. - * @discussion Include this key in a ticket plist file that you put in your - * application bundle for auto-discovery. The current ticket version is 1. - */ -#define GROWL_TICKET_VERSION XSTR("TicketVersion") -// UserInfo Keys for Notifications -#pragma mark UserInfo Keys for Notifications - -/*! @group Notification userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. - * @discussion The values of these keys describe the content of a Growl - * notification. - * - * Not all of these keys are supported by all displays. Only the name, title, - * and description of a notification are universal. Most of the built-in - * displays do support all of these keys, and most other visual displays - * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays - * support only textual data. - */ - -/*! @defined GROWL_NOTIFICATION_NAME - * @abstract The name of the notification. - * @discussion The name of the notification. Note that if you do not define - * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name - * will the one displayed within the Growl preference pane and should be human-readable. - */ -#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") -/*! @defined GROWL_NOTIFICATION_TITLE - * @abstract The title to display in the notification. - * @discussion The title of the notification. Should be very brief. - * The title usually says what happened, e.g. "Download complete". - */ -#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") -/*! @defined GROWL_NOTIFICATION_DESCRIPTION - * @abstract The description to display in the notification. - * @discussion The description should be longer and more verbose than the title. - * The description usually tells the subject of the action, - * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". - */ -#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") -/*! @defined GROWL_NOTIFICATION_ICON - * @discussion Image data for the notification icon. Must be in a format - * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") -/*! @defined GROWL_NOTIFICATION_APP_ICON - * @discussion Image data for the application icon, in case GROWL_APP_ICON does - * not apply for some reason. Must be in a format supported by NSImage, such - * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") -/*! @defined GROWL_NOTIFICATION_PRIORITY - * @discussion The priority of the notification as an integer number from - * -2 to +2 (+2 being highest). - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") -/*! @defined GROWL_NOTIFICATION_STICKY - * @discussion A Boolean number controlling whether the notification is sticky. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") -/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT - * @abstract Identifies which notification was clicked. - * @discussion An identifier for the notification for clicking purposes. - * - * This will be passed back to the application when the notification is - * clicked. It must be plist-encodable (a data, dictionary, array, number, or - * string object), and it should be unique for each notification you post. - * A good click context would be a UUID string returned by NSProcessInfo or - * CFUUID. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") - -/*! @defined GROWL_DISPLAY_PLUGIN - * @discussion The name of a display plugin which should be used for this notification. - * Optional. If this key is not set or the specified display plugin does not - * exist, the display plugin stored in the application ticket is used. This key - * allows applications to use different default display plugins for their - * notifications. The user can still override those settings in the preference - * pane. - */ -#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") - -/*! @defined GROWL_NOTIFICATION_IDENTIFIER - * @abstract An identifier for the notification for coalescing purposes. - * Notifications with the same identifier fall into the same class; only - * the last notification of a class is displayed on the screen. If a - * notification of the same class is currently being displayed, it is - * replaced by this notification. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") - -/*! @defined GROWL_APP_PID - * @abstract The process identifier of the process which sends this - * notification. If this field is set, the application will only receive - * clicked and timed out notifications which originate from this process. - * - * Optional. - */ -#define GROWL_APP_PID XSTR("ApplicationPID") - -/*! @defined GROWL_NOTIFICATION_PROGRESS -* @abstract If this key is set, it should contain a double value wrapped -* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). -* If this is key is not set, no progress bar is shown. -* -* Optional. Not supported by all display plugins. -*/ -#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") - -// Notifications -#pragma mark Notifications - -/*! @group Notification names */ -/* @abstract Names of distributed notifications used by Growl. - * @discussion These are notifications used by applications (directly or - * indirectly) to interact with Growl, and by Growl for interaction between - * its components. - * - * Most of these should no longer be used in Growl 0.6 and later, in favor of - * Growl.framework's GrowlApplicationBridge APIs. - */ - -/*! @defined GROWL_APP_REGISTRATION - * @abstract The distributed notification for registering your application. - * @discussion This is the name of the distributed notification that can be - * used to register applications with Growl. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_APP_NAME
  • - *
  • GROWL_APP_ICON
  • - *
  • GROWL_NOTIFICATIONS_ALL
  • - *
  • GROWL_NOTIFICATIONS_DEFAULT
  • - *
- * - * No longer recommended as of Growl 0.6. An alternate method of registering - * is to use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ -#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") -/*! @defined GROWL_APP_REGISTRATION_CONF - * @abstract The distributed notification for confirming registration. - * @discussion The name of the distributed notification sent to confirm the - * registration. Used by the Growl preference pane. Your application probably - * does not need to use this notification. - */ -#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") -/*! @defined GROWL_NOTIFICATION - * @abstract The distributed notification for Growl notifications. - * @discussion This is what it all comes down to. This is the name of the - * distributed notification that your application posts to actually send a - * Growl notification. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_NOTIFICATION_NAME (required)
  • - *
  • GROWL_NOTIFICATION_TITLE (required)
  • - *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • - *
  • GROWL_NOTIFICATION_ICON
  • - *
  • GROWL_NOTIFICATION_APP_ICON
  • - *
  • GROWL_NOTIFICATION_PRIORITY
  • - *
  • GROWL_NOTIFICATION_STICKY
  • - *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • - *
  • GROWL_APP_NAME (required)
  • - *
- * - * No longer recommended as of Growl 0.6. Three alternate methods of posting - * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and - * Growl_PostNotification. - */ -#define GROWL_NOTIFICATION XSTR("GrowlNotification") -/*! @defined GROWL_SHUTDOWN -* @abstract The distributed notification name that tells Growl to shutdown. -* @discussion The Growl preference pane posts this notification when the -* "Stop Growl" button is clicked. -*/ -#define GROWL_SHUTDOWN XSTR("GrowlShutdown") -/*! @defined GROWL_PING - * @abstract A distributed notification to check whether Growl is running. - * @discussion This is used by the Growl preference pane. If it receives a - * GROWL_PONG, the preference pane takes this to mean that Growl is running. - */ -#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") -/*! @defined GROWL_PONG - * @abstract The distributed notification sent in reply to GROWL_PING. - * @discussion GrowlHelperApp posts this in reply to GROWL_PING. - */ -#define GROWL_PONG XSTR("What Do You Want From Me, Woman") -/*! @defined GROWL_IS_READY - * @abstract The distributed notification sent when Growl starts up. - * @discussion GrowlHelperApp posts this when it has begin listening on all of - * its sources for new notifications. GrowlApplicationBridge (in - * Growl.framework), upon receiving this notification, reregisters using the - * registration dictionary supplied by its delegate. - */ -#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") -/*! @defined GROWL_NOTIFICATION_CLICKED - * @abstract The distributed notification sent when a supported notification is clicked. - * @discussion When a Growl notification with a click context is clicked on by - * the user, Growl posts this distributed notification. - * The GrowlApplicationBridge responds to this notification by calling a - * callback in its delegate. - */ -#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") -#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") - -/*! @group Other symbols */ -/* Symbols which don't fit into any of the other categories. */ - -/*! @defined GROWL_KEY_CLICKED_CONTEXT - * @abstract Used internally as the key for the clickedContext passed over DNC. - * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the - * click context that was supplied in the original notification. - */ -#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") -/*! @defined GROWL_REG_DICT_EXTENSION - * @abstract The filename extension for registration dictionaries. - * @discussion The GrowlApplicationBridge in Growl.framework registers with - * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) - * and opening it in the GrowlHelperApp. This happens whether or not Growl is - * running; if it was stopped, it quits immediately without listening for - * notifications. - */ -#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") - - -#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" - -#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/Growl.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/Growl.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/Growl.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -#include "GrowlDefines.h" - -#ifdef __OBJC__ -# include "GrowlApplicationBridge.h" -#endif -#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/A/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/A/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - Growl - CFBundleIdentifier - com.growl.growlframework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.2.1 - CFBundleSignature - GRRR - CFBundleVersion - 1.2.1 - NSPrincipalClass - GrowlApplicationBridge - - Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Growl and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Growl differ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge-Carbon.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,780 +0,0 @@ -// -// GrowlApplicationBridge-Carbon.h -// Growl -// -// Created by Mac-arena the Bored Zo on Wed Jun 18 2004. -// Based on GrowlApplicationBridge.h by Evan Schoenberg. -// This source code is in the public domain. You may freely link it into any -// program. -// - -#ifndef _GROWLAPPLICATIONBRIDGE_CARBON_H_ -#define _GROWLAPPLICATIONBRIDGE_CARBON_H_ - -#include -#include - -#ifndef GROWL_EXPORT -#define GROWL_EXPORT __attribute__((visibility("default"))) DEPRECATED_ATTRIBUTE -#endif - -/*! @header GrowlApplicationBridge-Carbon.h - * @abstract Declares an API that Carbon applications can use to interact with Growl. - * @discussion GrowlApplicationBridge uses a delegate to provide information //XXX - * to Growl (such as your application's name and what notifications it may - * post) and to provide information to your application (such as that Growl - * is listening for notifications or that a notification has been clicked). - * - * You can set the Growldelegate with Growl_SetDelegate and find out the - * current delegate with Growl_GetDelegate. See struct Growl_Delegate for more - * information about the delegate. - */ - -__BEGIN_DECLS - -/*! @struct Growl_Delegate - * @abstract Delegate to supply GrowlApplicationBridge with information and respond to events. - * @discussion The Growl delegate provides your interface to - * GrowlApplicationBridge. When GrowlApplicationBridge needs information about - * your application, it looks for it in the delegate; when Growl or the user - * does something that you might be interested in, GrowlApplicationBridge - * looks for a callback in the delegate and calls it if present - * (meaning, if it is not NULL). - * XXX on all of that - * @field size The size of the delegate structure. - * @field applicationName The name of your application. - * @field registrationDictionary A dictionary describing your application and the notifications it can send out. - * @field applicationIconData Your application's icon. - * @field growlInstallationWindowTitle The title of the installation window. - * @field growlInstallationInformation Text to display in the installation window. - * @field growlUpdateWindowTitle The title of the update window. - * @field growlUpdateInformation Text to display in the update window. - * @field referenceCount A count of owners of the delegate. - * @field retain Called when GrowlApplicationBridge receives this delegate. - * @field release Called when GrowlApplicationBridge no longer needs this delegate. - * @field growlIsReady Called when GrowlHelperApp is listening for notifications. - * @field growlNotificationWasClicked Called when a Growl notification is clicked. - * @field growlNotificationTimedOut Called when a Growl notification timed out. - */ -struct Growl_Delegate { - /* @discussion This should be sizeof(struct Growl_Delegate). - */ - size_t size; - - /*All of these attributes are optional. - *Optional attributes can be NULL; required attributes that - * are NULL cause setting the Growl delegate to fail. - *XXX - move optional/required status into the discussion for each field - */ - - /* This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * This can be NULL if it is provided elsewhere, namely in an - * auto-discoverable plist file in your app bundle - * (XXX refer to more information on that) or in registrationDictionary. - */ - CFStringRef applicationName; - - /* - * Must contain at least these keys: - * GROWL_NOTIFICATIONS_ALL (CFArray): - * Contains the names of all notifications your application may post. - * - * Can also contain these keys: - * GROWL_NOTIFICATIONS_DEFAULT (CFArray): - * Names of notifications that should be enabled by default. - * If omitted, GROWL_NOTIFICATIONS_ALL will be used. - * GROWL_APP_NAME (CFString): - * Same as the applicationName member of this structure. - * If both are present, the applicationName member shall prevail. - * If this key is present, you may omit applicationName (set it to NULL). - * GROWL_APP_ICON (CFData): - * Same as the iconData member of this structure. - * If both are present, the iconData member shall prevail. - * If this key is present, you may omit iconData (set it to NULL). - * - * If you change the contents of this dictionary after setting the delegate, - * be sure to call Growl_Reregister. - * - * This can be NULL if you have an auto-discoverable plist file in your app - * bundle. (XXX refer to more information on that) - */ - CFDictionaryRef registrationDictionary; - - /* The data can be in any format supported by NSImage. As of - * Mac OS X 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and - * PICT formats. - * - * If this is not supplied, Growl will look up your application's icon by - * its application name. - */ - CFDataRef applicationIconData; - - /* Installer display attributes - * - * These four attributes are used by the Growl installer, if this framework - * supports it. - * For any of these being NULL, a localised default will be - * supplied. - */ - - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If Growl is not installed, it will - * be displayed to the user as an explanation of what Growl is and what - * it can do in your application. - * It should probably note that no download is required to install. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlInstallationInformation; - /* If this is NULL, Growl will use a default, - * localized title. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateWindowTitle; - /* This information may be as long or short as desired (the - * window will be sized to fit it). If an older version of Growl is - * installed, it will be displayed to the user as an explanation that an - * updated version of Growl is included in your application and - * no download is required. - * - * If this is NULL, Growl will use a default, localized - * explanation. - * - * Only used if you're using Growl-WithInstaller.framework. Otherwise, - * this member is ignored. - */ - CFStringRef growlUpdateInformation; - - /* This member is provided for use by your retain and release - * callbacks (see below). - * - * GrowlApplicationBridge never directly uses this member. Instead, it - * calls your retain callback (if non-NULL) and your release - * callback (if non-NULL). - */ - unsigned referenceCount; - - //Functions. Currently all of these are optional (any of them can be NULL). - - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRetain and -[NSObject retain].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member would be - * NULL. - * @result A delegate to which GrowlApplicationBridge holds a reference. - */ - void *(*retain)(void *); - /* When you call Growl_SetDelegate(newDelegate), it will call - * oldDelegate->release(oldDelegate), and then it will call - * newDelegate->retain(newDelegate), and the return value from retain - * is what will be set as the delegate. - * (This means that this member works like CFRelease and - * -[NSObject release].) - * This member is optional (it can be NULL). - * For a delegate allocated with malloc, this member might be - * free(3). - */ - void (*release)(void *); - - /* Informs the delegate that Growl (specifically, the GrowlHelperApp) was - * launched successfully (or was already running). The application can - * take actions with the knowledge that Growl is installed and functional. - */ - void (*growlIsReady)(void); - - /* Informs the delegate that a Growl notification was clicked. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationWasClicked)(CFPropertyListRef clickContext); - - /* Informs the delegate that a Growl notification timed out. It is only - * sent for notifications sent with a non-NULL clickContext, - * so if you want to receive a message when a notification is clicked, - * clickContext must not be NULL when calling - * Growl_PostNotification or - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext. - */ - void (*growlNotificationTimedOut)(CFPropertyListRef clickContext); -}; - -/*! @struct Growl_Notification - * @abstract Structure describing a Growl notification. - * @discussion XXX - * @field size The size of the notification structure. - * @field name Identifies the notification. - * @field title Short synopsis of the notification. - * @field description Additional text. - * @field iconData An icon for the notification. - * @field priority An indicator of the notification's importance. - * @field reserved Bits reserved for future usage. - * @field isSticky Requests that a notification stay on-screen until dismissed explicitly. - * @field clickContext An identifier to be passed to your click callback when a notification is clicked. - * @field clickCallback A callback to call when the notification is clicked. - */ -struct Growl_Notification { - /* This should be sizeof(struct Growl_Notification). - */ - size_t size; - - /* The notification name distinguishes one type of - * notification from another. The name should be human-readable, as it - * will be displayed in the Growl preference pane. - * - * The name is used in the GROWL_NOTIFICATIONS_ALL and - * GROWL_NOTIFICATIONS_DEFAULT arrays in the registration dictionary, and - * in this member of the Growl_Notification structure. - */ - CFStringRef name; - - /* A notification's title describes the notification briefly. - * It should be easy to read quickly by the user. - */ - CFStringRef title; - - /* The description supplements the title with more - * information. It is usually longer and sometimes involves a list of - * subjects. For example, for a 'Download complete' notification, the - * description might have one filename per line. GrowlMail in Growl 0.6 - * uses a description of '%d new mail(s)' (formatted with the number of - * messages). - */ - CFStringRef description; - - /* The notification icon usually indicates either what - * happened (it may have the same icon as e.g. a toolbar item that - * started the process that led to the notification), or what it happened - * to (e.g. a document icon). - * - * The icon data is optional, so it can be NULL. In that - * case, the application icon is used alone. Not all displays support - * icons. - * - * The data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT form - * ats. - */ - CFDataRef iconData; - - /* Priority is new in Growl 0.6, and is represented as a - * signed integer from -2 to +2. 0 is Normal priority, -2 is Very Low - * priority, and +2 is Very High priority. - * - * Not all displays support priority. If you do not wish to assign a - * priority to your notification, assign 0. - */ - signed int priority; - - /* These bits are not used in Growl 0.6. Set them to 0. - */ - unsigned reserved: 31; - - /* When the sticky bit is clear, in most displays, - * notifications disappear after a certain amount of time. Sticky - * notifications, however, remain on-screen until the user dismisses them - * explicitly, usually by clicking them. - * - * Sticky notifications were introduced in Growl 0.6. Most notifications - * should not be sticky. Not all displays support sticky notifications, - * and the user may choose in Growl's preference pane to force the - * notification to be sticky or non-sticky, in which case the sticky bit - * in the notification will be ignored. - */ - unsigned isSticky: 1; - - /* If this is not NULL, and your click callback - * is not NULL either, this will be passed to the callback - * when your notification is clicked by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - */ - CFPropertyListRef clickContext; - - /* If this is not NULL, it will be called instead - * of the Growl delegate's click callback when clickContext is - * non-NULL and the notification is clicked on by the user. - * - * Click feedback was introduced in Growl 0.6, and it is optional. Not - * all displays support click feedback. - * - * The per-notification click callback is not yet supported as of Growl - * 0.7. - */ - void (*clickCallback)(CFPropertyListRef clickContext); - - CFStringRef identifier; -}; - -#pragma mark - -#pragma mark Easy initialisers - -/*! @defined InitGrowlDelegate - * @abstract Callable macro. Initializes a Growl delegate structure to defaults. - * @discussion Call with a pointer to a struct Growl_Delegate. All of the - * members of the structure will be set to 0 or NULL, except for - * size (which will be set to sizeof(struct Growl_Delegate)) and - * referenceCount (which will be set to 1). - */ -#define InitGrowlDelegate(delegate) \ - do { \ - if (delegate) { \ - (delegate)->size = sizeof(struct Growl_Delegate); \ - (delegate)->applicationName = NULL; \ - (delegate)->registrationDictionary = NULL; \ - (delegate)->applicationIconData = NULL; \ - (delegate)->growlInstallationWindowTitle = NULL; \ - (delegate)->growlInstallationInformation = NULL; \ - (delegate)->growlUpdateWindowTitle = NULL; \ - (delegate)->growlUpdateInformation = NULL; \ - (delegate)->referenceCount = 1U; \ - (delegate)->retain = NULL; \ - (delegate)->release = NULL; \ - (delegate)->growlIsReady = NULL; \ - (delegate)->growlNotificationWasClicked = NULL; \ - (delegate)->growlNotificationTimedOut = NULL; \ - } \ - } while(0) - -/*! @defined InitGrowlNotification - * @abstract Callable macro. Initializes a Growl notification structure to defaults. - * @discussion Call with a pointer to a struct Growl_Notification. All of - * the members of the structure will be set to 0 or NULL, except - * for size (which will be set to - * sizeof(struct Growl_Notification)). - */ -#define InitGrowlNotification(notification) \ - do { \ - if (notification) { \ - (notification)->size = sizeof(struct Growl_Notification); \ - (notification)->name = NULL; \ - (notification)->title = NULL; \ - (notification)->description = NULL; \ - (notification)->iconData = NULL; \ - (notification)->priority = 0; \ - (notification)->reserved = 0U; \ - (notification)->isSticky = false; \ - (notification)->clickContext = NULL; \ - (notification)->clickCallback = NULL; \ - (notification)->identifier = NULL; \ - } \ - } while(0) - -#pragma mark - -#pragma mark Public API - -// @functiongroup Managing the Growl delegate - -/*! @function Growl_SetDelegate - * @abstract Replaces the current Growl delegate with a new one, or removes - * the Growl delegate. - * @param newDelegate - * @result Returns false and does nothing else if a pointer that was passed in - * is unsatisfactory (because it is non-NULL, but at least one - * required member of it is NULL). Otherwise, sets or unsets the - * delegate and returns true. - * @discussion When newDelegate is non-NULL, sets - * the delegate to newDelegate. When it is NULL, - * the current delegate will be unset, and no delegate will be in place. - * - * It is legal for newDelegate to be the current delegate; - * nothing will happen, and Growl_SetDelegate will return true. It is also - * legal for it to be NULL, as described above; again, it will - * return true. - * - * If there was a delegate in place before the call, Growl_SetDelegate will - * call the old delegate's release member if it was non-NULL. If - * newDelegate is non-NULL, Growl_SetDelegate will - * call newDelegate->retain, and set the delegate to its return - * value. - * - * If you are using Growl-WithInstaller.framework, and an older version of - * Growl is installed on the user's system, the user will automatically be - * prompted to update. - * - * GrowlApplicationBridge currently does not copy this structure, nor does it - * retain any of the CF objects in the structure (it regards the structure as - * a container that retains the objects when they are added and releases them - * when they are removed or the structure is destroyed). Also, - * GrowlApplicationBridge currently does not modify any member of the - * structure, except possibly the referenceCount by calling the retain and - * release members. - */ -GROWL_EXPORT Boolean Growl_SetDelegate(struct Growl_Delegate *newDelegate); - -/*! @function Growl_GetDelegate - * @abstract Returns the current Growl delegate, if any. - * @result The current Growl delegate. - * @discussion Returns the last pointer passed into Growl_SetDelegate, or - * NULL if no such call has been made. - * - * This function follows standard Core Foundation reference-counting rules. - * Because it is a Get function, not a Copy function, it will not retain the - * delegate on your behalf. You are responsible for retaining and releasing - * the delegate as needed. - */ -GROWL_EXPORT struct Growl_Delegate *Growl_GetDelegate(void); - -#pragma mark - - -// @functiongroup Posting Growl notifications - -/*! @function Growl_PostNotification - * @abstract Posts a Growl notification. - * @param notification The notification to post. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * NULL (or 0 or false as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. - * If the user cancels, this function will have no effect until the next - * application session, at which time when it is called the user will be - * prompted again. The user is also given the option to not be prompted again. - * If the user does choose to install Growl, the requested notification will - * be displayed once Growl is installed and running. - */ -GROWL_EXPORT void Growl_PostNotification(const struct Growl_Notification *notification); - -/*! @function Growl_PostNotificationWithDictionary -* @abstract Notifies using a userInfo dictionary suitable for passing to -* CFDistributedNotificationCenter. -* @param userInfo The dictionary to notify with. -* @discussion Before Growl 0.6, your application would have posted -* notifications using CFDistributedNotificationCenter by creating a userInfo -* dictionary with the notification data. This had the advantage of allowing -* you to add other data to the dictionary for programs besides Growl that -* might be listening. -* -* This function allows you to use such dictionaries without being restricted -* to using CFDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. -*/ -GROWL_EXPORT void Growl_PostNotificationWithDictionary(CFDictionaryRef userInfo); - -/*! @function Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext - * @abstract Posts a Growl notification using parameter values. - * @param title The title of the notification. - * @param description The description of the notification. - * @param notificationName The name of the notification as listed in the - * registration dictionary. - * @param iconData Data representing a notification icon. Can be NULL. - * @param priority The priority of the notification (-2 to +2, with -2 - * being Very Low and +2 being Very High). - * @param isSticky If true, requests that this notification wait for a - * response from the user. - * @param clickContext An object to pass to the clickCallback, if any. Can - * be NULL, in which case the clickCallback is not called. - * @discussion Creates a temporary Growl_Notification, fills it out with the - * supplied information, and calls Growl_PostNotification on it. - * See struct Growl_Notification and Growl_PostNotification for more - * information. - * - * The icon data can be in any format supported by NSImage. As of Mac OS X - * 10.3, this includes the .icns, TIFF, JPEG, GIF, PNG, PDF, and PICT formats. - */ -GROWL_EXPORT void Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext( - /*inhale*/ - CFStringRef title, - CFStringRef description, - CFStringRef notificationName, - CFDataRef iconData, - signed int priority, - Boolean isSticky, - CFPropertyListRef clickContext); - -#pragma mark - - -// @functiongroup Registering - -/*! @function Growl_RegisterWithDictionary - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this function with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass NULL, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this function, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This function is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This function was introduced in Growl.framework 0.7. - * @result false if registration failed (e.g. if Growl isn't installed). - */ -GROWL_EXPORT Boolean Growl_RegisterWithDictionary(CFDictionaryRef regDict); - -/*! @function Growl_Reregister - * @abstract Updates your registration with Growl. - * @discussion If your application changes the contents of the - * GROWL_NOTIFICATIONS_ALL key in the registrationDictionary member of the - * Growl delegate, or if it changes the value of that member, or if it - * changes the contents of its auto-discoverable plist, call this function - * to have Growl update its registration information for your application. - * - * Otherwise, this function does not normally need to be called. If you're - * using a delegate, your application will be registered when you set the - * delegate if both the delegate and its registrationDictionary member are - * non-NULL. - * - * This function is now implemented using - * Growl_RegisterWithDictionary. - */ -GROWL_EXPORT void Growl_Reregister(void); - -#pragma mark - - -/*! @function Growl_SetWillRegisterWhenGrowlIsReady - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * growlIsReady callback, if it has one). If this function is - * called with true, one of those tasks will be to reregister - * with Growl (in the manner of Growl_Reregister). - * - * This attribute is automatically set back to false - * (the default) after every GROWL_IS_READY notification. - * @param flag true if you want GrowlApplicationBridge to register with - * Growl when next it is ready; false if not. - */ -GROWL_EXPORT void Growl_SetWillRegisterWhenGrowlIsReady(Boolean flag); -/*! @function Growl_WillRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result true if GrowlApplicationBridge will register with - * Growl when next it posts GROWL_IS_READY; false if not. - */ -GROWL_EXPORT Boolean Growl_WillRegisterWhenGrowlIsReady(void); - -#pragma mark - - -// @functiongroup Obtaining registration dictionaries - -/*! @function Growl_CopyRegistrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * registrationDictionary member is NULL, this - * function returns NULL. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromDelegate(void); - -/*! @function Growl_CopyRegistrationDictionaryFromBundle - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This function looks in a bundle for an auto-discoverable - * registration dictionary file using CFBundleCopyResourceURL. - * If it finds one, it loads the file using CFPropertyList and - * returns the result. - * - * If you pass NULL as the bundle, the main bundle is examined. - * - * This function does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use - * Growl_CreateRegistrationDictionaryByFillingInDictionary: or - * Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * to try to fill in missing keys. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CopyRegistrationDictionaryFromBundle(CFBundleRef bundle); - -/*! @function Growl_CreateBestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This function creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge examines the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this function returns NULL. - * - * Second, GrowlApplicationBridge calls - * Growl_CreateRegistrationDictionaryByFillingInDictionary with - * whatever dictionary was obtained. The result of that function is the - * result of this function. - * - * GrowlApplicationBridge uses this function when you call - * Growl_SetDelegate, or when you call - * Growl_RegisterWithDictionary with NULL. - * - * This function was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateBestRegistrationDictionary(void); - -#pragma mark - - -// @functiongroup Filling in registration dictionaries - -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionary - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionary(CFDictionaryRef regDict); -/*! @function Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys - * @abstract Tries to fill in missing keys in a registration dictionary. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If NULL, any missing keys are filled in. - * @result The dictionary with the keys filled in. - * @discussion This function examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This function was introduced in Growl.framework 0.7. - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateRegistrationDictionaryByFillingInDictionaryRestrictedToKeys(CFDictionaryRef regDict, CFSetRef keys); - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -GROWL_EXPORT CFDictionaryRef Growl_CreateNotificationDictionaryByFillingInDictionary(CFDictionaryRef notifDict); - -#pragma mark - - -// @functiongroup Querying Growl's status - -/*! @function Growl_IsInstalled - * @abstract Determines whether the Growl prefpane and its helper app are - * installed. - * @result Returns true if Growl is installed, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsInstalled(void); - -/*! @function Growl_IsRunning - * @abstract Cycles through the process list to find whether GrowlHelperApp - * is running. - * @result Returns true if Growl is running, false otherwise. - */ -GROWL_EXPORT Boolean Growl_IsRunning(void); - -#pragma mark - - -// @functiongroup Launching Growl - -/*! @typedef GrowlLaunchCallback - * @abstract Callback to notify you that Growl is running. - * @param context The context pointer passed to Growl_LaunchIfInstalled. - * @discussion Growl_LaunchIfInstalled calls this callback function if Growl - * was already running or if it launched Growl successfully. - */ -typedef void (*GrowlLaunchCallback)(void *context); - -/*! @function Growl_LaunchIfInstalled - * @abstract Launches GrowlHelperApp if it is not already running. - * @param callback A callback function which will be called if Growl was successfully - * launched or was already running. Can be NULL. - * @param context The context pointer to pass to the callback. Can be NULL. - * @result Returns true if Growl was successfully launched or was already - * running; returns false and does not call the callback otherwise. - * @discussion Returns true and calls the callback (if the callback is not - * NULL) if the Growl helper app began launching or was already - * running. Returns false and performs no other action if Growl could not be - * launched (e.g. because the Growl preference pane is not properly installed). - * - * If Growl_CreateBestRegistrationDictionary returns - * non-NULL, this function will register with Growl atomically. - * - * The callback should take a single argument; this is to allow applications - * to have context-relevant information passed back. It is perfectly - * acceptable for context to be NULL. The callback itself can be - * NULL if you don't want one. - */ -GROWL_EXPORT Boolean Growl_LaunchIfInstalled(GrowlLaunchCallback callback, void *context); - -#pragma mark - -#pragma mark Constants - -/*! @defined GROWL_PREFPANE_BUNDLE_IDENTIFIER - * @abstract The CFBundleIdentifier of the Growl preference pane bundle. - * @discussion GrowlApplicationBridge uses this to determine whether Growl is - * currently installed, by searching for the Growl preference pane. Your - * application probably does not need to use this macro itself. - */ -#ifndef GROWL_PREFPANE_BUNDLE_IDENTIFIER -#define GROWL_PREFPANE_BUNDLE_IDENTIFIER CFSTR("com.growl.prefpanel") -#endif - -__END_DECLS - -#endif /* _GROWLAPPLICATIONBRIDGE_CARBON_H_ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlApplicationBridge.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,575 +0,0 @@ -// -// GrowlApplicationBridge.h -// Growl -// -// Created by Evan Schoenberg on Wed Jun 16 2004. -// Copyright 2004-2006 The Growl Project. All rights reserved. -// - -/*! - * @header GrowlApplicationBridge.h - * @abstract Defines the GrowlApplicationBridge class. - * @discussion This header defines the GrowlApplicationBridge class as well as - * the GROWL_PREFPANE_BUNDLE_IDENTIFIER constant. - */ - -#ifndef __GrowlApplicationBridge_h__ -#define __GrowlApplicationBridge_h__ - -#import -#import -#import "GrowlDefines.h" - -//Forward declarations -@protocol GrowlApplicationBridgeDelegate; - -//Internal notification when the user chooses not to install (to avoid continuing to cache notifications awaiting installation) -#define GROWL_USER_CHOSE_NOT_TO_INSTALL_NOTIFICATION @"User chose not to install" - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @class GrowlApplicationBridge - * @abstract A class used to interface with Growl. - * @discussion This class provides a means to interface with Growl. - * - * Currently it provides a way to detect if Growl is installed and launch the - * GrowlHelperApp if it's not already running. - */ -@interface GrowlApplicationBridge : NSObject { - -} - -/*! - * @method isGrowlInstalled - * @abstract Detects whether Growl is installed. - * @discussion Determines if the Growl prefpane and its helper app are installed. - * @result Returns YES if Growl is installed, NO otherwise. - */ -+ (BOOL) isGrowlInstalled; - -/*! - * @method isGrowlRunning - * @abstract Detects whether GrowlHelperApp is currently running. - * @discussion Cycles through the process list to find whether GrowlHelperApp is running and returns its findings. - * @result Returns YES if GrowlHelperApp is running, NO otherwise. - */ -+ (BOOL) isGrowlRunning; - -#pragma mark - - -/*! - * @method setGrowlDelegate: - * @abstract Set the object which will be responsible for providing and receiving Growl information. - * @discussion This must be called before using GrowlApplicationBridge. - * - * The methods in the GrowlApplicationBridgeDelegate protocol are required - * and return the basic information needed to register with Growl. - * - * The methods in the GrowlApplicationBridgeDelegate_InformalProtocol - * informal protocol are individually optional. They provide a greater - * degree of interaction between the application and growl such as informing - * the application when one of its Growl notifications is clicked by the user. - * - * The methods in the GrowlApplicationBridgeDelegate_Installation_InformalProtocol - * informal protocol are individually optional and are only applicable when - * using the Growl-WithInstaller.framework which allows for automated Growl - * installation. - * - * When this method is called, data will be collected from inDelegate, Growl - * will be launched if it is not already running, and the application will be - * registered with Growl. - * - * If using the Growl-WithInstaller framework, if Growl is already installed - * but this copy of the framework has an updated version of Growl, the user - * will be prompted to update automatically. - * - * @param inDelegate The delegate for the GrowlApplicationBridge. It must conform to the GrowlApplicationBridgeDelegate protocol. - */ -+ (void) setGrowlDelegate:(NSObject *)inDelegate; - -/*! - * @method growlDelegate - * @abstract Return the object responsible for providing and receiving Growl information. - * @discussion See setGrowlDelegate: for details. - * @result The Growl delegate. - */ -+ (NSObject *) growlDelegate; - -#pragma mark - - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext; - -/*! - * @method notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier: - * @abstract Send a Growl notification. - * @discussion This is the preferred means for sending a Growl notification. - * The notification name and at least one of the title and description are - * required (all three are preferred). All other parameters may be - * nil (or 0 or NO as appropriate) to accept default values. - * - * If using the Growl-WithInstaller framework, if Growl is not installed the - * user will be prompted to install Growl. If the user cancels, this method - * will have no effect until the next application session, at which time when - * it is called the user will be prompted again. The user is also given the - * option to not be prompted again. If the user does choose to install Growl, - * the requested notification will be displayed once Growl is installed and - * running. - * - * @param title The title of the notification displayed to the user. - * @param description The full description of the notification displayed to the user. - * @param notifName The internal name of the notification. Should be human-readable, as it will be displayed in the Growl preference pane. - * @param iconData NSData object to show with the notification as its icon. If nil, the application's icon will be used instead. - * @param priority The priority of the notification. The default value is 0; positive values are higher priority and negative values are lower priority. Not all Growl displays support priority. - * @param isSticky If YES, the notification will remain on screen until clicked. Not all Growl displays support sticky notifications. - * @param clickContext A context passed back to the Growl delegate if it implements -(void)growlNotificationWasClicked: and the notification is clicked. Not all display plugins support clicking. The clickContext must be plist-encodable (completely of NSString, NSArray, NSNumber, NSDictionary, and NSData types). - * @param identifier An identifier for this notification. Notifications with equal identifiers are coalesced. - */ -+ (void) notifyWithTitle:(NSString *)title - description:(NSString *)description - notificationName:(NSString *)notifName - iconData:(NSData *)iconData - priority:(signed int)priority - isSticky:(BOOL)isSticky - clickContext:(id)clickContext - identifier:(NSString *)identifier; - -/*! @method notifyWithDictionary: - * @abstract Notifies using a userInfo dictionary suitable for passing to - * NSDistributedNotificationCenter. - * @param userInfo The dictionary to notify with. - * @discussion Before Growl 0.6, your application would have posted - * notifications using NSDistributedNotificationCenter by - * creating a userInfo dictionary with the notification data. This had the - * advantage of allowing you to add other data to the dictionary for programs - * besides Growl that might be listening. - * - * This method allows you to use such dictionaries without being restricted - * to using NSDistributedNotificationCenter. The keys for this dictionary - * can be found in GrowlDefines.h. - */ -+ (void) notifyWithDictionary:(NSDictionary *)userInfo; - -#pragma mark - - -/*! @method registerWithDictionary: - * @abstract Register your application with Growl without setting a delegate. - * @discussion When you call this method with a dictionary, - * GrowlApplicationBridge registers your application using that dictionary. - * If you pass nil, GrowlApplicationBridge will ask the delegate - * (if there is one) for a dictionary, and if that doesn't work, it will look - * in your application's bundle for an auto-discoverable plist. - * (XXX refer to more information on that) - * - * If you pass a dictionary to this method, it must include the - * GROWL_APP_NAME key, unless a delegate is set. - * - * This method is mainly an alternative to the delegate system introduced - * with Growl 0.6. Without a delegate, you cannot receive callbacks such as - * -growlIsReady (since they are sent to the delegate). You can, - * however, set a delegate after registering without one. - * - * This method was introduced in Growl.framework 0.7. - */ -+ (BOOL) registerWithDictionary:(NSDictionary *)regDict; - -/*! @method reregisterGrowlNotifications - * @abstract Reregister the notifications for this application. - * @discussion This method does not normally need to be called. If your - * application changes what notifications it is registering with Growl, call - * this method to have the Growl delegate's - * -registrationDictionaryForGrowl method called again and the - * Growl registration information updated. - * - * This method is now implemented using -registerWithDictionary:. - */ -+ (void) reregisterGrowlNotifications; - -#pragma mark - - -/*! @method setWillRegisterWhenGrowlIsReady: - * @abstract Tells GrowlApplicationBridge to register with Growl when Growl - * launches (or not). - * @discussion When Growl has started listening for notifications, it posts a - * GROWL_IS_READY notification on the Distributed Notification - * Center. GrowlApplicationBridge listens for this notification, using it to - * perform various tasks (such as calling your delegate's - * -growlIsReady method, if it has one). If this method is - * called with YES, one of those tasks will be to reregister - * with Growl (in the manner of -reregisterGrowlNotifications). - * - * This attribute is automatically set back to NO (the default) - * after every GROWL_IS_READY notification. - * @param flag YES if you want GrowlApplicationBridge to register with - * Growl when next it is ready; NO if not. - */ -+ (void) setWillRegisterWhenGrowlIsReady:(BOOL)flag; -/*! @method willRegisterWhenGrowlIsReady - * @abstract Reports whether GrowlApplicationBridge will register with Growl - * when Growl next launches. - * @result YES if GrowlApplicationBridge will register with Growl - * when next it posts GROWL_IS_READY; NO if not. - */ -+ (BOOL) willRegisterWhenGrowlIsReady; - -#pragma mark - - -/*! @method registrationDictionaryFromDelegate - * @abstract Asks the delegate for a registration dictionary. - * @discussion If no delegate is set, or if the delegate's - * -registrationDictionaryForGrowl method returns - * nil, this method returns nil. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromDelegate; - -/*! @method registrationDictionaryFromBundle: - * @abstract Looks in a bundle for a registration dictionary. - * @discussion This method looks in a bundle for an auto-discoverable - * registration dictionary file using -[NSBundle - * pathForResource:ofType:]. If it finds one, it loads the file using - * +[NSDictionary dictionaryWithContentsOfFile:] and returns the - * result. - * - * If you pass nil as the bundle, the main bundle is examined. - * - * This method does not attempt to clean up the dictionary in any way - for - * example, if it is missing the GROWL_APP_NAME key, the result - * will be missing it too. Use +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:] or - * +[GrowlApplicationBridge - * registrationDictionaryByFillingInDictionary:restrictToKeys:] to try - * to fill in missing keys. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) registrationDictionaryFromBundle:(NSBundle *)bundle; - -/*! @method bestRegistrationDictionary - * @abstract Obtains a registration dictionary, filled out to the best of - * GrowlApplicationBridge's knowledge. - * @discussion This method creates a registration dictionary as best - * GrowlApplicationBridge knows how. - * - * First, GrowlApplicationBridge contacts the Growl delegate (if there is - * one) and gets the registration dictionary from that. If no such dictionary - * was obtained, GrowlApplicationBridge looks in your application's main - * bundle for an auto-discoverable registration dictionary file. If that - * doesn't exist either, this method returns nil. - * - * Second, GrowlApplicationBridge calls - * +registrationDictionaryByFillingInDictionary: with whatever - * dictionary was obtained. The result of that method is the result of this - * method. - * - * GrowlApplicationBridge uses this method when you call - * +setGrowlDelegate:, or when you call - * +registerWithDictionary: with nil. - * - * This method was introduced in Growl.framework 0.7. - * @result A registration dictionary. - */ -+ (NSDictionary *) bestRegistrationDictionary; - -#pragma mark - - -/*! @method registrationDictionaryByFillingInDictionary: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Keys are only filled in if missing; if a key is present in the dictionary, - * its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict; -/*! @method registrationDictionaryByFillingInDictionary:restrictToKeys: - * @abstract Tries to fill in missing keys in a registration dictionary. - * @discussion This method examines the passed-in dictionary for missing keys, - * and tries to work out correct values for them. As of 0.7, it uses: - * - * Key Value - * --- ----- - * GROWL_APP_NAME CFBundleExecutableName - * GROWL_APP_ICON The icon of the application. - * GROWL_APP_LOCATION The location of the application. - * GROWL_NOTIFICATIONS_DEFAULT GROWL_NOTIFICATIONS_ALL - * - * Only those keys that are listed in keys will be filled in. - * Other missing keys are ignored. Also, keys are only filled in if missing; - * if a key is present in the dictionary, its value will not be changed. - * - * This method was introduced in Growl.framework 0.7. - * @param regDict The dictionary to fill in. - * @param keys The keys to fill in. If nil, any missing keys are filled in. - * @result The dictionary with the keys filled in. This is an autoreleased - * copy of regDict. - */ -+ (NSDictionary *) registrationDictionaryByFillingInDictionary:(NSDictionary *)regDict restrictToKeys:(NSSet *)keys; - -/*! @brief Tries to fill in missing keys in a notification dictionary. - * @param notifDict The dictionary to fill in. - * @return The dictionary with the keys filled in. This will be a separate instance from \a notifDict. - * @discussion This function examines the \a notifDict for missing keys, and - * tries to get them from the last known registration dictionary. As of 1.1, - * the keys that it will look for are: - * - * \li GROWL_APP_NAME - * \li GROWL_APP_ICON - * - * @since Growl.framework 1.1 - */ -+ (NSDictionary *) notificationDictionaryByFillingInDictionary:(NSDictionary *)regDict; - -+ (NSDictionary *) frameworkInfoDictionary; -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @protocol GrowlApplicationBridgeDelegate - * @abstract Required protocol for the Growl delegate. - * @discussion The methods in this protocol are required and are called - * automatically as needed by GrowlApplicationBridge. See - * +[GrowlApplicationBridge setGrowlDelegate:]. - * See also GrowlApplicationBridgeDelegate_InformalProtocol. - */ - -@protocol GrowlApplicationBridgeDelegate - -// -registrationDictionaryForGrowl has moved to the informal protocol as of 0.7. - -@end - -//------------------------------------------------------------------------------ -#pragma mark - - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_InformalProtocol) - * @abstract Methods which may be optionally implemented by the GrowlDelegate. - * @discussion The methods in this informal protocol will only be called if implemented by the delegate. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_InformalProtocol) - -/*! - * @method registrationDictionaryForGrowl - * @abstract Return the dictionary used to register this application with Growl. - * @discussion The returned dictionary gives Growl the complete list of - * notifications this application will ever send, and it also specifies which - * notifications should be enabled by default. Each is specified by an array - * of NSString objects. - * - * For most applications, these two arrays can be the same (if all sent - * notifications should be displayed by default). - * - * The NSString objects of these arrays will correspond to the - * notificationName: parameter passed in - * +[GrowlApplicationBridge - * notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:] calls. - * - * The dictionary should have the required key object pairs: - * key: GROWL_NOTIFICATIONS_ALL object: NSArray of NSString objects - * key: GROWL_NOTIFICATIONS_DEFAULT object: NSArray of NSString objects - * - * The dictionary may have the following key object pairs: - * key: GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES object: NSDictionary of key: notification name object: human-readable notification name - * - * You do not need to implement this method if you have an auto-discoverable - * plist file in your app bundle. (XXX refer to more information on that) - * - * @result The NSDictionary to use for registration. - */ -- (NSDictionary *) registrationDictionaryForGrowl; - -/*! - * @method applicationNameForGrowl - * @abstract Return the name of this application which will be used for Growl bookkeeping. - * @discussion This name is used both internally and in the Growl preferences. - * - * This should remain stable between different versions and incarnations of - * your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - * - * You do not need to implement this method if you are providing the - * application name elsewhere, meaning in an auto-discoverable plist file in - * your app bundle (XXX refer to more information on that) or in the result - * of -registrationDictionaryForGrowl. - * - * @result The name of the application using Growl. - */ -- (NSString *) applicationNameForGrowl; - -/*! - * @method applicationIconForGrowl - * @abstract Return the NSImage to treat as the application icon. - * @discussion The delegate may optionally return an NSImage - * object to use as the application icon. If this method is not implemented, - * {{{-applicationIconDataForGrowl}}} is tried. If that method is not - * implemented, the application's own icon is used. Neither method is - * generally needed. - * @result The NSImage to treat as the application icon. - */ -- (NSImage *) applicationIconForGrowl; - -/*! - * @method applicationIconDataForGrowl - * @abstract Return the NSData to treat as the application icon. - * @discussion The delegate may optionally return an NSData - * object to use as the application icon; if this is not implemented, the - * application's own icon is used. This is not generally needed. - * @result The NSData to treat as the application icon. - * @deprecated In version 1.1, in favor of {{{-applicationIconForGrowl}}}. - */ -- (NSData *) applicationIconDataForGrowl; - -/*! - * @method growlIsReady - * @abstract Informs the delegate that Growl has launched. - * @discussion Informs the delegate that Growl (specifically, the - * GrowlHelperApp) was launched successfully. The application can take actions - * with the knowledge that Growl is installed and functional. - */ -- (void) growlIsReady; - -/*! - * @method growlNotificationWasClicked: - * @abstract Informs the delegate that a Growl notification was clicked. - * @discussion Informs the delegate that a Growl notification was clicked. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationWasClicked:(id)clickContext; - -/*! - * @method growlNotificationTimedOut: - * @abstract Informs the delegate that a Growl notification timed out. - * @discussion Informs the delegate that a Growl notification timed out. It - * is only sent for notifications sent with a non-nil - * clickContext, so if you want to receive a message when a notification is - * clicked, clickContext must not be nil when calling - * +[GrowlApplicationBridge notifyWithTitle: description:notificationName:iconData:priority:isSticky:clickContext:]. - * @param clickContext The clickContext passed when displaying the notification originally via +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:]. - */ -- (void) growlNotificationTimedOut:(id)clickContext; - -@end - -#pragma mark - -/*! - * @category NSObject(GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - * @abstract Methods which may be optionally implemented by the Growl delegate when used with Growl-WithInstaller.framework. - * @discussion The methods in this informal protocol will only be called if - * implemented by the delegate. They allow greater control of the information - * presented to the user when installing or upgrading Growl from within your - * application when using Growl-WithInstaller.framework. - */ -@interface NSObject (GrowlApplicationBridgeDelegate_Installation_InformalProtocol) - -/*! - * @method growlInstallationWindowTitle - * @abstract Return the title of the installation window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlInstallationWindowTitle; - -/*! - * @method growlUpdateWindowTitle - * @abstract Return the title of the upgrade window. - * @discussion If not implemented, Growl will use a default, localized title. - * @result An NSString object to use as the title. - */ -- (NSString *)growlUpdateWindowTitle; - -/*! - * @method growlInstallationInformation - * @abstract Return the information to display when installing. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation of what Growl is and what it can do in your application. It - * should probably note that no download is required to install. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlInstallationInformation; - -/*! - * @method growlUpdateInformation - * @abstract Return the information to display when upgrading. - * @discussion This information may be as long or short as desired (the window - * will be sized to fit it). It will be displayed to the user as an - * explanation that an updated version of Growl is included in your - * application and no download is required. - * - * If this is not implemented, Growl will use a default, localized explanation. - * @result An NSAttributedString object to display. - */ -- (NSAttributedString *)growlUpdateInformation; - -@end - -//private -@interface GrowlApplicationBridge (GrowlInstallationPrompt_private) -+ (void) _userChoseNotToInstallGrowl; -@end - -#endif /* __GrowlApplicationBridge_h__ */ diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/GrowlDefines.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,348 +0,0 @@ -// -// GrowlDefines.h -// - -#ifndef _GROWLDEFINES_H -#define _GROWLDEFINES_H - -#ifdef __OBJC__ -#define XSTR(x) (@x) -#define STRING_TYPE NSString * -#else -#define XSTR CFSTR -#define STRING_TYPE CFStringRef -#endif - -/*! @header GrowlDefines.h - * @abstract Defines all the notification keys. - * @discussion Defines all the keys used for registration with Growl and for - * Growl notifications. - * - * Most applications should use the functions or methods of Growl.framework - * instead of posting notifications such as those described here. - * @updated 2004-01-25 - */ - -// UserInfo Keys for Registration -#pragma mark UserInfo Keys for Registration - -/*! @group Registration userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_APP_REGISTRATION distributed notification. - * @discussion The values of these keys describe the application and the - * notifications it may post. - * - * Your application must register with Growl before it can post Growl - * notifications (and have them not be ignored). However, as of Growl 0.6, - * posting GROWL_APP_REGISTRATION notifications directly is no longer the - * preferred way to register your application. Your application should instead - * use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ - -/*! @defined GROWL_APP_NAME - * @abstract The name of your application. - * @discussion The name of your application. This should remain stable between - * different versions and incarnations of your application. - * For example, "SurfWriter" is a good app name, whereas "SurfWriter 2.0" and - * "SurfWriter Lite" are not. - */ -#define GROWL_APP_NAME XSTR("ApplicationName") -/*! @defined GROWL_APP_ID - * @abstract The bundle identifier of your application. - * @discussion The bundle identifier of your application. This key should - * be unique for your application while there may be several applications - * with the same GROWL_APP_NAME. - * This key is optional. - */ -#define GROWL_APP_ID XSTR("ApplicationId") -/*! @defined GROWL_APP_ICON - * @abstract The image data for your application's icon. - * @discussion Image data representing your application's icon. This may be - * superimposed on a notification icon as a badge, used as the notification - * icon when a notification-specific icon is not supplied, or ignored - * altogether, depending on the display. Must be in a format supported by - * NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_APP_ICON XSTR("ApplicationIcon") -/*! @defined GROWL_NOTIFICATIONS_DEFAULT - * @abstract The array of notifications to turn on by default. - * @discussion These are the names of the notifications that should be enabled - * by default when your application registers for the first time. If your - * application reregisters, Growl will look here for any new notification - * names found in GROWL_NOTIFICATIONS_ALL, but ignore any others. - */ -#define GROWL_NOTIFICATIONS_DEFAULT XSTR("DefaultNotifications") -/*! @defined GROWL_NOTIFICATIONS_ALL - * @abstract The array of all notifications your application can send. - * @discussion These are the names of all of the notifications that your - * application may post. See GROWL_NOTIFICATION_NAME for a discussion of good - * notification names. - */ -#define GROWL_NOTIFICATIONS_ALL XSTR("AllNotifications") -/*! @defined GROWL_NOTIFICATIONS_HUMAN_READABLE_DESCRIPTIONS - * @abstract A dictionary of human-readable names for your notifications. - * @discussion By default, the Growl UI will display notifications by the names given in GROWL_NOTIFICATIONS_ALL - * which correspond to the GROWL_NOTIFICATION_NAME. This dictionary specifies the human-readable name to display. - * The keys of the dictionary are GROWL_NOTIFICATION_NAME strings; the objects are the human-readable versions. - * For any GROWL_NOTIFICATION_NAME not specific in this dictionary, the GROWL_NOTIFICATION_NAME will be displayed. - * - * This key is optional. - */ -#define GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES XSTR("HumanReadableNames") -/*! @defined GROWL_NOTIFICATIONS_DESCRIPTIONS -* @abstract A dictionary of descriptions of _when_ each notification occurs -* @discussion This is an NSDictionary whose keys are GROWL_NOTIFICATION_NAME strings and whose objects are -* descriptions of _when_ each notification occurs, such as "You received a new mail message" or -* "A file finished downloading". -* -* This key is optional. -*/ -#define GROWL_NOTIFICATIONS_DESCRIPTIONS XSTR("NotificationDescriptions") - -/*! @defined GROWL_TICKET_VERSION - * @abstract The version of your registration ticket. - * @discussion Include this key in a ticket plist file that you put in your - * application bundle for auto-discovery. The current ticket version is 1. - */ -#define GROWL_TICKET_VERSION XSTR("TicketVersion") -// UserInfo Keys for Notifications -#pragma mark UserInfo Keys for Notifications - -/*! @group Notification userInfo keys */ -/* @abstract Keys for the userInfo dictionary of a GROWL_NOTIFICATION distributed notification. - * @discussion The values of these keys describe the content of a Growl - * notification. - * - * Not all of these keys are supported by all displays. Only the name, title, - * and description of a notification are universal. Most of the built-in - * displays do support all of these keys, and most other visual displays - * probably will also. But, as of 0.6, the Log, MailMe, and Speech displays - * support only textual data. - */ - -/*! @defined GROWL_NOTIFICATION_NAME - * @abstract The name of the notification. - * @discussion The name of the notification. Note that if you do not define - * GROWL_NOTIFICATIONS_HUMAN_READABLE_NAMES when registering your ticket originally this name - * will the one displayed within the Growl preference pane and should be human-readable. - */ -#define GROWL_NOTIFICATION_NAME XSTR("NotificationName") -/*! @defined GROWL_NOTIFICATION_TITLE - * @abstract The title to display in the notification. - * @discussion The title of the notification. Should be very brief. - * The title usually says what happened, e.g. "Download complete". - */ -#define GROWL_NOTIFICATION_TITLE XSTR("NotificationTitle") -/*! @defined GROWL_NOTIFICATION_DESCRIPTION - * @abstract The description to display in the notification. - * @discussion The description should be longer and more verbose than the title. - * The description usually tells the subject of the action, - * e.g. "Growl-0.6.dmg downloaded in 5.02 minutes". - */ -#define GROWL_NOTIFICATION_DESCRIPTION XSTR("NotificationDescription") -/*! @defined GROWL_NOTIFICATION_ICON - * @discussion Image data for the notification icon. Must be in a format - * supported by NSImage, such as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_ICON XSTR("NotificationIcon") -/*! @defined GROWL_NOTIFICATION_APP_ICON - * @discussion Image data for the application icon, in case GROWL_APP_ICON does - * not apply for some reason. Must be in a format supported by NSImage, such - * as TIFF, PNG, GIF, JPEG, BMP, PICT, or PDF. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_APP_ICON XSTR("NotificationAppIcon") -/*! @defined GROWL_NOTIFICATION_PRIORITY - * @discussion The priority of the notification as an integer number from - * -2 to +2 (+2 being highest). - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_PRIORITY XSTR("NotificationPriority") -/*! @defined GROWL_NOTIFICATION_STICKY - * @discussion A Boolean number controlling whether the notification is sticky. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_STICKY XSTR("NotificationSticky") -/*! @defined GROWL_NOTIFICATION_CLICK_CONTEXT - * @abstract Identifies which notification was clicked. - * @discussion An identifier for the notification for clicking purposes. - * - * This will be passed back to the application when the notification is - * clicked. It must be plist-encodable (a data, dictionary, array, number, or - * string object), and it should be unique for each notification you post. - * A good click context would be a UUID string returned by NSProcessInfo or - * CFUUID. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_CLICK_CONTEXT XSTR("NotificationClickContext") - -/*! @defined GROWL_DISPLAY_PLUGIN - * @discussion The name of a display plugin which should be used for this notification. - * Optional. If this key is not set or the specified display plugin does not - * exist, the display plugin stored in the application ticket is used. This key - * allows applications to use different default display plugins for their - * notifications. The user can still override those settings in the preference - * pane. - */ -#define GROWL_DISPLAY_PLUGIN XSTR("NotificationDisplayPlugin") - -/*! @defined GROWL_NOTIFICATION_IDENTIFIER - * @abstract An identifier for the notification for coalescing purposes. - * Notifications with the same identifier fall into the same class; only - * the last notification of a class is displayed on the screen. If a - * notification of the same class is currently being displayed, it is - * replaced by this notification. - * - * Optional. Not supported by all display plugins. - */ -#define GROWL_NOTIFICATION_IDENTIFIER XSTR("GrowlNotificationIdentifier") - -/*! @defined GROWL_APP_PID - * @abstract The process identifier of the process which sends this - * notification. If this field is set, the application will only receive - * clicked and timed out notifications which originate from this process. - * - * Optional. - */ -#define GROWL_APP_PID XSTR("ApplicationPID") - -/*! @defined GROWL_NOTIFICATION_PROGRESS -* @abstract If this key is set, it should contain a double value wrapped -* in a NSNumber which describes some sort of progress (from 0.0 to 100.0). -* If this is key is not set, no progress bar is shown. -* -* Optional. Not supported by all display plugins. -*/ -#define GROWL_NOTIFICATION_PROGRESS XSTR("NotificationProgress") - -// Notifications -#pragma mark Notifications - -/*! @group Notification names */ -/* @abstract Names of distributed notifications used by Growl. - * @discussion These are notifications used by applications (directly or - * indirectly) to interact with Growl, and by Growl for interaction between - * its components. - * - * Most of these should no longer be used in Growl 0.6 and later, in favor of - * Growl.framework's GrowlApplicationBridge APIs. - */ - -/*! @defined GROWL_APP_REGISTRATION - * @abstract The distributed notification for registering your application. - * @discussion This is the name of the distributed notification that can be - * used to register applications with Growl. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_APP_NAME
  • - *
  • GROWL_APP_ICON
  • - *
  • GROWL_NOTIFICATIONS_ALL
  • - *
  • GROWL_NOTIFICATIONS_DEFAULT
  • - *
- * - * No longer recommended as of Growl 0.6. An alternate method of registering - * is to use Growl.framework's delegate system. - * See +[GrowlApplicationBridge setGrowlDelegate:] or Growl_SetDelegate for - * more information. - */ -#define GROWL_APP_REGISTRATION XSTR("GrowlApplicationRegistrationNotification") -/*! @defined GROWL_APP_REGISTRATION_CONF - * @abstract The distributed notification for confirming registration. - * @discussion The name of the distributed notification sent to confirm the - * registration. Used by the Growl preference pane. Your application probably - * does not need to use this notification. - */ -#define GROWL_APP_REGISTRATION_CONF XSTR("GrowlApplicationRegistrationConfirmationNotification") -/*! @defined GROWL_NOTIFICATION - * @abstract The distributed notification for Growl notifications. - * @discussion This is what it all comes down to. This is the name of the - * distributed notification that your application posts to actually send a - * Growl notification. - * - * The userInfo dictionary for this notification can contain these keys: - *
    - *
  • GROWL_NOTIFICATION_NAME (required)
  • - *
  • GROWL_NOTIFICATION_TITLE (required)
  • - *
  • GROWL_NOTIFICATION_DESCRIPTION (required)
  • - *
  • GROWL_NOTIFICATION_ICON
  • - *
  • GROWL_NOTIFICATION_APP_ICON
  • - *
  • GROWL_NOTIFICATION_PRIORITY
  • - *
  • GROWL_NOTIFICATION_STICKY
  • - *
  • GROWL_NOTIFICATION_CLICK_CONTEXT
  • - *
  • GROWL_APP_NAME (required)
  • - *
- * - * No longer recommended as of Growl 0.6. Three alternate methods of posting - * notifications are +[GrowlApplicationBridge notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:], - * Growl_NotifyWithTitleDescriptionNameIconPriorityStickyClickContext, and - * Growl_PostNotification. - */ -#define GROWL_NOTIFICATION XSTR("GrowlNotification") -/*! @defined GROWL_SHUTDOWN -* @abstract The distributed notification name that tells Growl to shutdown. -* @discussion The Growl preference pane posts this notification when the -* "Stop Growl" button is clicked. -*/ -#define GROWL_SHUTDOWN XSTR("GrowlShutdown") -/*! @defined GROWL_PING - * @abstract A distributed notification to check whether Growl is running. - * @discussion This is used by the Growl preference pane. If it receives a - * GROWL_PONG, the preference pane takes this to mean that Growl is running. - */ -#define GROWL_PING XSTR("Honey, Mind Taking Out The Trash") -/*! @defined GROWL_PONG - * @abstract The distributed notification sent in reply to GROWL_PING. - * @discussion GrowlHelperApp posts this in reply to GROWL_PING. - */ -#define GROWL_PONG XSTR("What Do You Want From Me, Woman") -/*! @defined GROWL_IS_READY - * @abstract The distributed notification sent when Growl starts up. - * @discussion GrowlHelperApp posts this when it has begin listening on all of - * its sources for new notifications. GrowlApplicationBridge (in - * Growl.framework), upon receiving this notification, reregisters using the - * registration dictionary supplied by its delegate. - */ -#define GROWL_IS_READY XSTR("Lend Me Some Sugar; I Am Your Neighbor!") -/*! @defined GROWL_NOTIFICATION_CLICKED - * @abstract The distributed notification sent when a supported notification is clicked. - * @discussion When a Growl notification with a click context is clicked on by - * the user, Growl posts this distributed notification. - * The GrowlApplicationBridge responds to this notification by calling a - * callback in its delegate. - */ -#define GROWL_NOTIFICATION_CLICKED XSTR("GrowlClicked!") -#define GROWL_NOTIFICATION_TIMED_OUT XSTR("GrowlTimedOut!") - -/*! @group Other symbols */ -/* Symbols which don't fit into any of the other categories. */ - -/*! @defined GROWL_KEY_CLICKED_CONTEXT - * @abstract Used internally as the key for the clickedContext passed over DNC. - * @discussion This key is used in GROWL_NOTIFICATION_CLICKED, and contains the - * click context that was supplied in the original notification. - */ -#define GROWL_KEY_CLICKED_CONTEXT XSTR("ClickedContext") -/*! @defined GROWL_REG_DICT_EXTENSION - * @abstract The filename extension for registration dictionaries. - * @discussion The GrowlApplicationBridge in Growl.framework registers with - * Growl by creating a file with the extension of .(GROWL_REG_DICT_EXTENSION) - * and opening it in the GrowlHelperApp. This happens whether or not Growl is - * running; if it was stopped, it quits immediately without listening for - * notifications. - */ -#define GROWL_REG_DICT_EXTENSION XSTR("growlRegDict") - - -#define GROWL_POSITION_PREFERENCE_KEY @"GrowlSelectedPosition" - -#endif //ndef _GROWLDEFINES_H diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Headers/Growl.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -#include "GrowlDefines.h" - -#ifdef __OBJC__ -# include "GrowlApplicationBridge.h" -#endif -#include "GrowlApplicationBridge-Carbon.h" diff -Nru unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist --- unison-2.40.102/uimacnew09/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Frameworks/Growl.framework/Versions/Current/Resources/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - Growl - CFBundleIdentifier - com.growl.growlframework - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.2.1 - CFBundleSignature - GRRR - CFBundleVersion - 1.2.1 - NSPrincipalClass - GrowlApplicationBridge - - diff -Nru unison-2.40.102/uimacnew09/ImageAndTextCell.h unison-2.48.3/uimacnew09/ImageAndTextCell.h --- unison-2.40.102/uimacnew09/ImageAndTextCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ImageAndTextCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -// -// ImageAndTextCell.h -// -// Copyright (c) 2001-2002, Apple. All rights reserved. -// - -#import - -@interface ImageAndTextCell : NSTextFieldCell { -@private - NSImage *image; -} - -- (void)setImage:(NSImage *)anImage; -- (NSImage *)image; - -- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; -- (NSSize)cellSize; - -@end diff -Nru unison-2.40.102/uimacnew09/ImageAndTextCell.m unison-2.48.3/uimacnew09/ImageAndTextCell.m --- unison-2.40.102/uimacnew09/ImageAndTextCell.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ImageAndTextCell.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,131 +0,0 @@ -/* - ImageAndTextCell.m - Copyright (c) 2001-2004, Apple Computer, Inc., all rights reserved. - Author: Chuck Pisula - - Milestones: - Initially created 3/1/01 - - Subclass of NSTextFieldCell which can display text and an image simultaneously. -*/ - -/* - IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in - consideration of your agreement to the following terms, and your use, installation, - modification or redistribution of this Apple software constitutes acceptance of these - terms. If you do not agree with these terms, please do not use, install, modify or - redistribute this Apple software. - - In consideration of your agreement to abide by the following terms, and subject to these - terms, Apple grants you a personal, non-exclusive license, under Apples copyrights in - this original Apple software (the "Apple Software"), to use, reproduce, modify and - redistribute the Apple Software, with or without modifications, in source and/or binary - forms; provided that if you redistribute the Apple Software in its entirety and without - modifications, you must retain this notice and the following text and disclaimers in all - such redistributions of the Apple Software. Neither the name, trademarks, service marks - or logos of Apple Computer, Inc. may be used to endorse or promote products derived from - the Apple Software without specific prior written permission from Apple. Except as expressly - stated in this notice, no other rights or licenses, express or implied, are granted by Apple - herein, including but not limited to any patent rights that may be infringed by your - derivative works or by other works in which the Apple Software may be incorporated. - - The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, - EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS - USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. - - IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, - REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND - WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR - OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#import "ImageAndTextCell.h" - -@implementation ImageAndTextCell - -- (void)dealloc { - [image release]; - image = nil; - [super dealloc]; -} - -- copyWithZone:(NSZone *)zone { - ImageAndTextCell *cell = (ImageAndTextCell *)[super copyWithZone:zone]; - cell->image = [image retain]; - return cell; -} - -- (void)setImage:(NSImage *)anImage { - if (anImage != image) { - [image release]; - image = [anImage retain]; - } -} - -- (NSImage *)image { - return image; -} - -- (NSRect)imageFrameForCellFrame:(NSRect)cellFrame { - if (image != nil) { - NSRect imageFrame; - imageFrame.size = [image size]; - imageFrame.origin = cellFrame.origin; - imageFrame.origin.x += 3; - imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); - return imageFrame; - } - else - return NSZeroRect; -} - -- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent { - NSRect textFrame, imageFrame; - NSDivideRect (aRect, &imageFrame, &textFrame, 3 + [image size].width, NSMinXEdge); - [super editWithFrame: textFrame inView: controlView editor:textObj delegate:anObject event: theEvent]; -} - -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 -typedef int NSInteger; -#endif -- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(NSInteger)selStart length:(NSInteger)selLength { - NSRect textFrame, imageFrame; - NSDivideRect (aRect, &imageFrame, &textFrame, 3 + [image size].width, NSMinXEdge); - [super selectWithFrame: textFrame inView: controlView editor:textObj delegate:anObject start:selStart length:selLength]; -} - -- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { - if (image != nil) { - NSSize imageSize; - NSRect imageFrame; - - imageSize = [image size]; - NSDivideRect(cellFrame, &imageFrame, &cellFrame, 3 + imageSize.width, NSMinXEdge); - if ([self drawsBackground]) { - [[self backgroundColor] set]; - NSRectFill(imageFrame); - } - imageFrame.origin.x += 3; - imageFrame.size = imageSize; - - if ([controlView isFlipped]) - imageFrame.origin.y += ceil((cellFrame.size.height + imageFrame.size.height) / 2); - else - imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); - - [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; - } - [super drawWithFrame:cellFrame inView:controlView]; -} - -- (NSSize)cellSize { - NSSize cellSize = [super cellSize]; - cellSize.width += (image ? [image size].width : 0) + 3; - return cellSize; -} - -@end - diff -Nru unison-2.40.102/uimacnew09/Info.plist unison-2.48.3/uimacnew09/Info.plist --- unison-2.40.102/uimacnew09/Info.plist 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Info.plist 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ - - - - - CFBundleName - Unison - CFBundleDevelopmentRegion - English - CFBundleExecutable - Unison - CFBundleIconFile - Unison.icns - CFBundleIdentifier - edu.upenn.cis.Unison - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleShortVersionString - $(MARKETING_VERSION) - CFBundleGetInfoString - ${MARKETING_VERSION}, ©1999-2007, licensed under GNU GPL. - NSHumanReadableCopyright - ©1999-2010, licensed under GNU GPL v3. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff -Nru unison-2.40.102/uimacnew09/Info.plist.template unison-2.48.3/uimacnew09/Info.plist.template --- unison-2.40.102/uimacnew09/Info.plist.template 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/Info.plist.template 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ - - - - - CFBundleName - Unison - CFBundleDevelopmentRegion - English - CFBundleExecutable - Unison - CFBundleIconFile - Unison.icns - CFBundleIdentifier - edu.upenn.cis.Unison - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleVersion - @@VERSION@@ - CFBundleShortVersionString - @@VERSION@@ - CFBundleGetInfoString - @@VERSION@@. ©1999-2007, licensed under GNU GPL. - NSHumanReadableCopyright - ©1999-2006, licensed under GNU GPL. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff -Nru unison-2.40.102/uimacnew09/main.m unison-2.48.3/uimacnew09/main.m --- unison-2.40.102/uimacnew09/main.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/main.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -// -// main.m -// uimac -// -// Created by Trevor Jim on Sun Aug 17 2003. -// Copyright (c) 2003, see file COPYING for details. -// - -#import -#import "Bridge.h" - -int main(int argc, const char *argv[]) -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - int i; - - /* When you click-start or use the open command, the program is invoked with - a command-line arg of the form -psn_XXXXXXXXX. The XXXXXXXX is a "process - serial number" and it seems to be important for Carbon programs. We need - to get rid of it if it's there so the ocaml code won't exit. Note, the - extra arg is not added if the binary is invoked directly from the command - line without using the open command. */ - if (argc == 2 && strncmp(argv[1],"-psn_",5) == 0) { - argc--; - argv[1] = NULL; - } - - [Bridge startup:argv]; - - /* Check for invocations that don't start up the gui */ - for (i=1; i - -#import "ProfileController.h" -#import "PreferencesController.h" -#import "NotificationController.h" -#import "ReconItem.h" -#import "ReconTableView.h" -#import "UnisonToolbar.h" -#import "ImageAndTextCell.h" -#import "ProgressCell.h" -#import "Bridge.h" - -@interface MyController : NSObject -{ - IBOutlet NSWindow *mainWindow; - UnisonToolbar *toolbar; - - IBOutlet NSWindow *cltoolWindow; - IBOutlet NSButton *cltoolPref; - - IBOutlet ProfileController *profileController; - IBOutlet NSView *chooseProfileView; - NSString *myProfile; - - IBOutlet PreferencesController *preferencesController; - IBOutlet NSView *preferencesView; - - IBOutlet NSView *updatesView; - IBOutlet NSView *ConnectingView; - - NSView *blankView; - - IBOutlet ReconTableView *tableView; - IBOutlet NSTextField *updatesText; - IBOutlet NSTextField *detailsTextView; - IBOutlet NSTextField *statusText; - - IBOutlet NSWindow *passwordWindow; - IBOutlet NSTextField *passwordPrompt; - IBOutlet NSTextField *passwordText; - IBOutlet NSButton *passwordCancelButton; - BOOL waitingForPassword; - - IBOutlet NSWindow *aboutWindow; - IBOutlet NSTextField *versionText; - - IBOutlet NSProgressIndicator *progressBar; - - IBOutlet NotificationController *notificationController; - - BOOL syncable; - BOOL duringSync; - BOOL afterSync; - - NSMutableArray *reconItems; - ParentReconItem *rootItem; - OCamlValue *preconn; - - BOOL doneFirstDiff; - IBOutlet NSWindow *diffWindow; - IBOutlet NSTextView *diffView; - IBOutlet NSSegmentedControl *tableModeSelector; - IBOutlet NSProgressIndicator *connectingAnimation; - - IBOutlet NSWindow *preferencesWindow; - IBOutlet NSButton* checkOpenProfile; - IBOutlet NSComboBox *profileBox; - IBOutlet NSTextField *detailsFontLabel; - IBOutlet NSTextField *diffFontLabel; - IBOutlet NSButton *chooseDetailsFont; - IBOutlet NSButton *chooseDiffFont; - - IBOutlet NSSplitView *splitView; - - id fontChangeTarget; -} - -- (id)init; -- (void)awakeFromNib; - -- (void)chooseProfiles; -- (IBAction)createButton:(id)sender; -- (IBAction)saveProfileButton:(id)sender; -- (IBAction)cancelProfileButton:(id)sender; -- (NSString *)profile; -- (void)profileSelected:(NSString *)aProfile; - -- (IBAction)showPreferences:(id)sender; -- (IBAction)restartButton:(id)sender; -- (IBAction)rescan:(id)sender; - -- (IBAction)openButton:(id)sender; -- (void)connect:(NSString *)profileName; -- (void)raisePasswordWindow:(NSString *)prompt; -- (void)controlTextDidEndEditing:(NSNotification *)notification; -- (IBAction)endPasswordWindow:(id)sender; -- (void)afterOpen; - -- (IBAction)syncButton:(id)sender; -- (IBAction)tableModeChanged:(id)sender; -- (void)initTableMode; - -- (NSMutableArray *)reconItems; -- (void)updateForChangedItems; -- (void)updateReconItems:(OCamlValue *)items; -- (id)updateForIgnore:(id)i; - -- (void)statusTextSet:(NSString *)s; -- (void)diffViewTextSet:(NSString *)title bodyText:(NSString *)body; -- (void)displayDetails:(ReconItem *)item; -- (void)clearDetails; - -- (IBAction)raiseCltoolWindow:(id)sender; -- (IBAction)cltoolYesButton:(id)sender; -- (IBAction)cltoolNoButton:(id)sender; - -- (IBAction)raiseAboutWindow:(id)sender; -- (IBAction)raiseWindow:(NSWindow *)theWindow; -- (IBAction)onlineHelp:(id)sender; -- (IBAction)installCommandLineTool:(id)sender; - -- (BOOL)validateItem:(IBAction *) action; -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; -- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem; - -- (void)resizeWindowToSize:(NSSize)newSize; -- (float)toolbarHeightForWindow:(NSWindow *)window; - -- (IBAction) checkOpenProfileChanged:(id)sender; -- (IBAction) chooseFont:(id)sender; -- (void) updateFontDisplay; - -@end - diff -Nru unison-2.40.102/uimacnew09/MyController.m unison-2.48.3/uimacnew09/MyController.m --- unison-2.40.102/uimacnew09/MyController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/MyController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,1113 +0,0 @@ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import "MyController.h" - -/* The following two define are a workaround for an incompatibility between -Ocaml 3.11.2 (and older) and the Mac OS X header files */ -#define uint64 uint64_caml -#define int64 int64_caml - -#define CAML_NAME_SPACE -#include -#include -#include -#include - -@interface NSString (_UnisonUtil) -- (NSString *)trim; -@end - -@implementation MyController - -static MyController *me; // needed by reloadTable and displayStatus, below - -// BCP (11/09): Added per Onne Gorter: -// if user closes main window, terminate app, instead of keeping an empty app around with no window -- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication { - return YES; -} - -- (id)init -{ - if (([super init])) { - - /* Initialize locals */ - me = self; - doneFirstDiff = NO; - - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys: - /* By default, invite user to install cltool */ - @"YES", @"CheckCltool", - @"NO", @"openProfileAtStartup", - @"", @"profileToOpen", - @"NO", @"deleteLogOnExit", - @"", @"detailsFont", - @"", @"diffFont", - nil]; - - [defaults registerDefaults:appDefaults]; - fontChangeTarget = nil; - } - - return self; -} - -- (void) applicationWillTerminate:(NSNotification *)aNotification { - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - [defaults setObject:[NSArchiver archivedDataWithRootObject:[detailsTextView font]] forKey:@"detailsFont"]; - [defaults setObject:[NSArchiver archivedDataWithRootObject:[diffView font]] forKey:@"diffFont"]; - [defaults synchronize]; -} - -- (void)awakeFromNib -{ - [splitView setAutosaveName:@"splitView"]; - - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSFont *defaultFont = [NSFont fontWithName:@"Monaco" size:11]; - NSData *detailsFontData = [defaults dataForKey:@"detailsFont"]; - if (detailsFontData) { - NSFont *tmpFont = (NSFont*) [NSUnarchiver unarchiveObjectWithData:detailsFontData]; - if (tmpFont) - [detailsTextView setFont:tmpFont]; - else - [detailsTextView setFont:defaultFont]; - } else - [detailsTextView setFont:defaultFont]; - - NSData *diffFontData = [defaults dataForKey:@"diffFont"]; - if (diffFontData) { - NSFont *tmpFont = (NSFont*) [NSUnarchiver unarchiveObjectWithData:diffFontData]; - if (tmpFont) - [diffView setFont:tmpFont]; - else - [diffView setFont:defaultFont]; - } else - [diffView setFont:defaultFont]; - - blankView = [[NSView alloc] init]; - - /* Double clicking in the profile list will open the profile */ - [[profileController tableView] setTarget:self]; - [[profileController tableView] setDoubleAction:@selector(openButton:)]; - - [tableView setAutoresizesOutlineColumn:NO]; - - // use combo-cell for path - [[tableView tableColumnWithIdentifier:@"path"] setDataCell:[[[ImageAndTextCell alloc] init] autorelease]]; - - // Custom progress cell - ProgressCell *progressCell = [[[ProgressCell alloc] init] autorelease]; - [[tableView tableColumnWithIdentifier:@"percentTransferred"] setDataCell:progressCell]; - - /* Set up the version string in the about box. We use a custom - about box just because PRCS doesn't seem capable of getting the - version into the InfoPlist.strings file; otherwise we'd use the - standard about box. */ - [versionText setStringValue:ocamlCall("S", "unisonGetVersion")]; - - /* Command-line processing */ - OCamlValue *clprofile = (id)ocamlCall("@", "unisonInit0"); - - /* Add toolbar */ - toolbar = [[[UnisonToolbar alloc] - initWithIdentifier: @"unisonToolbar" :self :tableView] autorelease]; - [mainWindow setToolbar: toolbar]; - [toolbar takeTableModeView:tableModeSelector]; - [self initTableMode]; - - - /* Set up the first window the user will see */ - if (clprofile) { - /* A profile name was given on the command line */ - NSString *profileName = [clprofile getField:0 withType:'S']; - [self profileSelected:profileName]; - - /* If invoked from terminal we need to bring the app to the front */ - [NSApp activateIgnoringOtherApps:YES]; - - /* Start the connection */ - [self connect:profileName]; - } - else { - /* If invoked from terminal we need to bring the app to the front */ - [NSApp activateIgnoringOtherApps:YES]; - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"openProfileAtStartup"]) { - NSString *profileToOpen = [[NSUserDefaults standardUserDefaults] - stringForKey:@"profileToOpen"]; - if ([[profileToOpen trim] compare:@""] != NSOrderedSame && - [[profileController getProfiles] indexOfObject:profileToOpen] != NSNotFound) { - [self profileSelected:profileToOpen]; - [self connect:profileToOpen]; - } else { - /* Bring up the dialog to choose a profile */ - [self chooseProfiles]; - } - } else { - /* Bring up the dialog to choose a profile */ - [self chooseProfiles]; - } - } - - [mainWindow display]; - [mainWindow makeKeyAndOrderFront:nil]; - - /* unless user has clicked Don't ask me again, ask about cltool */ - if ( ([[NSUserDefaults standardUserDefaults] boolForKey:@"CheckCltool"]) && - (![[NSFileManager defaultManager] - fileExistsAtPath:@"/usr/bin/unison"]) ) - [self raiseCltoolWindow:nil]; -} - -- (IBAction) checkOpenProfileChanged:(id)sender { - [profileBox setEnabled:[checkOpenProfile state]]; - if ([profileBox isEnabled] && [profileBox indexOfSelectedItem] < 0) { - [profileBox selectItemAtIndex:0]; - [[NSUserDefaults standardUserDefaults] setObject:[profileBox itemObjectValueAtIndex:0] forKey:@"profileToOpen"]; - } -} - -- (IBAction) chooseFont:(id)sender { - [[NSFontPanel sharedFontPanel] makeKeyAndOrderFront:self]; - [[NSFontManager sharedFontManager] setDelegate:self]; - fontChangeTarget = sender; -} - -- (void) changeFont:(id)sender { - NSFont *newFont = [sender convertFont:[detailsTextView font]]; - if (fontChangeTarget == chooseDetailsFont) - [detailsTextView setFont:newFont]; - else if (fontChangeTarget == chooseDiffFont) - [diffView setFont:newFont]; - [self updateFontDisplay]; -} - -- (void) updateFontDisplay { - NSFont *detailsFont = [detailsTextView font]; - NSFont *diffFont = [diffView font]; - [detailsFontLabel setStringValue:[NSString stringWithFormat:@"%@ : %d", [detailsFont displayName], (NSInteger) [detailsFont pointSize]]]; - [diffFontLabel setStringValue:[NSString stringWithFormat:@"%@ : %d", [diffFont displayName], (NSInteger) [diffFont pointSize]]]; -} - -- (void)chooseProfiles -{ - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:[chooseProfileView frame].size]; - [mainWindow setContentMinSize: - NSMakeSize(NSWidth([[mainWindow contentView] frame]),150)]; - [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [mainWindow setContentView:chooseProfileView]; - [toolbar setView:@"chooseProfileView"]; - [mainWindow setTitle:@"Unison"]; - - // profiles get keyboard input - [mainWindow makeFirstResponder:[profileController tableView]]; - [chooseProfileView display]; -} - -- (IBAction)createButton:(id)sender -{ - [preferencesController reset]; - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:[preferencesView frame].size]; - [mainWindow setContentMinSize: - NSMakeSize(400,NSHeight([[mainWindow contentView] frame]))]; - [mainWindow setContentMaxSize: - NSMakeSize(FLT_MAX,NSHeight([[mainWindow contentView] frame]))]; - [mainWindow setContentView:preferencesView]; - [toolbar setView:@"preferencesView"]; -} - -- (IBAction)saveProfileButton:(id)sender -{ - if ([preferencesController validatePrefs]) { - // so the list contains the new profile - [profileController initProfiles]; - [self chooseProfiles]; - } -} - -- (IBAction)cancelProfileButton:(id)sender -{ - [self chooseProfiles]; -} - -/* Only valid once a profile has been selected */ -- (NSString *)profile { - return myProfile; -} - -- (void)profileSelected:(NSString *)aProfile -{ - [aProfile retain]; - [myProfile release]; - myProfile = aProfile; - [mainWindow setTitle: [NSString stringWithFormat:@"Unison: %@", myProfile]]; -} - -- (IBAction)showPreferences:(id)sender { - [profileBox removeAllItems]; - [profileBox addItemsWithObjectValues:[profileController getProfiles]]; - NSUInteger index = [[profileController getProfiles] indexOfObject: - [[NSUserDefaults standardUserDefaults] - stringForKey:@"profileToOpen"]]; - if (index == NSNotFound) { - [checkOpenProfile setState:NSOffState]; - [profileBox setStringValue:@""]; - } else - [profileBox selectItemAtIndex:index]; - - [profileBox setEnabled:[checkOpenProfile state]]; - if ([profileBox isEnabled] && [profileBox indexOfSelectedItem] < 0) - [profileBox selectItemAtIndex:0]; - - [self updateFontDisplay]; - - [self raiseWindow:preferencesWindow]; -} - -- (IBAction)restartButton:(id)sender -{ - [tableView setEditable:NO]; - [self chooseProfiles]; -} - -- (IBAction)rescan:(id)sender -{ - /* There is a delay between turning off the button and it - actually being disabled. Make sure we don't respond. */ - if ([self validateItem:@selector(rescan:)]) { - waitingForPassword = NO; - [self afterOpen]; - } -} - -- (IBAction)openButton:(id)sender -{ - NSString *profile = [profileController selected]; - [self profileSelected:profile]; - [self connect:profile]; - return; -} - -- (void)updateToolbar -{ - [toolbar validateVisibleItems]; - [tableModeSelector setEnabled:((syncable && !duringSync) || afterSync)]; - - // Why? - [updatesView setNeedsDisplay:YES]; -} - -- (void)updateTableViewWithReset:(BOOL)shouldResetSelection -{ - [tableView reloadData]; - if (shouldResetSelection) { - [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; - shouldResetSelection = NO; - } - [updatesView setNeedsDisplay:YES]; -} - -- (void)updateProgressBar:(NSNumber *)newProgress -{ - // NSLog(@"Updating progress bar: %i - %i", (int)[newProgress doubleValue], (int)[progressBar doubleValue]); - [progressBar incrementBy:([newProgress doubleValue] - [progressBar doubleValue])]; -} - -- (void)updateTableViewSelection -{ - int n = [tableView numberOfSelectedRows]; - if (n == 1) [self displayDetails:[tableView itemAtRow:[tableView selectedRow]]]; - else [self clearDetails]; -} - -- (void)outlineViewSelectionDidChange:(NSNotification *)note -{ - [self updateTableViewSelection]; -} - -- (void)connect:(NSString *)profileName -{ - // contact server, propagate prefs - NSLog(@"Connecting to %@...", profileName); - - // Switch to ConnectingView - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:[updatesView frame].size]; - [mainWindow setContentMinSize:NSMakeSize(150,150)]; - [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [mainWindow setContentView:ConnectingView]; - [toolbar setView:@"connectingView"]; - - // Update (almost) immediately - [ConnectingView display]; - [connectingAnimation startAnimation:self]; - - syncable = NO; - afterSync = NO; - - [self updateToolbar]; - - // will spawn thread on OCaml side and callback when complete - (void)ocamlCall("xS", "unisonInit1", profileName); -} - -CAMLprim value unisonInit1Complete(value v) -{ - id pool = [[NSAutoreleasePool alloc] init]; - if (v == Val_unit) { - NSLog(@"Connected."); - [me->connectingAnimation stopAnimation:me]; - [me->preconn release]; - me->preconn = NULL; - [me performSelectorOnMainThread:@selector(afterOpen:) withObject:nil waitUntilDone:FALSE]; - } else { - // prompting required - me->preconn = [[OCamlValue alloc] initWithValue:Field(v,0)]; // value of Some - [me performSelectorOnMainThread:@selector(unisonInit1Complete:) withObject:nil waitUntilDone:FALSE]; - } - [pool release]; - return Val_unit; -} - -- (void)unisonInit1Complete:(id)ignore -{ - @try { - OCamlValue *prompt = ocamlCall("@@", "openConnectionPrompt", preconn); - if (!prompt) { - // turns out, no prompt needed, but must finish opening connection - ocamlCall("x@", "openConnectionEnd", preconn); - NSLog(@"Connected."); - waitingForPassword = NO; - [self afterOpen]; - return; - } - waitingForPassword = YES; - - [self raisePasswordWindow:[prompt getField:0 withType:'S']]; - } @catch (NSException *ex) { - NSRunAlertPanel(@"Connection Error", [ex description], @"OK", nil, nil); - [self chooseProfiles]; - return; - } - - NSLog(@"Connected."); -} - -- (void)raisePasswordWindow:(NSString *)prompt -{ - // FIX: some prompts don't ask for password, need to look at it - NSLog(@"Got the prompt: '%@'",prompt); - if ((long)ocamlCall("iS", "unisonPasswordMsg", prompt)) { - [passwordPrompt setStringValue:@"Please enter your password"]; - [NSApp beginSheet:passwordWindow - modalForWindow:mainWindow - modalDelegate:nil - didEndSelector:nil - contextInfo:nil]; - return; - } - if ((long)ocamlCall("iS", "unisonPassphraseMsg", prompt)) { - [passwordPrompt setStringValue:@"Please enter your passphrase"]; - [NSApp beginSheet:passwordWindow - modalForWindow:mainWindow - modalDelegate:nil - didEndSelector:nil - contextInfo:nil]; - return; - } - if ((long)ocamlCall("iS", "unisonAuthenticityMsg", prompt)) { - int i = NSRunAlertPanel(@"New host",prompt,@"Yes",@"No",nil); - if (i == NSAlertDefaultReturn) { - ocamlCall("x@s", "openConnectionReply", preconn, "yes"); - prompt = ocamlCall("S@", "openConnectionPrompt", preconn); - if (!prompt) { - // all done with prompts, finish opening connection - ocamlCall("x@", "openConnectionEnd", preconn); - waitingForPassword = NO; - [self afterOpen]; - return; - } - else { - [self raisePasswordWindow:[NSString - stringWithUTF8String:String_val(Field(prompt,0))]]; - return; - } - } - if (i == NSAlertAlternateReturn) { - ocamlCall("x@", "openConnectionCancel", preconn); - return; - } - else { - NSLog(@"Unrecognized response '%d' from NSRunAlertPanel",i); - ocamlCall("x@", "openConnectionCancel", preconn); - return; - } - } - NSLog(@"Unrecognized message from ssh: %@",prompt); - ocamlCall("x@", "openConnectionCancel", preconn); -} - -// The password window will invoke this when Enter occurs, b/c we -// are the delegate. -- (void)controlTextDidEndEditing:(NSNotification *)notification -{ - NSNumber *reason = [[notification userInfo] objectForKey:@"NSTextMovement"]; - int code = [reason intValue]; - if (code == NSReturnTextMovement) - [self endPasswordWindow:self]; -} -// Or, the Continue button will invoke this when clicked -- (IBAction)endPasswordWindow:(id)sender -{ - [passwordWindow orderOut:self]; - [NSApp endSheet:passwordWindow]; - if ([sender isEqualTo:passwordCancelButton]) { - ocamlCall("x@", "openConnectionCancel", preconn); - [self chooseProfiles]; - return; - } - NSString *password = [passwordText stringValue]; - ocamlCall("x@S", "openConnectionReply", preconn, password); - - OCamlValue *prompt = ocamlCall("@@", "openConnectionPrompt", preconn); - if (!prompt) { - // all done with prompts, finish opening connection - ocamlCall("x@", "openConnectionEnd", preconn); - waitingForPassword = NO; - [self afterOpen]; - } - else { - [self raisePasswordWindow:[prompt getField:0 withType:'S']]; - } -} - -- (void)afterOpen:(id)ignore -{ - [self afterOpen]; -} - -- (void)afterOpen -{ - if (waitingForPassword) return; - // move to updates window after clearing it - [self updateReconItems:nil]; - [progressBar setDoubleValue:0.0]; - [progressBar stopAnimation:self]; - // [self clearDetails]; - [mainWindow setContentView:blankView]; - [self resizeWindowToSize:[updatesView frame].size]; - [mainWindow setContentMinSize: - NSMakeSize(NSWidth([[mainWindow contentView] frame]),200)]; - [mainWindow setContentMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [mainWindow setContentView:updatesView]; - [toolbar setView:@"updatesView"]; - - syncable = NO; - afterSync = NO; - - [tableView deselectAll:self]; - [self updateToolbar]; - [self updateProgressBar:[NSNumber numberWithDouble:0.0]]; - - // this should depend on the number of reconitems, and is now done - // in updateReconItems: - // reconItems table gets keyboard input - //[mainWindow makeFirstResponder:tableView]; - [tableView scrollRowToVisible:0]; - - [preconn release]; - preconn = nil; // so old preconn can be garbage collected - // This will run in another thread spawned in OCaml and will return immediately - // We'll get a call back to unisonInit2Complete() when it is complete - ocamlCall("x", "unisonInit2"); -} - - -- (void)afterUpdate:(id)retainedReconItems -{ - // NSLog(@"In afterUpdate:..."); - [self updateReconItems:retainedReconItems]; - [retainedReconItems release]; - - [notificationController updateFinishedFor:[self profile]]; - - // label the left and right columns with the roots - NSString *leftHost = [(NSString *)ocamlCall("S", "unisonFirstRootString") trim]; - NSString *rightHost = [(NSString *)ocamlCall("S", "unisonSecondRootString") trim]; - /* - [[[tableView tableColumnWithIdentifier:@"left"] headerCell] setObjectValue:lefthost]; - [[[tableView tableColumnWithIdentifier:@"right"] headerCell] setObjectValue:rightHost]; - */ - [mainWindow setTitle: [NSString stringWithFormat:@"Unison: %@ (%@ <-> %@)", - [self profile], leftHost, rightHost]]; - - // initial sort - [tableView setSortDescriptors:[NSArray arrayWithObjects: - [[tableView tableColumnWithIdentifier:@"fileSizeString"] sortDescriptorPrototype], - [[tableView tableColumnWithIdentifier:@"path"] sortDescriptorPrototype], - nil]]; - - [self updateTableViewWithReset:([reconItems count] > 0)]; - [self updateToolbar]; -} - -CAMLprim value unisonInit2Complete(value v) -{ - id pool = [[NSAutoreleasePool alloc] init]; - [me performSelectorOnMainThread:@selector(afterUpdate:) withObject:[[OCamlValue alloc] initWithValue:v] waitUntilDone:FALSE]; - [pool release]; - return Val_unit; -} - -- (IBAction)syncButton:(id)sender -{ - [tableView setEditable:NO]; - syncable = NO; - duringSync = YES; - - [self updateToolbar]; - - // This will run in another thread spawned in OCaml and will return immediately - // We'll get a call back to syncComplete() when it is complete - ocamlCall("x", "unisonSynchronize"); -} - -- (void)afterSync:(id)ignore -{ - [notificationController syncFinishedFor:[self profile]]; - duringSync = NO; - afterSync = YES; - [self updateToolbar]; - - int i; - for (i = 0; i < [reconItems count]; i++) { - [[reconItems objectAtIndex:i] resetProgress]; - } - - [self updateTableViewSelection]; - - [self updateTableViewWithReset:FALSE]; -} - -CAMLprim value syncComplete() -{ - id pool = [[NSAutoreleasePool alloc] init]; - [me performSelectorOnMainThread:@selector(afterSync:) withObject:nil waitUntilDone:FALSE]; - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"deleteLogOnExit"]) - [[NSFileManager defaultManager] removeItemAtPath:[@"~/unison.log" stringByExpandingTildeInPath] error:nil]; - [pool release]; - return Val_unit; -} - -// A function called from ocaml -- (void)reloadTable:(NSNumber *)i -{ - // NSLog(@"*** ReloadTable: %i", [i intValue]); - - [[reconItems objectAtIndex:[i intValue]] resetProgress]; - [self updateTableViewWithReset:FALSE]; -} - -CAMLprim value reloadTable(value row) -{ - id pool = [[NSAutoreleasePool alloc] init]; - // NSLog(@"OCaml says... ReloadTable: %i", Int_val(row)); - NSNumber *num = [[NSNumber alloc] initWithInt:Int_val(row)]; - [me performSelectorOnMainThread:@selector(reloadTable:) withObject:num waitUntilDone:FALSE]; - [num release]; - [pool release]; - return Val_unit; -} - -- (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { - if (item == nil) item = rootItem; - return [[item children] count]; -} - -- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { - return [item isKindOfClass:[ParentReconItem class]]; -} - -- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item { - if (item == nil) item = rootItem; - return [[item children] objectAtIndex:index]; -} - -- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { - NSString *identifier = [tableColumn identifier]; - if (item == nil) item = rootItem; - - if ([identifier isEqualToString:@"percentTransferred"] && (!duringSync && !afterSync)) return nil; - - return [item valueForKey:identifier]; -} - -static NSDictionary *_SmallGreyAttributes = nil; - -- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(NSCell *)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item { - NSString *identifier = [tableColumn identifier]; - if ([identifier isEqualToString:@"path"]) { - // The file icon - [(ImageAndTextCell*)cell setImage:[item fileIcon]]; - - // For parents, format the file count into the text - long fileCount = [item fileCount]; - if (fileCount > 1) { - NSString *countString = [NSString stringWithFormat:@" (%ld files)", fileCount]; - NSString *fullString = [(NSString *)[cell objectValue] stringByAppendingString:countString]; - NSMutableAttributedString *as = [[NSMutableAttributedString alloc] initWithString:fullString]; - - if (!_SmallGreyAttributes) { - NSColor *txtColor = [NSColor grayColor]; - NSFont *txtFont = [NSFont systemFontOfSize:9.0]; - _SmallGreyAttributes = [[NSDictionary dictionaryWithObjectsAndKeys:txtFont, - NSFontAttributeName, txtColor, NSForegroundColorAttributeName, nil] retain]; - } - [as setAttributes:_SmallGreyAttributes range:NSMakeRange([fullString length] - [countString length], [countString length])]; - [cell setAttributedStringValue:as]; - [as release]; - } - } else if ([identifier isEqualToString:@"percentTransferred"]) { - [(ProgressCell*)cell setIcon:[item direction]]; - [(ProgressCell*)cell setStatusString:[item progressString]]; - [(ProgressCell*)cell setIsActive:[item isKindOfClass:[LeafReconItem class]]]; - } -} - -- (void)outlineView:(NSOutlineView *)outlineView - sortDescriptorsDidChange:(NSArray *)oldDescriptors { - NSArray *originalSelection = [outlineView selectedObjects]; - - // do we want to catch case of object changes to allow resort in same direction for progress / direction? - // Could check if our objects change and if the first item at the head of new and old were the same - [rootItem sortUsingDescriptors:[outlineView sortDescriptors]]; - [outlineView reloadData]; - [outlineView setSelectedObjects:originalSelection]; -} - -// Delegate methods - -- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item { - return NO; -} - -- (NSMutableArray *)reconItems // used in ReconTableView only -{ - return reconItems; -} - -- (int)tableMode -{ - return [tableModeSelector selectedSegment]; -} - -- (IBAction)tableModeChanged:(id)sender -{ - [[NSUserDefaults standardUserDefaults] setInteger:[self tableMode]+1 forKey:@"TableLayout"]; - [self updateForChangedItems]; -} - -- (void)initTableMode -{ - int mode = [[NSUserDefaults standardUserDefaults] integerForKey:@"TableLayout"] - 1; - if (mode == -1) mode = 1; - [tableModeSelector setSelectedSegment:mode]; -} - -- (void)updateReconItems:(OCamlValue *)caml_reconItems -{ - [reconItems release]; - reconItems = [[NSMutableArray alloc] init]; - long i, n =[caml_reconItems count]; - for (i=0; i0) { - [tableView setEditable:YES]; - - // reconItems table gets keyboard input - [mainWindow makeFirstResponder:tableView]; - - syncable = YES; - } - else { - [tableView setEditable:NO]; - afterSync = YES; // rescan should be enabled - - // reconItems table no longer gets keyboard input - [mainWindow makeFirstResponder:nil]; - } - [self updateToolbar]; -} - -- (id)updateForIgnore:(id)item -{ - long j = (long)ocamlCall("ii", "unisonUpdateForIgnore", [reconItems indexOfObjectIdenticalTo:item]); - NSLog(@"Updating for ignore..."); - [self updateReconItems:(OCamlValue *)ocamlCall("@", "unisonState")]; - return [reconItems objectAtIndex:j]; -} - -// A function called from ocaml -CAMLprim value displayStatus(value s) -{ - id pool = [[NSAutoreleasePool alloc] init]; - NSString *str = [[NSString alloc] initWithUTF8String:String_val(s)]; - // NSLog(@"displayStatus: %@", str); - [me performSelectorOnMainThread:@selector(statusTextSet:) withObject:str waitUntilDone:FALSE]; - [str release]; - [pool release]; - return Val_unit; -} - -- (void)statusTextSet:(NSString *)s { - /* filter out strings with # reconitems, and empty strings */ - if (!NSEqualRanges([s rangeOfString:@"reconitems"], - NSMakeRange(NSNotFound,0))) return; - [statusText setStringValue:s]; -} - -// Called from ocaml to dislpay progress bar -CAMLprim value displayGlobalProgress(value p) -{ - id pool = [[NSAutoreleasePool alloc] init]; - NSNumber *num = [[NSNumber alloc] initWithDouble:Double_val(p)]; - [me performSelectorOnMainThread:@selector(updateProgressBar:) - withObject:num waitUntilDone:FALSE]; - [num release]; - [pool release]; - return Val_unit; -} - -// Called from ocaml to display diff -CAMLprim value displayDiff(value s, value s2) -{ - id pool = [[NSAutoreleasePool alloc] init]; - [me performSelectorOnMainThread:@selector(diffViewTextSet:) - withObject:[NSArray arrayWithObjects:[NSString stringWithUTF8String:String_val(s)], - [NSString stringWithUTF8String:String_val(s2)], nil] - waitUntilDone:FALSE]; - [pool release]; - return Val_unit; -} - -// Called from ocaml to display diff error messages -CAMLprim value displayDiffErr(value s) -{ - id pool = [[NSAutoreleasePool alloc] init]; - NSString * str = [NSString stringWithUTF8String:String_val(s)]; - str = [[str componentsSeparatedByString:@"\n"] componentsJoinedByString:@" "]; - [me->statusText performSelectorOnMainThread:@selector(setStringValue:) - withObject:str waitUntilDone:FALSE]; - [pool release]; - return Val_unit; -} - -- (void)diffViewTextSet:(NSArray *)args -{ - [self diffViewTextSet:[args objectAtIndex:0] bodyText:[args objectAtIndex:1]]; -} - -- (void)diffViewTextSet:(NSString *)title bodyText:(NSString *)body { - if ([body length]==0) return; - [diffWindow setTitle:title]; - //[diffView setFont:diffFont]; - [diffView setString:body]; - if (!doneFirstDiff) { - /* On first open, position the diff window to the right of - the main window, but without going off the mainwindow's screen */ - float screenOriginX = [[mainWindow screen] visibleFrame].origin.x; - float screenWidth = [[mainWindow screen] visibleFrame].size.width; - float mainOriginX = [mainWindow frame].origin.x; - float mainOriginY = [mainWindow frame].origin.y; - float mainWidth = [mainWindow frame].size.width; - float mainHeight = [mainWindow frame].size.height; - float diffWidth = [diffWindow frame].size.width; - - float diffX = mainOriginX+mainWidth; - float maxX = screenOriginX+screenWidth-diffWidth; - if (diffX > maxX) diffX = maxX; - float diffY = mainOriginY + mainHeight; - - NSPoint diffOrigin = NSMakePoint(diffX,diffY); - [diffWindow cascadeTopLeftFromPoint:diffOrigin]; - - doneFirstDiff = YES; - } - [diffWindow orderFront:nil]; -} - -- (void)displayDetails:(ReconItem *)item -{ - //[detailsTextView setFont:diffFont]; - NSString *text = [item details]; - if (!text) text = @""; - [detailsTextView setStringValue:text]; -} - -- (void)clearDetails -{ - [detailsTextView setStringValue:@""]; -} - -- (IBAction)raiseCltoolWindow:(id)sender -{ - [cltoolPref setState:[[NSUserDefaults standardUserDefaults] boolForKey:@"CheckCltool"] ? NSOffState : NSOnState]; - [self raiseWindow: cltoolWindow]; -} - -- (IBAction)cltoolYesButton:(id)sender; -{ - [[NSUserDefaults standardUserDefaults] setBool:([cltoolPref state] != NSOnState) forKey:@"CheckCltool"]; - [self installCommandLineTool:self]; - [cltoolWindow close]; -} - -- (IBAction)cltoolNoButton:(id)sender; -{ - [[NSUserDefaults standardUserDefaults] setBool:([cltoolPref state] != NSOnState) forKey:@"CheckCltool"]; - [cltoolWindow close]; -} - -- (IBAction)raiseAboutWindow:(id)sender -{ - [self raiseWindow: aboutWindow]; -} - -- (void)raiseWindow:(NSWindow *)theWindow -{ - NSRect screenFrame = [[mainWindow screen] visibleFrame]; - NSRect mainWindowFrame = [mainWindow frame]; - NSRect theWindowFrame = [theWindow frame]; - - float winX = mainWindowFrame.origin.x + - (mainWindowFrame.size.width - theWindowFrame.size.width)/2; - float winY = mainWindowFrame.origin.y + - (mainWindowFrame.size.height + theWindowFrame.size.height)/2; - - if (winXmaxX) winX=maxX; - float minY = screenFrame.origin.y+theWindowFrame.size.height; - if (winYmaxY) winY=maxY; - - [theWindow cascadeTopLeftFromPoint: - NSMakePoint(winX,winY)]; - - [theWindow makeKeyAndOrderFront:nil]; -} - -- (IBAction)onlineHelp:(id)sender -{ - [[NSWorkspace sharedWorkspace] - openURL:[NSURL URLWithString:@"http://www.cis.upenn.edu/~bcpierce/unison/docs.html"]]; -} - -/* from http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html */ -#include -#include -- (IBAction)installCommandLineTool:(id)sender -{ - /* Install the command-line tool in /usr/bin/unison. - Requires root privilege, so we ask for it and - pass the task off to /bin/sh. */ - - OSStatus myStatus; - - AuthorizationFlags myFlags = kAuthorizationFlagDefaults; - AuthorizationRef myAuthorizationRef; - myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, - myFlags, &myAuthorizationRef); - if (myStatus != errAuthorizationSuccess) return; - - { - AuthorizationItem myItems = {kAuthorizationRightExecute, 0, - NULL, 0}; - AuthorizationRights myRights = {1, &myItems}; - myFlags = kAuthorizationFlagDefaults | - kAuthorizationFlagInteractionAllowed | - kAuthorizationFlagPreAuthorize | - kAuthorizationFlagExtendRights; - myStatus = - AuthorizationCopyRights(myAuthorizationRef,&myRights,NULL,myFlags,NULL); - } - if (myStatus == errAuthorizationSuccess) { - NSBundle *bundle = [NSBundle mainBundle]; - NSString *bundle_path = [bundle bundlePath]; - NSString *exec_path = - [bundle_path stringByAppendingString:@"/Contents/MacOS/cltool"]; - // Not sure why but this doesn't work: - // [bundle pathForResource:@"cltool" ofType:nil]; - - if (exec_path == nil) return; - char *args[] = { "-f", (char *)[exec_path UTF8String], - "/usr/bin/unison", NULL }; - - myFlags = kAuthorizationFlagDefaults; - myStatus = AuthorizationExecuteWithPrivileges - (myAuthorizationRef, "/bin/cp", myFlags, args, - NULL); - } - AuthorizationFree (myAuthorizationRef, kAuthorizationFlagDefaults); - - /* - if (myStatus == errAuthorizationCanceled) - NSLog(@"The attempt was canceled\n"); - else if (myStatus) - NSLog(@"There was an authorization error: %ld\n", myStatus); - */ -} - -- (BOOL)validateItem:(IBAction *) action -{ - if (action == @selector(syncButton:)) return syncable; - // FIXME Restarting during sync is disabled because it causes UI corruption - else if (action == @selector(restartButton:)) return !duringSync; - else if (action == @selector(rescan:)) return ((syncable && !duringSync) || afterSync); - else return YES; -} - -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ - return [self validateItem:[menuItem action]]; -} - -- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem -{ - return [self validateItem:[toolbarItem action]]; -} - -- (void)resizeWindowToSize:(NSSize)newSize -{ - NSRect aFrame; - - float newHeight = newSize.height+[self toolbarHeightForWindow:mainWindow]; - float newWidth = newSize.width; - - aFrame = [NSWindow contentRectForFrameRect:[mainWindow frame] - styleMask:[mainWindow styleMask]]; - - aFrame.origin.y += aFrame.size.height; - aFrame.origin.y -= newHeight; - aFrame.size.height = newHeight; - aFrame.size.width = newWidth; - - aFrame = [NSWindow frameRectForContentRect:aFrame - styleMask:[mainWindow styleMask]]; - - [mainWindow setFrame:aFrame display:YES animate:YES]; -} - -- (float)toolbarHeightForWindow:(NSWindow *)window -{ - NSToolbar *aToolbar; - float toolbarHeight = 0.0; - NSRect windowFrame; - - aToolbar = [window toolbar]; - if(aToolbar && [aToolbar isVisible]) - { - windowFrame = [NSWindow contentRectForFrameRect:[window frame] - styleMask:[window styleMask]]; - toolbarHeight = NSHeight(windowFrame) - - NSHeight([[window contentView] frame]); - } - return toolbarHeight; -} - -CAMLprim value fatalError(value s) -{ - NSString *str = [[NSString alloc] initWithUTF8String:String_val(s)]; - - [me performSelectorOnMainThread:@selector(fatalError:) withObject:str waitUntilDone:FALSE]; - [str release]; - return Val_unit; -} - -- (void)fatalError:(NSString *)msg { - NSRunAlertPanel(@"Fatal error", msg, @"Exit", nil, nil); - exit(1); -} - -@end - -@implementation NSString (_UnisonUtil) -- (NSString *)trim -{ - NSCharacterSet *ws = [NSCharacterSet whitespaceCharacterSet]; - int len = [self length], i = len; - while (i && [ws characterIsMember:[self characterAtIndex:i-1]]) i--; - return (i == len) ? self : [self substringToIndex:i]; -} -@end diff -Nru unison-2.40.102/uimacnew09/NotificationController.h unison-2.48.3/uimacnew09/NotificationController.h --- unison-2.40.102/uimacnew09/NotificationController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/NotificationController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -// -// NotificationController.h -// uimac -// -// Created by Alan Schmitt on 02/02/06. -// Copyright 2006, see file COPYING for details. All rights reserved. -// - -#import -#import - -@interface NotificationController : NSObject -{ -} - -- (void)updateFinishedFor: (NSString *)profile; -- (void)syncFinishedFor: (NSString *)profile; - -/* Implement the GrowlApplicationBridgeDelegate protocol */ -- (NSDictionary *)registrationDictionaryForGrowl; -- (NSString *)applicationNameForGrowl; - -@end diff -Nru unison-2.40.102/uimacnew09/NotificationController.m unison-2.48.3/uimacnew09/NotificationController.m --- unison-2.40.102/uimacnew09/NotificationController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/NotificationController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -// -// NotificationController.m -// uimac -// -// Created by Alan Schmitt on 02/02/06. -// Copyright 2006, see file COPYING for details. All rights reserved. -// - -#import "NotificationController.h" - -#define NOTIFY_UPDATE @"Scan finished" -#define NOTIFY_SYNC @"Synchronization finished" - -/* Show a simple notification */ -static void simpleNotify(NSString *name, NSString *descFmt, NSString *profile); - -@implementation NotificationController - -- (void)awakeFromNib -{ - [GrowlApplicationBridge setGrowlDelegate:self]; -} - -- (void)updateFinishedFor: (NSString *)profile -{ - simpleNotify(NOTIFY_UPDATE, - @"Profile '%@' is finished scanning for updates", - profile); -} - -- (void)syncFinishedFor: (NSString *)profile { - simpleNotify(NOTIFY_SYNC, - @"Profile '%@' is finished synchronizing", - profile); -} - -- (NSDictionary *)registrationDictionaryForGrowl -{ - NSArray* notifications = [NSArray arrayWithObjects: - NOTIFY_UPDATE, - NOTIFY_SYNC, - nil]; - return [NSDictionary dictionaryWithObjectsAndKeys: - notifications, GROWL_NOTIFICATIONS_ALL, - notifications, GROWL_NOTIFICATIONS_DEFAULT, - nil]; -} - -- (NSString *)applicationNameForGrowl -{ - return @"Unison"; -} - -@end - -static void simpleNotify(NSString *name, NSString *descFmt, NSString *profile) -{ - [GrowlApplicationBridge notifyWithTitle:name - description:[NSString stringWithFormat:descFmt, profile] - notificationName:name - iconData:nil - priority:0 - isSticky:false - clickContext:nil]; -} \ No newline at end of file diff -Nru unison-2.40.102/uimacnew09/PreferencesController.h unison-2.48.3/uimacnew09/PreferencesController.h --- unison-2.40.102/uimacnew09/PreferencesController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/PreferencesController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -/* PreferencesController */ - -#import - -@interface PreferencesController : NSObject -{ - IBOutlet NSTextField *firstRootText; - IBOutlet NSButtonCell *localButtonCell; - IBOutlet NSTextField *profileNameText; - IBOutlet NSButtonCell *remoteButtonCell; - IBOutlet NSTextField *secondRootHost; - IBOutlet NSTextField *secondRootText; - IBOutlet NSTextField *secondRootUser; -} -- (IBAction)anyEnter:(id)sender; -- (IBAction)localClick:(id)sender; -- (IBAction)remoteClick:(id)sender; -- (BOOL)validatePrefs; -- (void)reset; -@end diff -Nru unison-2.40.102/uimacnew09/PreferencesController.m unison-2.48.3/uimacnew09/PreferencesController.m --- unison-2.40.102/uimacnew09/PreferencesController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/PreferencesController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,89 +0,0 @@ -#import "PreferencesController.h" -#import "Bridge.h" - -@implementation PreferencesController - -- (void)reset -{ - [profileNameText setStringValue:@""]; - [firstRootText setStringValue:@""]; - [secondRootUser setStringValue:@""]; - [secondRootHost setStringValue:@""]; - [secondRootText setStringValue:@""]; - [remoteButtonCell setState:NSOnState]; - [localButtonCell setState:NSOffState]; - [secondRootUser setSelectable:YES]; - [secondRootUser setEditable:YES]; - [secondRootHost setSelectable:YES]; - [secondRootHost setEditable:YES]; -} - -- (BOOL)validatePrefs -{ - NSString *profileName = [profileNameText stringValue]; - if (profileName == nil | [profileName isEqualTo:@""]) { - // FIX: should check for already existing names too - NSRunAlertPanel(@"Error",@"You must enter a profile name",@"OK",nil,nil); - return NO; - } - NSString *firstRoot = [firstRootText stringValue]; - if (firstRoot == nil | [firstRoot isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a first root",@"OK",nil,nil); - return NO; - } - NSString *secondRoot; - if ([remoteButtonCell state] == NSOnState) { - NSString *user = [secondRootUser stringValue]; - if (user == nil | [user isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a user",@"OK",nil,nil); - return NO; - } - NSString *host = [secondRootHost stringValue]; - if (host == nil | [host isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a host",@"OK",nil,nil); - return NO; - } - NSString *file = [secondRootText stringValue]; - // OK for empty file, e.g., ssh://foo@bar/ - secondRoot = [NSString stringWithFormat:@"ssh://%@@%@/%@",user,host,file]; - } - else { - secondRoot = [secondRootText stringValue]; - if (secondRoot == nil | [secondRoot isEqualTo:@""]) { - NSRunAlertPanel(@"Error",@"You must enter a second root file",@"OK",nil,nil); - return NO; - } - } - ocamlCall("xSSS", "unisonProfileInit", profileName, firstRoot, secondRoot); - return YES; -} - -/* The target when enter is pressed in any of the text fields */ -// FIX: this is broken, it takes tab, mouse clicks, etc. -- (IBAction)anyEnter:(id)sender -{ - NSLog(@"enter"); - [self validatePrefs]; -} - -- (IBAction)localClick:(id)sender -{ - NSLog(@"local"); - [secondRootUser setStringValue:@""]; - [secondRootHost setStringValue:@""]; - [secondRootUser setSelectable:NO]; - [secondRootUser setEditable:NO]; - [secondRootHost setSelectable:NO]; - [secondRootHost setEditable:NO]; -} - -- (IBAction)remoteClick:(id)sender -{ - NSLog(@"remote"); - [secondRootUser setSelectable:YES]; - [secondRootUser setEditable:YES]; - [secondRootHost setSelectable:YES]; - [secondRootHost setEditable:YES]; -} - -@end diff -Nru unison-2.40.102/uimacnew09/ProfileController.h unison-2.48.3/uimacnew09/ProfileController.h --- unison-2.40.102/uimacnew09/ProfileController.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProfileController.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -/* ProfileController */ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import - -@interface ProfileController : NSObject -{ - IBOutlet NSTableView *tableView; - NSMutableArray *profiles; - int defaultIndex; // -1 if no default, else the index in profiles of @"default" -} -- (void)initProfiles; -- (int)numberOfRowsInTableView:(NSTableView *)aTableView; -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex; -- (NSString *)selected; -- (NSTableView *)tableView; // allows MyController to set up firstResponder -- (NSMutableArray*) getProfiles; -@end diff -Nru unison-2.40.102/uimacnew09/ProfileController.m unison-2.48.3/uimacnew09/ProfileController.m --- unison-2.40.102/uimacnew09/ProfileController.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProfileController.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,84 +0,0 @@ -/* Copyright (c) 2003, see file COPYING for details. */ - -#import "ProfileController.h" -#import "Bridge.h" - -@implementation ProfileController - -NSString *unisonDirectory() -{ - return (NSString *)ocamlCall("S", "unisonDirectory"); -} - -- (void)initProfiles -{ - NSString *directory = unisonDirectory(); -#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - NSArray *files = [[NSFileManager defaultManager] directoryContentsAtPath:directory]; -#else - NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directory error:nil]; -#endif - unsigned int count = [files count]; - unsigned int i,j; - - [profiles release]; - profiles = [[NSMutableArray alloc] init]; - defaultIndex = -1; - - for (i = j = 0; i < count; i++) { - NSString *file = [files objectAtIndex:i]; - if ([[file pathExtension] isEqualTo:@"prf"]) { - NSString *withoutExtension = [file stringByDeletingPathExtension]; - [profiles insertObject:withoutExtension atIndex:j]; - if ([@"default" isEqualTo:withoutExtension]) defaultIndex = j; - j++; - } - } - if (j > 0) - [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; -} - -- (void)awakeFromNib -{ - // start with the default profile selected - [self initProfiles]; - if (defaultIndex >= 0) - [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:defaultIndex] byExtendingSelection:NO]; - // on awake the scroll bar is inactive, but after adding profiles we might need it; - // reloadData makes it happen. Q: is setNeedsDisplay more efficient? - [tableView reloadData]; -} - -- (int)numberOfRowsInTableView:(NSTableView *)aTableView -{ - if (!profiles) return 0; - else return [profiles count]; -} - -- (id)tableView:(NSTableView *)aTableView - objectValueForTableColumn:(NSTableColumn *)aTableColumn - row:(int)rowIndex -{ - if (rowIndex >= 0 && rowIndex < [profiles count]) - return [profiles objectAtIndex:rowIndex]; - else return @"[internal error!]"; -} - -- (NSString *)selected -{ - int rowIndex = [tableView selectedRow]; - if (rowIndex >= 0 && rowIndex < [profiles count]) - return [profiles objectAtIndex:rowIndex]; - else return @"[internal error!]"; -} - -- (NSTableView *)tableView -{ - return tableView; -} - -- (NSMutableArray*)getProfiles { - return profiles; -} - -@end diff -Nru unison-2.40.102/uimacnew09/ProfileTableView.h unison-2.48.3/uimacnew09/ProfileTableView.h --- unison-2.40.102/uimacnew09/ProfileTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProfileTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -/* ProfileTableView */ - -#import - -@class MyController; - -@interface ProfileTableView : NSTableView -{ - IBOutlet MyController *myController; -} -@end diff -Nru unison-2.40.102/uimacnew09/ProfileTableView.m unison-2.48.3/uimacnew09/ProfileTableView.m --- unison-2.40.102/uimacnew09/ProfileTableView.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProfileTableView.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -#import "MyController.h" -#import "ProfileTableView.h" - -@implementation ProfileTableView - -- (void)keyDown:(NSEvent *)event -{ - /* some keys return zero-length strings */ - if ([[event characters] length] == 0) { - [super keyDown:event]; - return; - } - - unichar c = [[event characters] characterAtIndex:0]; - switch (c) { - case '\r': - [myController openButton:self]; - break; - default: - [super keyDown:event]; - break; - } -} - -/* Override default highlight colour to match ReconTableView */ -- (id)_highlightColorForCell:(NSCell *)cell -{ - if(([[self window] firstResponder] == self) && - [[self window] isMainWindow] && - [[self window] isKeyWindow]) - - return [NSColor colorWithCalibratedRed:0.7 green:0.75 blue:0.8 alpha:1.0]; - else return [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:0.8 alpha:1.0]; -} - -@end diff -Nru unison-2.40.102/uimacnew09/ProgressCell.h unison-2.48.3/uimacnew09/ProgressCell.h --- unison-2.40.102/uimacnew09/ProgressCell.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProgressCell.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#import - -@interface ProgressCell : NSCell -{ - float _minVal, _maxVal; // defaults to 0.0, 100.0 - BOOL _isActive; - BOOL _useFullView; // default: NO - BOOL _isError; // default: NO - NSImage *_icon; - NSString *_statusString; -} -- (void)setStatusString:(NSString *)string; -- (void)setIcon:(NSImage *)image; -- (void)setIsActive:(BOOL)yn; -@end diff -Nru unison-2.40.102/uimacnew09/ProgressCell.m unison-2.48.3/uimacnew09/ProgressCell.m --- unison-2.40.102/uimacnew09/ProgressCell.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ProgressCell.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,199 +0,0 @@ -/****************************************************************************** - * Copyright 2008 (see file COPYING for more information) - * - * Loosely based on TorrentCell from Transmission (.png files are from - * the original). - *****************************************************************************/ - -#import "ProgressCell.h" - -#define BAR_HEIGHT 12.0 - -static NSImage *_ProgressWhite, *_ProgressBlue, *_ProgressGray, *_ProgressGreen, - *_ProgressAdvanced, *_ProgressEndWhite, *_ProgressEndBlue, - *_ProgressEndGray, *_ProgressEndGreen, *_ProgressLightGreen, - *_ProgressEndAdvanced, * _ErrorImage; -static NSSize ZeroSize; - -@implementation ProgressCell - -+ (void) initialize -{ - NSSize startSize = NSMakeSize(100.0, BAR_HEIGHT); - ZeroSize = NSMakeSize(0.0, 0.0); - - _ProgressWhite = [NSImage imageNamed: @"ProgressBarWhite.png"]; - [_ProgressWhite setScalesWhenResized: YES]; - - _ProgressBlue = [NSImage imageNamed: @"ProgressBarBlue.png"]; - [_ProgressBlue setScalesWhenResized: YES]; - [_ProgressBlue setSize: startSize]; - - _ProgressGray = [NSImage imageNamed: @"ProgressBarGray.png"]; - [_ProgressGray setScalesWhenResized: YES]; - [_ProgressGray setSize: startSize]; - - _ProgressGreen = [NSImage imageNamed: @"ProgressBarGreen.png"]; - [_ProgressGreen setScalesWhenResized: YES]; - - _ProgressLightGreen = [NSImage imageNamed: @"ProgressBarLightGreen.png"]; - [_ProgressLightGreen setScalesWhenResized: YES]; - - _ProgressAdvanced = [NSImage imageNamed: @"ProgressBarAdvanced.png"]; - [_ProgressAdvanced setScalesWhenResized: YES]; - - _ProgressEndWhite = [NSImage imageNamed: @"ProgressBarEndWhite.png"]; - _ProgressEndBlue = [NSImage imageNamed: @"ProgressBarEndBlue.png"]; - _ProgressEndGray = [NSImage imageNamed: @"ProgressBarEndGray.png"]; - _ProgressEndGreen = [NSImage imageNamed: @"ProgressBarEndGreen.png"]; - _ProgressEndAdvanced = [NSImage imageNamed: @"ProgressBarEndAdvanced.png"]; - - _ErrorImage = [[NSImage imageNamed: @"Error.tiff"] copy]; - [_ErrorImage setFlipped: YES]; -} - -- (id)init -{ - self = [super init]; - _minVal = 0.0; - _maxVal = 100.0; - _isActive = YES; - - return self; -} - -// BCP: Removed (11/09) per Onne Gorter -// - (void)dealloc -// { -// [_icon release]; -// [_statusString release]; -// [super dealloc]; -// } - -- (void)setStatusString:(NSString *)string -{ - // BCP: Removed (11/09) per Onne Gorter - // [_statusString autorelease]; - // _statusString = [string retain]; - // Added: - _statusString = string; -} - -- (void)setIcon:(NSImage *)image -{ - // BCP: Removed (11/09) per Onne Gorter - // [_icon autorelease]; - // _icon = [image retain]; - // Added: - _icon = image; -} - -- (void)setIsActive:(BOOL)yn -{ - _isActive = yn; -} - -- (void)drawBarImage:(NSImage *)barImage width:(float)width point:(NSPoint)point -{ - if (width <= 0.0) - return; - - if ([barImage size].width < width) - [barImage setSize: NSMakeSize(width * 2.0, BAR_HEIGHT)]; - - [barImage compositeToPoint: point fromRect: NSMakeRect(0, 0, width, BAR_HEIGHT) operation: NSCompositeSourceOver]; -} - -- (void)drawBar:(float)width point:(NSPoint)point -{ - id objectValue = [self objectValue]; - if (!objectValue) return; - - float value = [objectValue floatValue]; - float progress = (value - _minVal)/ (_maxVal - _minVal); - - width -= 2.0; - float completedWidth, remainingWidth = 0.0; - - //bar images and widths - NSImage * barLeftEnd, * barRightEnd, * barComplete, * barRemaining; - if (progress >= 1.0) { - completedWidth = width; - barLeftEnd = _ProgressEndGreen; - barRightEnd = _ProgressEndGreen; - barComplete = _ProgressGreen; - barRemaining = _ProgressLightGreen; - } - else { - completedWidth = progress * width; - remainingWidth = width - completedWidth; - barLeftEnd = (remainingWidth == width) ? _ProgressEndWhite - : ((_isActive) ? _ProgressEndBlue : _ProgressEndGray); - barRightEnd = (completedWidth < width) ? _ProgressEndWhite - : ((_isActive) ? _ProgressEndBlue : _ProgressEndGray); - barComplete = _isActive ? _ProgressBlue : _ProgressGray; - barRemaining = _ProgressWhite; - } - - [barLeftEnd compositeToPoint: point operation: NSCompositeSourceOver]; - - point.x += 1.0; - [self drawBarImage: barComplete width: completedWidth point: point]; - - point.x += completedWidth; - [self drawBarImage: barRemaining width: remainingWidth point: point]; - - point.x += remainingWidth; - [barRightEnd compositeToPoint: point operation: NSCompositeSourceOver]; -} - -- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)view -{ - NSPoint pen = cellFrame.origin; - const float PADDING = 3.0; - - // progress bar - pen.y += PADDING + BAR_HEIGHT; - float mainWidth = cellFrame.size.width; - float barWidth = mainWidth; - [self drawBar: barWidth point: pen]; - - //icon - NSImage * image = _isError ? _ErrorImage : _icon; - if (image) { - NSSize imageSize = [image size]; - NSRect imageFrame; - imageFrame.origin = cellFrame.origin; - imageFrame.size = imageSize; - imageFrame.origin.x += ceil((cellFrame.size.width - imageSize.width) / 2); - imageFrame.origin.y += [view isFlipped] ? - ceil((cellFrame.size.height + imageSize.height) / 2) - : ceil((cellFrame.size.height - imageSize.height) / 2); - [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; - } - - // status string - if (_statusString) { - BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: view] - isEqual: [NSColor alternateSelectedControlColor]]; - NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; - [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail]; - - NSDictionary * statusAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: - highlighted ? [NSColor whiteColor] : [NSColor darkGrayColor], NSForegroundColorAttributeName, - [NSFont boldSystemFontOfSize: 9.0], NSFontAttributeName, - paragraphStyle, NSParagraphStyleAttributeName, nil]; - [paragraphStyle release]; - - NSSize statusSize = [_statusString sizeWithAttributes: statusAttributes]; - pen = cellFrame.origin; - pen.x += (cellFrame.size.width - statusSize.width) * 0.5; - pen.y += (cellFrame.size.height - statusSize.height) * 0.5; - - [_statusString drawInRect: NSMakeRect(pen.x, pen.y, statusSize.width, statusSize.height) - withAttributes: statusAttributes]; - [statusAttributes release]; - } -} - -@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarAdvanced.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarAdvanced.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarBlue.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarBlue.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarEndAdvanced.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarEndAdvanced.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarEndBlue.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarEndBlue.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarEndGray.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarEndGray.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarEndGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarEndGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarEndWhite.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarEndWhite.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarGray.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarGray.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarLightGreen.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarLightGreen.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/progressicons/ProgressBarWhite.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/progressicons/ProgressBarWhite.png differ diff -Nru unison-2.40.102/uimacnew09/ReconItem.h unison-2.48.3/uimacnew09/ReconItem.h --- unison-2.40.102/uimacnew09/ReconItem.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ReconItem.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,80 +0,0 @@ -/* ReconItem */ - -#import - -@class OCamlValue; - -@interface ReconItem : NSObject -{ - ReconItem *parent; - NSString *path; - NSString *fullPath; - BOOL selected; - NSImage *direction; - NSString *directionSortString; - double fileSize; - double bytesTransferred; - BOOL resolved; -} -- (BOOL)selected; -- (void)setSelected:(BOOL)x; -- (NSString *)path; -- (NSString *)fullPath; -- (NSString *)left; -- (NSString *)right; -- (NSImage *)direction; -- (NSImage *)fileIcon; -- (long)fileCount; -- (double)fileSize; -- (NSString *)fileSizeString; -- (double)bytesTransferred; -- (NSString *)bytesTransferredString; -- (void)setDirection:(char *)d; -- (void) doAction:(unichar)action; -- (void) doIgnore:(unichar)action; -- (NSString *)progress; -- (NSString *)progressString; -- (void)resetProgress; -- (NSString *)details; -- (NSString *)updateDetails; -- (BOOL)isConflict; -- (BOOL)changedFromDefault; -- (void)revertDirection; -- (BOOL)canDiff; -- (void)showDiffs; -- (NSString *)leftSortKey; -- (NSString *)rightSortKey; -- (NSString *)replicaSortKey:(NSString *)sortString; -- (NSString *)directionSortKey; -- (NSString *)progressSortKey; -- (NSString *)pathSortKey; -- (NSArray *)children; -- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot; -- (ReconItem *)parent; -- (void)setPath:(NSString *)aPath; -- (void)setFullPath:(NSString *)p; -- (void)setParent:(ReconItem *)p; -- (void)willChange; -@end - -@interface LeafReconItem : ReconItem -{ - NSString *left; - NSString *right; - NSString *progress; - NSString *details; - OCamlValue *ri; // an ocaml Common.reconItem - long index; // index in Ri list -} -- initWithRiAndIndex:(OCamlValue *)v index:(long)i; -@end - -@interface ParentReconItem : ReconItem -{ - NSMutableArray *_children; - long fileCount; -} -- (void)addChild:(ReconItem *)item nested:(BOOL)useNesting; -- (void)sortUsingDescriptors:(NSArray *)sortDescriptors; -- (BOOL)hasConflictedChildren; -@end diff -Nru unison-2.40.102/uimacnew09/ReconItem.m unison-2.48.3/uimacnew09/ReconItem.m --- unison-2.40.102/uimacnew09/ReconItem.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ReconItem.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,839 +0,0 @@ -#import "ReconItem.h" -#import "Bridge.h" - -#import - -@implementation ReconItem - -- init { - [super init]; - selected = NO; // NB only used/updated during sorts. Not a - // reliable indicator of whether item is selected - fileSize = -1.; - bytesTransferred = -1.; - return self; -} - -- (void)dealloc -{ - [path release]; - [fullPath release]; - // [direction release]; // assuming retained by cache, so not retained - // [directionSortString release]; // no retain/release necessary because is constant - [super dealloc]; -} - -- (ReconItem *)parent -{ - return parent; -} - -- (void)setParent:(ReconItem *)p -{ - parent = p; -} - -- (void)willChange -{ - // propagate up parent chain - [parent willChange]; -} - -- (NSArray *)children -{ - return nil; -} - -- (BOOL)selected -{ - return selected; -} - -- (void)setSelected:(BOOL)x -{ - selected = x; -} - -- (NSString *)path -{ - return path; -} - -- (void)setPath:(NSString *)aPath -{ - [path autorelease]; - path = [aPath retain]; - - // invalidate - [fullPath autorelease]; - fullPath = nil; -} - -- (NSString *)fullPath -{ - if (!fullPath) { - NSString *parentPath = [parent fullPath]; - [self setFullPath:(([parentPath length] > 0) ? [parentPath stringByAppendingFormat:@"/%@", path] : path)]; - } - - return fullPath; -} - -- (void)setFullPath:(NSString *)p -{ - [fullPath autorelease]; - fullPath = [p retain]; -} - -- (NSString *)left -{ - return nil; -} - -- (NSString *)right -{ - return nil; -} - -static NSMutableDictionary *_ChangeIconsByType = nil; - -- (NSImage *)changeIconFor:(NSString *)type other:(NSString *)other -{ - if (![type length]) { - if ([other isEqual:@"Created"]) { - type = @"Absent"; - } else if ([other length]) { - type = @"Unmodified"; - } else - return nil; - } - - NSImage *result = [_ChangeIconsByType objectForKey:type]; - if (!result) { - NSString *imageName = [NSString stringWithFormat:@"Change_%@.png", type]; - result = [NSImage imageNamed:imageName]; - if (!_ChangeIconsByType) _ChangeIconsByType = [[NSMutableDictionary alloc] init]; - [_ChangeIconsByType setObject:result forKey:type]; - } - return result; -} - -- (NSImage *)leftIcon -{ - return [self changeIconFor:[self left] other:[self right]]; -} - -- (NSImage *)rightIcon -{ - return [self changeIconFor:[self right] other:[self left]]; -} - - -- (double)computeFileSize -{ - return 0.; -} - -- (double)bytesTransferred -{ - return 0.; -} - -- (long)fileCount -{ - return 1; -} - -- (double)fileSize -{ - if (fileSize == -1.) fileSize = [self computeFileSize]; - return fileSize; -} - -- (NSString *)formatFileSize:(double)size -{ - if (size == 0) return @"--"; - if (size < 1024) return @"< 1KB"; // return [NSString stringWithFormat:@"%i bytes", size]; - size /= 1024; - if (size < 1024) return [NSString stringWithFormat:@"%i KB", (int)size]; - size /= 1024; - if (size < 1024) return [NSString stringWithFormat:@"%1.1f MB", size]; - size = size / 1024; - return [NSString stringWithFormat:@"%1.1f GB", size]; -} - -- (NSString *)fileSizeString -{ - return [self formatFileSize:[self fileSize]]; -} - -- (NSString *)bytesTransferredString -{ - return [self formatFileSize:[self bytesTransferred]]; -} - -- (NSNumber *)percentTransferred -{ - double size = [self computeFileSize]; - return (size > 0) ? [NSNumber numberWithDouble:([self bytesTransferred] / (size) * 100.0)] - : nil; -} - -static NSMutableDictionary *_iconsByExtension = nil; - -- (NSImage *)iconForExtension:(NSString *)extension -{ - NSImage *icon = [_iconsByExtension objectForKey:extension]; - if (!_iconsByExtension) _iconsByExtension = [[NSMutableDictionary alloc] init]; - if (!icon) { - icon = [[NSWorkspace sharedWorkspace] iconForFileType:extension]; - [icon setSize:NSMakeSize(16.0, 16.0)]; - [_iconsByExtension setObject:icon forKey:extension]; - } - return icon; -} - -- (NSImage *)fileIcon -{ - return [self iconForExtension:NSFileTypeForHFSTypeCode(kOpenFolderIcon)]; -} - -- (NSString *)dirString -{ - return @"<-?->"; -} - -- (NSImage *)direction -{ - if (direction) return direction; - NSString * dirString = [self dirString]; - - BOOL changedFromDefault = [self changedFromDefault]; - - if ([dirString isEqual:@"<-?->"]) { - if (changedFromDefault | resolved) { - direction = [NSImage imageNamed: @"table-skip.tif"]; - directionSortString = @"3"; - } - else { - direction = [NSImage imageNamed: @"table-conflict.tif"]; - directionSortString = @"2"; - } - } - - else if ([dirString isEqual:@"---->"]) { - if (changedFromDefault) { - direction = [NSImage imageNamed: @"table-right-blue.tif"]; - directionSortString = @"6"; - } - else { - direction = [NSImage imageNamed: @"table-right-green.tif"]; - directionSortString = @"8"; - } - } - - else if ([dirString isEqual:@"<----"]) { - if (changedFromDefault) { - direction = [NSImage imageNamed: @"table-left-blue.tif"]; - directionSortString = @"5"; - } - else { - direction = [NSImage imageNamed: @"table-left-green.tif"]; - directionSortString = @"7"; - } - } - - else if ([dirString isEqual:@"<-M->"]) { - direction = [NSImage imageNamed: @"table-merge.tif"]; - directionSortString = @"4"; - } - - else if ([dirString isEqual:@"<--->"]) { - direction = [NSImage imageNamed: @"table-mixed.tif"]; - directionSortString = @"9"; - } - - else { - direction = [NSImage imageNamed: @"table-error.tif"]; - directionSortString = @"1"; - } - - [direction retain]; - return direction; -} - -- (void)setDirection:(char *)d -{ - [direction autorelease]; - direction = nil; -} - -- (void)doAction:(unichar)action -{ - switch (action) { - case '>': - [self setDirection:"unisonRiSetRight"]; - break; - case '<': - [self setDirection:"unisonRiSetLeft"]; - break; - case '/': - [self setDirection:"unisonRiSetConflict"]; - resolved = YES; - break; - case '-': - [self setDirection:"unisonRiForceOlder"]; - break; - case '+': - [self setDirection:"unisonRiForceNewer"]; - break; - case 'm': - [self setDirection:"unisonRiSetMerge"]; - break; - case 'd': - [self showDiffs]; - break; - case 'R': - [self revertDirection]; - break; - default: - NSLog(@"ReconItem.doAction : unknown action"); - break; - } -} - -- (void)doIgnore:(unichar)action -{ - switch (action) { - case 'I': - ocamlCall("xS", "unisonIgnorePath", [self fullPath]); - break; - case 'E': - ocamlCall("xS", "unisonIgnoreExt", [self path]); - break; - case 'N': - ocamlCall("xS", "unisonIgnoreName", [self path]); - break; - default: - NSLog(@"ReconItem.doIgnore : unknown ignore"); - break; - } -} - -/* Sorting functions. These have names equal to - column identifiers + "SortKey", and return NSStrings that - can be automatically sorted with their compare method */ - -- (NSString *) leftSortKey -{ - return [self replicaSortKey:[self left]]; -} - -- (NSString *) rightSortKey -{ - return [self replicaSortKey:[self right]]; -} - -- (NSString *) replicaSortKey:(NSString *)sortString -{ - /* sort order for left and right replicas */ - - if ([sortString isEqualToString:@"Created"]) return @"1"; - else if ([sortString isEqualToString:@"Deleted"]) return @"2"; - else if ([sortString isEqualToString:@"Modified"]) return @"3"; - else if ([sortString isEqualToString:@""]) return @"4"; - else return @"5"; -} - -- (NSString *) directionSortKey -{ - /* Since the direction indicators are unsortable images, use - directionSortString instead */ - - if ([directionSortString isEqual:@""]) - [self direction]; - return directionSortString; -} - -- (NSString *) progressSortKey -{ - /* Percentages, "done" and "" are sorted OK without help, - but "start " should be sorted after "" and before "0%" */ - - NSString * progressString = [self progress]; - if ([progressString isEqualToString:@"start "]) progressString = @" "; - return progressString; -} - -- (NSString *) pathSortKey -{ - /* default alphanumeric sort is fine for paths */ - return [self path]; -} - -- (NSString *)progress -{ - return nil; -} - -- (BOOL)transferInProgress -{ - double soFar = [self bytesTransferred]; - return (soFar > 0) && (soFar < [self fileSize]); -} - -- (void)resetProgress -{ -} - -- (NSString *)progressString -{ - NSString *progress = [self progress]; - if ([progress length] == 0. || [progress hasSuffix:@"%"]) - progress = [self transferInProgress] ? [self bytesTransferredString] : @""; - else if ([progress isEqual:@"done"]) progress = @""; - return progress; -} - -- (NSString *)details -{ - return nil; -} - -- (NSString *)updateDetails -{ - return [self details]; -} - -- (BOOL)isConflict -{ - return NO; -} - -- (BOOL)changedFromDefault -{ - return NO; -} - -- (void)revertDirection -{ - [self willChange]; - [direction release]; - direction = nil; - resolved = NO; -} - -- (BOOL)canDiff -{ - return NO; -} - -- (void)showDiffs -{ -} - -- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot -{ - return self; -} -@end - - -// --- Leaf items -- actually corresponding to ReconItems in OCaml -@implementation LeafReconItem - -- initWithRiAndIndex:(OCamlValue *)v index:(long)i -{ - [super init]; - ri = [v retain]; - index = i; - resolved = NO; - directionSortString = @""; - return self; -} - --(void)dealloc -{ - [ri release]; - [left release]; - [right release]; - [progress release]; - [details release]; - - [super dealloc]; -} - -- (NSString *)path -{ - if (!path) path = [(NSString *)ocamlCall("S@", "unisonRiToPath", ri) retain]; - return path; -} - -- (NSString *)left -{ - if (!left) left = [(NSString *)ocamlCall("S@", "unisonRiToLeft", ri) retain]; - return left; -} - -- (NSString *)right -{ - if (!right) right = [(NSString *)ocamlCall("S@", "unisonRiToRight", ri) retain]; - return right; -} - -- (double)computeFileSize -{ - return [(NSNumber *)ocamlCall("N@", "unisonRiToFileSize", ri) doubleValue]; -} - -- (double)bytesTransferred -{ - if (bytesTransferred == -1.) { - // need to force to fileSize if done, otherwise may not match up to 100% - bytesTransferred = ([[self progress] isEqual:@"done"]) ? [self fileSize] - : [(NSNumber*)ocamlCall("N@", "unisonRiToBytesTransferred", ri) doubleValue]; - } - return bytesTransferred; -} - -- (NSImage *)fileIcon -{ - NSString *extension = [[self path] pathExtension]; - - if ([@"" isEqual:extension]) { - NSString *type = (NSString *)ocamlCall("S@", "unisonRiToFileType", ri); - extension = [type isEqual:@"dir"] - ? NSFileTypeForHFSTypeCode(kGenericFolderIcon) - : NSFileTypeForHFSTypeCode(kGenericDocumentIcon); - } - return [self iconForExtension:extension]; -} - -- (NSString *)dirString -{ - return (NSString *)ocamlCall("S@", "unisonRiToDirection", ri); -} - -- (void)setDirection:(char *)d -{ - [self willChange]; - [super setDirection:d]; - ocamlCall("x@", d, ri); -} - -- (NSString *)progress -{ - if (!progress) { - progress = [(NSString *)ocamlCall("S@", "unisonRiToProgress", ri) retain]; - if ([progress isEqual:@"FAILED"]) [self updateDetails]; - } - return progress; -} - -- (void)resetProgress -{ - // Get rid of the memoized progress because we expect it to change - [self willChange]; - bytesTransferred = -1.; - [progress release]; - - // Force update now so we get the result while the OCaml thread is available - // [self progress]; - // [self bytesTransferred]; - progress = nil; -} - -- (NSString *)details -{ - if (details) return details; - return [self updateDetails]; -} - -- (NSString *)updateDetails -{ - [details autorelease]; - details = [(NSString *)ocamlCall("S@", "unisonRiToDetails", ri) retain]; - return details; -} - -- (BOOL)isConflict -{ - return ((long)ocamlCall("i@", "unisonRiIsConflict", ri) ? YES : NO); -} - -- (BOOL)changedFromDefault -{ - return ((long)ocamlCall("i@", "changedFromDefault", ri) ? YES : NO); -} - -- (void)revertDirection -{ - ocamlCall("x@", "unisonRiRevert", ri); - [super revertDirection]; -} - -- (BOOL)canDiff -{ - return ((long)ocamlCall("i@", "canDiff", ri) ? YES : NO); -} - -- (void)showDiffs -{ - ocamlCall("x@i", "runShowDiffs", ri, index); -} - -@end - -@interface NSImage (TintedImage) -- (NSImage *)tintedImageWithColor:(NSColor *) tint operation:(NSCompositingOperation) op; -@end - -@implementation NSImage (TintedImage) - -- (NSImage *)tintedImageWithColor:(NSColor *) tint operation:(NSCompositingOperation) op -{ - NSSize size = [self size]; - NSRect imageBounds = NSMakeRect(0, 0, size.width, size.height); - NSImage *newImage = [[NSImage alloc] initWithSize:size]; - - [newImage lockFocus]; - [self compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver]; - [tint set]; - NSRectFillUsingOperation(imageBounds, op); - [newImage unlockFocus]; - - return [newImage autorelease]; -} - -@end - -// ---- Parent nodes in grouped items -@implementation ParentReconItem - -- init -{ - [super init]; - _children = [[NSMutableArray alloc] init]; - return self; -} - -- initWithPath:(NSString *)aPath -{ - [self init]; - path = [aPath retain]; - return self; -} - -- (void)dealloc -{ - [_children release]; - [super dealloc]; -} - -- (NSArray *)children; -{ - return _children; -} - -- (void)addChild:(ReconItem *)item pathArray:(NSArray *)pathArray level:(int)level -{ - NSString *element = [pathArray count] ? [pathArray objectAtIndex:level] : @""; - - // if we're at the leaf of the path, then add the item - if (((0 == [pathArray count]) && (0 == level)) || (level == [pathArray count]-1)) { - [item setParent:self]; - [item setPath:element]; - [_children addObject:item]; - return; - } - - // find / add matching parent node - ReconItem *last = [_children lastObject]; - if (last == nil || ![last isKindOfClass:[ParentReconItem class]] || ![[last path] isEqual:element]) { - last = [[ParentReconItem alloc] initWithPath:element]; - [last setParent:self]; - [_children addObject:last]; - [last release]; - } - - [(ParentReconItem *)last addChild:item pathArray:pathArray level:level+1]; -} - -- (void)addChild:(ReconItem *)item nested:(BOOL)nested -{ - [item setPath:nil]; // invalidate/reset - - if (nested) { - [self addChild:item pathArray:[[item path] pathComponents] level:0]; - } else { - [item setParent:self]; - [_children addObject:item]; - } -} - -- (void)sortUsingDescriptors:(NSArray *)sortDescriptors -{ - // sort our children - [_children sortUsingDescriptors:sortDescriptors]; - - // then have them sort theirs - int i = [_children count]; - while (i--) { - id child = [_children objectAtIndex:i]; - if ([child isKindOfClass:[ParentReconItem class]]) [child sortUsingDescriptors:sortDescriptors]; - } -} - -- (ReconItem *)collapseParentsWithSingleChildren:(BOOL)isRoot -{ - // replace ourselves? - if (!isRoot && [_children count] == 1) { - ReconItem *child = [_children lastObject]; - [child setPath:[path stringByAppendingFormat:@"/%@", [child path]]]; - return [child collapseParentsWithSingleChildren:NO]; - } - - // recurse - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - ReconItem *replacement = [child collapseParentsWithSingleChildren:NO]; - if (child != replacement) { - [_children replaceObjectAtIndex:i withObject:replacement]; - [replacement setParent:self]; - } - } - return self; -} - -- (void)willChange -{ - // invalidate child-based state - // Assuming caches / constant, so not retained / released - // [direction autorelease]; - // [directionSortString autorelease]; - direction = nil; - directionSortString = nil; - bytesTransferred = -1.; - // fileSize = -1; - // resolved = NO; - - // propagate up parent chain - [parent willChange]; -} - -// Propagation methods -- (void)doAction:(unichar)action -{ - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - [child doAction:action]; - } -} - -- (void)doIgnore:(unichar)action -{ - // handle Path ignores at this level, name and extension at the child nodes - if (action == 'I') { - [super doIgnore:'I']; - } else { - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - [child doIgnore:action]; - } - } -} - -// Rollup methods -- (long)fileCount -{ - if (fileCount == 0) { - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - fileCount += [child fileCount]; - } - } - return fileCount; -} - -- (double)computeFileSize -{ - double size = 0; - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - size += [child fileSize]; - } - return size; -} - -- (double)bytesTransferred -{ - if (bytesTransferred == -1.) { - bytesTransferred = 0.; - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - bytesTransferred += [child bytesTransferred]; - } - } - return bytesTransferred; -} - - - -- (NSString *)dirString -{ - NSString *rollup = nil; - int i = [_children count]; - while (i--) { - ReconItem *child = [_children objectAtIndex:i]; - NSString *dirString = [child dirString]; - if (!rollup || [dirString isEqual:rollup]) { - rollup = dirString; - } else { - // conflict - if ([dirString isEqual:@"---->"] || [dirString isEqual:@"<----"] || [dirString isEqual:@"<--->"]) { - if ([rollup isEqual:@"---->"] || [rollup isEqual:@"<----"] || [rollup isEqual:@"<--->"]) { - rollup = @"<--->"; - } - } else { - rollup = @"<-?->"; - } - } - } - // NSLog(@"dirString for %@: %@", path, rollup); - return rollup; -} - -- (BOOL)hasConflictedChildren -{ - NSString *dirString = [self dirString]; - BOOL result = [dirString isEqual:@"<--->"] || [dirString isEqual:@"<-?->"]; - // NSLog(@"hasConflictedChildren (%@): %@: %i", [self path], dirString, result); - return result; -} - -static NSMutableDictionary *_parentImages = nil; -static NSColor *_veryLightGreyColor = nil; -- (NSImage *)direction -{ - if (!_parentImages) { - _parentImages = [[NSMutableDictionary alloc] init]; - _veryLightGreyColor = [[NSColor colorWithCalibratedRed:0.7 green:0.7 blue:0.7 alpha:1.0] retain]; - } - NSImage *baseImage = [super direction]; - NSImage *parentImage = [_parentImages objectForKey:baseImage]; - if (!parentImage) { - // make parent images a grey version of the leaf images - parentImage = [baseImage tintedImageWithColor:_veryLightGreyColor operation:NSCompositeSourceIn]; - [_parentImages setObject:parentImage forKey:baseImage]; - } - return parentImage; -} - -@end - diff -Nru unison-2.40.102/uimacnew09/ReconTableView.h unison-2.48.3/uimacnew09/ReconTableView.h --- unison-2.40.102/uimacnew09/ReconTableView.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ReconTableView.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -// -// ReconTableView.h -// -// NSTableView extended to handle additional keyboard events for the reconcile window. -// The keyDown: method is redefined. -// -// Created by Trevor Jim on Wed Aug 27 2003. -// Copyright (c) 2003, licensed under GNU GPL. -// - -#import - -@interface ReconTableView : NSOutlineView { - BOOL editable; -} -- (BOOL)editable; -- (void)setEditable:(BOOL)x; -- (BOOL)validateItem:(IBAction *) action; -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; -- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem; -- (IBAction)ignorePath:(id)sender; -- (IBAction)ignoreExt:(id)sender; -- (IBAction)ignoreName:(id)sender; -- (IBAction)copyLR:(id)sender; -- (IBAction)copyRL:(id)sender; -- (IBAction)leaveAlone:(id)sender; -- (IBAction)forceOlder:(id)sender; -- (IBAction)forceNewer:(id)sender; -- (IBAction)selectConflicts:(id)sender; -- (IBAction)revert:(id)sender; -- (IBAction)merge:(id)sender; -- (IBAction)showDiff:(id)sender; -- (BOOL)canDiffSelection; -@end - -@interface NSOutlineView (_UnisonExtras) -- (NSArray *)selectedObjects; -- (NSEnumerator *)selectedObjectEnumerator; -- (void)setSelectedObjects:(NSArray *)selection; - -- (void)expandChildrenIfSpace; - -@end diff -Nru unison-2.40.102/uimacnew09/ReconTableView.m unison-2.48.3/uimacnew09/ReconTableView.m --- unison-2.40.102/uimacnew09/ReconTableView.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/ReconTableView.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,298 +0,0 @@ -// -// ReconTableView.m -// Unison -// -// Created by Trevor Jim on Wed Aug 27 2003. -// Copyright (c) 2003. See file COPYING for details. -// - -#import "ReconTableView.h" -#import "ReconItem.h" -#import "MyController.h" - -@implementation NSOutlineView (_UnisonExtras) - -- (NSArray *)selectedObjects -{ - NSMutableArray *result = [NSMutableArray array]; - NSIndexSet *set = [self selectedRowIndexes]; - NSUInteger index = [set firstIndex]; - while (index != NSNotFound) { - [result addObject:[self itemAtRow:index]]; - index = [set indexGreaterThanIndex: index]; - } - return result; -} - -- (void)setSelectedObjects:(NSArray *)selectedObjects -{ - NSMutableIndexSet *set = [NSMutableIndexSet indexSet]; - int i = [selectedObjects count]; - while (i--) { - int index = [self rowForItem:[selectedObjects objectAtIndex:i]]; - if (index >= 0) [set addIndex:index]; - } - [self selectRowIndexes:set byExtendingSelection:NO]; -} - -- (NSEnumerator *)selectedObjectEnumerator -{ - return [[self selectedObjects] objectEnumerator]; -} - -- (int)rowCapacityWithoutScrolling -{ - float bodyHeight = [self visibleRect].size.height; - bodyHeight -= [[self headerView] visibleRect].size.height; - return bodyHeight / ([self rowHeight] + 2.0); -} - -- (BOOL)_canAcceptRowCountWithoutScrolling:(int)rows -{ - return ([self numberOfRows] + rows) <= [self rowCapacityWithoutScrolling]; -} - -- (BOOL)_expandChildrenIfSpace:(id)parent level:(int)level -{ - BOOL didExpand = NO; - id dataSource = [self dataSource]; - int count = [dataSource outlineView:self numberOfChildrenOfItem:parent]; - if (level == 0) { - if (count && ([self isItemExpanded:parent] || [self _canAcceptRowCountWithoutScrolling:count])) { - [self expandItem:parent expandChildren:NO]; - didExpand = YES; - } - } else { - // try expanding each of our children. If all expand, then return YES, - // indicating that it may be worth trying the next level - int i; - for (i=0; i < count; i++) { - id child = [dataSource outlineView:self child:i ofItem:parent]; - didExpand = [self _expandChildrenIfSpace:child level:level-1] || didExpand; - } - } - - return didExpand; -} - -- (void)expandChildrenIfSpace -{ - int level = 1; - while ([self _expandChildrenIfSpace:nil level:level]) level++; -} - -@end - -@implementation ReconTableView - -- (BOOL)editable -{ - return editable; -} - -- (void)setEditable:(BOOL)x -{ - editable = x; -} - -- (BOOL)validateItem:(IBAction *) action -{ - if (action == @selector(selectAll:) - || action == @selector(selectConflicts:) - || action == @selector(copyLR:) - || action == @selector(copyRL:) - || action == @selector(leaveAlone:) - || action == @selector(forceNewer:) - || action == @selector(forceOlder:) - || action == @selector(revert:) - || action == @selector(ignorePath:) - || action == @selector(ignoreExt:) - || action == @selector(ignoreName:)) - return editable; - else if (action == @selector(merge:)) { - if (!editable) return NO; - else return [self canDiffSelection]; - } - else if (action == @selector(showDiff:)) { - if ((!editable) || (!([self numberOfSelectedRows]==1))) - return NO; - else return [self canDiffSelection]; - } - else return YES; -} - -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ - return [self validateItem:[menuItem action]]; -} - -- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem -{ - return [self validateItem:[toolbarItem action]]; -} - -- (void)doIgnore:(unichar)c -{ - NSEnumerator *e = [self selectedObjectEnumerator]; - ReconItem *item, *last = nil; - while (item = [e nextObject]) { - [item doIgnore:c]; - last = item; - } - if (last) { // something was selected - MyController* controller = (MyController*) [self dataSource]; - last = [controller updateForIgnore:last]; - [self selectRowIndexes:[NSIndexSet indexSetWithIndex:[self rowForItem:last]] byExtendingSelection:NO]; - [self reloadData]; - } -} - -- (IBAction)ignorePath:(id)sender -{ - [self doIgnore:'I']; -} - -- (IBAction)ignoreExt:(id)sender -{ - [self doIgnore:'E']; -} - -- (IBAction)ignoreName:(id)sender -{ - [self doIgnore:'N']; -} - -- (void)doAction:(unichar)c -{ - int numSelected = 0; - NSEnumerator *e = [self selectedObjectEnumerator]; - ReconItem *item, *last = nil; - while (item = [e nextObject]) { - numSelected++; - [item doAction:c]; - last = item; - } - if (numSelected>0) { - int nextRow = [self rowForItem:last] + 1; - if (numSelected == 1 && [self numberOfRows] > nextRow && c!='d') { - // Move to next row, unless already at last row, or if more than one row selected - [self selectRowIndexes:[NSIndexSet indexSetWithIndex:nextRow] byExtendingSelection:NO]; - [self scrollRowToVisible:nextRow]; - } - [self reloadData]; - } -} - -- (IBAction)copyLR:(id)sender -{ - [self doAction:'>']; -} - -- (IBAction)copyRL:(id)sender -{ - [self doAction:'<']; -} - -- (IBAction)leaveAlone:(id)sender -{ - [self doAction:'/']; -} - -- (IBAction)forceOlder:(id)sender -{ - [self doAction:'-']; -} - -- (IBAction)forceNewer:(id)sender -{ - [self doAction:'+']; -} - -- (IBAction)selectConflicts:(id)sender -{ - [self deselectAll:self]; - MyController* controller = (MyController*) [self dataSource]; - NSMutableArray *reconItems = [controller reconItems]; - int i = 0; - for (; i < [reconItems count]; i++) { - ReconItem *item = [reconItems objectAtIndex:i]; - if ([item isConflict]) - [self selectRowIndexes:[NSIndexSet indexSetWithIndex:[self rowForItem:item]] byExtendingSelection:YES]; - } -} - -- (IBAction)revert:(id)sender -{ - [self doAction:'R']; -} - -- (IBAction)merge:(id)sender -{ - [self doAction:'m']; -} - -- (IBAction)showDiff:(id)sender -{ - [self doAction:'d']; -} - -/* There are menu commands for these, but we add some shortcuts so you don't - have to press the Command key */ -- (void)keyDown:(NSEvent *)event -{ - /* some keys return zero-length strings */ - if ([[event characters] length] == 0) { - [super keyDown:event]; - return; - } - - /* actions are disabled when when menu items are */ - if (!editable) { - [super keyDown:event]; - return; - } - - unichar c = [[event characters] characterAtIndex:0]; - switch (c) { - case '>': - case NSRightArrowFunctionKey: - [self doAction:'>']; - break; - case '<': - case NSLeftArrowFunctionKey: - [self doAction:'<']; - break; - case '?': - case '/': - [self doAction:'/']; - break; - default: - [super keyDown:event]; - break; - } -} - -- (BOOL)canDiffSelection -{ - BOOL canDiff = YES; - NSEnumerator *e = [self selectedObjectEnumerator]; - ReconItem *item; - while (item = [e nextObject]) { - if (![item canDiff]) canDiff= NO; - } - return canDiff; -} - -/* Override default highlight colour because it's hard to see the - conflict/resolution icons */ -- (id)_highlightColorForCell:(NSCell *)cell -{ - if(([[self window] firstResponder] == self) && - [[self window] isMainWindow] && - [[self window] isKeyWindow]) - - return [NSColor colorWithCalibratedRed:0.7 green:0.75 blue:0.8 alpha:1.0]; - else return [NSColor colorWithCalibratedRed:0.8 green:0.8 blue:0.8 alpha:1.0]; -} - -@end Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_Absent.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_Absent.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_Created.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_Created.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_Deleted.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_Deleted.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_Modified.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_Modified.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_PropsChanged.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_PropsChanged.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Change_Unmodified.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Change_Unmodified.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Outline-Deep.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Outline-Deep.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Outline-Flat.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Outline-Flat.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/Outline-Flattened.png and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/Outline-Flattened.png differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-conflict.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-conflict.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-error.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-error.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-left-blue.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-left-blue.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-left-green.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-left-green.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-merge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-merge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-mixed.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-mixed.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-right-blue.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-right-blue.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-right-green.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-right-green.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/tableicons/table-skip.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/tableicons/table-skip.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/add.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/add.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/diff.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/diff.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/go.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/go.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/left.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/left.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/merge.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/merge.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/quit.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/quit.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/rescan.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/rescan.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/restart.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/restart.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/right.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/right.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/save.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/save.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/toolbar/skip.tif and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/toolbar/skip.tif differ Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/TrevorsUnison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/TrevorsUnison.icns differ diff -Nru unison-2.40.102/uimacnew09/uimacnew.xcodeproj/project.pbxproj unison-2.48.3/uimacnew09/uimacnew.xcodeproj/project.pbxproj --- unison-2.40.102/uimacnew09/uimacnew.xcodeproj/project.pbxproj 2011-07-19 14:47:51.000000000 +0000 +++ unison-2.48.3/uimacnew09/uimacnew.xcodeproj/project.pbxproj 1970-01-01 00:00:00.000000000 +0000 @@ -1,775 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 45; - objects = { - -/* Begin PBXAggregateTarget section */ - 2A124E780DE1C48400524237 /* Create ExternalSettings */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 2A124E7C0DE1C4A200524237 /* Build configuration list for PBXAggregateTarget "Create ExternalSettings" */; - buildPhases = ( - 2A124E7E0DE1C4BE00524237 /* Run Script (version, ocaml lib dir) */, - ); - dependencies = ( - ); - name = "Create ExternalSettings"; - productName = "Create ExternalSettings"; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 2A3C3F7D09922D4900E404E9 /* NotificationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A3C3F7B09922D4900E404E9 /* NotificationController.m */; }; - 2E282CC80D9AE2B000439D01 /* unison-blob.o in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E282CC70D9AE2B000439D01 /* unison-blob.o */; }; - 44042CB60BE4FC9B00A6BBB2 /* ProgressCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */; }; - 44042D1B0BE52AED00A6BBB2 /* ProgressBarAdvanced.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */; }; - 44042D1C0BE52AEE00A6BBB2 /* ProgressBarBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */; }; - 44042D1D0BE52AEE00A6BBB2 /* ProgressBarEndAdvanced.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */; }; - 44042D1E0BE52AEE00A6BBB2 /* ProgressBarEndBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */; }; - 44042D1F0BE52AEE00A6BBB2 /* ProgressBarEndGray.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */; }; - 44042D200BE52AEE00A6BBB2 /* ProgressBarEndGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */; }; - 44042D210BE52AEE00A6BBB2 /* ProgressBarEndWhite.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */; }; - 44042D220BE52AEE00A6BBB2 /* ProgressBarGray.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */; }; - 44042D230BE52AEE00A6BBB2 /* ProgressBarGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */; }; - 44042D240BE52AEE00A6BBB2 /* ProgressBarLightGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */; }; - 44042D250BE52AEE00A6BBB2 /* ProgressBarWhite.png in Resources */ = {isa = PBXBuildFile; fileRef = 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */; }; - 440EEAF30C03EC3D00ACAAB0 /* Change_Created.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */; }; - 440EEAF90C03F0B800ACAAB0 /* Change_Deleted.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */; }; - 440EEAFA0C03F0B800ACAAB0 /* Change_Modified.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */; }; - 440EEAFB0C03F0B800ACAAB0 /* Change_PropsChanged.png in Resources */ = {isa = PBXBuildFile; fileRef = 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */; }; - 445A291B0BFA5B3300E4E641 /* Outline-Deep.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */; }; - 445A29270BFA5C1200E4E641 /* Outline-Flat.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A29260BFA5C1200E4E641 /* Outline-Flat.png */; }; - 445A29290BFA5C1B00E4E641 /* Outline-Flattened.png in Resources */ = {isa = PBXBuildFile; fileRef = 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */; }; - 445A2A5E0BFAB6C300E4E641 /* ImageAndTextCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */; }; - 449F03E10BE00DE9003F15C8 /* Bridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 449F03DF0BE00DE9003F15C8 /* Bridge.m */; }; - 44A794A10BE16C380069680C /* ExceptionHandling.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44A794A00BE16C380069680C /* ExceptionHandling.framework */; }; - 44A797F40BE3F9B70069680C /* table-mixed.tif in Resources */ = {isa = PBXBuildFile; fileRef = 44A797F10BE3F9B70069680C /* table-mixed.tif */; }; - 44F472B10C0DB735006428EF /* Change_Absent.png in Resources */ = {isa = PBXBuildFile; fileRef = 44F472AF0C0DB735006428EF /* Change_Absent.png */; }; - 44F472B20C0DB735006428EF /* Change_Unmodified.png in Resources */ = {isa = PBXBuildFile; fileRef = 44F472B00C0DB735006428EF /* Change_Unmodified.png */; }; - 69C625E70664EC3300B3C46A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; - 69C625E80664EC3300B3C46A /* Unison.icns in Resources */ = {isa = PBXBuildFile; fileRef = 69C625CA0664E94E00B3C46A /* Unison.icns */; }; - 69C625EA0664EC3300B3C46A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; - 69C625EB0664EC3300B3C46A /* MyController.m in Sources */ = {isa = PBXBuildFile; fileRef = 69660DC704F08CC100CF23A4 /* MyController.m */; }; - 69C625EC0664EC3300B3C46A /* ProfileController.m in Sources */ = {isa = PBXBuildFile; fileRef = 690F564504F11EC300CF23A4 /* ProfileController.m */; }; - 69C625ED0664EC3300B3C46A /* ReconItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */; }; - 69C625EE0664EC3300B3C46A /* ReconTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 69BA7DA904FD695200CF23A4 /* ReconTableView.m */; }; - 69C625EF0664EC3300B3C46A /* PreferencesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 697985CE050CFA2D00CF23A4 /* PreferencesController.m */; }; - 69C625F00664EC3300B3C46A /* ProfileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 691CE181051BB44A00CF23A4 /* ProfileTableView.m */; }; - 69C625F20664EC3300B3C46A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; - 69E407BA07EB95AA00D37AA1 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69E407B907EB95AA00D37AA1 /* Security.framework */; }; - B518071C09D6652100B1B21F /* add.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071209D6652100B1B21F /* add.tif */; }; - B518071D09D6652100B1B21F /* diff.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071309D6652100B1B21F /* diff.tif */; }; - B518071E09D6652100B1B21F /* go.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071409D6652100B1B21F /* go.tif */; }; - B518071F09D6652100B1B21F /* left.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071509D6652100B1B21F /* left.tif */; }; - B518072009D6652100B1B21F /* merge.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071609D6652100B1B21F /* merge.tif */; }; - B518072109D6652100B1B21F /* quit.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071709D6652100B1B21F /* quit.tif */; }; - B518072209D6652100B1B21F /* restart.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071809D6652100B1B21F /* restart.tif */; }; - B518072309D6652100B1B21F /* right.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071909D6652100B1B21F /* right.tif */; }; - B518072409D6652100B1B21F /* save.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071A09D6652100B1B21F /* save.tif */; }; - B518072509D6652100B1B21F /* skip.tif in Resources */ = {isa = PBXBuildFile; fileRef = B518071B09D6652100B1B21F /* skip.tif */; }; - B554004109C4E5AA0089E1C3 /* UnisonToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */; }; - B5B44C1909DF61A4000DC7AF /* table-conflict.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1109DF61A4000DC7AF /* table-conflict.tif */; }; - B5B44C1A09DF61A4000DC7AF /* table-error.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1209DF61A4000DC7AF /* table-error.tif */; }; - B5B44C1B09DF61A4000DC7AF /* table-left-blue.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */; }; - B5B44C1C09DF61A4000DC7AF /* table-left-green.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1409DF61A4000DC7AF /* table-left-green.tif */; }; - B5B44C1D09DF61A4000DC7AF /* table-merge.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1509DF61A4000DC7AF /* table-merge.tif */; }; - B5B44C1E09DF61A4000DC7AF /* table-right-blue.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */; }; - B5B44C1F09DF61A4000DC7AF /* table-right-green.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1709DF61A4000DC7AF /* table-right-green.tif */; }; - B5B44C2009DF61A4000DC7AF /* table-skip.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5B44C1809DF61A4000DC7AF /* table-skip.tif */; }; - B5E03B3909E38B9E0058C7B9 /* rescan.tif in Resources */ = {isa = PBXBuildFile; fileRef = B5E03B3809E38B9E0058C7B9 /* rescan.tif */; }; - BB1ADE25114AEB1100575BFC /* BWToolkitFramework.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBE2BCAB11355CDD00B187F2 /* BWToolkitFramework.framework */; }; - BB1ADE26114AEB1100575BFC /* Growl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = BBE2BCAC11355CDD00B187F2 /* Growl.framework */; }; - BBE2BCAD11355CDD00B187F2 /* BWToolkitFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE2BCAB11355CDD00B187F2 /* BWToolkitFramework.framework */; }; - BBE2BCAE11355CDD00B187F2 /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE2BCAC11355CDD00B187F2 /* Growl.framework */; }; - DE2444D610C294EA007E1546 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = DE2444D410C294EA007E1546 /* MainMenu.xib */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 2A124E7F0DE1C4E400524237 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2A124E780DE1C48400524237; - remoteInfo = "Create ExternalSettings"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 2A3C3F3709922AA600E404E9 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - BB1ADE25114AEB1100575BFC /* BWToolkitFramework.framework in CopyFiles */, - BB1ADE26114AEB1100575BFC /* Growl.framework in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - BB6E50CF10CAA57600E23F8A /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 7; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; - 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 2A3C3F7A09922D4900E404E9 /* NotificationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotificationController.h; sourceTree = ""; }; - 2A3C3F7B09922D4900E404E9 /* NotificationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NotificationController.m; sourceTree = ""; }; - 2E282CC70D9AE2B000439D01 /* unison-blob.o */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.objfile"; name = "unison-blob.o"; path = "../unison-blob.o"; sourceTree = SOURCE_ROOT; }; - 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ExternalSettings.xcconfig; sourceTree = ""; }; - 44042CB30BE4FC9B00A6BBB2 /* ProgressCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProgressCell.h; sourceTree = ""; }; - 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProgressCell.m; sourceTree = ""; }; - 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarAdvanced.png; path = progressicons/ProgressBarAdvanced.png; sourceTree = ""; }; - 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarBlue.png; path = progressicons/ProgressBarBlue.png; sourceTree = ""; }; - 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndAdvanced.png; path = progressicons/ProgressBarEndAdvanced.png; sourceTree = ""; }; - 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndBlue.png; path = progressicons/ProgressBarEndBlue.png; sourceTree = ""; }; - 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndGray.png; path = progressicons/ProgressBarEndGray.png; sourceTree = ""; }; - 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndGreen.png; path = progressicons/ProgressBarEndGreen.png; sourceTree = ""; }; - 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarEndWhite.png; path = progressicons/ProgressBarEndWhite.png; sourceTree = ""; }; - 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarGray.png; path = progressicons/ProgressBarGray.png; sourceTree = ""; }; - 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarGreen.png; path = progressicons/ProgressBarGreen.png; sourceTree = ""; }; - 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarLightGreen.png; path = progressicons/ProgressBarLightGreen.png; sourceTree = ""; }; - 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarWhite.png; path = progressicons/ProgressBarWhite.png; sourceTree = ""; }; - 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Created.png; sourceTree = ""; }; - 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Deleted.png; sourceTree = ""; }; - 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Modified.png; sourceTree = ""; }; - 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_PropsChanged.png; sourceTree = ""; }; - 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Deep.png"; sourceTree = ""; }; - 445A29260BFA5C1200E4E641 /* Outline-Flat.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Flat.png"; sourceTree = ""; }; - 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Outline-Flattened.png"; sourceTree = ""; }; - 445A2A5B0BFAB6A100E4E641 /* ImageAndTextCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageAndTextCell.h; sourceTree = ""; }; - 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ImageAndTextCell.m; sourceTree = ""; }; - 449F03DE0BE00DE9003F15C8 /* Bridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Bridge.h; sourceTree = ""; }; - 449F03DF0BE00DE9003F15C8 /* Bridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Bridge.m; sourceTree = ""; }; - 44A794A00BE16C380069680C /* ExceptionHandling.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ExceptionHandling.framework; path = /System/Library/Frameworks/ExceptionHandling.framework; sourceTree = ""; }; - 44A797F10BE3F9B70069680C /* table-mixed.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-mixed.tif"; sourceTree = ""; }; - 44F472AF0C0DB735006428EF /* Change_Absent.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Absent.png; sourceTree = ""; }; - 44F472B00C0DB735006428EF /* Change_Unmodified.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Change_Unmodified.png; sourceTree = ""; }; - 690F564404F11EC300CF23A4 /* ProfileController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProfileController.h; sourceTree = ""; }; - 690F564504F11EC300CF23A4 /* ProfileController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProfileController.m; sourceTree = ""; }; - 691CE180051BB44A00CF23A4 /* ProfileTableView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ProfileTableView.h; sourceTree = ""; }; - 691CE181051BB44A00CF23A4 /* ProfileTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ProfileTableView.m; sourceTree = ""; }; - 69660DC604F08CC100CF23A4 /* MyController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MyController.h; sourceTree = ""; }; - 69660DC704F08CC100CF23A4 /* MyController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = MyController.m; sourceTree = ""; }; - 697985CD050CFA2D00CF23A4 /* PreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PreferencesController.h; sourceTree = ""; }; - 697985CE050CFA2D00CF23A4 /* PreferencesController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = PreferencesController.m; sourceTree = ""; }; - 69BA7DA804FD695200CF23A4 /* ReconTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReconTableView.h; sourceTree = ""; }; - 69BA7DA904FD695200CF23A4 /* ReconTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReconTableView.m; sourceTree = ""; }; - 69C625CA0664E94E00B3C46A /* Unison.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Unison.icns; sourceTree = ""; }; - 69C625F40664EC3300B3C46A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 69C625F50664EC3300B3C46A /* Unison.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Unison.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ReconItem.m; sourceTree = ""; }; - 69D3C6FA04F1CC3700CF23A4 /* ReconItem.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ReconItem.h; sourceTree = ""; }; - 69E407B907EB95AA00D37AA1 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = ""; }; - B518071209D6652100B1B21F /* add.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = add.tif; sourceTree = ""; }; - B518071309D6652100B1B21F /* diff.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = diff.tif; sourceTree = ""; }; - B518071409D6652100B1B21F /* go.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = go.tif; sourceTree = ""; }; - B518071509D6652100B1B21F /* left.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = left.tif; sourceTree = ""; }; - B518071609D6652100B1B21F /* merge.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = merge.tif; sourceTree = ""; }; - B518071709D6652100B1B21F /* quit.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = quit.tif; sourceTree = ""; }; - B518071809D6652100B1B21F /* restart.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = restart.tif; sourceTree = ""; }; - B518071909D6652100B1B21F /* right.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = right.tif; sourceTree = ""; }; - B518071A09D6652100B1B21F /* save.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = save.tif; sourceTree = ""; }; - B518071B09D6652100B1B21F /* skip.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = skip.tif; sourceTree = ""; }; - B554003E09C4E5A00089E1C3 /* UnisonToolbar.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = UnisonToolbar.h; sourceTree = ""; }; - B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = UnisonToolbar.m; sourceTree = ""; }; - B5B44C1109DF61A4000DC7AF /* table-conflict.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-conflict.tif"; sourceTree = ""; }; - B5B44C1209DF61A4000DC7AF /* table-error.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-error.tif"; sourceTree = ""; }; - B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-left-blue.tif"; sourceTree = ""; }; - B5B44C1409DF61A4000DC7AF /* table-left-green.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-left-green.tif"; sourceTree = ""; }; - B5B44C1509DF61A4000DC7AF /* table-merge.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-merge.tif"; sourceTree = ""; }; - B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-right-blue.tif"; sourceTree = ""; }; - B5B44C1709DF61A4000DC7AF /* table-right-green.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-right-green.tif"; sourceTree = ""; }; - B5B44C1809DF61A4000DC7AF /* table-skip.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "table-skip.tif"; sourceTree = ""; }; - B5E03B3809E38B9E0058C7B9 /* rescan.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = rescan.tif; sourceTree = ""; }; - BBE2BCAB11355CDD00B187F2 /* BWToolkitFramework.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BWToolkitFramework.framework; path = Frameworks/BWToolkitFramework.framework; sourceTree = ""; }; - BBE2BCAC11355CDD00B187F2 /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Growl.framework; path = Frameworks/Growl.framework; sourceTree = ""; }; - DE2444D510C294EA007E1546 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 69C625F10664EC3300B3C46A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 69C625F20664EC3300B3C46A /* Cocoa.framework in Frameworks */, - 69E407BA07EB95AA00D37AA1 /* Security.framework in Frameworks */, - 44A794A10BE16C380069680C /* ExceptionHandling.framework in Frameworks */, - 2E282CC80D9AE2B000439D01 /* unison-blob.o in Frameworks */, - BBE2BCAD11355CDD00B187F2 /* BWToolkitFramework.framework in Frameworks */, - BBE2BCAE11355CDD00B187F2 /* Growl.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 19C28FACFE9D520D11CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 69C625F50664EC3300B3C46A /* Unison.app */, - ); - name = Products; - sourceTree = ""; - }; - 29B97314FDCFA39411CA2CEA /* uimac */ = { - isa = PBXGroup; - children = ( - 44042D0F0BE52AD700A6BBB2 /* progressicons */, - B5B44C1009DF61A4000DC7AF /* tableicons */, - B518071109D6652000B1B21F /* toolbar */, - 44A795C90BE2B91B0069680C /* Classes */, - 29B97315FDCFA39411CA2CEA /* Other Sources */, - 29B97317FDCFA39411CA2CEA /* Resources */, - 29B97323FDCFA39411CA2CEA /* Frameworks */, - 19C28FACFE9D520D11CA2CBB /* Products */, - 69C625F40664EC3300B3C46A /* Info.plist */, - 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */, - 2E282CB80D9AE16300439D01 /* External objects */, - ); - name = uimac; - sourceTree = ""; - }; - 29B97315FDCFA39411CA2CEA /* Other Sources */ = { - isa = PBXGroup; - children = ( - 29B97316FDCFA39411CA2CEA /* main.m */, - ); - name = "Other Sources"; - sourceTree = ""; - }; - 29B97317FDCFA39411CA2CEA /* Resources */ = { - isa = PBXGroup; - children = ( - DE2444D410C294EA007E1546 /* MainMenu.xib */, - 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, - 69C625CA0664E94E00B3C46A /* Unison.icns */, - ); - name = Resources; - sourceTree = ""; - }; - 29B97323FDCFA39411CA2CEA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, - BBE2BCAB11355CDD00B187F2 /* BWToolkitFramework.framework */, - BBE2BCAC11355CDD00B187F2 /* Growl.framework */, - 44A794A00BE16C380069680C /* ExceptionHandling.framework */, - 69E407B907EB95AA00D37AA1 /* Security.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 2E282CB80D9AE16300439D01 /* External objects */ = { - isa = PBXGroup; - children = ( - 2E282CC70D9AE2B000439D01 /* unison-blob.o */, - ); - name = "External objects"; - sourceTree = ""; - }; - 44042D0F0BE52AD700A6BBB2 /* progressicons */ = { - isa = PBXGroup; - children = ( - 44042D100BE52AED00A6BBB2 /* ProgressBarAdvanced.png */, - 44042D110BE52AED00A6BBB2 /* ProgressBarBlue.png */, - 44042D120BE52AED00A6BBB2 /* ProgressBarEndAdvanced.png */, - 44042D130BE52AED00A6BBB2 /* ProgressBarEndBlue.png */, - 44042D140BE52AED00A6BBB2 /* ProgressBarEndGray.png */, - 44042D150BE52AED00A6BBB2 /* ProgressBarEndGreen.png */, - 44042D160BE52AED00A6BBB2 /* ProgressBarEndWhite.png */, - 44042D170BE52AED00A6BBB2 /* ProgressBarGray.png */, - 44042D180BE52AED00A6BBB2 /* ProgressBarGreen.png */, - 44042D190BE52AED00A6BBB2 /* ProgressBarLightGreen.png */, - 44042D1A0BE52AED00A6BBB2 /* ProgressBarWhite.png */, - ); - name = progressicons; - sourceTree = ""; - }; - 44A795C90BE2B91B0069680C /* Classes */ = { - isa = PBXGroup; - children = ( - 69660DC604F08CC100CF23A4 /* MyController.h */, - 69660DC704F08CC100CF23A4 /* MyController.m */, - 2A3C3F7A09922D4900E404E9 /* NotificationController.h */, - 2A3C3F7B09922D4900E404E9 /* NotificationController.m */, - 69BA7DA804FD695200CF23A4 /* ReconTableView.h */, - 69BA7DA904FD695200CF23A4 /* ReconTableView.m */, - 69D3C6FA04F1CC3700CF23A4 /* ReconItem.h */, - 69D3C6F904F1CC3700CF23A4 /* ReconItem.m */, - 445A2A5B0BFAB6A100E4E641 /* ImageAndTextCell.h */, - 445A2A5D0BFAB6C300E4E641 /* ImageAndTextCell.m */, - 44042CB30BE4FC9B00A6BBB2 /* ProgressCell.h */, - 44042CB40BE4FC9B00A6BBB2 /* ProgressCell.m */, - 690F564404F11EC300CF23A4 /* ProfileController.h */, - 690F564504F11EC300CF23A4 /* ProfileController.m */, - 697985CD050CFA2D00CF23A4 /* PreferencesController.h */, - 697985CE050CFA2D00CF23A4 /* PreferencesController.m */, - 691CE180051BB44A00CF23A4 /* ProfileTableView.h */, - 691CE181051BB44A00CF23A4 /* ProfileTableView.m */, - B554003E09C4E5A00089E1C3 /* UnisonToolbar.h */, - B554004009C4E5AA0089E1C3 /* UnisonToolbar.m */, - 449F03DE0BE00DE9003F15C8 /* Bridge.h */, - 449F03DF0BE00DE9003F15C8 /* Bridge.m */, - ); - name = Classes; - sourceTree = ""; - }; - B518071109D6652000B1B21F /* toolbar */ = { - isa = PBXGroup; - children = ( - B5E03B3809E38B9E0058C7B9 /* rescan.tif */, - B518071209D6652100B1B21F /* add.tif */, - B518071309D6652100B1B21F /* diff.tif */, - B518071409D6652100B1B21F /* go.tif */, - B518071509D6652100B1B21F /* left.tif */, - B518071609D6652100B1B21F /* merge.tif */, - B518071709D6652100B1B21F /* quit.tif */, - B518071809D6652100B1B21F /* restart.tif */, - B518071909D6652100B1B21F /* right.tif */, - B518071A09D6652100B1B21F /* save.tif */, - B518071B09D6652100B1B21F /* skip.tif */, - ); - path = toolbar; - sourceTree = ""; - }; - B5B44C1009DF61A4000DC7AF /* tableicons */ = { - isa = PBXGroup; - children = ( - 44F472AF0C0DB735006428EF /* Change_Absent.png */, - 44F472B00C0DB735006428EF /* Change_Unmodified.png */, - 440EEAF60C03F0B800ACAAB0 /* Change_Deleted.png */, - 440EEAF70C03F0B800ACAAB0 /* Change_Modified.png */, - 440EEAF80C03F0B800ACAAB0 /* Change_PropsChanged.png */, - 440EEAF20C03EC3D00ACAAB0 /* Change_Created.png */, - 44A797F10BE3F9B70069680C /* table-mixed.tif */, - B5B44C1109DF61A4000DC7AF /* table-conflict.tif */, - B5B44C1209DF61A4000DC7AF /* table-error.tif */, - B5B44C1309DF61A4000DC7AF /* table-left-blue.tif */, - B5B44C1409DF61A4000DC7AF /* table-left-green.tif */, - B5B44C1509DF61A4000DC7AF /* table-merge.tif */, - B5B44C1609DF61A4000DC7AF /* table-right-blue.tif */, - B5B44C1709DF61A4000DC7AF /* table-right-green.tif */, - B5B44C1809DF61A4000DC7AF /* table-skip.tif */, - 445A291A0BFA5B3300E4E641 /* Outline-Deep.png */, - 445A29260BFA5C1200E4E641 /* Outline-Flat.png */, - 445A29280BFA5C1B00E4E641 /* Outline-Flattened.png */, - ); - path = tableicons; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 69C625DD0664EC3300B3C46A /* uimac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2A3C3F280992245300E404E9 /* Build configuration list for PBXNativeTarget "uimac" */; - buildPhases = ( - 2E282CBA0D9AE17300439D01 /* Run Script (make unison-blob.o) */, - 69C625E50664EC3300B3C46A /* Resources */, - 69C625E90664EC3300B3C46A /* Sources */, - 69C625F10664EC3300B3C46A /* Frameworks */, - 2A3C3F3709922AA600E404E9 /* CopyFiles */, - BB6E50CF10CAA57600E23F8A /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - 2A124E800DE1C4E400524237 /* PBXTargetDependency */, - ); - name = uimac; - productInstallPath = "$(HOME)/Applications"; - productName = uimac; - productReference = 69C625F50664EC3300B3C46A /* Unison.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 29B97313FDCFA39411CA2CEA /* Project object */ = { - isa = PBXProject; - buildConfigurationList = 2A3C3F2C0992245300E404E9 /* Build configuration list for PBXProject "uimacnew" */; - compatibilityVersion = "Xcode 3.1"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - English, - Japanese, - French, - German, - ); - mainGroup = 29B97314FDCFA39411CA2CEA /* uimac */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 69C625DD0664EC3300B3C46A /* uimac */, - 2A124E780DE1C48400524237 /* Create ExternalSettings */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 69C625E50664EC3300B3C46A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 69C625E70664EC3300B3C46A /* InfoPlist.strings in Resources */, - 69C625E80664EC3300B3C46A /* Unison.icns in Resources */, - B518071C09D6652100B1B21F /* add.tif in Resources */, - B518071D09D6652100B1B21F /* diff.tif in Resources */, - B518071E09D6652100B1B21F /* go.tif in Resources */, - B518071F09D6652100B1B21F /* left.tif in Resources */, - B518072009D6652100B1B21F /* merge.tif in Resources */, - B518072109D6652100B1B21F /* quit.tif in Resources */, - B518072209D6652100B1B21F /* restart.tif in Resources */, - B518072309D6652100B1B21F /* right.tif in Resources */, - B518072409D6652100B1B21F /* save.tif in Resources */, - B518072509D6652100B1B21F /* skip.tif in Resources */, - B5B44C1909DF61A4000DC7AF /* table-conflict.tif in Resources */, - B5B44C1A09DF61A4000DC7AF /* table-error.tif in Resources */, - B5B44C1B09DF61A4000DC7AF /* table-left-blue.tif in Resources */, - B5B44C1C09DF61A4000DC7AF /* table-left-green.tif in Resources */, - B5B44C1D09DF61A4000DC7AF /* table-merge.tif in Resources */, - B5B44C1E09DF61A4000DC7AF /* table-right-blue.tif in Resources */, - B5B44C1F09DF61A4000DC7AF /* table-right-green.tif in Resources */, - B5B44C2009DF61A4000DC7AF /* table-skip.tif in Resources */, - B5E03B3909E38B9E0058C7B9 /* rescan.tif in Resources */, - 44A797F40BE3F9B70069680C /* table-mixed.tif in Resources */, - 44042D1B0BE52AED00A6BBB2 /* ProgressBarAdvanced.png in Resources */, - 44042D1C0BE52AEE00A6BBB2 /* ProgressBarBlue.png in Resources */, - 44042D1D0BE52AEE00A6BBB2 /* ProgressBarEndAdvanced.png in Resources */, - 44042D1E0BE52AEE00A6BBB2 /* ProgressBarEndBlue.png in Resources */, - 44042D1F0BE52AEE00A6BBB2 /* ProgressBarEndGray.png in Resources */, - 44042D200BE52AEE00A6BBB2 /* ProgressBarEndGreen.png in Resources */, - 44042D210BE52AEE00A6BBB2 /* ProgressBarEndWhite.png in Resources */, - 44042D220BE52AEE00A6BBB2 /* ProgressBarGray.png in Resources */, - 44042D230BE52AEE00A6BBB2 /* ProgressBarGreen.png in Resources */, - 44042D240BE52AEE00A6BBB2 /* ProgressBarLightGreen.png in Resources */, - 44042D250BE52AEE00A6BBB2 /* ProgressBarWhite.png in Resources */, - 445A291B0BFA5B3300E4E641 /* Outline-Deep.png in Resources */, - 445A29270BFA5C1200E4E641 /* Outline-Flat.png in Resources */, - 445A29290BFA5C1B00E4E641 /* Outline-Flattened.png in Resources */, - 440EEAF30C03EC3D00ACAAB0 /* Change_Created.png in Resources */, - 440EEAF90C03F0B800ACAAB0 /* Change_Deleted.png in Resources */, - 440EEAFA0C03F0B800ACAAB0 /* Change_Modified.png in Resources */, - 440EEAFB0C03F0B800ACAAB0 /* Change_PropsChanged.png in Resources */, - 44F472B10C0DB735006428EF /* Change_Absent.png in Resources */, - 44F472B20C0DB735006428EF /* Change_Unmodified.png in Resources */, - DE2444D610C294EA007E1546 /* MainMenu.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 2A124E7E0DE1C4BE00524237 /* Run Script (version, ocaml lib dir) */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script (version, ocaml lib dir)"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [ -x /usr/libexec/path_helper ]; then\n eval `/usr/libexec/path_helper -s`\nfi\nif [ ! -x ${PROJECT_DIR}/../Makefile.ProjectInfo ]; then\n if [ ! -x ${PROJECT_DIR}/../mkProjectInfo ]; then\n cd ${PROJECT_DIR}/..; ocamlc -o mkProjectInfo unix.cma str.cma mkProjectInfo.ml\n fi\n cd ${PROJECT_DIR}/..; ./mkProjectInfo > Makefile.ProjectInfo\nfi\nOCAMLLIBDIR=`ocamlc -v | tail -n -1 | sed -e 's/.* //g' | sed -e 's/\\\\\\/\\\\//g' | tr -d '\\r'`\nsource ${PROJECT_DIR}/../Makefile.ProjectInfo\necho MARKETING_VERSION = $VERSION > ${PROJECT_DIR}/ExternalSettings.xcconfig\necho OCAMLLIBDIR = $OCAMLLIBDIR >> ${PROJECT_DIR}/ExternalSettings.xcconfig"; - }; - 2E282CBA0D9AE17300439D01 /* Run Script (make unison-blob.o) */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script (make unison-blob.o)"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "echo \"Building unison-blob.o...\"\nif [ -x /usr/libexec/path_helper ]; then\n eval `/usr/libexec/path_helper -s`\nfi\ncd ${PROJECT_DIR}/..\nmake unison-blob.o\necho \"done\""; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 69C625E90664EC3300B3C46A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 69C625EA0664EC3300B3C46A /* main.m in Sources */, - 69C625EB0664EC3300B3C46A /* MyController.m in Sources */, - 69C625EC0664EC3300B3C46A /* ProfileController.m in Sources */, - 69C625ED0664EC3300B3C46A /* ReconItem.m in Sources */, - 69C625EE0664EC3300B3C46A /* ReconTableView.m in Sources */, - 69C625EF0664EC3300B3C46A /* PreferencesController.m in Sources */, - 69C625F00664EC3300B3C46A /* ProfileTableView.m in Sources */, - 2A3C3F7D09922D4900E404E9 /* NotificationController.m in Sources */, - B554004109C4E5AA0089E1C3 /* UnisonToolbar.m in Sources */, - 449F03E10BE00DE9003F15C8 /* Bridge.m in Sources */, - 44042CB60BE4FC9B00A6BBB2 /* ProgressCell.m in Sources */, - 445A2A5E0BFAB6C300E4E641 /* ImageAndTextCell.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 2A124E800DE1C4E400524237 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2A124E780DE1C48400524237 /* Create ExternalSettings */; - targetProxy = 2A124E7F0DE1C4E400524237 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 089C165DFE840E0CC02AAC07 /* English */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - DE2444D410C294EA007E1546 /* MainMenu.xib */ = { - isa = PBXVariantGroup; - children = ( - DE2444D510C294EA007E1546 /* English */, - ); - name = MainMenu.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 2A124E790DE1C48400524237 /* Development */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - PRODUCT_NAME = "Create ExternalSettings"; - }; - name = Development; - }; - 2A124E7A0DE1C48400524237 /* Deployment */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - PRODUCT_NAME = "Create ExternalSettings"; - ZERO_LINK = NO; - }; - name = Deployment; - }; - 2A124E7B0DE1C48400524237 /* Default */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Create ExternalSettings"; - }; - name = Default; - }; - 2A3C3F290992245300E404E9 /* Development */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(FRAMEWORK_SEARCH_PATHS)", - "$(SRCROOT)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "\"$(SRCROOT)/Frameworks\"", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ""; - NSZombieEnabled = YES; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-L$(OCAMLLIBDIR)", - "-lunix", - "-lthreadsnat", - "-lstr", - "-lbigarray", - "-lasmrun", - ); - PREBINDING = NO; - PRODUCT_NAME = Unison; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - ZERO_LINK = YES; - }; - name = Development; - }; - 2A3C3F2A0992245300E404E9 /* Deployment */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(FRAMEWORK_SEARCH_PATHS)", - "$(SRCROOT)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "\"$(SRCROOT)/Frameworks\"", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ""; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-L$(OCAMLLIBDIR)", - "-lunix", - "-lthreadsnat", - "-lstr", - "-lbigarray", - "-lasmrun", - ); - PREBINDING = NO; - PRODUCT_NAME = Unison; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - ZERO_LINK = NO; - }; - name = Deployment; - }; - 2A3C3F2B0992245300E404E9 /* Default */ = { - isa = XCBuildConfiguration; - buildSettings = { - FRAMEWORK_SEARCH_PATHS = ( - "$(FRAMEWORK_SEARCH_PATHS)", - "$(SRCROOT)", - "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", - "\"$(SRCROOT)/Frameworks\"", - ); - FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\""; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Applications"; - LIBRARY_SEARCH_PATHS = ""; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-L$(OCAMLLIBDIR)", - "-lunix", - "-lthreadsnat", - "-lstr", - "-lbigarray", - "-lasmrun", - ); - PREBINDING = NO; - PRODUCT_NAME = Unison; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - ZERO_LINK = NO; - }; - name = Default; - }; - 2A3C3F2D0992245300E404E9 /* Development */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; - LIBRARY_SEARCH_PATHS = ""; - SDKROOT = macosx10.5; - USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; - }; - name = Development; - }; - 2A3C3F2E0992245300E404E9 /* Deployment */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; - LIBRARY_SEARCH_PATHS = ""; - SDKROOT = macosx10.5; - USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; - }; - name = Deployment; - }; - 2A3C3F2F0992245300E404E9 /* Default */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - FRAMEWORK_SEARCH_PATHS = "Frameworks/**"; - LIBRARY_SEARCH_PATHS = ""; - SDKROOT = macosx10.5; - USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR; - }; - name = Default; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2A124E7C0DE1C4A200524237 /* Build configuration list for PBXAggregateTarget "Create ExternalSettings" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2A124E790DE1C48400524237 /* Development */, - 2A124E7A0DE1C48400524237 /* Deployment */, - 2A124E7B0DE1C48400524237 /* Default */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Default; - }; - 2A3C3F280992245300E404E9 /* Build configuration list for PBXNativeTarget "uimac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2A3C3F290992245300E404E9 /* Development */, - 2A3C3F2A0992245300E404E9 /* Deployment */, - 2A3C3F2B0992245300E404E9 /* Default */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Default; - }; - 2A3C3F2C0992245300E404E9 /* Build configuration list for PBXProject "uimacnew" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2A3C3F2D0992245300E404E9 /* Development */, - 2A3C3F2E0992245300E404E9 /* Deployment */, - 2A3C3F2F0992245300E404E9 /* Default */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Default; - }; -/* End XCConfigurationList section */ - }; - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; -} Binary files /tmp/tmpNoqqF7/V4er_JJeaZ/unison-2.40.102/uimacnew09/Unison.icns and /tmp/tmpNoqqF7/kbg7s4r3w0/unison-2.48.3/uimacnew09/Unison.icns differ diff -Nru unison-2.40.102/uimacnew09/UnisonToolbar.h unison-2.48.3/uimacnew09/UnisonToolbar.h --- unison-2.40.102/uimacnew09/UnisonToolbar.h 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/UnisonToolbar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -// -// UnisonToolbar.h -// -// Extended NSToolbar with several views -// -// Created by Ben Willmore on Sun March 12 2006. -// Copyright (c) 2006, licensed under GNU GPL. -// - -#import - -@class ReconTableView, MyController; - -@interface UnisonToolbar : NSToolbar -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060) - -#endif -{ - ReconTableView* tableView; - MyController* myController; - NSString* currentView; - NSView* tableModeView; -} - -- initWithIdentifier:(NSString *) identifier :(MyController *) aController :(ReconTableView *) aTableView; -- (NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier: (NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted; -- (NSArray *) itemIdentifiersForView: (NSString *) whichView; -- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar; -- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar; -- (void) setView: (NSString *) whichView; -- (void)takeTableModeView:(NSView *)view; - -@end diff -Nru unison-2.40.102/uimacnew09/UnisonToolbar.m unison-2.48.3/uimacnew09/UnisonToolbar.m --- unison-2.40.102/uimacnew09/UnisonToolbar.m 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uimacnew09/UnisonToolbar.m 1970-01-01 00:00:00.000000000 +0000 @@ -1,215 +0,0 @@ -// -// UnisonToolbar.h -// -// Extended NSToolbar with several views -// -// Created by Ben Willmore on Sun March 12 2006. -// Copyright (c) 2006, licensed under GNU GPL. -// - -#import "UnisonToolbar.h" -#import "MyController.h" - -static NSString* QuitItemIdentifier = @"Quit"; -static NSString* OpenItemIdentifier = @"Open"; -static NSString* NewItemIdentifier = @"New"; -static NSString* GoItemIdentifier = @"Go"; -static NSString* CancelItemIdentifier = @"Cancel"; -static NSString* SaveItemIdentifier = @"Save"; -static NSString* RestartItemIdentifier = @"Restart"; -static NSString* RescanItemIdentifier = @"Rescan"; -static NSString* RToLItemIdentifier = @"RToL"; -static NSString* MergeItemIdentifier = @"Merge"; -static NSString* LToRItemIdentifier = @"LToR"; -static NSString* SkipItemIdentifier = @"Skip"; -static NSString* DiffItemIdentifier = @"Diff"; -static NSString* TableModeIdentifier = @"TableMode"; - -@implementation UnisonToolbar - -- initWithIdentifier:(NSString *) identifier :(MyController *) aController :(ReconTableView *) aTableView { - - if ((self = [super initWithIdentifier: identifier])) { - [self setAllowsUserCustomization: NO]; - [self setAutosavesConfiguration: NO]; - [self setDelegate: self]; - myController = aController; - tableView = aTableView; - currentView = @""; - } - - return self; -} - -- (void)takeTableModeView:(NSView *)view -{ - tableModeView = [view retain]; - [view setHidden:YES]; -} - -- (NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier: (NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted { - - NSToolbarItem *toolbarItem = [[[NSToolbarItem alloc] initWithItemIdentifier: itemIdent] autorelease]; - if ([itemIdent isEqual: QuitItemIdentifier]) { - [toolbarItem setLabel: @"Quit"]; - [toolbarItem setImage: [NSImage imageNamed: @"quit.tif"]]; - [toolbarItem setTarget:NSApp]; - [toolbarItem setAction:@selector(terminate:)]; - } - else if ([itemIdent isEqual: OpenItemIdentifier]) { - [toolbarItem setLabel: @"Open"]; - [toolbarItem setImage: [NSImage imageNamed: @"go.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(openButton:)]; - } - else if ([itemIdent isEqual: NewItemIdentifier]) { - [toolbarItem setLabel: @"New"]; - [toolbarItem setImage: [NSImage imageNamed: @"add.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(createButton:)]; - } - else if ([itemIdent isEqual: CancelItemIdentifier]) { - [toolbarItem setLabel: @"Cancel"]; - [toolbarItem setImage: [NSImage imageNamed: @"restart.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(chooseProfiles)]; - } - else if ([itemIdent isEqual: SaveItemIdentifier]) { - [toolbarItem setLabel: @"Save"]; - [toolbarItem setImage: [NSImage imageNamed: @"save.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(saveProfileButton:)]; - } - else if ([itemIdent isEqual: GoItemIdentifier]) { - [toolbarItem setLabel: @"Go"]; - [toolbarItem setImage: [NSImage imageNamed: @"go.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(syncButton:)]; - } - else if ([itemIdent isEqual: RestartItemIdentifier]) { - [toolbarItem setLabel: @"Restart"]; - [toolbarItem setImage: [NSImage imageNamed: @"restart.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(restartButton:)]; - } - else if ([itemIdent isEqual: RescanItemIdentifier]) { - [toolbarItem setLabel: @"Rescan"]; - [toolbarItem setImage: [NSImage imageNamed: @"rescan.tif"]]; - [toolbarItem setTarget:myController]; - [toolbarItem setAction:@selector(rescan:)]; - } - else if ([itemIdent isEqual: RToLItemIdentifier]) { - [toolbarItem setLabel: @"Right to left"]; - [toolbarItem setImage: [NSImage imageNamed: @"left.tif"]]; - [toolbarItem setTarget:tableView]; - [toolbarItem setAction:@selector(copyRL:)]; - } - else if ([itemIdent isEqual: MergeItemIdentifier]) { - [toolbarItem setLabel: @"Merge"]; - [toolbarItem setImage: [NSImage imageNamed: @"merge.tif"]]; - [toolbarItem setTarget:tableView]; - [toolbarItem setAction:@selector(merge:)]; - } - else if ([itemIdent isEqual: LToRItemIdentifier]) { - [toolbarItem setLabel: @"Left to right"]; - [toolbarItem setImage: [NSImage imageNamed: @"right.tif"]]; - [toolbarItem setTarget:tableView]; - [toolbarItem setAction:@selector(copyLR:)]; - } - else if ([itemIdent isEqual: SkipItemIdentifier]) { - [toolbarItem setLabel: @"Skip"]; - [toolbarItem setImage: [NSImage imageNamed: @"skip.tif"]]; - [toolbarItem setTarget:tableView]; - [toolbarItem setAction:@selector(leaveAlone:)]; - } - else if ([itemIdent isEqual: DiffItemIdentifier]) { - [toolbarItem setLabel: @"Diff"]; - [toolbarItem setImage: [NSImage imageNamed: @"diff.tif"]]; - [toolbarItem setTarget:tableView]; - [toolbarItem setAction:@selector(showDiff:)]; - } - else if ([itemIdent isEqual: TableModeIdentifier]) { - [toolbarItem setLabel:@"Layout"]; - [toolbarItem setToolTip:@"Switch table nesting"]; - [tableModeView setHidden:NO]; - [toolbarItem setView:tableModeView]; - //[toolbarItem setMinSize:NSMakeSize(NSWidth([tableModeView frame]),NSHeight([tableModeView frame])+10)]; - //[toolbarItem setMaxSize:NSMakeSize(NSWidth([tableModeView frame]),NSHeight([tableModeView frame])+10)]; - } - - return toolbarItem; -} - -- (NSArray *) itemIdentifiersForView: (NSString *) whichView { - if ([whichView isEqual: @"chooseProfileView"]) { - return [NSArray arrayWithObjects: QuitItemIdentifier, NewItemIdentifier, OpenItemIdentifier, nil]; - } - else if ([whichView isEqual: @"preferencesView"]) { - return [NSArray arrayWithObjects: QuitItemIdentifier, SaveItemIdentifier, CancelItemIdentifier, nil]; - } - else if ([whichView isEqual: @"ConnectingView"]) { - return [NSArray arrayWithObjects: QuitItemIdentifier, nil]; - } - else if ([whichView isEqual: @"updatesView"]) { - return [NSArray arrayWithObjects: QuitItemIdentifier, - RestartItemIdentifier, - NSToolbarSeparatorItemIdentifier, - GoItemIdentifier, - RescanItemIdentifier, - NSToolbarSeparatorItemIdentifier, - RToLItemIdentifier, MergeItemIdentifier, LToRItemIdentifier, - SkipItemIdentifier, NSToolbarSeparatorItemIdentifier, - DiffItemIdentifier, - TableModeIdentifier, nil]; - } - else { - return [NSArray arrayWithObjects: QuitItemIdentifier, Nil]; - } -} - -- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar { - return [NSArray arrayWithObjects: QuitItemIdentifier, NewItemIdentifier, OpenItemIdentifier, nil]; -} - -- (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar { - return [NSArray arrayWithObjects: QuitItemIdentifier, OpenItemIdentifier, NewItemIdentifier, - CancelItemIdentifier, SaveItemIdentifier, - GoItemIdentifier, RestartItemIdentifier, RescanItemIdentifier, - RToLItemIdentifier, MergeItemIdentifier, LToRItemIdentifier, - SkipItemIdentifier, DiffItemIdentifier, - NSToolbarSeparatorItemIdentifier, nil]; -} - -- (void) setView: (NSString *) whichView { - if ([whichView isEqual:currentView]) return; - - currentView = whichView; - - int i; - NSArray *identifiers; - NSString *oldIdentifier; - NSString *newIdentifier; - - identifiers=[self itemIdentifiersForView:whichView]; - for (i=0; i<[identifiers count]; i++) { - newIdentifier = [identifiers objectAtIndex:i]; - if (i<[[self items] count]) { - oldIdentifier = [[[self items] objectAtIndex:i] itemIdentifier]; - if ([newIdentifier isEqual: oldIdentifier] ) { - [[[self items] objectAtIndex:i] setEnabled:YES]; - } - else { - [self removeItemAtIndex:i]; - [self insertItemWithItemIdentifier:newIdentifier atIndex:i]; - } - } - else { - [self insertItemWithItemIdentifier:newIdentifier atIndex:i]; - } - } - while ([[self items] count] > [identifiers count]) { - [self removeItemAtIndex:[identifiers count]]; - } -} - -@end diff -Nru unison-2.40.102/ui.mli unison-2.48.3/ui.mli --- unison-2.40.102/ui.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/ui.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/ui.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* The module Ui provides only the user interface signature. Implementations are provided by Uitext and Uitk. *) diff -Nru unison-2.40.102/uitext.ml unison-2.48.3/uitext.ml --- unison-2.40.102/uitext.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uitext.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uitext.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,6 @@ along with this program. If not, see . *) - open Common open Lwt @@ -49,8 +48,7 @@ let cbreakMode = ref None -(* FIX: this may also work with Cygwin, but someone needs to try it... *) -let supportSignals = Util.osType = `Unix (*|| Util.isCygwin*) +let supportSignals = Util.osType = `Unix || Util.isCygwin let rawTerminal () = match !cbreakMode with @@ -220,7 +218,7 @@ match ri.replicas with Problem _ -> alwaysDisplay s - | Different {direction = d} when d=Conflict -> + | Different {direction = d} when isConflict d -> alwaysDisplay s | _ -> display s @@ -256,7 +254,7 @@ match ri.replicas with Problem s -> display "\n"; display s; display "\n"; next() | Different ({rc1 = rc1; rc2 = rc2; direction = dir} as diff) -> - if Prefs.read Uicommon.auto && dir<>Conflict then begin + if Prefs.read Uicommon.auto && not (isConflict dir) then begin display "\n"; next() end else let (descr, descl) = @@ -273,14 +271,14 @@ end; selectAction (if Prefs.read Globals.batch then Some " " else None) - [((if dir=Conflict && not (Prefs.read Globals.batch) + [((if (isConflict dir) && not (Prefs.read Globals.batch) then ["f"] (* Offer no default behavior if we've got a conflict and we're in interactive mode *) else ["";"f";" "]), ("follow " ^ Uutil.myName ^ "'s recommendation (if any)"), fun ()-> newLine (); - if dir = Conflict && not (Prefs.read Globals.batch) + if (isConflict dir) && not (Prefs.read Globals.batch) then begin display "No default action [type '?' for help]\n"; repeat() @@ -362,7 +360,7 @@ (["/"], ("skip"), (fun () -> - diff.direction <- Conflict; + if not (isConflict dir) then diff.direction <- Conflict "skip requested"; redisplayri(); next())); ([">";"."], @@ -580,9 +578,12 @@ if skipped>0 then Safelist.iter (fun ri -> - if problematic ri then - alwaysDisplayAndLog - (" skipped: " ^ (Path.toString ri.path1))) + match ri.replicas with + Problem r + | Different {rc1 = _; rc2 = _; direction = Conflict r; default_direction = _} -> + alwaysDisplayAndLog (Printf.sprintf " skipped: %s (%s)" + (Path.toString ri.path1) r) + | _ -> ()) newReconItemList; if partials>0 then Safelist.iter @@ -606,6 +607,25 @@ if !Update.foundArchives && Prefs.read Uicommon.repeat = "" then Update.commitUpdates (); display "No updates to propagate\n"; + if skipped > 0 then begin + let summary = + Printf.sprintf + "Synchronization complete at %s (0 item transferred, %d skipped, 0 failed)" + (let tm = Util.localtime (Util.time()) in + Printf.sprintf "%02d:%02d:%02d" + tm.Unix.tm_hour tm.Unix.tm_min tm.Unix.tm_sec) + skipped in + Trace.log (summary ^ "\n"); + Safelist.iter + (fun ri -> + match ri.replicas with + Problem r + | Different {rc1 = _; rc2 = _; direction = Conflict r; default_direction = _} -> + alwaysDisplayAndLog (Printf.sprintf " skipped: %s (%s)" + (Path.toString ri.path1) r) + | _ -> ()) + newReconItemList + end; (skipped > 0, false, false, []) end else if proceed=ProceedImmediately then begin doit() @@ -613,9 +633,9 @@ displayWhenInteractive "\nProceed with propagating updates? "; selectAction (* BCP: I find it counterintuitive that every other prompt except this one - would expect as a default. But I got talked out of offering a default - here, because of safety considerations (too easy to press one time - too many). *) + would expect as a default. But I got talked out of offering a + default here, because of safety considerations (too easy to press + one time too many). *) (if Prefs.read Globals.batch then Some "y" else None) [(["y";"g"], "Yes: proceed with updates as selected above", @@ -656,7 +676,7 @@ end end -let synchronizeOnce() = +let synchronizeOnce ?wantWatcher ?skipRecentFiles pathsOpt = let showStatus path = if path = "" then Util.set_infos "" else let max_len = 70 in @@ -674,7 +694,10 @@ if not (Prefs.read Trace.terse) && (Prefs.read Trace.debugmods = []) then Uutil.setUpdateStatusPrinter (Some showStatus); - let updates = Update.findUpdates() in + debug (fun() -> Util.msg "temp: Globals.paths = %s\n" + (String.concat " " + (Safelist.map Path.toString (Prefs.read Globals.paths)))); + let updates = Update.findUpdates ?wantWatcher pathsOpt in Uutil.setUpdateStatusPrinter None; Util.set_infos ""; @@ -697,94 +720,79 @@ (exitStatus, failedPaths) end -let watchinterval = 10 +(* ----------------- Filesystem watching mode ---------------- *) + +let watchinterval = 1. (* Minimal interval between two synchronizations *) +let retrydelay = 5. (* Minimal delay to retry failed paths *) +let maxdelay = 30. *. 60. (* Maximal delay to retry failed paths *) -(* FIX; Using string concatenation to accumulate characters is - pretty inefficient! *) -let charsRead = ref "" -let linesRead = ref [] -let watcherchan = ref None - -let suckOnWatcherFileLocal n = - Util.convertUnixErrorsToFatal - ("Reading changes from watcher process in file " ^ - System.fspathToPrintString n) - (fun () -> - (* The main loop, invoked from two places below *) - let rec loop ch = - match try Some(input_char ch) with End_of_file -> None with - None -> - let res = !linesRead in - linesRead := []; - res - | Some(c) -> - if c = '\n' then begin - linesRead := !charsRead - :: !linesRead; - charsRead := ""; - loop ch - end else begin - charsRead := (!charsRead) ^ (String.make 1 c); - loop ch - end in - (* Make sure there's a file to watch, then read from it *) - match !watcherchan with - None -> - if System.file_exists n then begin - let ch = System.open_in_bin n in - watcherchan := Some(ch); - loop ch - end else [] - | Some(ch) -> loop ch - ) +module PathMap = Map.Make (Path) -let suckOnWatcherFileRoot: Common.root -> System.fspath -> (string list) Lwt.t = +let waitForChangesRoot: Common.root -> unit -> unit Lwt.t = Remote.registerRootCmd - "suckOnWatcherFile" - (fun (fspath, n) -> - Lwt.return (suckOnWatcherFileLocal n)) - -let suckOnWatcherFiles n = - Safelist.concat - (Lwt_unix.run ( - Globals.allRootsMap (fun r -> suckOnWatcherFileRoot r n))) + "waitForChanges" + (fun (fspath, _) -> Fswatchold.wait (Update.archiveHash fspath)) -let synchronizePathsFromFilesystemWatcher () = - let watcherfilename = System.fspathFromString "" in - (* STOPPED HERE -- need to find the program using watcherosx preference - and invoke it (on both hosts, if there are two!) using a redirect to - get the output into a temp file... *) - let rec loop failedPaths = - let newpaths = suckOnWatcherFiles watcherfilename in - if newpaths <> [] then - display (Printf.sprintf "Changed paths:\n %s\n" - (String.concat "\n " newpaths)); - let p = failedPaths @ (Safelist.map Path.fromString newpaths) in - if p <> [] then begin - Prefs.set Globals.paths p; - let (exitStatus,newFailedPaths) = synchronizeOnce() in - debug (fun() -> Util.msg "Sleeping for %d seconds...\n" watchinterval); - Unix.sleep watchinterval; - loop newFailedPaths - end else begin - debug (fun() -> Util.msg "Nothing changed: sleeping for %d seconds...\n" - watchinterval); - Unix.sleep watchinterval; - loop [] - end in - loop [] +let waitForChanges t = + let dt = t -. Unix.gettimeofday () in + if dt > 0. then begin + let timeout = if dt <= maxdelay then [Lwt_unix.sleep dt] else [] in + Lwt_unix.run + (Globals.allRootsMap (fun r -> Lwt.return (waitForChangesRoot r ())) + >>= fun l -> + Lwt.choose (timeout @ l)) + end -let synchronizeUntilNoFailures () = - let initValueOfPathsPreference = Prefs.read Globals.paths in - let rec loop triesLeft = - let (exitStatus,failedPaths) = synchronizeOnce() in +let synchronizePathsFromFilesystemWatcher () = + let rec loop isStart delayInfo = + let t = Unix.gettimeofday () in + let (delayedPaths, readyPaths) = + PathMap.fold + (fun p (t', _) (delayed, ready) -> + if t' <= t then (delayed, p :: ready) else (p :: delayed, ready)) + delayInfo ([], []) + in + let (exitStatus, failedPaths) = + synchronizeOnce ~wantWatcher:() ~skipRecentFiles:() + (if isStart then None else Some (readyPaths, delayedPaths)) + in + (* After a failure, we retry at once, then use an exponential backoff *) + let delayInfo = + Safelist.fold_left + (fun newDelayInfo p -> + PathMap.add p + (try + let (t', d) = PathMap.find p delayInfo in + if t' > t then (t', d) else + let d = max retrydelay (min maxdelay (2. *. d)) in + (t +. d, d) + with Not_found -> + (t, 0.)) + newDelayInfo) + PathMap.empty + (Safelist.append delayedPaths failedPaths) + in + Lwt_unix.run (Lwt_unix.sleep watchinterval); + let nextTime = + PathMap.fold (fun _ (t, d) t' -> min t t') delayInfo 1e20 in + waitForChanges nextTime; + loop false delayInfo + in + loop true PathMap.empty + +(* ----------------- Repetition ---------------- *) + +let synchronizeUntilNoFailures repeatMode = + let rec loop triesLeft pathsOpt = + let (exitStatus, failedPaths) = + synchronizeOnce + ?wantWatcher:(if repeatMode then Some () else None) pathsOpt in if failedPaths <> [] && triesLeft <> 0 then begin - loop (triesLeft - 1) + loop (triesLeft - 1) (Some (failedPaths, [])) end else begin - Prefs.set Globals.paths initValueOfPathsPreference; exitStatus end in - loop (Prefs.read Uicommon.retry) + loop (Prefs.read Uicommon.retry) None let rec synchronizeUntilDone () = let repeatinterval = @@ -799,17 +807,30 @@ ^Prefs.read Uicommon.repeat ^") should be either a number or 'watch'\n")) in - let exitStatus = synchronizeUntilNoFailures() in + let exitStatus = synchronizeUntilNoFailures(repeatinterval >= 0) in if repeatinterval < 0 then exitStatus else begin (* Do it again *) - Trace.status (Printf.sprintf "\nSleeping for %d seconds...\n" repeatinterval); + Trace.status (Printf.sprintf + "\nSleeping for %d seconds...\n" repeatinterval); Unix.sleep repeatinterval; synchronizeUntilDone () end -let start interface = +(* ----------------- Startup ---------------- *) + +let handleException e = + restoreTerminal(); + let msg = Uicommon.exn2string e in + Trace.log (msg ^ "\n"); + if not !Trace.sendLogMsgsToStderr then begin + alwaysDisplay "\n"; + alwaysDisplay msg; + alwaysDisplay "\n"; + end + +let rec start interface = if interface <> Uicommon.Text then Util.msg "This Unison binary only provides the text GUI...\n"; begin try @@ -853,16 +874,26 @@ exit exitStatus with - e -> - restoreTerminal(); - let msg = Uicommon.exn2string e in - Trace.log (msg ^ "\n"); - if not !Trace.sendLogMsgsToStderr then begin - alwaysDisplay "\n"; - alwaysDisplay msg; - alwaysDisplay "\n"; - end; + Sys.Break -> begin + (* If we've been killed, then die *) + handleException Sys.Break; exit Uicommon.fatalExit + end + | e -> begin + (* If any other bad thing happened and the -repeat preference is + set, then restart *) + (* JV: it seems safer to just abort here, as we don't know in which + state Unison is; for instance, if the connection is lost, there + is no point in restarting as Unison will currently not attempt to + establish a new connection. *) + handleException e; + if false (*Prefs.read Uicommon.repeat <> ""*) then begin + Util.msg "Restarting in 10 seconds...\n"; + Unix.sleep 10; + start interface + end else + exit Uicommon.fatalExit + end end let defaultUi = Uicommon.Text diff -Nru unison-2.40.102/uitext.mli unison-2.48.3/uitext.mli --- unison-2.40.102/uitext.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/uitext.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,4 +1,4 @@ (* Unison file synchronizer: src/uitext.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) module Body : Uicommon.UI diff -Nru unison-2.40.102/unicode.ml unison-2.48.3/unicode.ml --- unison-2.40.102/unicode.ml 2010-05-20 09:08:30.000000000 +0000 +++ unison-2.48.3/unicode.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/unicode.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/unicode.mli unison-2.48.3/unicode.mli --- unison-2.40.102/unicode.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/unicode.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/unicode.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) exception Invalid diff -Nru unison-2.40.102/update.ml unison-2.48.3/update.ml --- unison-2.40.102/update.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/update.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/update.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,6 @@ along with this program. If not, see . *) - open Common let (>>=) = Lwt.(>>=) @@ -24,6 +23,15 @@ let debugalias = Trace.debug "rootalias" let debugignore = Trace.debug "ignore" +let ignoreArchives = + Prefs.createBool "ignorearchives" false + "!ignore existing archive files" + ("When this preference is set, Unison will ignore any existing " + ^ "archive files and behave as though it were being run for the first " + ^ "time on these replicas. It is " + ^ "not a good idea to set this option in a profile: it is intended for " + ^ "command-line use.") + (*****************************************************************************) (* ARCHIVE DATATYPE *) (*****************************************************************************) @@ -142,7 +150,7 @@ (Safelist.map (function (Common.Local,f) -> - (Common.Remote Os.myCanonicalHostName,f) + (Common.Remote (Os.myCanonicalHostName ()),f) | r -> r) (Globals.rootsInCanonicalOrder())))) in @@ -158,7 +166,7 @@ | `Unix -> 32 let thisRootsGlobalName (fspath: Fspath.t): string = - root2stringOrAlias (Common.Remote Os.myCanonicalHostName, fspath) + root2stringOrAlias (Common.Remote (Os.myCanonicalHostName ()), fspath) (* ----- *) @@ -270,7 +278,7 @@ let (name,_) = archiveName fspath v in Lwt.return (name, - Os.myCanonicalHostName, + Os.myCanonicalHostName (), System.file_exists (Os.fileInUnisonDir name))) @@ -653,7 +661,7 @@ let populateCacheFromArchive fspath arch = let (cacheFilename, _) = archiveName fspath FPCache in let cacheFile = Os.fileInUnisonDir cacheFilename in - Fpcache.init true cacheFile; + Fpcache.init true (Prefs.read ignoreArchives) cacheFile; populateCacheFromArchiveRec Path.empty arch; Fpcache.finish () @@ -661,15 +669,6 @@ (* Loading archives *) (*************************************************************************) -let ignoreArchives = - Prefs.createBool "ignorearchives" false - "!ignore existing archive files" - ("When this preference is set, Unison will ignore any existing " - ^ "archive files and behave as though it were being run for the first " - ^ "time on these replicas. It is " - ^ "not a good idea to set this option in a profile: it is intended for " - ^ "command-line use.") - let setArchiveData thisRoot fspath (arch, hash, magic, properties) info = let archMode = archiveMode magic in let curMode = (Case.ops ())#modeDesc in @@ -758,6 +757,8 @@ "Internal error: On-disk archives are not identical.\n" ^ "\n" ^ "This can happen when both machines have the same hostname.\n" + ^ "It can also happen when one copy of Unison has been compiled with\n" + ^ "OCaml version 3 and one with OCaml version 4.\n" ^ "\n" ^ "If this is not the case and you get this message repeatedly, please:\n" ^ " a) Send a bug report to unison-users@yahoogroups.com (you may need\n" @@ -785,7 +786,7 @@ None else Some (Printf.sprintf "The file %s on host %s should be deleted" - (System.fspathToPrintString lockFile) Os.myCanonicalHostName) + (System.fspathToPrintString lockFile) (Os.myCanonicalHostName ())) let lockArchiveOnRoot: Common.root -> unit -> string option Lwt.t = Remote.registerRootCmd @@ -1071,9 +1072,69 @@ if not (Os.exists fspath path) then raise (Util.Fatal (Printf.sprintf "Path %s / %s is designated as a mountpoint, but points to nothing on host %s\n" - (Fspath.toPrintString fspath) (Path.toString path) Os.myCanonicalHostName))) + (Fspath.toPrintString fspath) (Path.toString path) + (Os.myCanonicalHostName ())))) (Prefs.read mountpoints) +(*********************************************************************** + Set of paths +************************************************************************) + +type pathTree = PathTreeLeaf + | PathTreeNode of pathTree NameMap.t + +let rec addPathToTree path tree = + match Path.deconstruct path, tree with + None, _ | _, Some PathTreeLeaf -> + PathTreeLeaf + | Some (nm, p), None -> + PathTreeNode (NameMap.add nm (addPathToTree p None) NameMap.empty) + | Some (nm, p), Some (PathTreeNode children) -> + let t = try Some (NameMap.find nm children) with Not_found -> None in + PathTreeNode (NameMap.add nm (addPathToTree p t) children) + +let rec removePathFromTree path tree = + match Path.deconstruct path, tree with + None, _ -> + None + | Some (nm, p), PathTreeLeaf -> + Some tree + | Some (nm, p), PathTreeNode children -> + try + let t = NameMap.find nm children in + match removePathFromTree p t with + None -> + let newChildren = NameMap.remove nm children in + if NameMap.is_empty children then None else + Some (PathTreeNode newChildren) + | Some t -> + Some (PathTreeNode (NameMap.add nm t children)) + with Not_found -> + Some tree + +let pathTreeOfList l = + Safelist.fold_left (fun t p -> Some (addPathToTree p t)) None l + +let removePathsFromTree l treeOpt = + Safelist.fold_left + (fun t p -> + match t with + None -> None + | Some t -> removePathFromTree p t) + treeOpt l + +let rec getSubTree path tree = + match Path.deconstruct path, tree with + None, _ -> + Some tree + | Some (nm, p), PathTreeLeaf -> + Some PathTreeLeaf + | Some (nm, p), PathTreeNode children -> + try + let t = NameMap.find nm children in + getSubTree p t + with Not_found -> + None (*********************************************************************** UPDATE DETECTION @@ -1089,7 +1150,9 @@ Unison will use the modification time and length of a file as a `pseudo inode number' \ when scanning replicas for updates, \ - instead of reading the full contents of every file. Under \ + instead of reading the full contents of every file. (This does not \ + apply to the very first run, when Unison will always scan \ + all files regarless of this switch). Under \ Windows, this may cause Unison to miss propagating an update \ if the modification time and length of the \ file are both unchanged by the update. However, Unison will never \ @@ -1124,6 +1187,7 @@ { fastCheck : bool; dirFastCheck : bool; dirStamp : Props.dirChangedStamp; + archHash : string; showStatus : bool } (** Status display **) @@ -1268,13 +1332,13 @@ end (* Check whether a file has changed has changed, by comparing its digest and - properties against [archDesc], [archDig], and [archStamp]. + properties against [archDesc], [archFp], and [archStamp]. Returns a pair (optArch, ui) where [optArch] is *not* None when the file remains unchanged but time might be changed. [optArch] is used by [buildUpdate] series functions to compute the _old_ archive with updated time stamp (thus, there will no false update the next time) *) let checkContentsChange - currfspath path info archive archDesc archDig archStamp archRess scanInfo + currfspath path info archive archDesc archFp archStamp archRess scanInfo : archive option * Common.updateItem = debug (fun () -> @@ -1301,29 +1365,34 @@ Fpcache.ressClearlyUnchanged fastCheck info archRess dataClearlyUnchanged in if dataClearlyUnchanged && ressClearlyUnchanged then begin - Xferhint.insertEntry currfspath path archDig; + Xferhint.insertEntry currfspath path archFp; None, checkPropChange info.Fileinfo.desc archive archDesc end else begin debugverbose (fun() -> Util.msg " Double-check possibly updated file\n"); showStatusAddLength scanInfo info; - let (newDesc, newDigest, newStamp, newRess) = + let (newDesc, newFp, newStamp, newRess) = Fpcache.fingerprint fastCheck currfspath path info - (if dataClearlyUnchanged then Some archDig else None) in - Xferhint.insertEntry currfspath path newDigest; + (if dataClearlyUnchanged then Some archFp else None) in + Xferhint.insertEntry currfspath path newFp; debug (fun() -> Util.msg " archive digest = %s current digest = %s\n" - (Os.fullfingerprint_to_string archDig) - (Os.fullfingerprint_to_string newDigest)); - if archDig = newDigest then begin + (Os.fullfingerprint_to_string archFp) + (Os.fullfingerprint_to_string newFp)); + if archFp = newFp then begin let newprops = Props.setTime archDesc (Props.time newDesc) in - let newarch = ArchiveFile (newprops, archDig, newStamp, newRess) in + let newarch = ArchiveFile (newprops, archFp, newStamp, newRess) in debugverbose (fun() -> Util.msg " Contents match: update archive with new time...%f\n" (Props.time newprops)); Some newarch, checkPropChange newDesc archive archDesc end else begin debug (fun() -> Util.msg " Updated file\n"); + (* [BCP 5/2011] We might add a sanity check here: if the file contents + have changed but the modtime has not, signal an error. I.e., abort if + Props.same_time info.Fileinfo.desc archDesc + is true at this point. + *) None, - Updates (File (newDesc, ContentsUpdated (newDigest, newStamp, newRess)), + Updates (File (newDesc, ContentsUpdated (newFp, newStamp, newRess)), oldInfoOf archive) end end @@ -1393,18 +1462,19 @@ bool * bool = showStatusDir path; + Fswatch.scanDirectory path; let skip = Pred.test immutable (Path.toString path) && - not (Pred.test immutablenot (Path.toString path)) - in + not (Pred.test immutablenot (Path.toString path)) in + if unchangedChildren then begin if skip then begin if Prefs.read Xferhint.xferbycopying then NameMap.iter (fun nm archive -> match archive with - ArchiveFile (_, archDig, _, _) -> - Xferhint.insertEntry fspath (Path.child path nm) archDig + ArchiveFile (_, archFp, _, _) -> + Xferhint.insertEntry fspath (Path.child path nm) archFp | _ -> ()) archChi; @@ -1414,15 +1484,26 @@ let archUpdated = ref false in let handleChild nm archive = let path' = Path.child path nm in - showStatus scanInfo path'; - let (arch,uiChild) = - buildUpdateRec archive fspath path' scanInfo in - if uiChild <> NoUpdates then - updates := (nm, uiChild) :: !updates; - match arch with - None -> archive - | Some arch -> archUpdated := true; arch - in + debugverbose (fun () -> Util.msg + "buildUpdateChildren(handleChild): %s\n" (Path.toString path')); + if Globals.shouldIgnore path' then begin + (* We have to ignore paths which are in the archive but no + longer exists in the filesystem. Note that we cannot + reach this point for files that exists on the filesystem + ([hasIgnoredChildren] below would have been true). *) + debugignore (fun()->Util.msg "buildUpdateChildren: ignoring path %s\n" + (Path.toString path')); + archive + end else begin + showStatus scanInfo path'; + let (arch,uiChild) = + buildUpdateRec archive fspath path' scanInfo in + if uiChild <> NoUpdates then + updates := (nm, uiChild) :: !updates; + match arch with + None -> archive + | Some arch -> archUpdated := true; arch + end in let newChi = NameMap.mapi handleChild archChi in (* The Recon module relies on the updates to be sorted *) ((if !archUpdated then Some newChi else None), @@ -1447,8 +1528,8 @@ `Ok | `Abs -> if skip && archive <> NoArchive && status <> `Abs then begin begin match archive with - ArchiveFile (_, archDig, _, _) -> - Xferhint.insertEntry fspath path' archDig + ArchiveFile (_, archFp, _, _) -> + Xferhint.insertEntry fspath path' archFp | _ -> () end; @@ -1521,7 +1602,7 @@ and buildUpdateRec archive currfspath path scanInfo = try debug (fun() -> - Util.msg "buildUpdate: %s\n" + Util.msg "buildUpdateRec: %s\n" (Fspath.toDebugString (Fspath.concat currfspath path))); let info = Fileinfo.get true currfspath path in match (info.Fileinfo.typ, archive) with @@ -1532,20 +1613,20 @@ debug (fun() -> Util.msg " buildUpdate -> Deleted\n"); None, Updates (Absent, oldInfoOf archive) (* --- *) - | (`FILE, ArchiveFile (archDesc, archDig, archStamp, archRess)) -> + | (`FILE, ArchiveFile (archDesc, archFp, archStamp, archRess)) -> checkContentsChange currfspath path info archive - archDesc archDig archStamp archRess scanInfo + archDesc archFp archStamp archRess scanInfo | (`FILE, _) -> - debug (fun() -> Util.msg " buildUpdate -> Updated file\n"); + debug (fun() -> Util.msg " buildUpdate -> New file\n"); None, begin showStatusAddLength scanInfo info; - let (desc, dig, stamp, ress) = - Fpcache.fingerprint + let (desc, fp, stamp, ress) = + Fpcache.fingerprint ~newfile:true scanInfo.fastCheck currfspath path info None in - Xferhint.insertEntry currfspath path dig; - Updates (File (desc, ContentsUpdated (dig, stamp, ress)), + Xferhint.insertEntry currfspath path fp; + Updates (File (desc, ContentsUpdated (fp, stamp, ress)), oldInfoOf archive) end (* --- *) @@ -1582,7 +1663,7 @@ Actually, we could check for ignored children in the archive, but this has a significant cost. We could mark directories with ignored children, and only perform the checks for them, - but that does not seem worthwhile, are directories with + but that does not seem worthwhile, as directories with ignored children are expected to be rare in the archive. (These are files or directories which used not to be ignored and are now ignored.) *) @@ -1612,6 +1693,101 @@ with Util.Transient(s) -> None, Error(s) +(* Compute the updates for the tree of paths [tree] against archive. *) +let rec buildUpdatePathTree archive fspath here tree scanInfo = + match tree, archive with + PathTreeNode children, ArchiveDir (archDesc, archChildren) -> + let curChildren = + lazy (List.fold_left (fun m (nm, st) -> NameMap.add nm st m) + NameMap.empty (getChildren fspath here)) + in + let updates = ref [] in + let archUpdated = ref false in + let newChi = ref archChildren in + let handleChild nm archive status tree' = + let path' = Path.child here nm in + if Os.isTempFile (Name.toString nm) || Globals.shouldIgnore path' then + archive + else begin + match status with + `Ok | `Abs -> + let (arch,uiChild) = + buildUpdatePathTree archive fspath path' tree' scanInfo in + if uiChild <> NoUpdates then + updates := (nm, uiChild) :: !updates; + begin match arch with + None -> archive + | Some arch -> archUpdated := true; arch + end + | `Dup -> + let uiChild = + Error + ("Two or more files on a case-sensitive system have names \ + identical except for case. They cannot be synchronized \ + to a case-insensitive file system. (File '" ^ + Path.toString path' ^ "')") + in + updates := (nm, uiChild) :: !updates; + archive + | `BadEnc -> + let uiChild = + Error ("The file name is not encoded in Unicode. (File '" + ^ Path.toString path' ^ "')") + in + updates := (nm, uiChild) :: !updates; + archive + | `BadName -> + let uiChild = + Error + ("The name of this Unix file is not allowed under Windows. \ + (File '" ^ Path.toString path' ^ "')") + in + updates := (nm, uiChild) :: !updates; + archive + end + in + NameMap.iter + (fun nm tree' -> + let inArchive = NameMap.mem nm archChildren in + let arch = + if tree' = PathTreeLeaf || not inArchive then begin + let (nm', st) = + try + NameMap.findi nm (Lazy.force curChildren) + with Not_found -> try + (fst (NameMap.findi nm archChildren), `Abs) + with Not_found -> + (nm, `Abs) + in + let arch = + try NameMap.find nm archChildren with Not_found -> NoArchive + in + handleChild nm' arch st tree' + end else begin + let (nm', arch) = NameMap.findi nm archChildren in + handleChild nm' arch `Ok tree' + end + in + if inArchive then newChi := NameMap.add nm arch !newChi) + children; + (begin if !archUpdated then + Some (ArchiveDir (archDesc, !newChi)) + else + None + end, + if !updates <> [] then + (* The Recon module relies on the updates to be sorted *) + Updates (Dir (archDesc, Safelist.rev !updates, PropsSame, false), + oldInfoOf archive) + else + NoUpdates) + | _ -> + showStatus scanInfo here; + Fswatch.startScanning scanInfo.archHash fspath here; + let res = buildUpdateRec archive fspath here scanInfo in + Fswatch.stopScanning (); + res + (* Compute the updates for [path] against archive. Also returns an archive, which is the old archive with time stamps updated appropriately (i.e., for those files whose contents remain @@ -1619,12 +1795,11 @@ contents. The directory permissions along the path are also collected, in case we need to build the directory hierarchy on one side. *) -let rec buildUpdate archive fspath fullpath here path dirStamp scanInfo = +let rec buildUpdate archive fspath fullpath here path pathTree scanInfo = match Path.deconstruct path with None -> - showStatus scanInfo here; let (arch, ui) = - buildUpdateRec archive fspath here scanInfo in + buildUpdatePathTree archive fspath here pathTree scanInfo in (begin match arch with None -> archive | Some arch -> arch @@ -1691,8 +1866,8 @@ let otherChildren = NameMap.remove name children in let (arch, updates, localPath, props) = buildUpdate - archChild fspath fullpath (Path.child here name') path' - dirStamp scanInfo + archChild fspath fullpath (Path.child here name') + path' pathTree scanInfo in let children = if arch = NoArchive then otherChildren else @@ -1704,8 +1879,8 @@ | _ -> let (arch, updates, localPath, props) = buildUpdate - NoArchive fspath fullpath (Path.child here name') path' - dirStamp scanInfo + NoArchive fspath fullpath (Path.child here name') + path' pathTree scanInfo in assert (arch = NoArchive); (archive, updates, localPath, @@ -1750,16 +1925,24 @@ (Proplist.add rsrcKey newRsrc props))); stamp +(* This contains the list of synchronized paths and the directory stamps + used by the previous update detection, when a watcher process is used. + This make it possible to know when the state of the watcher process + needs to be reset. *) +let previousFindOptions = Hashtbl.create 7 + (* for the given path, find the archive and compute the list of update items; as a side effect, update the local archive w.r.t. time-stamps for unchanged files *) -let findLocal fspath pathList: +let findLocal wantWatcher fspath pathList subpaths : (Path.local * Common.updateItem * Props.t list) list = - debug (fun() -> Util.msg "findLocal %s\n" (Fspath.toDebugString fspath)); + debug (fun() -> Util.msg + "findLocal %s (%s)\n" (Fspath.toDebugString fspath) + (String.concat " " (Safelist.map Path.toString pathList))); addHashToTempNames fspath; (* Maybe we should remember the device number where the root lives at the beginning of update detection, so that we can check, below, that - the device has not changed. This check allows us to abort in case + the device has not changed. This check would allow us to abort in case the root is on a removable device and this device gets removed during update detection, causing all the files to appear to have been deleted. --BCP 2006 *) @@ -1775,24 +1958,79 @@ as Windows does not update directory modification times on FAT filesystems. *) dirFastCheck = useFastChecking () && Util.osType = `Unix; - dirStamp = dirStamp; + dirStamp = dirStamp; archHash = archiveHash fspath; showStatus = not !Trace.runningasserver } in let (cacheFilename, _) = archiveName fspath FPCache in let cacheFile = Os.fileInUnisonDir cacheFilename in - Fpcache.init scanInfo.fastCheck cacheFile; + Fpcache.init scanInfo.fastCheck (Prefs.read ignoreArchives) cacheFile; + let unchangedOptions = + try + Hashtbl.find previousFindOptions scanInfo.archHash + = (scanInfo.dirStamp, pathList) + with Not_found -> + false + in + let paths = + match subpaths with + Some (unsynchronizedPaths, blacklistedPaths) when unchangedOptions -> + let (>>) x f = f x in + let paths = + Fswatchold.getChanges scanInfo.archHash + (* We do not really need to filter here (they are filtered also + by [buildUpdatePathTree], but that might reduce greatly and + cheaply number of paths to consider... *) + >> List.filter (fun path -> not (Globals.shouldIgnore path)) + in + let filterPaths paths subpaths = + let number_list l = + let i = ref (-1) in + Safelist.map (fun x -> incr i; (!i, x)) l + in + paths >> (* We number paths, to be able to recover their + initial order. *) + number_list + >> (* We put longest paths first, in order to deal + correctly with nested paths (tough that might be + overkill...) *) + List.sort (fun (_, p1) (_, p2) -> Path.compare p2 p1) + >> (* We extract the set of changed paths included in + each synchronized path *) + List.fold_left + (fun (l, tree) (i, p) -> + match tree with + None -> + ((i, (p, None)) :: l, None) + | Some tree -> + ((i, (p, getSubTree p tree)) :: l, + removePathFromTree p tree)) + ([], pathTreeOfList subpaths) + >> fst + >> (* Finally, we restaure the initial order *) + List.sort (fun (i1, _) (i2, _) -> compare i1 i2) + >> List.map snd + in + filterPaths pathList (Safelist.append unsynchronizedPaths paths) + | _ -> + if wantWatcher && Fswatchold.start scanInfo.archHash fspath then + Hashtbl.replace previousFindOptions + scanInfo.archHash (scanInfo.dirStamp, pathList) + else + Hashtbl.remove previousFindOptions scanInfo.archHash; + Safelist.map (fun p -> (p, Some PathTreeLeaf)) pathList + in let (archive, updates) = Safelist.fold_right - (fun path (arch, upd) -> - if Globals.shouldIgnore path then - (arch, (translatePathLocal fspath path, NoUpdates, []) :: upd) - else - let (arch', ui, localPath, props) = - buildUpdate - arch fspath path Path.empty path dirStamp scanInfo - in - arch', (localPath, ui, props) :: upd) - pathList (archive, []) + (fun (path, pathTreeOpt) (arch, upd) -> + match pathTreeOpt with + Some pathTree when not (Globals.shouldIgnore path) -> + let (arch', ui, localPath, props) = + buildUpdate arch fspath path Path.empty path pathTree scanInfo + in + (arch', (localPath, ui, props) :: upd) + | _ -> + (arch, (translatePathLocal fspath path, NoUpdates, []) :: upd)) + paths (archive, []) in Fpcache.finish (); (* @@ -1806,10 +2044,10 @@ let findOnRoot = Remote.registerRootCmd "find" - (fun (fspath, pathList) -> - Lwt.return (findLocal fspath pathList)) + (fun (fspath, (wantWatcher, pathList, subpaths)) -> + Lwt.return (findLocal wantWatcher fspath pathList subpaths)) -let findUpdatesOnPaths pathList = +let findUpdatesOnPaths ?wantWatcher pathList subpaths = Lwt_unix.run (loadArchives true >>= (fun (ok, checksums) -> begin if ok then Lwt.return checksums else begin @@ -1832,7 +2070,7 @@ let t = Trace.startTimer "Collecting changes" in Globals.allRootsMapWithWaitingAction (fun r -> debug (fun() -> Util.msg "findOnRoot %s\n" (root2string r)); - findOnRoot r pathList) + findOnRoot r (wantWatcher <> None, pathList, subpaths)) (fun (host, _) -> begin match host with Remote _ -> Uutil.showUpdateStatus ""; @@ -1852,10 +2090,10 @@ Trace.status ""; Lwt.return result)))) -let findUpdates () = +let findUpdates ?wantWatcher subpaths = (* TODO: We should filter the paths to remove duplicates (including prefixes) and ignored paths *) - findUpdatesOnPaths (Prefs.read Globals.paths) + findUpdatesOnPaths ?wantWatcher (Prefs.read Globals.paths) subpaths (*****************************************************************************) @@ -1946,13 +2184,13 @@ NoArchive | File (desc, ContentsSame) -> begin match archive with - ArchiveFile (_, dig, stamp, ress) -> - ArchiveFile (desc, dig, stamp, ress) + ArchiveFile (_, fp, stamp, ress) -> + ArchiveFile (desc, fp, stamp, ress) | _ -> assert false end - | File (desc, ContentsUpdated (dig, stamp, ress)) -> - ArchiveFile (desc, dig, stamp, ress) + | File (desc, ContentsUpdated (fp, stamp, ress)) -> + ArchiveFile (desc, fp, stamp, ress) | Symlink l -> ArchiveSymlink l | Dir (desc, children, _, _) -> @@ -1993,8 +2231,8 @@ NoArchive -> ch | ar' -> NameMap.add nm ar' ch) children NameMap.empty) - | ArchiveFile (desc, dig, stamp, ress) -> - ArchiveFile (Props.strip desc, dig, stamp, ress) + | ArchiveFile (desc, fp, stamp, ress) -> + ArchiveFile (Props.strip desc, fp, stamp, ress) | ArchiveSymlink _ | NoArchive -> arch @@ -2076,13 +2314,13 @@ match ui with Updates (File (desc, ContentsSame), _) -> begin match arch with - ArchiveFile (_, dig, stamp, ress) -> - ArchiveFile (desc, dig, stamp, ress) + ArchiveFile (_, fp, stamp, ress) -> + ArchiveFile (desc, fp, stamp, ress) | _ -> assert false end - | Updates (File (desc, ContentsUpdated (dig, stamp, ress)), _) -> - ArchiveFile(desc, dig, stamp, ress) + | Updates (File (desc, ContentsUpdated (fp, stamp, ress)), _) -> + ArchiveFile(desc, fp, stamp, ress) | Updates (Dir (desc, _, _, _), _) -> begin match arch with ArchiveDir (_, children) -> ArchiveDir (desc, children) @@ -2096,8 +2334,8 @@ match propOpt with Some desc' -> begin match newArch with - ArchiveFile (desc, dig, stamp, ress) -> - ArchiveFile (Props.override desc desc', dig, stamp, ress) + ArchiveFile (desc, fp, stamp, ress) -> + ArchiveFile (Props.override desc desc', fp, stamp, ress) | ArchiveDir (desc, children) -> ArchiveDir (Props.override desc desc', children) | _ -> @@ -2133,9 +2371,9 @@ let doMarkPossiblyUpdated arch = match arch with - ArchiveFile (desc, dig, stamp, ress) -> + ArchiveFile (desc, fp, stamp, ress) -> (* It would be cleaner to have a special stamp for this *) - ArchiveFile (desc, dig, Fileinfo.InodeStamp (-1), ress) + ArchiveFile (desc, fp, Fileinfo.InodeStamp (-1), ress) | _ -> (* Should not happen, actually. But this is hard to test... *) arch @@ -2191,10 +2429,11 @@ (Format.sprintf "The properties of file %s have been modified\n" (Path.toString path)) | Updates (File (desc, ContentsUpdated (_, _, ress)), - Previous (`FILE, oldDesc, _, oldRess)) -> - reportUpdate (fastCheckMiss path desc ress oldDesc oldRess) - (Format.sprintf "The contents of file %s has been modified\n" - (Path.toString path)) + Previous (`FILE, oldDesc, oldFp, oldRess)) -> + if not (Os.isPseudoFingerprint oldFp) then + reportUpdate (fastCheckMiss path desc ress oldDesc oldRess) + (Format.sprintf "The contents of file %s have been modified\n" + (Path.toString path)) | Updates (File (_, ContentsUpdated _), _) -> reportUpdate false (Format.sprintf "The file %s has been created\n" @@ -2234,9 +2473,8 @@ (* ...and check that this is a good description of what's out in the world *) let scanInfo = { fastCheck = false; dirFastCheck = false; - dirStamp = Props.changedDirStamp; - showStatus = false } - in + dirStamp = Props.changedDirStamp; archHash = "" (* Not used *); + showStatus = false } in let (_, uiNew) = buildUpdateRec archive fspath localPath scanInfo in markPossiblyUpdatedRec fspath pathInArchive uiNew; explainUpdate pathInArchive uiNew; diff -Nru unison-2.40.102/update.mli unison-2.48.3/update.mli --- unison-2.40.102/update.mli 2010-07-19 13:05:04.000000000 +0000 +++ unison-2.48.3/update.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/update.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) module NameMap : MyMap.S with type key = Name.t @@ -18,10 +18,16 @@ (* Retrieve the actual names of the roots *) val getRootsName : unit -> string -(* Structures describing dirty files/dirs (1 per path given in the -path preference) *) +(* Perform update detection. Optionally, takes as input the list of + paths known not to be synchronized and a list of paths not to + check. Returns structures describing dirty files/dirs (1 per path + given in the -path preference). An option controls whether we + would like to use the external filesytem monitoring process. *) val findUpdates : - unit -> ((Path.local * Common.updateItem * Props.t list) * - (Path.local * Common.updateItem * Props.t list)) list + ?wantWatcher:unit -> + (Path.t list * Path.t list) option -> + ((Path.local * Common.updateItem * Props.t list) * + (Path.local * Common.updateItem * Props.t list)) list (* Take a tree of equal update contents and update the archive accordingly. *) val markEqual : @@ -77,3 +83,8 @@ (* (For breaking the dependency loop between update.ml and stasher.ml...) *) val setStasherFun : (Fspath.t -> Path.local -> unit) -> unit + +(* Conjoin the canonical name of the current host and the canonical + presentation of the current fspath with the list of names/fspaths of + all the roots and the current archive format *) +val archiveHash : Fspath.t -> string diff -Nru unison-2.40.102/uutil.ml unison-2.48.3/uutil.ml --- unison-2.40.102/uutil.ml 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/uutil.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uutil.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru unison-2.40.102/uutil.mli unison-2.48.3/uutil.mli --- unison-2.40.102/uutil.mli 2012-09-17 14:09:03.000000000 +0000 +++ unison-2.48.3/uutil.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/uutil.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* This module collects a number of low-level, Unison-specific utility functions. It is kept separate from the Util module so that that module diff -Nru unison-2.40.102/xferhint.ml unison-2.48.3/xferhint.ml --- unison-2.40.102/xferhint.ml 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/xferhint.ml 2014-12-29 18:34:45.000000000 +0000 @@ -1,5 +1,5 @@ (* Unison file synchronizer: src/xferhint.ml *) -(* Copyright 1999-2009, Benjamin C. Pierce +(* Copyright 1999-2015, Benjamin C. Pierce This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -56,7 +56,7 @@ None let insertEntry fspath path fp = - if Prefs.read xferbycopying then begin + if Prefs.read xferbycopying && not (Os.isPseudoFingerprint fp) then begin debug (fun () -> Util.msg "insertEntry: fspath=%s, path=%s, fp=%s\n" (Fspath.toDebugString fspath) diff -Nru unison-2.40.102/xferhint.mli unison-2.48.3/xferhint.mli --- unison-2.40.102/xferhint.mli 2010-04-15 17:29:31.000000000 +0000 +++ unison-2.48.3/xferhint.mli 2014-12-29 18:34:45.000000000 +0000 @@ -1,8 +1,8 @@ (* Unison file synchronizer: src/xferhint.mli *) -(* Copyright 1999-2009, Benjamin C. Pierce (see COPYING for details) *) +(* Copyright 1999-2015, Benjamin C. Pierce (see COPYING for details) *) (* This module maintains a cache that can be used to map - an Os.fingerprint to a (Fspath.t * Path.t) naming a file that *may* + an Os.fullfingerprint to a (Fspath.t * Path.t) naming a file that *may* (if we are lucky) have this fingerprint. The cache is not guaranteed to be reliable -- the things it returns are only hints, and must be double-checked before they are used (to optimize file transfers). *)