diff options
34 files changed, 3395 insertions, 8725 deletions
diff --git a/Interfaces/English.lproj/ConnectionView.xib b/Interfaces/English.lproj/ConnectionView.xib index e4462131..a0c61b52 100644 --- a/Interfaces/English.lproj/ConnectionView.xib +++ b/Interfaces/English.lproj/ConnectionView.xib @@ -3,7 +3,7 @@ <data> <int key="IBDocument.SystemTarget">1050</int> <string key="IBDocument.SystemVersion">10H574</string> - <string key="IBDocument.InterfaceBuilderVersion">788</string> + <string key="IBDocument.InterfaceBuilderVersion">823</string> <string key="IBDocument.AppKitVersion">1038.35</string> <string key="IBDocument.HIToolboxVersion">461.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> @@ -15,13 +15,14 @@ </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> - <string>788</string> + <string>823</string> <string>1.2.5</string> </object> </object> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="4913"/> + <integer value="5468"/> + <integer value="5344"/> </object> <object class="NSArray" key="IBDocument.PluginDependencies"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -109,7 +110,7 @@ </object> </object> <object class="NSTextFieldCell" key="NSDataCell" id="93569184"> - <int key="NSCellFlags">69336641</int> + <int key="NSCellFlags">337772097</int> <int key="NSCellFlags2">137216</int> <string key="NSContents">Text Cell</string> <reference key="NSSupport" ref="26"/> @@ -155,7 +156,7 @@ </object> </object> <double key="NSRowHeight">17</double> - <int key="NSTvFlags">373293056</int> + <int key="NSTvFlags">507510784</int> <reference key="NSDelegate"/> <reference key="NSDataSource"/> <int key="NSColumnAutoresizingStyle">5</int> @@ -210,30 +211,6 @@ <int key="NSvFlags">290</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="BWAnchoredButton" id="642219827"> - <reference key="NSNextResponder" ref="805249222"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{30, -1}, {32, 24}}</string> - <reference key="NSSuperview" ref="805249222"/> - <bool key="NSEnabled">YES</bool> - <object class="BWAnchoredButtonCell" key="NSCell" id="179580583"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="642219827"/> - <int key="NSButtonFlags">147079423</int> - <int key="NSButtonFlags2">402653219</int> - <object class="NSCustomResource" key="NSNormalImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">button_edit</string> - </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent">e</string> - <int key="NSPeriodicDelay">200</int> - <int key="NSPeriodicInterval">25</int> - </object> - </object> <object class="BWAnchoredPopUpButton" id="221133754"> <reference key="NSNextResponder" ref="805249222"/> <int key="NSvFlags">268</int> @@ -284,6 +261,102 @@ <object class="NSMutableArray" key="NSMenuItems"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="751753648"/> + <object class="NSMenuItem" id="47300604"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Rename</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="14440548"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Make Default</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="1021417946"> + <reference key="NSMenu" ref="949612237"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="988671905"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Remove</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="943591987"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Duplicate</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="176010547"> + <reference key="NSMenu" ref="949612237"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="296811585"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Import...</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="541704663"> + <reference key="NSMenu" ref="949612237"/> + <string key="NSTitle">Export...</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> + <object class="NSMenuItem" id="130047523"> + <reference key="NSMenu" ref="949612237"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="270183415"/> + </object> <object class="NSMenuItem" id="623685715"> <reference key="NSMenu" ref="949612237"/> <string key="NSTitle">Sort By</string> @@ -362,6 +435,75 @@ <int key="NSArrowPosition">2</int> </object> </object> + <object class="BWAnchoredPopUpButton" id="817268454"> + <reference key="NSNextResponder" ref="805249222"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{30, -1}, {32, 24}}</string> + <reference key="NSSuperview" ref="805249222"/> + <bool key="NSEnabled">YES</bool> + <object class="BWAnchoredPopUpButtonCell" key="NSCell" id="140036820"> + <int key="NSCellFlags">-2076049856</int> + <int key="NSCellFlags2">134350848</int> + <reference key="NSSupport" ref="951888633"/> + <reference key="NSControlView" ref="817268454"/> + <int key="NSButtonFlags">-2036186881</int> + <int key="NSButtonFlags2">163</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + <object class="NSMenuItem" key="NSMenuItem" id="948840643"> + <reference key="NSMenu" ref="344531331"/> + <bool key="NSIsHidden">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <int key="NSState">1</int> + <object class="NSCustomResource" key="NSImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">plus</string> + </object> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="140036820"/> + </object> + <bool key="NSMenuItemRespectAlignment">YES</bool> + <object class="NSMenu" key="NSMenu" id="344531331"> + <string key="NSTitle">OtherViews</string> + <object class="NSMutableArray" key="NSMenuItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="948840643"/> + <object class="NSMenuItem" id="351084462"> + <reference key="NSMenu" ref="344531331"/> + <string key="NSTitle">Add Group</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="140036820"/> + </object> + <object class="NSMenuItem" id="54131866"> + <reference key="NSMenu" ref="344531331"/> + <string key="NSTitle">Add Favorite</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="140036820"/> + </object> + </object> + </object> + <bool key="NSPullDown">YES</bool> + <int key="NSPreferredEdge">1</int> + <bool key="NSUsesItemFromMenu">YES</bool> + <bool key="NSAltersState">YES</bool> + <int key="NSArrowPosition">2</int> + </object> + </object> </object> <string key="NSFrame">{{0, 1}, {202, 23}}</string> <reference key="NSSuperview" ref="720852944"/> @@ -1822,6 +1964,7 @@ <int key="NSsFlags">1</int> <reference key="NSTarget" ref="1058735001"/> <string key="NSAction">_doScroller:</string> + <double key="NSCurValue">0.4285714328289032</double> <double key="NSPercent">0.97838616371154785</double> </object> </object> @@ -2208,20 +2351,6 @@ <object class="NSUserDefaultsController" id="642702582"> <bool key="NSSharedInstance">YES</bool> </object> - <object class="NSMenu" id="9858888"> - <string key="NSTitle"/> - <object class="NSMutableArray" key="NSMenuItems"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMenuItem" id="471954922"> - <reference key="NSMenu" ref="9858888"/> - <string key="NSTitle">Edit Favorite...</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1022504326"/> - <reference key="NSMixedImage" ref="329345764"/> - </object> - </object> - </object> <object class="NSCustomView" id="567906875"> <nil key="NSNextResponder"/> <int key="NSvFlags">274</int> @@ -2322,6 +2451,72 @@ <string key="NSFrameSize">{579, 51}</string> <string key="NSClassName">NSView</string> </object> + <object class="NSMenu" id="9858888"> + <string key="NSTitle"/> + <object class="NSMutableArray" key="NSMenuItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMenuItem" id="203173317"> + <reference key="NSMenu" ref="9858888"/> + <string key="NSTitle">Rename</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="498336476"> + <reference key="NSMenu" ref="9858888"/> + <string key="NSTitle">Make Default</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="308601296"> + <reference key="NSMenu" ref="9858888"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="471954922"> + <reference key="NSMenu" ref="9858888"/> + <string key="NSTitle">Remove</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="654155668"> + <reference key="NSMenu" ref="9858888"/> + <string key="NSTitle">Duplicate</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="1018515429"> + <reference key="NSMenu" ref="9858888"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + <object class="NSMenuItem" id="345191685"> + <reference key="NSMenu" ref="9858888"/> + <string key="NSTitle">Export...</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="1022504326"/> + <reference key="NSMixedImage" ref="329345764"/> + </object> + </object> + </object> </object> <object class="IBObjectContainer" key="IBDocument.Objects"> <object class="NSMutableArray" key="connectionRecords"> @@ -2633,14 +2828,6 @@ </object> <object class="IBConnectionRecord"> <object class="IBActionConnection" key="connection"> - <string key="label">editFavorites:</string> - <reference key="source" ref="545410097"/> - <reference key="destination" ref="642219827"/> - </object> - <int key="connectionID">5350</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> <string key="label">showHelp:</string> <reference key="source" ref="545410097"/> <reference key="destination" ref="990947983"/> @@ -3157,14 +3344,6 @@ <int key="connectionID">5439</int> </object> <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">addFavorite:</string> - <reference key="source" ref="545410097"/> - <reference key="destination" ref="476973680"/> - </object> - <int key="connectionID">5443</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">connectButton</string> <reference key="source" ref="545410097"/> @@ -3254,14 +3433,6 @@ </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">nextKeyView</string> - <reference key="source" ref="642219827"/> - <reference key="destination" ref="1012579052"/> - </object> - <int key="connectionID">5467</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">delegate</string> <reference key="source" ref="9858888"/> <reference key="destination" ref="545410097"/> @@ -3269,14 +3440,6 @@ <int key="connectionID">5472</int> </object> <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">editFavorites:</string> - <reference key="source" ref="545410097"/> - <reference key="destination" ref="471954922"/> - </object> - <int key="connectionID">5473</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">menu</string> <reference key="source" ref="1012579052"/> @@ -4297,12 +4460,188 @@ </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesTable</string> + <string key="label">favoritesOutlineView</string> <reference key="source" ref="545410097"/> <reference key="destination" ref="1012579052"/> </object> <int key="connectionID">5738</int> </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">menu</string> + <reference key="source" ref="524598165"/> + <reference key="destination" ref="9858888"/> + </object> + <int key="connectionID">5744</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">duplicateFavorite:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="943591987"/> + </object> + <int key="connectionID">5750</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">makeSelectedFavoriteDefault:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="14440548"/> + </object> + <int key="connectionID">5751</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">duplicateFavorite:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="654155668"/> + </object> + <int key="connectionID">5753</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">makeSelectedFavoriteDefault:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="498336476"/> + </object> + <int key="connectionID">5754</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">renameFavorite:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="47300604"/> + </object> + <int key="connectionID">5757</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">renameFavorite:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="203173317"/> + </object> + <int key="connectionID">5758</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">exportFavorites:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="345191685"/> + </object> + <int key="connectionID">5817</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">importFavorites:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="296811585"/> + </object> + <int key="connectionID">5818</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">exportFavorites:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="541704663"/> + </object> + <int key="connectionID">5819</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">addGroup:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="351084462"/> + </object> + <int key="connectionID">5820</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">addFavorite:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="54131866"/> + </object> + <int key="connectionID">5821</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">removeNode:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="988671905"/> + </object> + <int key="connectionID">5822</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">removeNode:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="471954922"/> + </object> + <int key="connectionID">5823</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">addFavoriteUsingCurrentDetails:</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="476973680"/> + </object> + <int key="connectionID">5824</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">standardNameField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="810791200"/> + </object> + <int key="connectionID">5825</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">socketNameField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="474825058"/> + </object> + <int key="connectionID">5826</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">sshNameField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="1022082829"/> + </object> + <int key="connectionID">5827</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">standardUserField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="978463433"/> + </object> + <int key="connectionID">5830</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">socketUserField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="68541783"/> + </object> + <int key="connectionID">5831</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">sshUserField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="358903996"/> + </object> + <int key="connectionID">5832</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">connectionInstructionsTextField</string> + <reference key="source" ref="545410097"/> + <reference key="destination" ref="570492783"/> + </object> + <int key="connectionID">5833</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -4414,21 +4753,6 @@ <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> - <int key="objectID">5468</int> - <reference key="object" ref="9858888"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="471954922"/> - </object> - <reference key="parent" ref="0"/> - <string key="objectName">Context Menu</string> - </object> - <object class="IBObjectRecord"> - <int key="objectID">5469</int> - <reference key="object" ref="471954922"/> - <reference key="parent" ref="9858888"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">5576</int> <reference key="object" ref="567906875"/> <object class="NSMutableArray" key="children"> @@ -4468,7 +4792,7 @@ <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="221133754"/> - <reference ref="642219827"/> + <reference ref="817268454"/> </object> <reference key="parent" ref="720852944"/> </object> @@ -4497,6 +4821,15 @@ <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="623685715"/> <reference ref="751753648"/> + <reference ref="988671905"/> + <reference ref="943591987"/> + <reference ref="130047523"/> + <reference ref="176010547"/> + <reference ref="296811585"/> + <reference ref="541704663"/> + <reference ref="47300604"/> + <reference ref="14440548"/> + <reference ref="1021417946"/> </object> <reference key="parent" ref="270183415"/> </object> @@ -4553,20 +4886,6 @@ <reference key="parent" ref="949612237"/> </object> <object class="IBObjectRecord"> - <int key="objectID">5346</int> - <reference key="object" ref="642219827"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="179580583"/> - </object> - <reference key="parent" ref="805249222"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">5347</int> - <reference key="object" ref="179580583"/> - <reference key="parent" ref="642219827"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">4910</int> <reference key="object" ref="524598165"/> <object class="NSMutableArray" key="children"> @@ -5883,6 +6202,146 @@ <reference key="object" ref="972347112"/> <reference key="parent" ref="16421625"/> </object> + <object class="IBObjectRecord"> + <int key="objectID">5739</int> + <reference key="object" ref="988671905"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5740</int> + <reference key="object" ref="943591987"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5741</int> + <reference key="object" ref="130047523"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5468</int> + <reference key="object" ref="9858888"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="471954922"/> + <reference ref="654155668"/> + <reference ref="1018515429"/> + <reference ref="345191685"/> + <reference ref="203173317"/> + <reference ref="498336476"/> + <reference ref="308601296"/> + </object> + <reference key="parent" ref="0"/> + <string key="objectName">Context Menu</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5469</int> + <reference key="object" ref="471954922"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5742</int> + <reference key="object" ref="654155668"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5745</int> + <reference key="object" ref="14440548"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5746</int> + <reference key="object" ref="1021417946"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5747</int> + <reference key="object" ref="308601296"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5748</int> + <reference key="object" ref="498336476"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5755</int> + <reference key="object" ref="203173317"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5756</int> + <reference key="object" ref="47300604"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5785</int> + <reference key="object" ref="817268454"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="140036820"/> + </object> + <reference key="parent" ref="805249222"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5786</int> + <reference key="object" ref="140036820"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="344531331"/> + </object> + <reference key="parent" ref="817268454"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5787</int> + <reference key="object" ref="344531331"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="54131866"/> + <reference ref="948840643"/> + <reference ref="351084462"/> + </object> + <reference key="parent" ref="140036820"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5788</int> + <reference key="object" ref="54131866"/> + <reference key="parent" ref="344531331"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5790</int> + <reference key="object" ref="351084462"/> + <reference key="parent" ref="344531331"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5794</int> + <reference key="object" ref="948840643"/> + <reference key="parent" ref="344531331"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5810</int> + <reference key="object" ref="176010547"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5811</int> + <reference key="object" ref="296811585"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5812</int> + <reference key="object" ref="541704663"/> + <reference key="parent" ref="949612237"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5814</int> + <reference key="object" ref="1018515429"/> + <reference key="parent" ref="9858888"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5815</int> + <reference key="object" ref="345191685"/> + <reference key="parent" ref="9858888"/> + </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -6021,9 +6480,6 @@ <string>5343.IBPluginDependency</string> <string>5344.IBPluginDependency</string> <string>5345.IBPluginDependency</string> - <string>5346.IBAttributePlaceholdersKey</string> - <string>5346.IBPluginDependency</string> - <string>5347.IBPluginDependency</string> <string>5376.IBAttributePlaceholdersKey</string> <string>5376.IBPluginDependency</string> <string>5377.IBPluginDependency</string> @@ -6063,6 +6519,7 @@ <string>5468.IBPluginDependency</string> <string>5469.IBPluginDependency</string> <string>5475.IBPluginDependency</string> + <string>5475.IBViewBoundsToFrameTransform</string> <string>5476.IBPluginDependency</string> <string>5477.IBEditorWindowLastContentRect</string> <string>5477.IBPluginDependency</string> @@ -6149,12 +6606,35 @@ <string>5706.IBPluginDependency</string> <string>5720.IBPluginDependency</string> <string>5721.IBPluginDependency</string> + <string>5739.IBPluginDependency</string> + <string>5740.IBPluginDependency</string> + <string>5741.IBPluginDependency</string> + <string>5742.IBPluginDependency</string> + <string>5745.IBPluginDependency</string> + <string>5746.IBPluginDependency</string> + <string>5747.IBPluginDependency</string> + <string>5748.IBPluginDependency</string> + <string>5755.IBPluginDependency</string> + <string>5756.IBPluginDependency</string> + <string>5785.IBPluginDependency</string> + <string>5785.IBViewBoundsToFrameTransform</string> + <string>5786.IBPluginDependency</string> + <string>5787.IBEditorWindowLastContentRect</string> + <string>5787.IBPluginDependency</string> + <string>5788.IBPluginDependency</string> + <string>5790.IBPluginDependency</string> + <string>5794.IBPluginDependency</string> + <string>5810.IBPluginDependency</string> + <string>5811.IBPluginDependency</string> + <string>5812.IBPluginDependency</string> + <string>5814.IBPluginDependency</string> + <string>5815.IBPluginDependency</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>{{136, 99}, {882, 475}}</string> + <string>{{47, 270}, {882, 475}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> @@ -6428,16 +6908,6 @@ <string key="NS.key.0">ToolTip</string> <object class="IBToolTipAttribute" key="NS.object.0"> <string key="name">ToolTip</string> - <reference key="object" ref="642219827"/> - <string key="toolTip">Edit Favorites in Preferences (⌥⌘E)</string> - </object> - </object> - <string>com.brandonwalkin.BWToolkit</string> - <string>com.brandonwalkin.BWToolkit</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> <reference key="object" ref="810791200"/> <string key="toolTip">Enter a nickname to use if adding to favorites. Optional.</string> </object> @@ -6496,16 +6966,19 @@ <string>com.brandonwalkin.BWToolkit</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{639, 342}, {150, 23}}</string> + <string>{{472, 412}, {142, 123}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.brandonwalkin.BWToolkit</string> + <object class="NSAffineTransform"> + <bytes key="NSTransformStruct">P4AAAL+AAAC/gAAAwagAAA</bytes> + </object> <string>com.brandonwalkin.BWToolkit</string> - <string>{{552, 171}, {97, 37}}</string> + <string>{{82, 125}, {131, 169}}</string> <string>com.brandonwalkin.BWToolkit</string> <string>com.brandonwalkin.BWToolkit</string> <string>com.brandonwalkin.BWToolkit</string> - <string>{{649, 98}, {180, 93}}</string> + <string>{{425, 97}, {180, 93}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -6635,6 +7108,31 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.brandonwalkin.BWToolkit</string> + <object class="NSAffineTransform"> + <bytes key="NSTransformStruct">P4AAAL+AAAC/gAAAwagAAA</bytes> + </object> + <string>com.brandonwalkin.BWToolkit</string> + <string>{{113, 232}, {128, 62}}</string> + <string>com.brandonwalkin.BWToolkit</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.brandonwalkin.BWToolkit</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> </object> </object> <object class="NSMutableDictionary" key="unlocalizedProperties"> @@ -6653,7 +7151,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">5738</int> + <int key="maxID">5833</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -6674,6 +7172,13 @@ </object> </object> <object class="IBPartialClassDescription"> + <string key="className">NSMenu</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPMenuAdditions.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> @@ -6769,6 +7274,7 @@ <string>doSelectionTitleCase:</string> <string>doSelectionUpperCase:</string> <string>doTranspose:</string> + <string>executeBundleItemForInputField:</string> <string>insertNULLvalue:</string> <string>moveSelectionLineDown:</string> <string>moveSelectionLineUp:</string> @@ -6793,6 +7299,7 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="actionInfosByName"> @@ -6808,6 +7315,7 @@ <string>doSelectionTitleCase:</string> <string>doSelectionUpperCase:</string> <string>doTranspose:</string> + <string>executeBundleItemForInputField:</string> <string>insertNULLvalue:</string> <string>moveSelectionLineDown:</string> <string>moveSelectionLineUp:</string> @@ -6854,6 +7362,10 @@ <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> + <string key="name">executeBundleItemForInputField:</string> + <string key="candidateClassName">id</string> + </object> + <object class="IBActionInfo"> <string key="name">insertNULLvalue:</string> <string key="candidateClassName">id</string> </object> @@ -6899,10 +7411,18 @@ <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>addFavorite:</string> + <string>addFavoriteUsingCurrentDetails:</string> + <string>addGroup:</string> <string>cancelMySQLConnection:</string> <string>chooseKeyLocation:</string> - <string>editFavorites:</string> + <string>duplicateFavorite:</string> + <string>exportFavorites:</string> + <string>importFavorites:</string> <string>initiateConnection:</string> + <string>makeSelectedFavoriteDefault:</string> + <string>nodeDoubleClicked:</string> + <string>removeNode:</string> + <string>renameFavorite:</string> <string>reverseSortFavorites:</string> <string>showHelp:</string> <string>sortFavorites:</string> @@ -6921,6 +7441,14 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="actionInfosByName"> @@ -6928,10 +7456,18 @@ <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>addFavorite:</string> + <string>addFavoriteUsingCurrentDetails:</string> + <string>addGroup:</string> <string>cancelMySQLConnection:</string> <string>chooseKeyLocation:</string> - <string>editFavorites:</string> + <string>duplicateFavorite:</string> + <string>exportFavorites:</string> + <string>importFavorites:</string> <string>initiateConnection:</string> + <string>makeSelectedFavoriteDefault:</string> + <string>nodeDoubleClicked:</string> + <string>removeNode:</string> + <string>renameFavorite:</string> <string>reverseSortFavorites:</string> <string>showHelp:</string> <string>sortFavorites:</string> @@ -6945,427 +7481,51 @@ <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">cancelMySQLConnection:</string> + <string key="name">addFavoriteUsingCurrentDetails:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">chooseKeyLocation:</string> + <string key="name">addGroup:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">editFavorites:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">initiateConnection:</string> + <string key="name">cancelMySQLConnection:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">reverseSortFavorites:</string> + <string key="name">chooseKeyLocation:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">showHelp:</string> + <string key="name">duplicateFavorite:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">sortFavorites:</string> + <string key="name">exportFavorites:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">updateFavoriteSelection:</string> + <string key="name">importFavorites:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">updateSSLInterface:</string> - <string key="candidateClassName">id</string> - </object> - </object> - </object> - <object class="NSMutableDictionary" key="outlets"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addToFavoritesButton</string> - <string>connectButton</string> - <string>connectionDetailsScrollView</string> - <string>connectionResizeContainer</string> - <string>connectionSplitView</string> - <string>connectionSplitViewButtonBar</string> - <string>connectionView</string> - <string>delegate</string> - <string>errorDetailText</string> - <string>errorDetailWindow</string> - <string>favoritesSortByMenuItem</string> - <string>favoritesTable</string> - <string>helpButton</string> - <string>progressIndicator</string> - <string>progressIndicatorText</string> - <string>socketConnectionFormContainer</string> - <string>socketConnectionSSLDetailsContainer</string> - <string>socketPasswordField</string> - <string>socketSSLCACertButton</string> - <string>socketSSLCertificateButton</string> - <string>socketSSLKeyFileButton</string> - <string>sshConnectionFormContainer</string> - <string>sshKeyLocationHelp</string> - <string>sshPasswordField</string> - <string>sshSQLHostField</string> - <string>sshSSHKeyButton</string> - <string>sshSSHPasswordField</string> - <string>sslCACertLocationHelp</string> - <string>sslCertificateLocationHelp</string> - <string>sslKeyFileLocationHelp</string> - <string>standardConnectionFormContainer</string> - <string>standardConnectionSSLDetailsContainer</string> - <string>standardPasswordField</string> - <string>standardSQLHostField</string> - <string>standardSSLCACertButton</string> - <string>standardSSLCertificateButton</string> - <string>standardSSLKeyFileButton</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSButton</string> - <string>NSButton</string> - <string>NSScrollView</string> - <string>NSView</string> - <string>NSSplitView</string> - <string>BWAnchoredButtonBar</string> - <string>NSView</string> - <string>id</string> - <string>NSTextView</string> - <string>NSWindow</string> - <string>NSMenuItem</string> - <string>NSTableView</string> - <string>NSButton</string> - <string>NSProgressIndicator</string> - <string>NSTextField</string> - <string>NSView</string> - <string>NSView</string> - <string>NSSecureTextField</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSView</string> - <string>NSView</string> - <string>NSSecureTextField</string> - <string>NSTextField</string> - <string>NSButton</string> - <string>NSSecureTextField</string> - <string>NSView</string> - <string>NSView</string> - <string>NSView</string> - <string>NSView</string> - <string>NSView</string> - <string>NSSecureTextField</string> - <string>NSTextField</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSButton</string> - </object> - </object> - <object class="NSMutableDictionary" key="toOneOutletInfosByName"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addToFavoritesButton</string> - <string>connectButton</string> - <string>connectionDetailsScrollView</string> - <string>connectionResizeContainer</string> - <string>connectionSplitView</string> - <string>connectionSplitViewButtonBar</string> - <string>connectionView</string> - <string>delegate</string> - <string>errorDetailText</string> - <string>errorDetailWindow</string> - <string>favoritesSortByMenuItem</string> - <string>favoritesTable</string> - <string>helpButton</string> - <string>progressIndicator</string> - <string>progressIndicatorText</string> - <string>socketConnectionFormContainer</string> - <string>socketConnectionSSLDetailsContainer</string> - <string>socketPasswordField</string> - <string>socketSSLCACertButton</string> - <string>socketSSLCertificateButton</string> - <string>socketSSLKeyFileButton</string> - <string>sshConnectionFormContainer</string> - <string>sshKeyLocationHelp</string> - <string>sshPasswordField</string> - <string>sshSQLHostField</string> - <string>sshSSHKeyButton</string> - <string>sshSSHPasswordField</string> - <string>sslCACertLocationHelp</string> - <string>sslCertificateLocationHelp</string> - <string>sslKeyFileLocationHelp</string> - <string>standardConnectionFormContainer</string> - <string>standardConnectionSSLDetailsContainer</string> - <string>standardPasswordField</string> - <string>standardSQLHostField</string> - <string>standardSSLCACertButton</string> - <string>standardSSLCertificateButton</string> - <string>standardSSLKeyFileButton</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBToOneOutletInfo"> - <string key="name">addToFavoritesButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectionDetailsScrollView</string> - <string key="candidateClassName">NSScrollView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectionResizeContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectionSplitView</string> - <string key="candidateClassName">NSSplitView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectionSplitViewButtonBar</string> - <string key="candidateClassName">BWAnchoredButtonBar</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">connectionView</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">delegate</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">errorDetailText</string> - <string key="candidateClassName">NSTextView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">errorDetailWindow</string> - <string key="candidateClassName">NSWindow</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesSortByMenuItem</string> - <string key="candidateClassName">NSMenuItem</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesTable</string> - <string key="candidateClassName">NSTableView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">helpButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">progressIndicator</string> - <string key="candidateClassName">NSProgressIndicator</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">progressIndicatorText</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketConnectionFormContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketConnectionSSLDetailsContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLCACertButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLCertificateButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLKeyFileButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshConnectionFormContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshKeyLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshSQLHostField</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshSSHKeyButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshSSHPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslCACertLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslCertificateLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslKeyFileLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardConnectionFormContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardConnectionSSLDetailsContainer</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSQLHostField</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLCACertButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLCertificateButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLKeyFileButton</string> - <string key="candidateClassName">NSButton</string> - </object> - </object> - </object> - <reference key="sourceIdentifier" ref="968459546"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPConnectionController</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/SPConnectionControllerDelegate.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPFavoritesOutlineView</string> - <string key="superclassName">NSOutlineView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/SPFavoritesOutlineView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPFlippedView</string> - <string key="superclassName">NSView</string> - <reference key="sourceIdentifier" ref="968459546"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPTableTextFieldCell</string> - <string key="superclassName">ImageAndTextCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/SPTableTextFieldCell.h</string> - </object> - </object> - </object> - <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="263398757"> - <string key="majorKey">IBDocumentRelativeSource</string> - <string key="minorKey">../../Source/SPConnectionController.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPConnectionController</string> - <string key="superclassName">NSObject</string> - <object class="NSMutableDictionary" key="actions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addFavorite:</string> - <string>cancelMySQLConnection:</string> - <string>chooseKeyLocation:</string> - <string>editFavorites:</string> - <string>initiateConnection:</string> - <string>reverseSortFavorites:</string> - <string>showHelp:</string> - <string>sortFavorites:</string> - <string>updateFavoriteSelection:</string> - <string>updateSSLInterface:</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - </object> - </object> - <object class="NSMutableDictionary" key="actionInfosByName"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addFavorite:</string> - <string>cancelMySQLConnection:</string> - <string>chooseKeyLocation:</string> - <string>editFavorites:</string> - <string>initiateConnection:</string> - <string>reverseSortFavorites:</string> - <string>showHelp:</string> - <string>sortFavorites:</string> - <string>updateFavoriteSelection:</string> - <string>updateSSLInterface:</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBActionInfo"> - <string key="name">addFavorite:</string> + <string key="name">initiateConnection:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">cancelMySQLConnection:</string> + <string key="name">makeSelectedFavoriteDefault:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">chooseKeyLocation:</string> + <string key="name">nodeDoubleClicked:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">editFavorites:</string> + <string key="name">removeNode:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> - <string key="name">initiateConnection:</string> + <string key="name">renameFavorite:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> @@ -7397,6 +7557,7 @@ <string>addToFavoritesButton</string> <string>connectButton</string> <string>connectionDetailsScrollView</string> + <string>connectionInstructionsTextField</string> <string>connectionResizeContainer</string> <string>connectionSplitView</string> <string>connectionSplitViewButtonBar</string> @@ -7404,39 +7565,46 @@ <string>delegate</string> <string>errorDetailText</string> <string>errorDetailWindow</string> + <string>favoritesOutlineView</string> <string>favoritesSortByMenuItem</string> - <string>favoritesTable</string> <string>helpButton</string> <string>progressIndicator</string> <string>progressIndicatorText</string> <string>socketConnectionFormContainer</string> <string>socketConnectionSSLDetailsContainer</string> + <string>socketNameField</string> <string>socketPasswordField</string> <string>socketSSLCACertButton</string> <string>socketSSLCertificateButton</string> <string>socketSSLKeyFileButton</string> + <string>socketUserField</string> <string>sshConnectionFormContainer</string> <string>sshKeyLocationHelp</string> + <string>sshNameField</string> <string>sshPasswordField</string> <string>sshSQLHostField</string> <string>sshSSHKeyButton</string> <string>sshSSHPasswordField</string> + <string>sshUserField</string> <string>sslCACertLocationHelp</string> <string>sslCertificateLocationHelp</string> <string>sslKeyFileLocationHelp</string> <string>standardConnectionFormContainer</string> <string>standardConnectionSSLDetailsContainer</string> + <string>standardNameField</string> <string>standardPasswordField</string> <string>standardSQLHostField</string> <string>standardSSLCACertButton</string> <string>standardSSLCertificateButton</string> <string>standardSSLKeyFileButton</string> + <string>standardUserField</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>NSButton</string> <string>NSButton</string> <string>NSScrollView</string> + <string>NSTextField</string> <string>NSView</string> <string>NSSplitView</string> <string>BWAnchoredButtonBar</string> @@ -7444,33 +7612,39 @@ <string>id</string> <string>NSTextView</string> <string>NSWindow</string> + <string>SPFavoritesOutlineView</string> <string>NSMenuItem</string> - <string>id</string> <string>NSButton</string> <string>NSProgressIndicator</string> <string>NSTextField</string> <string>NSView</string> <string>NSView</string> + <string>NSTextField</string> <string>NSSecureTextField</string> <string>NSButton</string> <string>NSButton</string> <string>NSButton</string> + <string>NSTextField</string> <string>NSView</string> <string>NSView</string> + <string>NSTextField</string> <string>NSSecureTextField</string> <string>NSTextField</string> <string>NSButton</string> <string>NSSecureTextField</string> + <string>NSTextField</string> <string>NSView</string> <string>NSView</string> <string>NSView</string> <string>NSView</string> <string>NSView</string> + <string>NSTextField</string> <string>NSSecureTextField</string> <string>NSTextField</string> <string>NSButton</string> <string>NSButton</string> <string>NSButton</string> + <string>NSTextField</string> </object> </object> <object class="NSMutableDictionary" key="toOneOutletInfosByName"> @@ -7480,6 +7654,7 @@ <string>addToFavoritesButton</string> <string>connectButton</string> <string>connectionDetailsScrollView</string> + <string>connectionInstructionsTextField</string> <string>connectionResizeContainer</string> <string>connectionSplitView</string> <string>connectionSplitViewButtonBar</string> @@ -7487,33 +7662,39 @@ <string>delegate</string> <string>errorDetailText</string> <string>errorDetailWindow</string> + <string>favoritesOutlineView</string> <string>favoritesSortByMenuItem</string> - <string>favoritesTable</string> <string>helpButton</string> <string>progressIndicator</string> <string>progressIndicatorText</string> <string>socketConnectionFormContainer</string> <string>socketConnectionSSLDetailsContainer</string> + <string>socketNameField</string> <string>socketPasswordField</string> <string>socketSSLCACertButton</string> <string>socketSSLCertificateButton</string> <string>socketSSLKeyFileButton</string> + <string>socketUserField</string> <string>sshConnectionFormContainer</string> <string>sshKeyLocationHelp</string> + <string>sshNameField</string> <string>sshPasswordField</string> <string>sshSQLHostField</string> <string>sshSSHKeyButton</string> <string>sshSSHPasswordField</string> + <string>sshUserField</string> <string>sslCACertLocationHelp</string> <string>sslCertificateLocationHelp</string> <string>sslKeyFileLocationHelp</string> <string>standardConnectionFormContainer</string> <string>standardConnectionSSLDetailsContainer</string> + <string>standardNameField</string> <string>standardPasswordField</string> <string>standardSQLHostField</string> <string>standardSSLCACertButton</string> <string>standardSSLCertificateButton</string> <string>standardSSLKeyFileButton</string> + <string>standardUserField</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -7530,6 +7711,10 @@ <string key="candidateClassName">NSScrollView</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">connectionInstructionsTextField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">connectionResizeContainer</string> <string key="candidateClassName">NSView</string> </object> @@ -7558,12 +7743,12 @@ <string key="candidateClassName">NSWindow</string> </object> <object class="IBToOneOutletInfo"> - <string key="name">favoritesSortByMenuItem</string> - <string key="candidateClassName">NSMenuItem</string> + <string key="name">favoritesOutlineView</string> + <string key="candidateClassName">SPFavoritesOutlineView</string> </object> <object class="IBToOneOutletInfo"> - <string key="name">favoritesTable</string> - <string key="candidateClassName">id</string> + <string key="name">favoritesSortByMenuItem</string> + <string key="candidateClassName">NSMenuItem</string> </object> <object class="IBToOneOutletInfo"> <string key="name">helpButton</string> @@ -7586,6 +7771,10 @@ <string key="candidateClassName">NSView</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">socketNameField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">socketPasswordField</string> <string key="candidateClassName">NSSecureTextField</string> </object> @@ -7602,6 +7791,10 @@ <string key="candidateClassName">NSButton</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">socketUserField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">sshConnectionFormContainer</string> <string key="candidateClassName">NSView</string> </object> @@ -7610,6 +7803,10 @@ <string key="candidateClassName">NSView</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">sshNameField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">sshPasswordField</string> <string key="candidateClassName">NSSecureTextField</string> </object> @@ -7626,6 +7823,10 @@ <string key="candidateClassName">NSSecureTextField</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">sshUserField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">sslCACertLocationHelp</string> <string key="candidateClassName">NSView</string> </object> @@ -7646,6 +7847,10 @@ <string key="candidateClassName">NSView</string> </object> <object class="IBToOneOutletInfo"> + <string key="name">standardNameField</string> + <string key="candidateClassName">NSTextField</string> + </object> + <object class="IBToOneOutletInfo"> <string key="name">standardPasswordField</string> <string key="candidateClassName">NSSecureTextField</string> </object> @@ -7665,34 +7870,55 @@ <string key="name">standardSSLKeyFileButton</string> <string key="candidateClassName">NSButton</string> </object> + <object class="IBToOneOutletInfo"> + <string key="name">standardUserField</string> + <string key="candidateClassName">NSTextField</string> + </object> </object> </object> - <reference key="sourceIdentifier" ref="263398757"/> + <reference key="sourceIdentifier" ref="968459546"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">SPConnectionController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPConnectionControllerDelegate.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">SPConnectionController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPConnectionHandler.h</string> + </object> </object> <object class="IBPartialClassDescription"> <string key="className">SPFavoritesOutlineView</string> <string key="superclassName">NSOutlineView</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBDocumentRelativeSource</string> - <string key="minorKey">../../Source/SPFavoritesOutlineView.h</string> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPFavoritesOutlineView.h</string> </object> </object> <object class="IBPartialClassDescription"> <string key="className">SPFlippedView</string> <string key="superclassName">NSView</string> - <reference key="sourceIdentifier" ref="263398757"/> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPFlippedView.h</string> + </object> </object> - </object> - <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> - <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBPartialClassDescription"> - <string key="className">BWAnchoredButton</string> - <string key="superclassName">NSButton</string> + <string key="className">SPTableTextFieldCell</string> + <string key="superclassName">ImageAndTextCell</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">BWToolkitFramework.framework/Headers/BWAnchoredButton.h</string> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">Source/SPTableTextFieldCell.h</string> </object> </object> + </object> + <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> + <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBPartialClassDescription"> <string key="className">BWAnchoredButtonBar</string> <string key="superclassName">NSView</string> @@ -7702,14 +7928,6 @@ </object> </object> <object class="IBPartialClassDescription"> - <string key="className">BWAnchoredButtonCell</string> - <string key="superclassName">NSButtonCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">BWToolkitFramework.framework/Headers/BWAnchoredButtonCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">BWAnchoredPopUpButton</string> <string key="superclassName">NSPopUpButton</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -8154,6 +8372,27 @@ <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRRecorderCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRRecorderControl.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRValidator.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> <string key="minorKey">Sparkle.framework/Headers/SUAppcast.h</string> </object> </object> @@ -8474,7 +8713,7 @@ <string>NSMenuCheckmark</string> <string>NSMenuMixedState</string> <string>NSSwitch</string> - <string>button_edit</string> + <string>plus</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> diff --git a/Interfaces/English.lproj/Preferences.xib b/Interfaces/English.lproj/Preferences.xib index 8e2ecf10..17f5b526 100644 --- a/Interfaces/English.lproj/Preferences.xib +++ b/Interfaces/English.lproj/Preferences.xib @@ -2,9 +2,9 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <data> <int key="IBDocument.SystemTarget">1050</int> - <string key="IBDocument.SystemVersion">10F569</string> + <string key="IBDocument.SystemVersion">10H574</string> <string key="IBDocument.InterfaceBuilderVersion">823</string> - <string key="IBDocument.AppKitVersion">1038.29</string> + <string key="IBDocument.AppKitVersion">1038.35</string> <string key="IBDocument.HIToolboxVersion">461.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -48,9 +48,6 @@ <object class="NSCustomObject" id="673566620"> <string key="NSClassName">SPTablesPreferencePane</string> </object> - <object class="NSCustomObject" id="721156358"> - <string key="NSClassName">SPFavoritesPreferencePane</string> - </object> <object class="NSCustomObject" id="953509484"> <string key="NSClassName">SPNotificationsPreferencePane</string> </object> @@ -1930,1592 +1927,6 @@ <string key="NSFrameSize">{580, 319}</string> <string key="NSClassName">NSView</string> </object> - <object class="NSCustomView" id="593732956"> - <nil key="NSNextResponder"/> - <int key="NSvFlags">274</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSSplitView" id="141072039"> - <reference key="NSNextResponder" ref="593732956"/> - <int key="NSvFlags">274</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSCustomView" id="984943037"> - <reference key="NSNextResponder" ref="141072039"/> - <int key="NSvFlags">274</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="BWAnchoredButtonBar" id="1068562664"> - <reference key="NSNextResponder" ref="984943037"/> - <int key="NSvFlags">290</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSButton" id="364724557"> - <reference key="NSNextResponder" ref="1068562664"/> - <int key="NSvFlags">292</int> - <string key="NSFrame">{{-1, -1}, {32, 25}}</string> - <reference key="NSSuperview" ref="1068562664"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="907732055"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="320262838"/> - <reference key="NSControlView" ref="364724557"/> - <int key="NSButtonFlags">-2041822977</int> - <int key="NSButtonFlags2">402653219</int> - <object class="NSCustomResource" key="NSNormalImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">button_add</string> - </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent">a</string> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="BWAnchoredPopUpButton" id="669526663"> - <reference key="NSNextResponder" ref="1068562664"/> - <int key="NSvFlags">292</int> - <string key="NSFrame">{{30, -1}, {32, 24}}</string> - <reference key="NSSuperview" ref="1068562664"/> - <bool key="NSEnabled">YES</bool> - <object class="BWAnchoredPopUpButtonCell" key="NSCell" id="858997662"> - <int key="NSCellFlags">71433792</int> - <int key="NSCellFlags2">134219776</int> - <reference key="NSSupport" ref="320262838"/> - <reference key="NSControlView" ref="669526663"/> - <int key="NSButtonFlags">-2038284033</int> - <int key="NSButtonFlags2">134217891</int> - <string key="NSAlternateContents"/> - <string type="base64-UTF8" key="NSKeyEquivalent">Gw</string> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - <object class="NSMenuItem" key="NSMenuItem" id="943449800"> - <reference key="NSMenu" ref="792931395"/> - <bool key="NSIsHidden">YES</bool> - <string key="NSTitle"/> - <string key="NSKeyEquiv"/> - <int key="NSKeyEquivModMask">1048576</int> - <int key="NSMnemonicLoc">2147483647</int> - <object class="NSCustomResource" key="NSImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">NSActionTemplate</string> - </object> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <bool key="NSMenuItemRespectAlignment">YES</bool> - <object class="NSMenu" key="NSMenu" id="792931395"> - <string key="NSTitle">OtherViews</string> - <object class="NSMutableArray" key="NSMenuItems"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="943449800"/> - <object class="NSMenuItem" id="393964112"> - <reference key="NSMenu" ref="792931395"/> - <string key="NSTitle">Remove</string> - <string type="base64-UTF8" key="NSKeyEquiv">CA</string> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="3479828"> - <reference key="NSMenu" ref="792931395"/> - <string key="NSTitle">Duplicate</string> - <string key="NSKeyEquiv">d</string> - <int key="NSKeyEquivModMask">1048576</int> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="594335870"> - <reference key="NSMenu" ref="792931395"/> - <bool key="NSIsDisabled">YES</bool> - <bool key="NSIsSeparator">YES</bool> - <string key="NSTitle"/> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="14003497"> - <reference key="NSMenu" ref="792931395"/> - <string key="NSTitle">Sort By</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">submenuAction:</string> - <object class="NSMenu" key="NSSubmenu" id="978204089"> - <string key="NSTitle">Sort By</string> - <object class="NSMutableArray" key="NSMenuItems"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMenuItem" id="143086279"> - <reference key="NSMenu" ref="978204089"/> - <string key="NSTitle">Name</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="760230945"> - <reference key="NSMenu" ref="978204089"/> - <string key="NSTitle">Host</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="334938006"> - <reference key="NSMenu" ref="978204089"/> - <string key="NSTitle">Type</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="375388028"> - <reference key="NSMenu" ref="978204089"/> - <bool key="NSIsDisabled">YES</bool> - <bool key="NSIsSeparator">YES</bool> - <string key="NSTitle"/> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - <object class="NSMenuItem" id="140840656"> - <reference key="NSMenu" ref="978204089"/> - <string key="NSTitle">Reverse Sort Order</string> - <string key="NSKeyEquiv"/> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="858997662"/> - </object> - </object> - </object> - </object> - </object> - </object> - <bool key="NSPullDown">YES</bool> - <int key="NSPreferredEdge">1</int> - <bool key="NSUsesItemFromMenu">YES</bool> - <bool key="NSAltersState">YES</bool> - </object> - </object> - </object> - <string key="NSFrameSize">{229, 23}</string> - <reference key="NSSuperview" ref="984943037"/> - <bool key="BWABBIsResizable">YES</bool> - <bool key="BWABBIsAtBottom">YES</bool> - <bool key="BWABBHandleIsRightAligned">NO</bool> - <int key="BWABBSelectedIndex">0</int> - </object> - <object class="NSScrollView" id="533802223"> - <reference key="NSNextResponder" ref="984943037"/> - <int key="NSvFlags">4370</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSClipView" id="253139122"> - <reference key="NSNextResponder" ref="533802223"/> - <int key="NSvFlags">2304</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTableView" id="279932544"> - <reference key="NSNextResponder" ref="253139122"/> - <int key="NSvFlags">4370</int> - <string key="NSFrameSize">{231, 358}</string> - <reference key="NSSuperview" ref="253139122"/> - <bool key="NSEnabled">YES</bool> - <object class="_NSCornerView" key="NSCornerView"> - <nil key="NSNextResponder"/> - <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{176, 0}, {16, 17}}</string> - </object> - <object class="NSMutableArray" key="NSTableColumns"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTableColumn" id="22246087"> - <string key="NSIdentifier">name</string> - <double key="NSWidth">228</double> - <double key="NSMinWidth">40</double> - <double key="NSMaxWidth">1000</double> - <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> - <int key="NSCellFlags2">2048</int> - <string key="NSContents">Favorites</string> - <reference key="NSSupport" ref="26"/> - <object class="NSColor" key="NSBackgroundColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes> - </object> - <reference key="NSTextColor" ref="263643234"/> - </object> - <object class="NSTextFieldCell" key="NSDataCell" id="396146085"> - <int key="NSCellFlags">70385217</int> - <int key="NSCellFlags2">132096</int> - <string key="NSContents">Text Cell</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="279932544"/> - <reference key="NSBackgroundColor" ref="887465699"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - <int key="NSResizingMask">1</int> - <bool key="NSIsResizeable">YES</bool> - <reference key="NSTableView" ref="279932544"/> - </object> - </object> - <double key="NSIntercellSpacingWidth">3</double> - <double key="NSIntercellSpacingHeight">2</double> - <object class="NSColor" key="NSBackgroundColor"> - <int key="NSColorSpace">6</int> - <string key="NSCatalogName">System</string> - <string key="NSColorName">_sourceListBackgroundColor</string> - <object class="NSColor" key="NSColor"> - <int key="NSColorSpace">1</int> - <bytes key="NSRGB">MC44MzkyMTU2OTU5IDAuODY2NjY2Njc0NiAwLjg5ODAzOTIyMTgAA</bytes> - </object> - </object> - <reference key="NSGridColor" ref="651588562"/> - <double key="NSRowHeight">45</double> - <int key="NSTvFlags">306184192</int> - <reference key="NSDelegate"/> - <reference key="NSDataSource"/> - <int key="NSColumnAutoresizingStyle">5</int> - <int key="NSDraggingSourceMaskForLocal">15</int> - <int key="NSDraggingSourceMaskForNonLocal">0</int> - <bool key="NSAllowsTypeSelect">NO</bool> - <int key="NSTableViewSelectionHighlightStyle">1</int> - <int key="NSTableViewDraggingDestinationStyle">1</int> - </object> - </object> - <string key="NSFrame">{{1, 1}, {230, 358}}</string> - <reference key="NSSuperview" ref="533802223"/> - <reference key="NSNextKeyView" ref="279932544"/> - <reference key="NSDocView" ref="279932544"/> - <reference key="NSBGColor" ref="887465699"/> - <int key="NScvFlags">4</int> - </object> - <object class="NSScroller" id="940130901"> - <reference key="NSNextResponder" ref="533802223"/> - <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{183, 1}, {11, 317}}</string> - <reference key="NSSuperview" ref="533802223"/> - <int key="NSsFlags">256</int> - <reference key="NSTarget" ref="533802223"/> - <string key="NSAction">_doScroller:</string> - <double key="NSCurValue">0.0027932960074394941</double> - <double key="NSPercent">0.99721449613571167</double> - </object> - <object class="NSScroller" id="2545381"> - <reference key="NSNextResponder" ref="533802223"/> - <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{-100, -100}, {311, 15}}</string> - <reference key="NSSuperview" ref="533802223"/> - <bool key="NSEnabled">YES</bool> - <int key="NSsFlags">1</int> - <reference key="NSTarget" ref="533802223"/> - <string key="NSAction">_doScroller:</string> - <double key="NSPercent">0.99532711505889893</double> - </object> - </object> - <string key="NSFrame">{{-2, 22}, {232, 360}}</string> - <reference key="NSSuperview" ref="984943037"/> - <reference key="NSNextKeyView" ref="253139122"/> - <int key="NSsFlags">658</int> - <reference key="NSVScroller" ref="940130901"/> - <reference key="NSHScroller" ref="2545381"/> - <reference key="NSContentView" ref="253139122"/> - <bytes key="NSScrollAmts">QSAAAEEgAABCPAAAQjwAAA</bytes> - </object> - </object> - <string key="NSFrameSize">{229, 381}</string> - <reference key="NSSuperview" ref="141072039"/> - <string key="NSClassName">NSView</string> - </object> - <object class="NSCustomView" id="343315962"> - <reference key="NSNextResponder" ref="141072039"/> - <int key="NSvFlags">274</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTabView" id="961025550"> - <reference key="NSNextResponder" ref="343315962"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{-7, 34}, {370, 282}}</string> - <reference key="NSSuperview" ref="343315962"/> - <object class="NSMutableArray" key="NSTabViewItems"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTabViewItem" id="912523923"> - <string key="NSIdentifier">1</string> - <object class="NSView" key="NSView" id="922389102"> - <reference key="NSNextResponder" ref="961025550"/> - <int key="NSvFlags">256</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTextField" id="796172881"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 153}, {183, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="994019596"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">optional</string> - <reference key="NSControlView" ref="796172881"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSSecureTextField" id="755342553"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 180}, {183, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSSecureTextFieldCell" key="NSCell" id="1031469346"> - <int key="NSCellFlags">343014976</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="755342553"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - <object class="NSArray" key="NSAllowedInputLocales"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllRomanInputSourcesLocaleIdentifier</string> - </object> - </object> - </object> - <object class="NSTextField" id="133134378"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 207}, {183, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="738673778"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="133134378"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="707085995"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 126}, {183, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="961856924"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">3306</string> - <reference key="NSControlView" ref="707085995"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="77492794"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 234}, {183, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="621427359"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="77492794"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="405218604"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 236}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="240920834"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Host:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="405218604"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="311258049"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 209}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="260120936"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Username:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="311258049"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="326534719"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 155}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="33430397"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Database:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="326534719"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="829144025"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 182}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="700495139"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Password:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="829144025"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="352560561"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 128}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="723136745"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Port:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="352560561"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="326313579"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{116, 102}, {188, 18}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="950446242"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">131072</int> - <string key="NSContents">Connect using SSL</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="326313579"/> - <int key="NSButtonFlags">1211912703</int> - <int key="NSButtonFlags2">2</int> - <reference key="NSNormalImage" ref="752798171"/> - <reference key="NSAlternateImage" ref="888311049"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">200</int> - <int key="NSPeriodicInterval">25</int> - </object> - </object> - <object class="NSButton" id="268169583"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 75}, {25, 22}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="721674097"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="268169583"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <object class="NSCustomResource" key="NSNormalImage" id="529804053"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">KeyTemplate</string> - </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="333745503"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 77}, {159, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="868655700"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="333745503"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41MDQwMzIyNTQyAA</bytes> - </object> - </object> - </object> - <object class="NSTextField" id="353141525"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 79}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="229843945"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">Key File:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="353141525"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="712641149"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 49}, {25, 21}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="360573421"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="712641149"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="9988131"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 50}, {159, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="324715931"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="9988131"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41AA</bytes> - <object class="NSColorSpace" key="NSCustomColorSpace" id="84599190"> - <int key="NSID">2</int> - </object> - </object> - </object> - </object> - <object class="NSTextField" id="881733166"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 52}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="239831076"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">Certificate:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="881733166"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="837890813"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 22}, {25, 21}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="168562764"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="837890813"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="1035145804"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 23}, {159, 19}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="88862921"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="1035145804"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41AA</bytes> - <reference key="NSCustomColorSpace" ref="84599190"/> - </object> - </object> - </object> - <object class="NSTextField" id="323589539"> - <reference key="NSNextResponder" ref="922389102"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 25}, {110, 14}}</string> - <reference key="NSSuperview" ref="922389102"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="201233057"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">CA Cert:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="323589539"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - </object> - <string key="NSFrame">{{10, 7}, {335, 262}}</string> - <reference key="NSSuperview" ref="961025550"/> - </object> - <string key="NSLabel">Standard</string> - <reference key="NSColor" ref="700609571"/> - <reference key="NSTabView" ref="961025550"/> - </object> - <object class="NSTabViewItem" id="995302803"> - <string key="NSIdentifier">2</string> - <object class="NSView" key="NSView" id="839532754"> - <nil key="NSNextResponder"/> - <int key="NSvFlags">256</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTextField" id="634238753"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 180}, {183, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="77164118"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">optional</string> - <reference key="NSControlView" ref="634238753"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSSecureTextField" id="340136489"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 207}, {183, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSSecureTextFieldCell" key="NSCell" id="66198316"> - <int key="NSCellFlags">343014976</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="340136489"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - <object class="NSArray" key="NSAllowedInputLocales"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllRomanInputSourcesLocaleIdentifier</string> - </object> - </object> - </object> - <object class="NSTextField" id="596010118"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 153}, {183, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="283360027"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">optional</string> - <reference key="NSControlView" ref="596010118"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="119091130"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 234}, {183, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="380690864"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="119091130"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="109184829"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 236}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="210960415"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Username:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="109184829"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="483422259"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 182}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="196254248"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Database:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="483422259"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="14709164"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 209}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="175382146"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Password:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="14709164"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="205311716"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 155}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="766781287"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Socket:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="205311716"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="128846849"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{116, 129}, {188, 18}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="253160955"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">131072</int> - <string key="NSContents">Connect using SSL</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="128846849"/> - <int key="NSButtonFlags">1211912703</int> - <int key="NSButtonFlags2">2</int> - <reference key="NSNormalImage" ref="752798171"/> - <reference key="NSAlternateImage" ref="888311049"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">200</int> - <int key="NSPeriodicInterval">25</int> - </object> - </object> - <object class="NSButton" id="442151472"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 102}, {25, 22}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="412451460"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="442151472"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="899449715"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 104}, {159, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="330078906"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="899449715"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41MDQwMzIyNTQyAA</bytes> - </object> - </object> - </object> - <object class="NSTextField" id="27450138"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 106}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="695309429"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">Key File:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="27450138"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="517307940"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 76}, {25, 21}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="238157352"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="517307940"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="194427961"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 77}, {159, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="357528044"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="194427961"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41AA</bytes> - <reference key="NSCustomColorSpace" ref="84599190"/> - </object> - </object> - </object> - <object class="NSTextField" id="24879395"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 79}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="138875544"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">Certificate:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="24879395"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="3226998"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{277, 49}, {25, 21}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="432584314"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="3226998"/> - <int key="NSButtonFlags">-922992385</int> - <int key="NSButtonFlags2">34</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="170342915"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{119, 50}, {159, 19}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="382406439"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">272762368</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">none set</string> - <reference key="NSControlView" ref="170342915"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41AA</bytes> - <reference key="NSCustomColorSpace" ref="84599190"/> - </object> - </object> - </object> - <object class="NSTextField" id="543432756"> - <reference key="NSNextResponder" ref="839532754"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{4, 52}, {110, 14}}</string> - <reference key="NSSuperview" ref="839532754"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="142099544"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71435264</int> - <string key="NSContents">CA Cert:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="543432756"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - </object> - <string key="NSFrame">{{10, 7}, {335, 262}}</string> - </object> - <string key="NSLabel">Socket</string> - <reference key="NSColor" ref="700609571"/> - <reference key="NSTabView" ref="961025550"/> - </object> - <object class="NSTabViewItem" id="682271284"> - <string key="NSIdentifier">Item 2</string> - <object class="NSView" key="NSView" id="404987940"> - <nil key="NSNextResponder"/> - <int key="NSvFlags">256</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTextField" id="1069594382"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 33}, {159, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="816035036"> - <int key="NSCellFlags">-2073952703</int> - <int key="NSCellFlags2">4326912</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="1069594382"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC41MDQwMzIyNTQyAA</bytes> - </object> - </object> - </object> - <object class="NSTextField" id="31233169"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 35}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="141835735"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">SSH Key:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="31233169"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSButton" id="440294697"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">265</int> - <string key="NSFrame">{{277, 32}, {25, 21}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="735666174"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">134348800</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="440294697"/> - <int key="NSButtonFlags">-926138113</int> - <int key="NSButtonFlags2">162</int> - <reference key="NSNormalImage" ref="529804053"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> - </object> - <object class="NSTextField" id="1041581151"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 59}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="882064965"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="1041581151"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="663701836"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 33}, {159, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="996160392"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="663701836"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="905879958"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 85}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="782045166"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="905879958"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="781513571"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 7}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="160881703"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">22</string> - <reference key="NSControlView" ref="781513571"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="946292517"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 61}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="544940669"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">SSH User:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="946292517"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="459575305"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 35}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="26059905"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">SSH Password:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="459575305"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="463016809"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 87}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="642636551"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">SSH Host:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="463016809"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="266286554"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 9}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="646676137"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">SSH Port:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="266286554"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="471638951"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 153}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="98025404"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">optional</string> - <reference key="NSControlView" ref="471638951"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSSecureTextField" id="602383030"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 180}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSSecureTextFieldCell" key="NSCell" id="682598366"> - <int key="NSCellFlags">343014976</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="602383030"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - <object class="NSArray" key="NSAllowedInputLocales"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllRomanInputSourcesLocaleIdentifier</string> - </object> - </object> - </object> - <object class="NSTextField" id="917213113"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 207}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="983072894"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="917213113"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="545088922"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 126}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="1015235520"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <string key="NSPlaceholderString">3306</string> - <reference key="NSControlView" ref="545088922"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="619305072"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{119, 234}, {183, 19}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="153943465"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="619305072"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="32316521"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 236}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="528636141"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">MySQL Host:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="32316521"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="706577331"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 209}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="1047551041"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Username:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="706577331"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="578376935"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 155}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="860519796"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Database:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="578376935"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="623079900"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 182}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="33269254"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Password:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="623079900"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSTextField" id="981807110"> - <reference key="NSNextResponder" ref="404987940"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{5, 128}, {109, 14}}</string> - <reference key="NSSuperview" ref="404987940"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="596887118"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Port:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="981807110"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - </object> - <string key="NSFrame">{{10, 7}, {335, 262}}</string> - </object> - <string key="NSLabel">SSH</string> - <reference key="NSColor" ref="700609571"/> - <reference key="NSTabView" ref="961025550"/> - </object> - </object> - <reference key="NSSelectedTabViewItem" ref="912523923"/> - <reference key="NSFont" ref="26"/> - <int key="NSTvFlags">134217731</int> - <bool key="NSAllowTruncatedLabels">YES</bool> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="922389102"/> - </object> - </object> - <object class="NSTextField" id="415835787"> - <reference key="NSNextResponder" ref="343315962"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{112, 342}, {218, 19}}</string> - <reference key="NSSuperview" ref="343315962"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="570809913"> - <int key="NSCellFlags">-1804468671</int> - <int key="NSCellFlags2">4326400</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="415835787"/> - <bool key="NSDrawsBackground">YES</bool> - <reference key="NSBackgroundColor" ref="1001357688"/> - <reference key="NSTextColor" ref="6928728"/> - </object> - </object> - <object class="NSTextField" id="318504265"> - <reference key="NSNextResponder" ref="343315962"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{9, 344}, {98, 14}}</string> - <reference key="NSSuperview" ref="343315962"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="299715951"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Name:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="318504265"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - <object class="NSPopUpButton" id="1065964214"> - <reference key="NSNextResponder" ref="343315962"/> - <int key="NSvFlags">266</int> - <string key="NSFrame">{{109, 313}, {224, 22}}</string> - <reference key="NSSuperview" ref="343315962"/> - <bool key="NSEnabled">YES</bool> - <object class="NSPopUpButtonCell" key="NSCell" id="658054386"> - <int key="NSCellFlags">-2076049856</int> - <int key="NSCellFlags2">133120</int> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="1065964214"/> - <int key="NSButtonFlags">109199615</int> - <int key="NSButtonFlags2">129</int> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - <object class="NSMenuItem" key="NSMenuItem" id="473337794"> - <reference key="NSMenu" ref="878737947"/> - <string key="NSTitle">SSH</string> - <string key="NSKeyEquiv"/> - <int key="NSKeyEquivModMask">1048576</int> - <int key="NSMnemonicLoc">2147483647</int> - <int key="NSState">1</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="658054386"/> - </object> - <bool key="NSMenuItemRespectAlignment">YES</bool> - <object class="NSMenu" key="NSMenu" id="878737947"> - <string key="NSTitle">OtherViews</string> - <object class="NSMutableArray" key="NSMenuItems"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMenuItem" id="516669188"> - <reference key="NSMenu" ref="878737947"/> - <string key="NSTitle">Standard</string> - <string key="NSKeyEquiv"/> - <int key="NSKeyEquivModMask">1048576</int> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="658054386"/> - </object> - <object class="NSMenuItem" id="799805650"> - <reference key="NSMenu" ref="878737947"/> - <string key="NSTitle">Socket</string> - <string key="NSKeyEquiv"/> - <int key="NSKeyEquivModMask">1048576</int> - <int key="NSMnemonicLoc">2147483647</int> - <reference key="NSOnImage" ref="1039721224"/> - <reference key="NSMixedImage" ref="720177216"/> - <string key="NSAction">_popUpItemAction:</string> - <reference key="NSTarget" ref="658054386"/> - </object> - <reference ref="473337794"/> - </object> - </object> - <int key="NSSelectedIndex">2</int> - <int key="NSPreferredEdge">1</int> - <bool key="NSUsesItemFromMenu">YES</bool> - <bool key="NSAltersState">YES</bool> - <int key="NSArrowPosition">2</int> - </object> - </object> - <object class="NSTextField" id="490379939"> - <reference key="NSNextResponder" ref="343315962"/> - <int key="NSvFlags">268</int> - <string key="NSFrame">{{9, 318}, {98, 14}}</string> - <reference key="NSSuperview" ref="343315962"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="761091734"> - <int key="NSCellFlags">68288064</int> - <int key="NSCellFlags2">71304192</int> - <string key="NSContents">Type:</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="490379939"/> - <reference key="NSBackgroundColor" ref="700609571"/> - <reference key="NSTextColor" ref="1035618107"/> - </object> - </object> - </object> - <string key="NSFrame">{{230, 0}, {350, 381}}</string> - <reference key="NSSuperview" ref="141072039"/> - <string key="NSClassName">NSView</string> - </object> - </object> - <string key="NSFrameSize">{580, 381}</string> - <reference key="NSSuperview" ref="593732956"/> - <bool key="NSIsVertical">YES</bool> - <int key="NSDividerStyle">2</int> - </object> - </object> - <string key="NSFrameSize">{580, 381}</string> - <string key="NSClassName">NSView</string> - </object> <object class="NSCustomView" id="1041614321"> <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> @@ -5474,50 +3885,6 @@ AQAAAAA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBBindingConnection" key="connection"> - <string key="label">value: arrangedObjects.name</string> - <reference key="source" ref="22246087"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="22246087"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: arrangedObjects.name</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">arrangedObjects.name</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSAllowsEditingMultipleValuesSelection</string> - <boolean value="NO" key="NS.object.0"/> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">697</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="77492794"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">774</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="133134378"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">775</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="796172881"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">777</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> <string key="label">contentArray: values.favorites</string> <reference key="source" ref="937123943"/> <reference key="destination" ref="151174232"/> @@ -5770,30 +4137,6 @@ AQAAAAA</bytes> <int key="connectionID">1114</int> </object> <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="905879958"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1118</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="1041581151"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1119</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="781513571"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1121</int> - </object> - <object class="IBConnectionRecord"> <object class="IBBindingConnection" key="connection"> <string key="label">value: values.CustomQueryHighlightCurrentQuery</string> <reference key="source" ref="787536920"/> @@ -5891,586 +4234,6 @@ AQAAAAA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBBindingConnection" key="connection"> - <string key="label">selectedIndex: selection.type</string> - <reference key="source" ref="961025550"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="961025550"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">selectedIndex: selection.type</string> - <string key="NSBinding">selectedIndex</string> - <string key="NSKeyPath">selection.type</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSValidatesImmediately</string> - <boolean value="YES" key="NS.object.0"/> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1179</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">selectedIndex: selection.type</string> - <reference key="source" ref="1065964214"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1065964214"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">selectedIndex: selection.type</string> - <string key="NSBinding">selectedIndex</string> - <string key="NSKeyPath">selection.type</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1195</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">enabled: selection.type</string> - <reference key="source" ref="1065964214"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1065964214"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">enabled: selection.type</string> - <string key="NSBinding">enabled</string> - <string key="NSKeyPath">selection.type</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSNoSelectionPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <string>NSIsNotNil</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1245</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="917213113"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1300</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="619305072"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1301</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="471638951"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1302</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="119091130"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1304</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="634238753"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1308</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.host</string> - <reference key="source" ref="77492794"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="77492794"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.host</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.host</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1330</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.user</string> - <reference key="source" ref="133134378"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="133134378"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.user</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.user</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1331</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.database</string> - <reference key="source" ref="796172881"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="796172881"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.database</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.database</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <boolean value="YES"/> - <string>no selection</string> - <string>optional</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1332</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.port</string> - <reference key="source" ref="707085995"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="707085995"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.port</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.port</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <boolean value="YES"/> - <string>no selection</string> - <string>3306</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1333</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.user</string> - <reference key="source" ref="119091130"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="119091130"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.user</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.user</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1334</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.database</string> - <reference key="source" ref="634238753"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="634238753"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.database</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.database</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - <string>optional</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1335</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.socket</string> - <reference key="source" ref="596010118"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="596010118"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.socket</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.socket</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - <string>optional</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1336</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.name</string> - <reference key="source" ref="415835787"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="415835787"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.name</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.name</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1337</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.host</string> - <reference key="source" ref="619305072"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="619305072"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.host</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.host</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1338</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.user</string> - <reference key="source" ref="917213113"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="917213113"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.user</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.user</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1339</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.database</string> - <reference key="source" ref="471638951"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="471638951"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.database</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.database</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - <string>optional</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1340</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.port</string> - <reference key="source" ref="545088922"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="545088922"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.port</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.port</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - <string>3306</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1341</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sshHost</string> - <reference key="source" ref="905879958"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="905879958"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sshHost</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sshHost</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1342</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sshUser</string> - <reference key="source" ref="1041581151"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1041581151"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sshUser</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sshUser</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1343</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sshPort</string> - <reference key="source" ref="781513571"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="781513571"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sshPort</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sshPort</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSContinuouslyUpdatesValue</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="YES"/> - <string>no selection</string> - <string>22</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1344</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">nextKeyView</string> - <reference key="source" ref="415835787"/> - <reference key="destination" ref="1065964214"/> - </object> - <int key="connectionID">1346</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">nextKeyView</string> - <reference key="source" ref="1065964214"/> - <reference key="destination" ref="77492794"/> - </object> - <int key="connectionID">1350</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> <string key="label">selectedTag: updateCheckInterval</string> <reference key="source" ref="1064689843"/> <reference key="destination" ref="721264488"/> @@ -6791,14 +4554,6 @@ AQAAAAA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">menu</string> - <reference key="source" ref="279932544"/> - <reference key="destination" ref="982657201"/> - </object> - <int key="connectionID">1552</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">delegate</string> <reference key="source" ref="982657201"/> <reference key="destination" ref="1001"/> @@ -6980,1312 +4735,6 @@ AQAAAAA</bytes> <int key="connectionID">1834</int> </object> <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sshKeyLocationEnabled</string> - <reference key="source" ref="440294697"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="440294697"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sshKeyLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sshKeyLocationEnabled</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1838</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.sshKeyLocationEnabled</string> - <reference key="source" ref="663701836"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="663701836"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.sshKeyLocationEnabled</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.sshKeyLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1844</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.sshKeyLocationEnabled</string> - <reference key="source" ref="459575305"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="459575305"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.sshKeyLocationEnabled</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.sshKeyLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1850</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.sshKeyLocationEnabled</string> - <reference key="source" ref="31233169"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="31233169"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.sshKeyLocationEnabled</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.sshKeyLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="1"/> - <integer value="1"/> - <integer value="1"/> - <integer value="1"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1858</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="1069594382"/> - <reference key="destination" ref="1001"/> - </object> - <int key="connectionID">1862</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.sshKeyLocationEnabled</string> - <reference key="source" ref="1069594382"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1069594382"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.sshKeyLocationEnabled</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.sshKeyLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="1"/> - <integer value="1"/> - <integer value="1"/> - <integer value="1"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1867</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sshKeyLocation</string> - <reference key="source" ref="1069594382"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1069594382"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sshKeyLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sshKeyLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1869</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sshKeyLocation</string> - <reference key="source" ref="1069594382"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1069594382"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sshKeyLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sshKeyLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1871</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.useSSL</string> - <reference key="source" ref="326313579"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="326313579"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.useSSL</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1903</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslKeyFileLocation</string> - <reference key="source" ref="333745503"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="333745503"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslKeyFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslKeyFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1907</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslKeyFileLocationEnabled</string> - <reference key="source" ref="268169583"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="268169583"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslKeyFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslKeyFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1913</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCertificateFileLocationEnabled</string> - <reference key="source" ref="712641149"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="712641149"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCertificateFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCertificateFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1922</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslCertificateFileLocation</string> - <reference key="source" ref="9988131"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="9988131"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslCertificateFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslCertificateFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1925</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslCACertFileLocation</string> - <reference key="source" ref="1035145804"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1035145804"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslCACertFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslCACertFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1928</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="353141525"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="353141525"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1992</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="881733166"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="881733166"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1993</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="323589539"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="323589539"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1994</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="333745503"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="333745503"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1995</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="9988131"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="9988131"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1996</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="1035145804"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1035145804"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1997</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="268169583"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="268169583"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1998</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="712641149"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="712641149"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">1999</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="837890813"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="837890813"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2000</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslKeyFileLocationEnabled</string> - <reference key="source" ref="442151472"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="442151472"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslKeyFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslKeyFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2021</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="517307940"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="517307940"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2022</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.useSSL</string> - <reference key="source" ref="128846849"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="128846849"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.useSSL</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSAllowsEditingMultipleValuesSelection</string> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <boolean value="NO"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2024</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="899449715"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="899449715"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2026</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="27450138"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="27450138"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2027</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="543432756"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="543432756"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2028</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslCACertFileLocation</string> - <reference key="source" ref="170342915"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="170342915"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslCACertFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslCACertFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2029</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="194427961"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="194427961"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2030</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="24879395"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="24879395"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2031</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCertificateFileLocationEnabled</string> - <reference key="source" ref="517307940"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="517307940"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCertificateFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCertificateFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2033</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="170342915"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="170342915"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2034</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="442151472"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="442151472"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2035</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslCertificateFileLocation</string> - <reference key="source" ref="194427961"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="194427961"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslCertificateFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslCertificateFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2037</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">toolTip: selection.sslKeyFileLocation</string> - <reference key="source" ref="899449715"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="899449715"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">toolTip: selection.sslKeyFileLocation</string> - <string key="NSBinding">toolTip</string> - <string key="NSKeyPath">selection.sslKeyFileLocation</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2038</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">hidden: selection.useSSL</string> - <reference key="source" ref="3226998"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="3226998"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">hidden: selection.useSSL</string> - <string key="NSBinding">hidden</string> - <string key="NSKeyPath">selection.useSSL</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - <string>NSValueTransformerName</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <string>NSNegateBoolean</string> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2039</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCACertFileLocationEnabled</string> - <reference key="source" ref="837890813"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="837890813"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCACertFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCACertFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2066</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCACertFileLocationEnabled</string> - <reference key="source" ref="3226998"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="3226998"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCACertFileLocationEnabled</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCACertFileLocationEnabled</string> - <object class="NSDictionary" key="NSOptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSMultipleValuesPlaceholder</string> - <string>NSNoSelectionPlaceholder</string> - <string>NSNotApplicablePlaceholder</string> - <string>NSNullPlaceholder</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - <integer value="0"/> - </object> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2067</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCACertFileLocation</string> - <reference key="source" ref="170342915"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="170342915"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCACertFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCACertFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2068</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCertificateFileLocation</string> - <reference key="source" ref="194427961"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="194427961"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCertificateFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCertificateFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2069</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslKeyFileLocation</string> - <reference key="source" ref="899449715"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="899449715"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslKeyFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslKeyFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2070</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslKeyFileLocation</string> - <reference key="source" ref="333745503"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="333745503"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslKeyFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslKeyFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2071</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCertificateFileLocation</string> - <reference key="source" ref="9988131"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="9988131"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCertificateFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCertificateFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2072</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.sslCACertFileLocation</string> - <reference key="source" ref="1035145804"/> - <reference key="destination" ref="937123943"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="1035145804"/> - <reference key="NSDestination" ref="937123943"/> - <string key="NSLabel">value: selection.sslCACertFileLocation</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.sslCACertFileLocation</string> - <object class="NSDictionary" key="NSOptions"> - <string key="NS.key.0">NSNullPlaceholder</string> - <string key="NS.object.0">none set</string> - </object> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">2073</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">view</string> <reference key="source" ref="343720994"/> @@ -8359,446 +4808,6 @@ AQAAAAA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">view</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="593732956"/> - </object> - <int key="connectionID">2086</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesPreferencePane</string> - <reference key="source" ref="1001"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2087</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">dataSource</string> - <reference key="source" ref="279932544"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2088</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="279932544"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2089</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesTableView</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="279932544"/> - </object> - <int key="connectionID">2090</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesSortByMenuItem</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="14003497"/> - </object> - <int key="connectionID">2091</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteNameTextField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="415835787"/> - </object> - <int key="connectionID">2092</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesTabView</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="961025550"/> - </object> - <int key="connectionID">2093</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">splitViewButtonBar</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="1068562664"/> - </object> - <int key="connectionID">2094</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoritesController</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="937123943"/> - </object> - <int key="connectionID">2095</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteHostTextField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="77492794"/> - </object> - <int key="connectionID">2097</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteUserTextField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="133134378"/> - </object> - <int key="connectionID">2098</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteUserTextFieldSocket</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="119091130"/> - </object> - <int key="connectionID">2099</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">socketPasswordField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="340136489"/> - </object> - <int key="connectionID">2100</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">standardSSLCACertButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="837890813"/> - </object> - <int key="connectionID">2101</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">standardSSLCertificateButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="712641149"/> - </object> - <int key="connectionID">2102</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">standardSSLKeyFileButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="268169583"/> - </object> - <int key="connectionID">2103</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">standardPasswordField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="755342553"/> - </object> - <int key="connectionID">2104</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sshSSHKeyButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="440294697"/> - </object> - <int key="connectionID">2105</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sshSQLPasswordField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="602383030"/> - </object> - <int key="connectionID">2106</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sshPasswordField</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="663701836"/> - </object> - <int key="connectionID">2107</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">socketSSLCACertButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="3226998"/> - </object> - <int key="connectionID">2108</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">socketSSLCertificateButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="517307940"/> - </object> - <int key="connectionID">2109</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">socketSSLKeyFileButton</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="442151472"/> - </object> - <int key="connectionID">2110</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteUserTextFieldSSH</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="917213113"/> - </object> - <int key="connectionID">2111</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">favoriteHostTextFieldSSH</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="619305072"/> - </object> - <int key="connectionID">2112</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sshKeyLocationHelp</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="301032184"/> - </object> - <int key="connectionID">2113</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sslCACertLocationHelp</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="453507512"/> - </object> - <int key="connectionID">2114</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sslCertificateLocationHelp</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="962978272"/> - </object> - <int key="connectionID">2115</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">sslKeyFileLocationHelp</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="46104894"/> - </object> - <int key="connectionID">2116</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">tableCell</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="396146085"/> - </object> - <int key="connectionID">2117</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">addFavorite:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="364724557"/> - </object> - <int key="connectionID">2118</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">removeFavorite:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="393964112"/> - </object> - <int key="connectionID">2120</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">duplicateFavorite:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="3479828"/> - </object> - <int key="connectionID">2121</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">sortFavorites:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="143086279"/> - </object> - <int key="connectionID">2122</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">sortFavorites:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="760230945"/> - </object> - <int key="connectionID">2123</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">sortFavorites:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="334938006"/> - </object> - <int key="connectionID">2124</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">reverseFavoritesSortOrder:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="140840656"/> - </object> - <int key="connectionID">2125</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">removeFavorite:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="30395779"/> - </object> - <int key="connectionID">2126</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">duplicateFavorite:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="580038192"/> - </object> - <int key="connectionID">2127</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">makeSelectedFavoriteDefault:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="512106570"/> - </object> - <int key="connectionID">2128</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">favoriteTypeDidChange:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="1065964214"/> - </object> - <int key="connectionID">2129</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="141072039"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2130</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="440294697"/> - </object> - <int key="connectionID">2131</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="268169583"/> - </object> - <int key="connectionID">2132</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="712641149"/> - </object> - <int key="connectionID">2133</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="837890813"/> - </object> - <int key="connectionID">2134</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="442151472"/> - </object> - <int key="connectionID">2135</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="517307940"/> - </object> - <int key="connectionID">2136</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">chooseKeyLocation:</string> - <reference key="source" ref="721156358"/> - <reference key="destination" ref="3226998"/> - </object> - <int key="connectionID">2137</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="415835787"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2138</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="602383030"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2139</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="663701836"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2140</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="340136489"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2141</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="755342553"/> - <reference key="destination" ref="721156358"/> - </object> - <int key="connectionID">2142</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">notificationsPreferencePane</string> <reference key="source" ref="1001"/> <reference key="destination" ref="953509484"/> @@ -9491,93 +5500,6 @@ AQAAAAA</bytes> <reference key="parent" ref="385216684"/> </object> <object class="IBObjectRecord"> - <int key="objectID">400</int> - <reference key="object" ref="593732956"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="141072039"/> - </object> - <reference key="parent" ref="0"/> - <string key="objectName">Favorites</string> - </object> - <object class="IBObjectRecord"> - <int key="objectID">401</int> - <reference key="object" ref="141072039"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="984943037"/> - <reference ref="343315962"/> - </object> - <reference key="parent" ref="593732956"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">402</int> - <reference key="object" ref="984943037"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="533802223"/> - <reference ref="1068562664"/> - </object> - <reference key="parent" ref="141072039"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">403</int> - <reference key="object" ref="343315962"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="961025550"/> - <reference ref="415835787"/> - <reference ref="318504265"/> - <reference ref="1065964214"/> - <reference ref="490379939"/> - </object> - <reference key="parent" ref="141072039"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">406</int> - <reference key="object" ref="533802223"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="2545381"/> - <reference ref="940130901"/> - <reference ref="279932544"/> - </object> - <reference key="parent" ref="984943037"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">407</int> - <reference key="object" ref="2545381"/> - <reference key="parent" ref="533802223"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">408</int> - <reference key="object" ref="940130901"/> - <reference key="parent" ref="533802223"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">409</int> - <reference key="object" ref="279932544"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="22246087"/> - </object> - <reference key="parent" ref="533802223"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">410</int> - <reference key="object" ref="22246087"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="396146085"/> - </object> - <reference key="parent" ref="279932544"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">411</int> - <reference key="object" ref="396146085"/> - <reference key="parent" ref="22246087"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">512</int> <reference key="object" ref="395894064"/> <object class="NSMutableArray" key="children"> @@ -10354,717 +6276,6 @@ AQAAAAA</bytes> <reference key="parent" ref="1041614321"/> </object> <object class="IBObjectRecord"> - <int key="objectID">1170</int> - <reference key="object" ref="961025550"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="912523923"/> - <reference ref="995302803"/> - <reference ref="682271284"/> - </object> - <reference key="parent" ref="343315962"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1171</int> - <reference key="object" ref="912523923"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="922389102"/> - </object> - <reference key="parent" ref="961025550"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1172</int> - <reference key="object" ref="995302803"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="839532754"/> - </object> - <reference key="parent" ref="961025550"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1173</int> - <reference key="object" ref="839532754"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="634238753"/> - <reference ref="340136489"/> - <reference ref="596010118"/> - <reference ref="483422259"/> - <reference ref="14709164"/> - <reference ref="205311716"/> - <reference ref="109184829"/> - <reference ref="119091130"/> - <reference ref="128846849"/> - <reference ref="442151472"/> - <reference ref="899449715"/> - <reference ref="27450138"/> - <reference ref="517307940"/> - <reference ref="194427961"/> - <reference ref="24879395"/> - <reference ref="3226998"/> - <reference ref="170342915"/> - <reference ref="543432756"/> - </object> - <reference key="parent" ref="995302803"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1174</int> - <reference key="object" ref="922389102"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="405218604"/> - <reference ref="133134378"/> - <reference ref="311258049"/> - <reference ref="755342553"/> - <reference ref="829144025"/> - <reference ref="796172881"/> - <reference ref="326534719"/> - <reference ref="707085995"/> - <reference ref="352560561"/> - <reference ref="77492794"/> - <reference ref="326313579"/> - <reference ref="333745503"/> - <reference ref="712641149"/> - <reference ref="9988131"/> - <reference ref="837890813"/> - <reference ref="1035145804"/> - <reference ref="268169583"/> - <reference ref="353141525"/> - <reference ref="881733166"/> - <reference ref="323589539"/> - </object> - <reference key="parent" ref="912523923"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1175</int> - <reference key="object" ref="682271284"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="404987940"/> - </object> - <reference key="parent" ref="961025550"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1176</int> - <reference key="object" ref="404987940"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="266286554"/> - <reference ref="463016809"/> - <reference ref="459575305"/> - <reference ref="946292517"/> - <reference ref="781513571"/> - <reference ref="905879958"/> - <reference ref="663701836"/> - <reference ref="1041581151"/> - <reference ref="471638951"/> - <reference ref="602383030"/> - <reference ref="917213113"/> - <reference ref="545088922"/> - <reference ref="619305072"/> - <reference ref="32316521"/> - <reference ref="706577331"/> - <reference ref="578376935"/> - <reference ref="623079900"/> - <reference ref="981807110"/> - <reference ref="440294697"/> - <reference ref="31233169"/> - <reference ref="1069594382"/> - </object> - <reference key="parent" ref="682271284"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">424</int> - <reference key="object" ref="796172881"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="994019596"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">469</int> - <reference key="object" ref="994019596"/> - <reference key="parent" ref="796172881"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">425</int> - <reference key="object" ref="755342553"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1031469346"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">468</int> - <reference key="object" ref="1031469346"/> - <reference key="parent" ref="755342553"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">426</int> - <reference key="object" ref="133134378"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="738673778"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">467</int> - <reference key="object" ref="738673778"/> - <reference key="parent" ref="133134378"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">427</int> - <reference key="object" ref="707085995"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="961856924"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">466</int> - <reference key="object" ref="961856924"/> - <reference key="parent" ref="707085995"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">428</int> - <reference key="object" ref="77492794"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="621427359"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">465</int> - <reference key="object" ref="621427359"/> - <reference key="parent" ref="77492794"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">436</int> - <reference key="object" ref="405218604"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="240920834"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">457</int> - <reference key="object" ref="240920834"/> - <reference key="parent" ref="405218604"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">437</int> - <reference key="object" ref="311258049"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="260120936"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">456</int> - <reference key="object" ref="260120936"/> - <reference key="parent" ref="311258049"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">438</int> - <reference key="object" ref="326534719"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="33430397"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">455</int> - <reference key="object" ref="33430397"/> - <reference key="parent" ref="326534719"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">439</int> - <reference key="object" ref="829144025"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="700495139"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">454</int> - <reference key="object" ref="700495139"/> - <reference key="parent" ref="829144025"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">440</int> - <reference key="object" ref="352560561"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="723136745"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">453</int> - <reference key="object" ref="723136745"/> - <reference key="parent" ref="352560561"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">429</int> - <reference key="object" ref="415835787"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="570809913"/> - </object> - <reference key="parent" ref="343315962"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">464</int> - <reference key="object" ref="570809913"/> - <reference key="parent" ref="415835787"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">441</int> - <reference key="object" ref="318504265"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="299715951"/> - </object> - <reference key="parent" ref="343315962"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">452</int> - <reference key="object" ref="299715951"/> - <reference key="parent" ref="318504265"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1180</int> - <reference key="object" ref="1065964214"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="658054386"/> - </object> - <reference key="parent" ref="343315962"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1181</int> - <reference key="object" ref="658054386"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="878737947"/> - </object> - <reference key="parent" ref="1065964214"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1182</int> - <reference key="object" ref="878737947"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="516669188"/> - <reference ref="799805650"/> - <reference ref="473337794"/> - </object> - <reference key="parent" ref="658054386"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1183</int> - <reference key="object" ref="516669188"/> - <reference key="parent" ref="878737947"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1184</int> - <reference key="object" ref="799805650"/> - <reference key="parent" ref="878737947"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1185</int> - <reference key="object" ref="473337794"/> - <reference key="parent" ref="878737947"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1186</int> - <reference key="object" ref="490379939"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="761091734"/> - </object> - <reference key="parent" ref="343315962"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1187</int> - <reference key="object" ref="761091734"/> - <reference key="parent" ref="490379939"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">432</int> - <reference key="object" ref="1041581151"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="882064965"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">461</int> - <reference key="object" ref="882064965"/> - <reference key="parent" ref="1041581151"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">433</int> - <reference key="object" ref="663701836"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="996160392"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">460</int> - <reference key="object" ref="996160392"/> - <reference key="parent" ref="663701836"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">434</int> - <reference key="object" ref="905879958"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="782045166"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">459</int> - <reference key="object" ref="782045166"/> - <reference key="parent" ref="905879958"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">435</int> - <reference key="object" ref="781513571"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="160881703"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">458</int> - <reference key="object" ref="160881703"/> - <reference key="parent" ref="781513571"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">443</int> - <reference key="object" ref="946292517"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="544940669"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">450</int> - <reference key="object" ref="544940669"/> - <reference key="parent" ref="946292517"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">444</int> - <reference key="object" ref="459575305"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="26059905"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">449</int> - <reference key="object" ref="26059905"/> - <reference key="parent" ref="459575305"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">445</int> - <reference key="object" ref="463016809"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="642636551"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">448</int> - <reference key="object" ref="642636551"/> - <reference key="parent" ref="463016809"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">446</int> - <reference key="object" ref="266286554"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="646676137"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">447</int> - <reference key="object" ref="646676137"/> - <reference key="parent" ref="266286554"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1200</int> - <reference key="object" ref="634238753"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="77164118"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1201</int> - <reference key="object" ref="340136489"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="66198316"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1203</int> - <reference key="object" ref="596010118"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="283360027"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1207</int> - <reference key="object" ref="483422259"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="196254248"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1208</int> - <reference key="object" ref="14709164"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="175382146"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1209</int> - <reference key="object" ref="205311716"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="766781287"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1210</int> - <reference key="object" ref="766781287"/> - <reference key="parent" ref="205311716"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1211</int> - <reference key="object" ref="175382146"/> - <reference key="parent" ref="14709164"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1212</int> - <reference key="object" ref="196254248"/> - <reference key="parent" ref="483422259"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1216</int> - <reference key="object" ref="283360027"/> - <reference key="parent" ref="596010118"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1218</int> - <reference key="object" ref="66198316"/> - <reference key="parent" ref="340136489"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1219</int> - <reference key="object" ref="77164118"/> - <reference key="parent" ref="634238753"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1205</int> - <reference key="object" ref="109184829"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="210960415"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1214</int> - <reference key="object" ref="210960415"/> - <reference key="parent" ref="109184829"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1204</int> - <reference key="object" ref="119091130"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="380690864"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1215</int> - <reference key="object" ref="380690864"/> - <reference key="parent" ref="119091130"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1246</int> - <reference key="object" ref="471638951"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="98025404"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1247</int> - <reference key="object" ref="602383030"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="682598366"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1248</int> - <reference key="object" ref="917213113"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="983072894"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1249</int> - <reference key="object" ref="545088922"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1015235520"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1250</int> - <reference key="object" ref="619305072"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="153943465"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1251</int> - <reference key="object" ref="32316521"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="528636141"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1252</int> - <reference key="object" ref="706577331"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1047551041"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1253</int> - <reference key="object" ref="578376935"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="860519796"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1254</int> - <reference key="object" ref="623079900"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="33269254"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1255</int> - <reference key="object" ref="981807110"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="596887118"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1256</int> - <reference key="object" ref="596887118"/> - <reference key="parent" ref="981807110"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1257</int> - <reference key="object" ref="33269254"/> - <reference key="parent" ref="623079900"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1258</int> - <reference key="object" ref="860519796"/> - <reference key="parent" ref="578376935"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1259</int> - <reference key="object" ref="1047551041"/> - <reference key="parent" ref="706577331"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1260</int> - <reference key="object" ref="528636141"/> - <reference key="parent" ref="32316521"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1261</int> - <reference key="object" ref="153943465"/> - <reference key="parent" ref="619305072"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1262</int> - <reference key="object" ref="1015235520"/> - <reference key="parent" ref="545088922"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1263</int> - <reference key="object" ref="983072894"/> - <reference key="parent" ref="917213113"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1264</int> - <reference key="object" ref="682598366"/> - <reference key="parent" ref="602383030"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1265</int> - <reference key="object" ref="98025404"/> - <reference key="parent" ref="471638951"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">1351</int> <reference key="object" ref="1030541779"/> <object class="NSMutableArray" key="children"> @@ -11517,128 +6728,6 @@ AQAAAAA</bytes> <reference key="parent" ref="982657201"/> </object> <object class="IBObjectRecord"> - <int key="objectID">1583</int> - <reference key="object" ref="1068562664"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="669526663"/> - <reference ref="364724557"/> - </object> - <reference key="parent" ref="984943037"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1584</int> - <reference key="object" ref="669526663"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="858997662"/> - </object> - <reference key="parent" ref="1068562664"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1586</int> - <reference key="object" ref="364724557"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="907732055"/> - </object> - <reference key="parent" ref="1068562664"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1587</int> - <reference key="object" ref="907732055"/> - <reference key="parent" ref="364724557"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1589</int> - <reference key="object" ref="858997662"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="792931395"/> - </object> - <reference key="parent" ref="669526663"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1590</int> - <reference key="object" ref="792931395"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="943449800"/> - <reference ref="3479828"/> - <reference ref="594335870"/> - <reference ref="14003497"/> - <reference ref="393964112"/> - </object> - <reference key="parent" ref="858997662"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1591</int> - <reference key="object" ref="943449800"/> - <reference key="parent" ref="792931395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1592</int> - <reference key="object" ref="3479828"/> - <reference key="parent" ref="792931395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1594</int> - <reference key="object" ref="594335870"/> - <reference key="parent" ref="792931395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1597</int> - <reference key="object" ref="393964112"/> - <reference key="parent" ref="792931395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1598</int> - <reference key="object" ref="14003497"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="978204089"/> - </object> - <reference key="parent" ref="792931395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1599</int> - <reference key="object" ref="978204089"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="143086279"/> - <reference ref="760230945"/> - <reference ref="334938006"/> - <reference ref="375388028"/> - <reference ref="140840656"/> - </object> - <reference key="parent" ref="14003497"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1600</int> - <reference key="object" ref="143086279"/> - <reference key="parent" ref="978204089"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1601</int> - <reference key="object" ref="760230945"/> - <reference key="parent" ref="978204089"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1602</int> - <reference key="object" ref="334938006"/> - <reference key="parent" ref="978204089"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1603</int> - <reference key="object" ref="375388028"/> - <reference key="parent" ref="978204089"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1604</int> - <reference key="object" ref="140840656"/> - <reference key="parent" ref="978204089"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">1615</int> <reference key="object" ref="467474047"/> <object class="NSMutableArray" key="children"> @@ -12045,48 +7134,6 @@ AQAAAAA</bytes> <reference key="parent" ref="202566886"/> </object> <object class="IBObjectRecord"> - <int key="objectID">1835</int> - <reference key="object" ref="440294697"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="735666174"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1836</int> - <reference key="object" ref="735666174"/> - <reference key="parent" ref="440294697"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1851</int> - <reference key="object" ref="31233169"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="141835735"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1852</int> - <reference key="object" ref="141835735"/> - <reference key="parent" ref="31233169"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1859</int> - <reference key="object" ref="1069594382"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="816035036"/> - </object> - <reference key="parent" ref="404987940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1860</int> - <reference key="object" ref="816035036"/> - <reference key="parent" ref="1069594382"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">1873</int> <reference key="object" ref="301032184"/> <object class="NSMutableArray" key="children"> @@ -12111,286 +7158,6 @@ AQAAAAA</bytes> <reference key="parent" ref="200831972"/> </object> <object class="IBObjectRecord"> - <int key="objectID">1877</int> - <reference key="object" ref="326313579"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="950446242"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1878</int> - <reference key="object" ref="950446242"/> - <reference key="parent" ref="326313579"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1879</int> - <reference key="object" ref="268169583"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="721674097"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1880</int> - <reference key="object" ref="333745503"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="868655700"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1881</int> - <reference key="object" ref="353141525"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="229843945"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1882</int> - <reference key="object" ref="712641149"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="360573421"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1883</int> - <reference key="object" ref="9988131"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="324715931"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1884</int> - <reference key="object" ref="881733166"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="239831076"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1885</int> - <reference key="object" ref="837890813"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="168562764"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1886</int> - <reference key="object" ref="1035145804"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="88862921"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1887</int> - <reference key="object" ref="323589539"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="201233057"/> - </object> - <reference key="parent" ref="922389102"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1888</int> - <reference key="object" ref="201233057"/> - <reference key="parent" ref="323589539"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1889</int> - <reference key="object" ref="88862921"/> - <reference key="parent" ref="1035145804"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1890</int> - <reference key="object" ref="168562764"/> - <reference key="parent" ref="837890813"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1891</int> - <reference key="object" ref="239831076"/> - <reference key="parent" ref="881733166"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1892</int> - <reference key="object" ref="324715931"/> - <reference key="parent" ref="9988131"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1893</int> - <reference key="object" ref="360573421"/> - <reference key="parent" ref="712641149"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1894</int> - <reference key="object" ref="229843945"/> - <reference key="parent" ref="353141525"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1895</int> - <reference key="object" ref="868655700"/> - <reference key="parent" ref="333745503"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">1896</int> - <reference key="object" ref="721674097"/> - <reference key="parent" ref="268169583"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2001</int> - <reference key="object" ref="128846849"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="253160955"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2002</int> - <reference key="object" ref="442151472"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="412451460"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2003</int> - <reference key="object" ref="899449715"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="330078906"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2004</int> - <reference key="object" ref="27450138"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="695309429"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2005</int> - <reference key="object" ref="517307940"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="238157352"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2006</int> - <reference key="object" ref="194427961"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="357528044"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2007</int> - <reference key="object" ref="24879395"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="138875544"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2008</int> - <reference key="object" ref="3226998"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="432584314"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2009</int> - <reference key="object" ref="170342915"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="382406439"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2010</int> - <reference key="object" ref="543432756"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="142099544"/> - </object> - <reference key="parent" ref="839532754"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2011</int> - <reference key="object" ref="142099544"/> - <reference key="parent" ref="543432756"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2012</int> - <reference key="object" ref="382406439"/> - <reference key="parent" ref="170342915"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2013</int> - <reference key="object" ref="432584314"/> - <reference key="parent" ref="3226998"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2014</int> - <reference key="object" ref="138875544"/> - <reference key="parent" ref="24879395"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2015</int> - <reference key="object" ref="357528044"/> - <reference key="parent" ref="194427961"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2016</int> - <reference key="object" ref="238157352"/> - <reference key="parent" ref="517307940"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2017</int> - <reference key="object" ref="695309429"/> - <reference key="parent" ref="27450138"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2018</int> - <reference key="object" ref="330078906"/> - <reference key="parent" ref="899449715"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2019</int> - <reference key="object" ref="412451460"/> - <reference key="parent" ref="442151472"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2020</int> - <reference key="object" ref="253160955"/> - <reference key="parent" ref="128846849"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">2040</int> <reference key="object" ref="453507512"/> <object class="NSMutableArray" key="children"> @@ -12475,12 +7242,6 @@ AQAAAAA</bytes> <string key="objectName">Tables</string> </object> <object class="IBObjectRecord"> - <int key="objectID">2085</int> - <reference key="object" ref="721156358"/> - <reference key="parent" ref="0"/> - <string key="objectName">Favorites</string> - </object> - <object class="IBObjectRecord"> <int key="objectID">2143</int> <reference key="object" ref="953509484"/> <reference key="parent" ref="0"/> @@ -12568,78 +7329,6 @@ AQAAAAA</bytes> <string>1155.IBPluginDependency</string> <string>1156.IBPluginDependency</string> <string>117.IBPluginDependency</string> - <string>1170.IBAttributePlaceholdersKey</string> - <string>1170.IBPluginDependency</string> - <string>1171.IBPluginDependency</string> - <string>1172.IBPluginDependency</string> - <string>1173.IBPluginDependency</string> - <string>1174.IBPluginDependency</string> - <string>1175.IBPluginDependency</string> - <string>1176.IBPluginDependency</string> - <string>1180.IBPluginDependency</string> - <string>1181.IBPluginDependency</string> - <string>1182.IBEditorWindowLastContentRect</string> - <string>1182.IBPluginDependency</string> - <string>1183.IBPluginDependency</string> - <string>1184.IBPluginDependency</string> - <string>1185.IBPluginDependency</string> - <string>1186.IBPluginDependency</string> - <string>1186.ImportedFromIB2</string> - <string>1187.IBPluginDependency</string> - <string>1200.IBPluginDependency</string> - <string>1200.ImportedFromIB2</string> - <string>1201.IBPluginDependency</string> - <string>1201.ImportedFromIB2</string> - <string>1203.IBPluginDependency</string> - <string>1203.ImportedFromIB2</string> - <string>1204.IBPluginDependency</string> - <string>1204.ImportedFromIB2</string> - <string>1205.IBPluginDependency</string> - <string>1205.ImportedFromIB2</string> - <string>1207.IBPluginDependency</string> - <string>1207.ImportedFromIB2</string> - <string>1208.IBPluginDependency</string> - <string>1208.ImportedFromIB2</string> - <string>1209.IBPluginDependency</string> - <string>1209.ImportedFromIB2</string> - <string>1210.IBPluginDependency</string> - <string>1211.IBPluginDependency</string> - <string>1212.IBPluginDependency</string> - <string>1214.IBPluginDependency</string> - <string>1215.IBPluginDependency</string> - <string>1216.IBPluginDependency</string> - <string>1218.IBPluginDependency</string> - <string>1219.IBPluginDependency</string> - <string>1246.IBPluginDependency</string> - <string>1246.ImportedFromIB2</string> - <string>1247.IBPluginDependency</string> - <string>1247.ImportedFromIB2</string> - <string>1248.IBPluginDependency</string> - <string>1248.ImportedFromIB2</string> - <string>1249.IBPluginDependency</string> - <string>1249.ImportedFromIB2</string> - <string>1250.IBPluginDependency</string> - <string>1250.ImportedFromIB2</string> - <string>1251.IBPluginDependency</string> - <string>1251.ImportedFromIB2</string> - <string>1252.IBPluginDependency</string> - <string>1252.ImportedFromIB2</string> - <string>1253.IBPluginDependency</string> - <string>1253.ImportedFromIB2</string> - <string>1254.IBPluginDependency</string> - <string>1254.ImportedFromIB2</string> - <string>1255.IBPluginDependency</string> - <string>1255.ImportedFromIB2</string> - <string>1256.IBPluginDependency</string> - <string>1257.IBPluginDependency</string> - <string>1258.IBPluginDependency</string> - <string>1259.IBPluginDependency</string> - <string>1260.IBPluginDependency</string> - <string>1261.IBPluginDependency</string> - <string>1262.IBPluginDependency</string> - <string>1263.IBPluginDependency</string> - <string>1264.IBPluginDependency</string> - <string>1265.IBPluginDependency</string> <string>1351.IBPluginDependency</string> <string>1351.ImportedFromIB2</string> <string>1352.IBPluginDependency</string> @@ -12719,27 +7408,6 @@ AQAAAAA</bytes> <string>1548.IBPluginDependency</string> <string>1549.IBPluginDependency</string> <string>1551.IBPluginDependency</string> - <string>1583.IBPluginDependency</string> - <string>1584.IBAttributePlaceholdersKey</string> - <string>1584.IBPluginDependency</string> - <string>1586.IBAttributePlaceholdersKey</string> - <string>1586.IBPluginDependency</string> - <string>1587.IBPluginDependency</string> - <string>1589.IBPluginDependency</string> - <string>1590.IBEditorWindowLastContentRect</string> - <string>1590.IBPluginDependency</string> - <string>1591.IBPluginDependency</string> - <string>1592.IBPluginDependency</string> - <string>1594.IBPluginDependency</string> - <string>1597.IBPluginDependency</string> - <string>1598.IBPluginDependency</string> - <string>1599.IBEditorWindowLastContentRect</string> - <string>1599.IBPluginDependency</string> - <string>1600.IBPluginDependency</string> - <string>1601.IBPluginDependency</string> - <string>1602.IBPluginDependency</string> - <string>1603.IBPluginDependency</string> - <string>1604.IBPluginDependency</string> <string>1615.IBPluginDependency</string> <string>1615.ImportedFromIB2</string> <string>1616.IBPluginDependency</string> @@ -12829,66 +7497,11 @@ AQAAAAA</bytes> <string>1824.IBPluginDependency</string> <string>1824.ImportedFromIB2</string> <string>1825.IBPluginDependency</string> - <string>1835.IBPluginDependency</string> - <string>1835.notes</string> - <string>1836.IBPluginDependency</string> - <string>1851.IBPluginDependency</string> - <string>1851.ImportedFromIB2</string> - <string>1852.IBPluginDependency</string> - <string>1859.IBPluginDependency</string> - <string>1859.ImportedFromIB2</string> - <string>1860.IBPluginDependency</string> <string>1873.IBEditorWindowLastContentRect</string> <string>1873.IBPluginDependency</string> <string>1874.IBPluginDependency</string> <string>1875.IBPluginDependency</string> - <string>1877.IBPluginDependency</string> - <string>1878.IBPluginDependency</string> - <string>1879.IBAttributePlaceholdersKey</string> - <string>1879.IBPluginDependency</string> - <string>1880.IBPluginDependency</string> - <string>1881.IBPluginDependency</string> - <string>1882.IBAttributePlaceholdersKey</string> - <string>1882.IBPluginDependency</string> - <string>1883.IBPluginDependency</string> - <string>1884.IBPluginDependency</string> - <string>1885.IBAttributePlaceholdersKey</string> - <string>1885.IBPluginDependency</string> - <string>1886.IBPluginDependency</string> - <string>1887.IBPluginDependency</string> - <string>1888.IBPluginDependency</string> - <string>1889.IBPluginDependency</string> - <string>1890.IBPluginDependency</string> - <string>1891.IBPluginDependency</string> - <string>1892.IBPluginDependency</string> - <string>1893.IBPluginDependency</string> - <string>1894.IBPluginDependency</string> - <string>1895.IBPluginDependency</string> - <string>1896.IBPluginDependency</string> <string>2.IBPluginDependency</string> - <string>2001.IBPluginDependency</string> - <string>2002.IBAttributePlaceholdersKey</string> - <string>2002.IBPluginDependency</string> - <string>2003.IBPluginDependency</string> - <string>2004.IBPluginDependency</string> - <string>2005.IBAttributePlaceholdersKey</string> - <string>2005.IBPluginDependency</string> - <string>2006.IBPluginDependency</string> - <string>2007.IBPluginDependency</string> - <string>2008.IBAttributePlaceholdersKey</string> - <string>2008.IBPluginDependency</string> - <string>2009.IBPluginDependency</string> - <string>2010.IBPluginDependency</string> - <string>2011.IBPluginDependency</string> - <string>2012.IBPluginDependency</string> - <string>2013.IBPluginDependency</string> - <string>2014.IBPluginDependency</string> - <string>2015.IBPluginDependency</string> - <string>2016.IBPluginDependency</string> - <string>2017.IBPluginDependency</string> - <string>2018.IBPluginDependency</string> - <string>2019.IBPluginDependency</string> - <string>2020.IBPluginDependency</string> <string>2040.IBEditorWindowLastContentRect</string> <string>2040.IBPluginDependency</string> <string>2041.IBEditorWindowLastContentRect</string> @@ -12903,7 +7516,6 @@ AQAAAAA</bytes> <string>2048.IBPluginDependency</string> <string>2074.IBPluginDependency</string> <string>2080.IBPluginDependency</string> - <string>2085.IBPluginDependency</string> <string>2143.IBPluginDependency</string> <string>2144.IBPluginDependency</string> <string>2145.IBPluginDependency</string> @@ -12946,97 +7558,18 @@ AQAAAAA</bytes> <string>39.ImportedFromIB2</string> <string>40.IBPluginDependency</string> <string>40.ImportedFromIB2</string> - <string>400.IBEditorWindowLastContentRect</string> - <string>400.IBPluginDependency</string> - <string>401.IBPluginDependency</string> - <string>402.IBPluginDependency</string> - <string>403.IBPluginDependency</string> - <string>406.IBPluginDependency</string> - <string>406.ImportedFromIB2</string> - <string>407.IBPluginDependency</string> - <string>407.IBShouldRemoveOnLegacySave</string> - <string>408.IBPluginDependency</string> - <string>408.IBShouldRemoveOnLegacySave</string> - <string>409.IBPluginDependency</string> - <string>409.ImportedFromIB2</string> <string>41.IBPluginDependency</string> <string>41.ImportedFromIB2</string> - <string>410.IBPluginDependency</string> - <string>410.ImportedFromIB2</string> - <string>411.CustomClassName</string> - <string>411.IBPluginDependency</string> - <string>411.ImportedFromIB2</string> <string>42.IBPluginDependency</string> <string>42.ImportedFromIB2</string> - <string>424.IBPluginDependency</string> - <string>424.ImportedFromIB2</string> - <string>425.IBPluginDependency</string> - <string>425.ImportedFromIB2</string> - <string>426.IBPluginDependency</string> - <string>426.ImportedFromIB2</string> - <string>427.IBPluginDependency</string> - <string>427.ImportedFromIB2</string> - <string>428.IBPluginDependency</string> - <string>428.ImportedFromIB2</string> - <string>429.IBPluginDependency</string> - <string>429.ImportedFromIB2</string> <string>43.IBPluginDependency</string> <string>43.ImportedFromIB2</string> - <string>432.IBPluginDependency</string> - <string>432.ImportedFromIB2</string> - <string>433.CustomClassName</string> - <string>433.IBPluginDependency</string> - <string>433.ImportedFromIB2</string> - <string>434.IBPluginDependency</string> - <string>434.ImportedFromIB2</string> - <string>435.IBPluginDependency</string> - <string>435.ImportedFromIB2</string> - <string>436.IBPluginDependency</string> - <string>436.ImportedFromIB2</string> - <string>437.IBPluginDependency</string> - <string>437.ImportedFromIB2</string> - <string>438.IBPluginDependency</string> - <string>438.ImportedFromIB2</string> - <string>439.IBPluginDependency</string> - <string>439.ImportedFromIB2</string> <string>44.IBPluginDependency</string> <string>44.ImportedFromIB2</string> - <string>440.IBPluginDependency</string> - <string>440.ImportedFromIB2</string> - <string>441.IBPluginDependency</string> - <string>441.ImportedFromIB2</string> - <string>443.IBPluginDependency</string> - <string>443.ImportedFromIB2</string> - <string>444.IBPluginDependency</string> - <string>444.ImportedFromIB2</string> - <string>445.IBPluginDependency</string> - <string>445.ImportedFromIB2</string> - <string>446.IBPluginDependency</string> - <string>446.ImportedFromIB2</string> - <string>447.IBPluginDependency</string> - <string>448.IBPluginDependency</string> - <string>449.IBPluginDependency</string> <string>45.IBPluginDependency</string> <string>45.ImportedFromIB2</string> - <string>450.IBPluginDependency</string> - <string>452.IBPluginDependency</string> - <string>453.IBPluginDependency</string> - <string>454.IBPluginDependency</string> - <string>455.IBPluginDependency</string> - <string>456.IBPluginDependency</string> - <string>457.IBPluginDependency</string> - <string>458.IBPluginDependency</string> - <string>459.IBPluginDependency</string> <string>46.IBPluginDependency</string> <string>46.ImportedFromIB2</string> - <string>460.IBPluginDependency</string> - <string>461.IBPluginDependency</string> - <string>464.IBPluginDependency</string> - <string>465.IBPluginDependency</string> - <string>466.IBPluginDependency</string> - <string>467.IBPluginDependency</string> - <string>468.IBPluginDependency</string> - <string>469.IBPluginDependency</string> <string>47.IBPluginDependency</string> <string>47.ImportedFromIB2</string> <string>48.IBPluginDependency</string> @@ -13204,85 +7737,6 @@ AQAAAAA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">InitialTabViewItem</string> - <object class="IBInitialTabViewItemAttribute" key="NS.object.0"> - <string key="name">InitialTabViewItem</string> - <reference key="object" ref="961025550"/> - <reference key="initialTabViewItem" ref="912523923"/> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{678, 501}, {167, 54}}</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -13362,41 +7816,6 @@ AQAAAAA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.brandonwalkin.BWToolkit</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="669526663"/> - <string key="toolTip">(⌥⎋)</string> - </object> - </object> - <string>com.brandonwalkin.BWToolkit</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="364724557"/> - <string key="toolTip">Add Favorite (⌥⌘A)</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.brandonwalkin.BWToolkit</string> - <string>{{598, 118}, {124, 81}}</string> - <string>com.brandonwalkin.BWToolkit</string> - <string>com.brandonwalkin.BWToolkit</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{722, 45}, {180, 93}}</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -13530,132 +7949,11 @@ AQAAAAA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableAttributedString"> - <object class="NSMutableString" key="NSString"> - <characters key="NS.bytes">Choose a custom SSH key file to use with this connection. Standard locations like ~/.ssh are checked automatically.</characters> - </object> - <object class="NSDictionary" key="NSAttributes"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSColor</string> - <string>NSFont</string> - <string>NSOriginalFont</string> - <string>NSParagraphStyle</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="6928728"/> - <reference ref="26"/> - <reference ref="26"/> - <object class="NSParagraphStyle"> - <int key="NSAlignment">4</int> - <nil key="NSTabStops"/> - </object> - </object> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>{{249, 289}, {579, 51}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="268169583"/> - <string key="toolTip">Click to choose the SSL key file to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="712641149"/> - <string key="toolTip">Click to choose the client SSL certificate file to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="837890813"/> - <string key="toolTip">Click to choose the client SSL Certificate Authority certificate to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="442151472"/> - <string key="toolTip">Click to choose the SSL key file to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="517307940"/> - <string key="toolTip">Click to choose the client SSL certificate file to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <object class="NSMutableDictionary"> - <string key="NS.key.0">ToolTip</string> - <object class="IBToolTipAttribute" key="NS.object.0"> - <string key="name">ToolTip</string> - <reference key="object" ref="3226998"/> - <string key="toolTip">Click to choose the client SSL Certificate Authority certificate to use when establishing a secure connection</string> - </object> - </object> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>{{245, 466}, {579, 51}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>{{245, 483}, {579, 34}}</string> @@ -13675,7 +7973,6 @@ AQAAAAA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -13713,24 +8010,8 @@ AQAAAAA</bytes> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>{{579, 176}, {580, 381}}</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>SPFavoriteTextFieldCell</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -13749,69 +8030,6 @@ AQAAAAA</bytes> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>NSSecureTextField</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> <string>{{526, 52}, {580, 319}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <object class="NSMutableArray"> @@ -14013,14 +8231,6 @@ AQAAAAA</bytes> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBPartialClassDescription"> - <string key="className">ImageAndTextCell</string> - <string key="superclassName">NSTextFieldCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/ImageAndTextCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">NSApplication</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> @@ -14052,13 +8262,6 @@ AQAAAAA</bytes> <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/JVFontPreviewField.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> <string key="minorKey">Source/SPConnectionController.h</string> </object> </object> @@ -14357,300 +8560,11 @@ AQAAAAA</bytes> </object> </object> <object class="IBPartialClassDescription"> - <string key="className">SPFavoriteTextFieldCell</string> - <string key="superclassName">ImageAndTextCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/SPFavoriteTextFieldCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">SPFavoritesPreferencePane</string> - <string key="superclassName">SPPreferencePane</string> - <object class="NSMutableDictionary" key="actions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addFavorite:</string> - <string>chooseKeyLocation:</string> - <string>duplicateFavorite:</string> - <string>favoriteTypeDidChange:</string> - <string>makeSelectedFavoriteDefault:</string> - <string>removeFavorite:</string> - <string>reverseFavoritesSortOrder:</string> - <string>sortFavorites:</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - <string>id</string> - </object> - </object> - <object class="NSMutableDictionary" key="actionInfosByName"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>addFavorite:</string> - <string>chooseKeyLocation:</string> - <string>duplicateFavorite:</string> - <string>favoriteTypeDidChange:</string> - <string>makeSelectedFavoriteDefault:</string> - <string>removeFavorite:</string> - <string>reverseFavoritesSortOrder:</string> - <string>sortFavorites:</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBActionInfo"> - <string key="name">addFavorite:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">chooseKeyLocation:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">duplicateFavorite:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">favoriteTypeDidChange:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">makeSelectedFavoriteDefault:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">removeFavorite:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">reverseFavoritesSortOrder:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">sortFavorites:</string> - <string key="candidateClassName">id</string> - </object> - </object> - </object> - <object class="NSMutableDictionary" key="outlets"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>favoriteHostTextField</string> - <string>favoriteHostTextFieldSSH</string> - <string>favoriteNameTextField</string> - <string>favoriteUserTextField</string> - <string>favoriteUserTextFieldSSH</string> - <string>favoriteUserTextFieldSocket</string> - <string>favoritesController</string> - <string>favoritesSortByMenuItem</string> - <string>favoritesTabView</string> - <string>favoritesTableView</string> - <string>socketPasswordField</string> - <string>socketSSLCACertButton</string> - <string>socketSSLCertificateButton</string> - <string>socketSSLKeyFileButton</string> - <string>splitViewButtonBar</string> - <string>sshKeyLocationHelp</string> - <string>sshPasswordField</string> - <string>sshSQLPasswordField</string> - <string>sshSSHKeyButton</string> - <string>sslCACertLocationHelp</string> - <string>sslCertificateLocationHelp</string> - <string>sslKeyFileLocationHelp</string> - <string>standardPasswordField</string> - <string>standardSSLCACertButton</string> - <string>standardSSLCertificateButton</string> - <string>standardSSLKeyFileButton</string> - <string>tableCell</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSTextField</string> - <string>NSTextField</string> - <string>NSTextField</string> - <string>NSTextField</string> - <string>NSTextField</string> - <string>NSTextField</string> - <string>NSArrayController</string> - <string>NSMenuItem</string> - <string>NSTabView</string> - <string>NSTableView</string> - <string>NSSecureTextField</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSButton</string> - <string>BWAnchoredButtonBar</string> - <string>NSView</string> - <string>NSSecureTextField</string> - <string>NSSecureTextField</string> - <string>NSButton</string> - <string>NSView</string> - <string>NSView</string> - <string>NSView</string> - <string>NSSecureTextField</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSButton</string> - <string>NSTextFieldCell</string> - </object> - </object> - <object class="NSMutableDictionary" key="toOneOutletInfosByName"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>favoriteHostTextField</string> - <string>favoriteHostTextFieldSSH</string> - <string>favoriteNameTextField</string> - <string>favoriteUserTextField</string> - <string>favoriteUserTextFieldSSH</string> - <string>favoriteUserTextFieldSocket</string> - <string>favoritesController</string> - <string>favoritesSortByMenuItem</string> - <string>favoritesTabView</string> - <string>favoritesTableView</string> - <string>socketPasswordField</string> - <string>socketSSLCACertButton</string> - <string>socketSSLCertificateButton</string> - <string>socketSSLKeyFileButton</string> - <string>splitViewButtonBar</string> - <string>sshKeyLocationHelp</string> - <string>sshPasswordField</string> - <string>sshSQLPasswordField</string> - <string>sshSSHKeyButton</string> - <string>sslCACertLocationHelp</string> - <string>sslCertificateLocationHelp</string> - <string>sslKeyFileLocationHelp</string> - <string>standardPasswordField</string> - <string>standardSSLCACertButton</string> - <string>standardSSLCertificateButton</string> - <string>standardSSLKeyFileButton</string> - <string>tableCell</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteHostTextField</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteHostTextFieldSSH</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteNameTextField</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteUserTextField</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteUserTextFieldSSH</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoriteUserTextFieldSocket</string> - <string key="candidateClassName">NSTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesController</string> - <string key="candidateClassName">NSArrayController</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesSortByMenuItem</string> - <string key="candidateClassName">NSMenuItem</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesTabView</string> - <string key="candidateClassName">NSTabView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">favoritesTableView</string> - <string key="candidateClassName">NSTableView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLCACertButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLCertificateButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">socketSSLKeyFileButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">splitViewButtonBar</string> - <string key="candidateClassName">BWAnchoredButtonBar</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshKeyLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshSQLPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sshSSHKeyButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslCACertLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslCertificateLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">sslKeyFileLocationHelp</string> - <string key="candidateClassName">NSView</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardPasswordField</string> - <string key="candidateClassName">NSSecureTextField</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLCACertButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLCertificateButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">standardSSLKeyFileButton</string> - <string key="candidateClassName">NSButton</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">tableCell</string> - <string key="candidateClassName">NSTextFieldCell</string> - </object> - </object> - </object> + <string key="className">SPFontPreviewTextField</string> + <string key="superclassName">NSTextField</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> - <string key="minorKey">Source/SPFavoritesPreferencePane.h</string> + <string key="minorKey">Source/SPFontPreviewTextField.h</string> </object> </object> <object class="IBPartialClassDescription"> @@ -14769,7 +8683,6 @@ AQAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <string>autoUpdatePreferencePane</string> <string>editorPreferencePane</string> - <string>favoritesPreferencePane</string> <string>generalPreferencePane</string> <string>networkPreferencePane</string> <string>notificationsPreferencePane</string> @@ -14779,7 +8692,6 @@ AQAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <string>SPAutoUpdatePreferencePane</string> <string>SPEditorPreferencePane</string> - <string>SPFavoritesPreferencePane</string> <string>SPGeneralPreferencePane</string> <string>SPNetworkPreferencePane</string> <string>SPNotificationsPreferencePane</string> @@ -14792,7 +8704,6 @@ AQAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <string>autoUpdatePreferencePane</string> <string>editorPreferencePane</string> - <string>favoritesPreferencePane</string> <string>generalPreferencePane</string> <string>networkPreferencePane</string> <string>notificationsPreferencePane</string> @@ -14809,10 +8720,6 @@ AQAAAAA</bytes> <string key="candidateClassName">SPEditorPreferencePane</string> </object> <object class="IBToOneOutletInfo"> - <string key="name">favoritesPreferencePane</string> - <string key="candidateClassName">SPFavoritesPreferencePane</string> - </object> - <object class="IBToOneOutletInfo"> <string key="name">generalPreferencePane</string> <string key="candidateClassName">SPGeneralPreferencePane</string> </object> @@ -14945,22 +8852,6 @@ AQAAAAA</bytes> </object> </object> <object class="IBPartialClassDescription"> - <string key="className">BWAnchoredPopUpButton</string> - <string key="superclassName">NSPopUpButton</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">BWToolkitFramework.framework/Headers/BWAnchoredPopUpButton.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">BWAnchoredPopUpButtonCell</string> - <string key="superclassName">NSPopUpButtonCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">BWToolkitFramework.framework/Headers/BWAnchoredPopUpButtonCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">NSActionCell</string> <string key="superclassName">NSCell</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -15391,6 +9282,27 @@ AQAAAAA</bytes> <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRRecorderCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRRecorderControl.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">ShortcutRecorder.framework/Headers/SRValidator.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> <string key="minorKey">Sparkle.framework/Headers/SUAppcast.h</string> </object> </object> @@ -15527,27 +9439,6 @@ AQAAAAA</bytes> </object> </object> <object class="IBPartialClassDescription"> - <string key="className">NSSecureTextField</string> - <string key="superclassName">NSTextField</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="429467250"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSSecureTextField.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSSecureTextFieldCell</string> - <string key="superclassName">NSTextFieldCell</string> - <reference key="sourceIdentifier" ref="429467250"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSSplitView</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSSplitView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">NSStepper</string> <string key="superclassName">NSControl</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -15564,22 +9455,6 @@ AQAAAAA</bytes> </object> </object> <object class="IBPartialClassDescription"> - <string key="className">NSTabView</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTabView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSTabViewItem</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTabViewItem.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">NSTableColumn</string> <string key="superclassName">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -15763,25 +9638,19 @@ AQAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> - <string>KeyTemplate</string> - <string>NSActionTemplate</string> <string>NSAdvanced</string> <string>NSMenuCheckmark</string> <string>NSMenuMixedState</string> <string>NSSwitch</string> - <string>button_add</string> <string>button_duplicate</string> <string>button_remove</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> - <string>{16, 8}</string> - <string>{15, 15}</string> <string>{32, 32}</string> <string>{9, 8}</string> <string>{7, 2}</string> <string>{15, 15}</string> - <string>{32, 23}</string> <string>{33, 23}</string> <string>{32, 23}</string> </object> diff --git a/Resources/English.lproj/ConnectionView.strings b/Resources/English.lproj/ConnectionView.strings Binary files differindex 1e1c2001..67d536e3 100644 --- a/Resources/English.lproj/ConnectionView.strings +++ b/Resources/English.lproj/ConnectionView.strings diff --git a/Resources/Images/plus.tiff b/Resources/Images/plus.tiff Binary files differnew file mode 100644 index 00000000..aa835013 --- /dev/null +++ b/Resources/Images/plus.tiff diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 63011789..f51cfc13 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -80,7 +80,7 @@ [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"PreferenceDefaults" ofType:@"plist"]]]; // Migrate old connection favorites to the app's support directory (only uncomment when ready) - //SPMigrateConnectionFavoritesData(); + SPMigrateConnectionFavoritesData(); } /** diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index 86167a91..2cd4d170 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -26,9 +26,15 @@ #import <MCPKit/MCPKit.h> #import "SPConnectionControllerDelegateProtocol.h" -#import "SPFavoritesOutlineView.h" -@class SPDatabaseDocument, SPKeychain, SPSSHTunnel, BWAnchoredButtonBar, SPFavoriteNode; +@class SPDatabaseDocument, + SPFavoritesController, + SPKeychain, + SPSSHTunnel, + SPTreeNode, + SPFavoriteNode, + SPFavoritesOutlineView, + BWAnchoredButtonBar; @interface NSObject (BWAnchoredButtonBar) @@ -36,28 +42,20 @@ @end -@interface SPFlippedView : NSView - -- (BOOL)isFlipped; - -@end - @interface SPConnectionController : NSObject { id <SPConnectionControllerDelegateProtocol> delegate; - SPDatabaseDocument *tableDocument; - NSView *databaseConnectionSuperview; - NSSplitView *databaseConnectionView; - SPKeychain *keychain; - NSUserDefaults *prefs; - NSMutableArray *favorites; + SPDatabaseDocument *dbDocument; SPSSHTunnel *sshTunnel; + SPKeychain *keychain; + MCPConnection *mySQLConnection; - BOOL automaticFavoriteSelection; - BOOL cancellingConnection; - BOOL isConnecting; + + NSView *databaseConnectionSuperview; + NSSplitView *databaseConnectionView; + // Standard details NSInteger previousType; NSInteger type; NSString *name; @@ -67,20 +65,23 @@ NSString *database; NSString *socket; NSString *port; - int useSSL; - int sslKeyFileLocationEnabled; + + // SSL details + NSInteger useSSL; + NSInteger sslKeyFileLocationEnabled; NSString *sslKeyFileLocation; - int sslCertificateFileLocationEnabled; + NSInteger sslCertificateFileLocationEnabled; NSString *sslCertificateFileLocation; - int sslCACertFileLocationEnabled; + NSInteger sslCACertFileLocationEnabled; NSString *sslCACertFileLocation; + + // SSH details NSString *sshHost; NSString *sshUser; NSString *sshPassword; - int sshKeyLocationEnabled; + NSInteger sshKeyLocationEnabled; NSString *sshKeyLocation; NSString *sshPort; - @private NSString *favoritesPBoardType; NSString *connectionKeychainItemName; NSString *connectionKeychainItemAccount; @@ -92,8 +93,9 @@ IBOutlet NSView *connectionView; IBOutlet NSSplitView *connectionSplitView; IBOutlet NSScrollView *connectionDetailsScrollView; + IBOutlet NSTextField *connectionInstructionsTextField; IBOutlet BWAnchoredButtonBar *connectionSplitViewButtonBar; - IBOutlet SPFavoritesOutlineView *favoritesTable; + IBOutlet SPFavoritesOutlineView *favoritesOutlineView; IBOutlet NSWindow *errorDetailWindow; IBOutlet NSTextView *errorDetailText; @@ -109,8 +111,14 @@ IBOutlet NSView *sslCertificateLocationHelp; IBOutlet NSView *sslCACertLocationHelp; + IBOutlet NSTextField *standardNameField; + IBOutlet NSTextField *sshNameField; + IBOutlet NSTextField *socketNameField; IBOutlet NSTextField *standardSQLHostField; IBOutlet NSTextField *sshSQLHostField; + IBOutlet NSTextField *standardUserField; + IBOutlet NSTextField *socketUserField; + IBOutlet NSTextField *sshUserField; IBOutlet NSSecureTextField *standardPasswordField; IBOutlet NSSecureTextField *socketPasswordField; IBOutlet NSSecureTextField *sshPasswordField; @@ -130,12 +138,20 @@ IBOutlet NSTextField *progressIndicatorText; IBOutlet NSMenuItem *favoritesSortByMenuItem; + BOOL isConnecting; + BOOL cancellingConnection; BOOL reverseFavoritesSort; BOOL mySQLConnectionCancelled; + BOOL automaticFavoriteSelection; + BOOL favoriteNameFieldWasTouched; - SPFavoritesSortItem previousSortItem, currentSortItem; + NSImage *folderImage; + NSUserDefaults *prefs; - SPFavoriteNode *favoritesRoot; + SPTreeNode *favoritesRoot; + SPFavoriteNode *currentFavorite; + SPFavoritesController *favoritesController; + SPFavoritesSortItem previousSortItem, currentSortItem; } @property (readwrite, assign) id <SPConnectionControllerDelegateProtocol> delegate; @@ -147,17 +163,17 @@ @property (readwrite, retain) NSString *database; @property (readwrite, retain) NSString *socket; @property (readwrite, retain) NSString *port; -@property (readwrite, assign) int useSSL; -@property (readwrite, assign) int sslKeyFileLocationEnabled; +@property (readwrite, assign) NSInteger useSSL; +@property (readwrite, assign) NSInteger sslKeyFileLocationEnabled; @property (readwrite, retain) NSString *sslKeyFileLocation; -@property (readwrite, assign) int sslCertificateFileLocationEnabled; +@property (readwrite, assign) NSInteger sslCertificateFileLocationEnabled; @property (readwrite, retain) NSString *sslCertificateFileLocation; -@property (readwrite, assign) int sslCACertFileLocationEnabled; +@property (readwrite, assign) NSInteger sslCACertFileLocationEnabled; @property (readwrite, retain) NSString *sslCACertFileLocation; @property (readwrite, retain) NSString *sshHost; @property (readwrite, retain) NSString *sshUser; @property (readwrite, retain) NSString *sshPassword; -@property (readwrite, assign) int sshKeyLocationEnabled; +@property (readwrite, assign) NSInteger sshKeyLocationEnabled; @property (readwrite, retain) NSString *sshKeyLocation; @property (readwrite, retain) NSString *sshPort; @@ -169,36 +185,38 @@ @property (readonly, assign) BOOL isConnecting; @property (readonly, assign) NSString *favoritesPBoardType; -- (id)initWithDocument:(SPDatabaseDocument *)theTableDocument; +- (id)initWithDocument:(SPDatabaseDocument *)document; // Connection processes - (IBAction)initiateConnection:(id)sender; - (IBAction)cancelMySQLConnection:(id)sender; -- (void)initiateSSHTunnelConnection; -- (void)sshTunnelCallback:(SPSSHTunnel *)theTunnel; -- (void)initiateMySQLConnection; -- (void)cancelConnection; -- (void)failConnectionWithTitle:(NSString *)theTitle errorMessage:(NSString *)theErrorMessage detail:(NSString *)errorDetail; -- (void)addConnectionToDocument; // Interface interaction +- (IBAction)nodeDoubleClicked:(id)sender; - (IBAction)chooseKeyLocation:(id)sender; -- (IBAction)editFavorites:(id)sender; - (IBAction)showHelp:(id)sender; - (IBAction)updateSSLInterface:(id)sender; -- (void)resizeTabViewToConnectionType:(NSUInteger)theType animating:(BOOL)animate; - (IBAction)sortFavorites:(id)sender; - (IBAction)reverseSortFavorites:(id)sender; -// Connection details interaction -- (BOOL)checkHost; +- (void)resizeTabViewToConnectionType:(NSUInteger)theType animating:(BOOL)animate; // Favorites interaction -- (void)updateFavorites; - (void)updateFavoriteSelection:(id)sender; -- (id)selectedFavorite; -- (IBAction)addFavorite:(id)sender; +- (NSMutableDictionary *)selectedFavorite; +- (SPTreeNode *)selectedFavoriteNode; +- (NSArray *)selectedFavoriteNodes; -- (void)scrollViewFrameChanged:(NSNotification *)aNotification; +- (IBAction)addFavorite:(id)sender; +- (IBAction)addFavoriteUsingCurrentDetails:(id)sender; +- (IBAction)addGroup:(id)sender; +- (IBAction)removeNode:(id)sender; +- (IBAction)duplicateFavorite:(id)sender; +- (IBAction)renameFavorite:(id)sender; +- (IBAction)makeSelectedFavoriteDefault:(id)sender; + +// Import/export favorites +- (IBAction)importFavorites:(id)sender; +- (IBAction)exportFavorites:(id)sender; @end diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index aaff9687..f7a09471 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -32,17 +32,32 @@ #import "SPAlertSheets.h" #import "SPKeychain.h" #import "SPSSHTunnel.h" -#import "SPFavoriteNode.h" #import "SPTableTextFieldCell.h" +#import "SPFavoritesController.h" +#import "SPFavoriteNode.h" + +// Constants +static const NSString *SPRemoveNode = @"RemoveNode"; +static const NSString *SPImportFavorites = @"ImportFavorites"; +static const NSString *SPExportFavorites = @"ExportFavorites"; +static const NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist"; @interface SPConnectionController (PrivateAPI) +- (BOOL)_checkHost; - (void)_sortFavorites; -- (void)_buildFavoritesTree; +- (void)_favoriteTypeDidChange; +- (void)_reloadFavoritesViewData; - (void)_restoreConnectionInterface; - (void)_mySQLConnectionEstablished; +- (void)_selectNode:(SPTreeNode *)node; - (void)_initiateMySQLConnectionInBackground; +- (NSNumber *)_createNewFavoriteID; +- (SPTreeNode *)_favoriteNodeForFavoriteID:(NSInteger)favoriteID; + +- (void)_updateFavoritePasswordsFromField:(NSControl *)control; + @end @implementation SPConnectionController @@ -83,124 +98,145 @@ * Initialise the connection controller, linking it to the * parent document and setting up the parent window. */ -- (id) initWithDocument:(SPDatabaseDocument *)theTableDocument +- (id)initWithDocument:(SPDatabaseDocument *)document { if (self = [super init]) { - tableDocument = theTableDocument; - databaseConnectionSuperview = [tableDocument databaseView]; - databaseConnectionView = [tableDocument valueForKey:@"contentViewSplitter"]; + + // Weak reference + dbDocument = document; + + databaseConnectionSuperview = [dbDocument databaseView]; + databaseConnectionView = [dbDocument valueForKey:@"contentViewSplitter"]; + + // Keychain references connectionKeychainItemName = nil; connectionKeychainItemAccount = nil; connectionSSHKeychainItemName = nil; connectionSSHKeychainItemAccount = nil; - mySQLConnection = nil; + sshTunnel = nil; - cancellingConnection = NO; + mySQLConnection = nil; isConnecting = NO; + cancellingConnection = NO; mySQLConnectionCancelled = NO; - favoritesPBoardType = @"FavoritesPBoardType"; - + + favoriteNameFieldWasTouched = YES; + // Load the connection nib, keeping references to the top-level objects for later release nibObjectsToRelease = [[NSMutableArray alloc] init]; NSArray *connectionViewTopLevelObjects = nil; NSNib *nibLoader = [[NSNib alloc] initWithNibNamed:@"ConnectionView" bundle:[NSBundle mainBundle]]; + [nibLoader instantiateNibWithOwner:self topLevelObjects:&connectionViewTopLevelObjects]; [nibObjectsToRelease addObjectsFromArray:connectionViewTopLevelObjects]; [nibLoader release]; - + // Hide the main view and position and display the connection view [databaseConnectionView setHidden:YES]; [connectionView setFrame:[databaseConnectionView frame]]; - [databaseConnectionSuperview addSubview:connectionView]; - [connectionSplitView setPosition:[[tableDocument valueForKey:@"dbTablesTableView"] frame].size.width-6 ofDividerAtIndex:0]; + [databaseConnectionSuperview addSubview:connectionView]; + [connectionSplitView setPosition:[[dbDocument valueForKey:@"dbTablesTableView"] frame].size.width-6 ofDividerAtIndex:0]; [connectionSplitViewButtonBar setSplitViewDelegate:self]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scrollViewFrameChanged:) name:NSViewFrameDidChangeNotification object:nil]; - + + // Generic folder image for use in the outline view's groups + folderImage = [[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericFolderIcon)] retain]; + + [folderImage setSize:NSMakeSize(16, 16)]; + // Set up a keychain instance and preferences reference, and create the initial favorites list keychain = [[SPKeychain alloc] init]; prefs = [[NSUserDefaults standardUserDefaults] retain]; - - favorites = nil; - - // Load favorites - [self updateFavorites]; - - // Expand the favorites heading - [favoritesTable expandItem:[[favoritesRoot nodeChildren] objectAtIndex:0]]; - - // Register an observer for changes within the favorites - [prefs addObserver:self forKeyPath:SPFavorites options:NSKeyValueObservingOptionNew context:NULL]; - - // Set sort items - currentSortItem = [prefs integerForKey:SPFavoritesSortedBy]; - reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse]; - - // Register double click for the favorites view (double click favorite to connect) - [favoritesTable setTarget:self]; - [favoritesTable registerForDraggedTypes:[NSArray arrayWithObject:favoritesPBoardType]]; - [favoritesTable setDraggingSourceOperationMask:NSDragOperationMove forLocal:YES]; - + + // Create a reference to the favorites controller, forcing the data to be loaded from disk and the + // tree constructor. + favoritesController = [SPFavoritesController sharedFavoritesController]; + + // Tree reference + favoritesRoot = [favoritesController favoritesTree]; + + // Update the UI + [self _reloadFavoritesViewData]; + + // Set sort items + currentSortItem = [prefs integerForKey:SPFavoritesSortedBy]; + reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse]; + + // Register double click action for the favorites outline view (double click favorite to connect) + [favoritesOutlineView setTarget:self]; + [favoritesOutlineView setDoubleAction:@selector(nodeDoubleClicked:)]; + [favoritesOutlineView registerForDraggedTypes:[NSArray arrayWithObject:SPFavoritesPasteboardDragType]]; + [favoritesOutlineView setDraggingSourceOperationMask:NSDragOperationMove forLocal:YES]; + + // Registered to be notified of changes to connection information + [self addObserver:self forKeyPath:SPFavoriteNameKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteHostKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteUserKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteDatabaseKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSocketKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoritePortKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteUseSSLKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSHHostKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSHUserKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSHPortKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSHKeyLocationEnabledKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSHKeyLocationKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLKeyFileLocationEnabledKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLKeyFileLocationKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLCertificateFileLocationEnabledKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLCertificateFileLocationKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLCACertFileLocationEnabledKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + [self addObserver:self forKeyPath:SPFavoriteSSLCACertFileLocationKey options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:NULL]; + // Sort the favourites to match prefs and select the appropriate row - if a valid sort option is selected - if (currentSortItem > -1) [self _sortFavorites]; - - NSInteger tableRow = [prefs integerForKey:[prefs boolForKey:SPSelectLastFavoriteUsed] ? SPLastFavoriteIndex : SPDefaultFavorite]; - - if (tableRow < [favorites count]) { - previousType = [[[favorites objectAtIndex:tableRow] objectForKey:SPFavoriteTypeKey] integerValue]; - [favoritesTable selectRowIndexes:[NSIndexSet indexSetWithIndex:(tableRow + 1)] byExtendingSelection:NO]; - [self resizeTabViewToConnectionType:[[[favorites objectAtIndex:tableRow] objectForKey:SPFavoriteTypeKey] integerValue] animating:NO]; - [favoritesTable scrollRowToVisible:[favoritesTable selectedRow]]; - } + // TODO: Fix me, sorting currently does not work in the new outline view + //if (currentSortItem > -1) [self _sortFavorites]; + + SPTreeNode *favorite = [self _favoriteNodeForFavoriteID:[prefs integerForKey:([prefs boolForKey:SPSelectLastFavoriteUsed]) ? SPLastFavoriteID : SPDefaultFavorite]]; + + if (favorite) { + + NSNumber *typeNumber = [[[favorite representedObject] nodeFavorite] objectForKey:SPFavoriteTypeKey]; + + previousType = (typeNumber) ? [typeNumber integerValue] : SPTCPIPConnection; + + [self _selectNode:favorite]; + + [self resizeTabViewToConnectionType:[[[[favorite representedObject] nodeFavorite] objectForKey:SPFavoriteTypeKey] integerValue] animating:NO]; + + [favoritesOutlineView scrollRowToVisible:[favoritesOutlineView selectedRow]]; + } else { previousType = SPTCPIPConnection; + [self resizeTabViewToConnectionType:SPTCPIPConnection animating:NO]; } } - + return self; } -- (void) dealloc -{ - [prefs removeObserver:self forKeyPath:SPFavorites]; - [[NSNotificationCenter defaultCenter] removeObserver:self]; - [keychain release]; - [prefs release]; - - for (id retainedObject in nibObjectsToRelease) [retainedObject release]; - [nibObjectsToRelease release]; - - if (favorites) [favorites release]; - if (mySQLConnection) [mySQLConnection release]; - if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], [sshTunnel disconnect], [sshTunnel release]; - if (connectionKeychainItemName) [connectionKeychainItemName release]; - if (connectionKeychainItemAccount) [connectionKeychainItemAccount release]; - if (connectionSSHKeychainItemName) [connectionSSHKeychainItemName release]; - if (connectionSSHKeychainItemAccount) [connectionSSHKeychainItemAccount release]; - - [super dealloc]; -} - #pragma mark - #pragma mark Connection processes -/* +/** * Starts the connection process; invoked when user hits the connect button * or double-clicks on a favourite. * Error-checks fields as required, and triggers connection of MySQL or any * connection proxies in use. */ - (IBAction)initiateConnection:(id)sender -{ +{ // Ensure that host is not empty if this is a TCP/IP or SSH connection if (([self type] == SPTCPIPConnection || [self type] == SPSSHTunnelConnection) && ![[self host] length]) { - SPBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter at least the hostname.", @"insufficient details informative message")); + SPBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter at least the hostname.", @"insufficient details informative message")); return; } - + // If SSH is enabled, ensure that the SSH host is not nil if ([self type] == SPSSHTunnelConnection && ![[self sshHost] length]) { - SPBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"insufficient SSH tunnel details informative message")); + SPBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"insufficient SSH tunnel details informative message")); return; } @@ -208,13 +244,13 @@ if ([self type] == SPSSHTunnelConnection && sshKeyLocationEnabled && sshKeyLocation) { if (![[NSFileManager defaultManager] fileExistsAtPath:[sshKeyLocation stringByExpandingTildeInPath]]) { [self setSshKeyLocationEnabled:NSOffState]; - SPBeginAlertSheet(NSLocalizedString(@"SSH Key not found", @"SSH key check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSH key location was specified, but no file was found in the specified location. Please re-select the key and try again.", @"SSH key not found message")); + SPBeginAlertSheet(NSLocalizedString(@"SSH Key not found", @"SSH key check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSH key location was specified, but no file was found in the specified location. Please re-select the key and try again.", @"SSH key not found message")); return; } } // Ensure that a socket connection is not inadvertently used - if (![self checkHost]) return; + if (![self _checkHost]) return; // If SSL keys have been supplied, verify they exist if (([self type] == SPTCPIPConnection || [self type] == SPSocketConnection) && [self useSSL]) { @@ -223,7 +259,7 @@ { [self setSslKeyFileLocationEnabled:NSOffState]; [self setSslKeyFileLocation:nil]; - SPBeginAlertSheet(NSLocalizedString(@"SSL Key File not found", @"SSL key file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL key file location was specified, but no file was found in the specified location. Please re-select the key file and try again.", @"SSL key file not found message")); + SPBeginAlertSheet(NSLocalizedString(@"SSL Key File not found", @"SSL key file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL key file location was specified, but no file was found in the specified location. Please re-select the key file and try again.", @"SSL key file not found message")); return; } if (sslCertificateFileLocationEnabled && sslCertificateFileLocation @@ -231,7 +267,7 @@ { [self setSslCertificateFileLocationEnabled:NSOffState]; [self setSslCertificateFileLocation:nil]; - SPBeginAlertSheet(NSLocalizedString(@"SSL Certificate File not found", @"SSL certificate file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL certificate location was specified, but no file was found in the specified location. Please re-select the certificate and try again.", @"SSL certificate file not found message")); + SPBeginAlertSheet(NSLocalizedString(@"SSL Certificate File not found", @"SSL certificate file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL certificate location was specified, but no file was found in the specified location. Please re-select the certificate and try again.", @"SSL certificate file not found message")); return; } if (sslCACertFileLocationEnabled && sslCACertFileLocation @@ -239,7 +275,7 @@ { [self setSslCACertFileLocationEnabled:NSOffState]; [self setSslCACertFileLocation:nil]; - SPBeginAlertSheet(NSLocalizedString(@"SSL Certificate Authority File not found", @"SSL certificate authority file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL Certificate Authority certificate location was specified, but no file was found in the specified location. Please re-select the Certificate Authority certificate and try again.", @"SSL CA certificate file not found message")); + SPBeginAlertSheet(NSLocalizedString(@"SSL Certificate Authority File not found", @"SSL certificate authority file check error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], self, nil, nil, NSLocalizedString(@"A SSL Certificate Authority certificate location was specified, but no file was found in the specified location. Please re-select the Certificate Authority certificate and try again.", @"SSL CA certificate file not found message")); return; } } @@ -247,7 +283,7 @@ // Basic details have validated - start the connection process animating isConnecting = YES; cancellingConnection = NO; - + [addToFavoritesButton setHidden:YES]; [addToFavoritesButton display]; [helpButton setHidden:YES]; @@ -258,9 +294,9 @@ [progressIndicator display]; [progressIndicatorText setHidden:NO]; [progressIndicatorText display]; - + // Start the current tab's progress indicator - [tableDocument setIsProcessing:YES]; + [dbDocument setIsProcessing:YES]; // If the password(s) are marked as having been originally sourced from a keychain, check whether they // have been changed or not; if not, leave the mark in place and remove the password from the field @@ -271,11 +307,13 @@ [[standardPasswordField undoManager] removeAllActionsWithTarget:standardPasswordField]; [[socketPasswordField undoManager] removeAllActionsWithTarget:socketPasswordField]; [[sshPasswordField undoManager] removeAllActionsWithTarget:sshPasswordField]; - } else { + } + else { [connectionKeychainItemName release], connectionKeychainItemName = nil; [connectionKeychainItemAccount release], connectionKeychainItemAccount = nil; } } + if (connectionSSHKeychainItemName) { if ([[keychain getPasswordForName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount] isEqualToString:[self sshPassword]]) { [self setSshPassword:[[NSString string] stringByPaddingToLength:[[self sshPassword] length] withString:@"sp" startingAtIndex:0]]; @@ -285,22 +323,22 @@ [connectionSSHKeychainItemAccount release], connectionSSHKeychainItemAccount = nil; } } - + // Inform the delegate that we are starting the connection process if (delegate && [delegate respondsToSelector:@selector(connectionControllerInitiatingConnection:)]) { [delegate connectionControllerInitiatingConnection:self]; } - + // Trim whitespace and newlines from the host field before attempting to connect [self setHost:[[self host] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]]; - + // Initiate the SSH connection process for tunnels if ([self type] == SPSSHTunnelConnection) { [self performSelector:@selector(initiateSSHTunnelConnection) withObject:nil afterDelay:0.0]; return; } - - // ...or start the MySQL connection process directly + + // ...or start the MySQL connection process directly [self performSelector:@selector(initiateMySQLConnection) withObject:nil afterDelay:0.0]; } @@ -314,229 +352,39 @@ - (IBAction)cancelMySQLConnection:(id)sender { [connectButton setEnabled:NO]; - + [progressIndicatorText setStringValue:NSLocalizedString(@"Cancelling...", @"cancelling task status message")]; [progressIndicatorText display]; - + mySQLConnectionCancelled = YES; } -/* - * Initiate the SSH connection process. - * This should only be called as part of initiateConnection:, and will indirectly - * call initiateMySQLConnection if it's successful. - */ -- (void)initiateSSHTunnelConnection -{ - [progressIndicatorText setStringValue:NSLocalizedString(@"SSH connecting...", @"SSH connecting very short status message")]; - [progressIndicatorText display]; - - // Trim whitespace and newlines from the SSH host field before attempting to connect - [self setSshHost:[[self sshHost] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]]; - - // Set up the tunnel details - sshTunnel = [[SPSSHTunnel alloc] initToHost:[self sshHost] port:[[self sshPort] integerValue] login:[self sshUser] tunnellingToPort:([[self port] length]?[[self port] integerValue]:3306) onHost:[self host]]; - [sshTunnel setParentWindow:[tableDocument parentWindow]]; - - // Add keychain or plaintext password as appropriate - note the checks in initiateConnection. - if (connectionSSHKeychainItemName) { - [sshTunnel setPasswordKeychainName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]; - } else if (sshPassword) { - [sshTunnel setPassword:[self sshPassword]]; - } - - // Set the public key path if appropriate - if (sshKeyLocationEnabled && sshKeyLocation) { - [sshTunnel setKeyFilePath:sshKeyLocation]; - } - - // Set the callback function on the tunnel - [sshTunnel setConnectionStateChangeSelector:@selector(sshTunnelCallback:) delegate:self]; - - // Ask the tunnel to connect. This will call the callback below on success or failure, passing - // itself as an argument - retain count should be one at this point. - [sshTunnel connect]; -} - -/* - * Cancel connection. - * Currently only cleans up the SSH connection (MySQL connection isn't threaded) - */ -- (void)cancelConnection -{ - if (!sshTunnel) return; - - cancellingConnection = YES; - - [sshTunnel disconnect]; - [sshTunnel release]; - - sshTunnel = nil; -} - -/* - * A callback function for the SSH Tunnel setup process - will be called on a connection - * state change, allowing connection to fail or proceed as appropriate. If successful, - * will call initiateMySQLConnection. - */ -- (void)sshTunnelCallback:(SPSSHTunnel *)theTunnel -{ - if (cancellingConnection) return; - NSInteger newState = [theTunnel state]; - - if (newState == PROXY_STATE_IDLE) { - [tableDocument setTitlebarStatus:NSLocalizedString(@"SSH Disconnected", @"SSH disconnected titlebar marker")]; - [self failConnectionWithTitle:NSLocalizedString(@"SSH connection failed!", @"SSH connection failed title") errorMessage:[theTunnel lastError] detail:[sshTunnel debugMessages]]; - } else if (newState == PROXY_STATE_CONNECTED) { - [tableDocument setTitlebarStatus:NSLocalizedString(@"SSH Connected", @"SSH connected titlebar marker")]; - [self initiateMySQLConnection]; - } else { - [tableDocument setTitlebarStatus:NSLocalizedString(@"SSH Connecting…", @"SSH connecting titlebar marker")]; - } -} - -/* - * Set up the MySQL connection, either through a successful tunnel or directly in the background. - */ -- (void)initiateMySQLConnection -{ - // Disable the favorites table view to prevent further connections attempts - [favoritesTable setEnabled:NO]; - - if (sshTunnel) - [progressIndicatorText setStringValue:NSLocalizedString(@"MySQL connecting...", @"MySQL connecting very short status message")]; - else - [progressIndicatorText setStringValue:NSLocalizedString(@"Connecting...", @"Generic connecting very short status message")]; - - [progressIndicatorText display]; - - [connectButton setTitle:NSLocalizedString(@"Cancel", @"cancel button")]; - [connectButton setAction:@selector(cancelMySQLConnection:)]; - [connectButton setEnabled:YES]; - [connectButton display]; - - [NSThread detachNewThreadSelector:@selector(_initiateMySQLConnectionInBackground) toTarget:self withObject:nil]; -} - -/* - * Ends a connection attempt by stopping the connection animation and - * displaying a specified error message. - */ -- (void)failConnectionWithTitle:(NSString *)theTitle errorMessage:(NSString *)theErrorMessage detail:(NSString *)errorDetail -{ - BOOL isSSHTunnelBindError = NO; - - // Clean up the interface - [progressIndicator stopAnimation:self]; - [progressIndicator display]; - [progressIndicatorText setHidden:YES]; - [progressIndicatorText display]; - [addToFavoritesButton setHidden:NO]; - [addToFavoritesButton display]; - [connectButton setEnabled:YES]; - [tableDocument clearStatusIcon]; - - // Release as appropriate - if (sshTunnel) { - [sshTunnel disconnect], [sshTunnel release], sshTunnel = nil; - - // If the SSH tunnel connection failed because the port it was trying to bind to was already in use take note - // of it so we can give the user the option of connecting via standard connection and use the existing tunnel. - if ([theErrorMessage rangeOfString:@"bind"].location != NSNotFound) { - isSSHTunnelBindError = YES; - } - } - - if (errorDetail) [errorDetailText setString:errorDetail]; - - // Inform the delegate that the connection attempt failed - if (delegate && [delegate respondsToSelector:@selector(connectionControllerConnectAttemptFailed:)]) { - [delegate connectionControllerConnectAttemptFailed:self]; - } - - // Only display the connection error message if there is a window visible and the connection attempt - // wasn't cancelled even though it failed. - if ([[tableDocument parentWindow] isVisible] && (!mySQLConnectionCancelled)) { - SPBeginAlertSheet(theTitle, NSLocalizedString(@"OK", @"OK button"), (errorDetail) ? NSLocalizedString(@"Show Detail", @"Show detail button") : nil, (isSSHTunnelBindError) ? NSLocalizedString(@"Use Standard Connection", @"use standard connection button") : nil, [tableDocument parentWindow], self, @selector(connectionFailureSheetDidEnd:returnCode:contextInfo:), @"connect", theErrorMessage); - } -} - -/** - * Alert sheet callback method - invoked when an error sheet is closed. - */ -- (void)connectionFailureSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo -{ - // Restore the passwords from keychain for editing if appropriate - if (connectionKeychainItemName) { - [self setPassword:[keychain getPasswordForName:connectionKeychainItemName account:connectionKeychainItemAccount]]; - } - if (connectionSSHKeychainItemName) { - [self setSshPassword:[keychain getPasswordForName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]]; - } - - if (returnCode == NSAlertAlternateReturn) { - [errorDetailText setFont:[NSFont userFontOfSize:12]]; - [errorDetailText setAlignment:NSLeftTextAlignment]; - [errorDetailWindow makeKeyAndOrderFront:self]; - } - // Currently only SSH port bind errors offer a 3rd option in the error dialog, but if this ever changes - // this will definitely need to be updated. - else if (returnCode == NSAlertOtherReturn) { - // Extract the local port number that SSH attempted to bind to from the debug output - NSString *tunnelPort = [[[errorDetailText string] componentsMatchedByRegex:@"LOCALHOST:([0-9]+)" capture:1L] lastObject]; - - // Change the connection type to standard TCP/IP - [self setType:SPTCPIPConnection]; - - // Change connection details - [self setPort:tunnelPort]; - [self setHost:@"127.0.0.1"]; - - // Change to standard TCP/IP connection view - [self resizeTabViewToConnectionType:SPTCPIPConnection animating:YES]; - - // Initiate the connection after half a second to give the connection view a chance to resize - [self performSelector:@selector(initiateConnection:) withObject:self afterDelay:0.5]; - } -} +#pragma mark - +#pragma mark Interface interaction /** - * Add the connection to the parent document and restore the - * interface, allowing the application to run as normal. + * Registered in initWithDocument: to be the double click action of the favorites outline view. */ -- (void)addConnectionToDocument +- (IBAction)nodeDoubleClicked:(id)sender { - // Hide the connection view and restore the main view - [connectionView removeFromSuperviewWithoutNeedingDisplay]; - [databaseConnectionView setHidden:NO]; - - // Restore the toolbar icons - NSArray *toolbarItems = [[[tableDocument parentWindow] toolbar] items]; - - for (NSInteger i = 0; i < [toolbarItems count]; i++) [[toolbarItems objectAtIndex:i] setEnabled:YES]; - - // Set keychain id for saving SPF files - if ([self valueForKeyPath:@"selectedFavorite.id"]) { - [tableDocument setKeychainID:[[self valueForKeyPath:@"selectedFavorite.id"] stringValue]]; + SPTreeNode *node = [self selectedFavoriteNode]; + + // Only proceed to initiate a connection if a leaf node (i.e. a favorite and not a group) was double clicked. + if (![node isGroup]) { + [self initiateConnection:self]; } + // Otherwise start editing the group item's name else { - [tableDocument setKeychainID:@""]; + [favoritesOutlineView editColumn:0 row:[favoritesOutlineView selectedRow] withEvent:nil select:YES]; } - - // Pass the connection to the table document, allowing it to set - // up the other classes and the rest of the interface. - [tableDocument setConnection:mySQLConnection]; } -#pragma mark - -#pragma mark Interface interaction - /** * Opens the SSH/SSL key selection window, ready to select a key file. */ - (IBAction)chooseKeyLocation:(id)sender { - [favoritesTable deselectAll:self]; + [favoritesOutlineView deselectAll:self]; NSString *directoryPath = nil; NSString *filePath = nil; NSArray *permittedFileTypes = nil; @@ -569,7 +417,7 @@ } permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"key", @"", nil]; [openPanel setAccessoryView:sslKeyFileLocationHelp]; - + // SSL certificate file location: } else if (sender == standardSSLCertificateButton || sender == socketSSLCertificateButton) { if ([sender state] == NSOffState) { @@ -578,7 +426,7 @@ } permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"cert", @"", nil]; [openPanel setAccessoryView:sslCertificateLocationHelp]; - + // SSL CA certificate file location: } else if (sender == standardSSLCACertButton || sender == socketSSLCACertButton) { if ([sender state] == NSOffState) { @@ -592,72 +440,14 @@ [openPanel beginSheetForDirectory:directoryPath file:filePath types:permittedFileTypes - modalForWindow:[tableDocument parentWindow] + modalForWindow:[dbDocument parentWindow] modalDelegate:self didEndSelector:@selector(chooseKeyLocationSheetDidEnd:returnCode:contextInfo:) contextInfo:sender]; } /** - * Called after closing the SSH/SSL key selection sheet. - */ -- (void)chooseKeyLocationSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo -{ - NSString *abbreviatedFileName = [[openPanel filename] stringByAbbreviatingWithTildeInPath]; - - // SSH key file selection - if (contextInfo == sshSSHKeyButton) { - if (returnCode == NSCancelButton) { - [self setSshKeyLocationEnabled:NSOffState]; - return; - } - [self setSshKeyLocation:abbreviatedFileName]; - - // SSL key file selection - } else if (contextInfo == standardSSLKeyFileButton || contextInfo == socketSSLKeyFileButton) { - if (returnCode == NSCancelButton) { - [self setSslKeyFileLocationEnabled:NSOffState]; - [self setSslKeyFileLocation:nil]; - return; - } - [self setSslKeyFileLocation:abbreviatedFileName]; - - // SSL certificate file selection - } else if (contextInfo == standardSSLCertificateButton || contextInfo == socketSSLCertificateButton) { - if (returnCode == NSCancelButton) { - [self setSslCertificateFileLocationEnabled:NSOffState]; - [self setSslCertificateFileLocation:nil]; - return; - } - [self setSslCertificateFileLocation:abbreviatedFileName]; - - // SSL CA certificate file selection - } else if (contextInfo == standardSSLCACertButton || contextInfo == socketSSLCACertButton) { - if (returnCode == NSCancelButton) { - [self setSslCACertFileLocationEnabled:NSOffState]; - [self setSslCACertFileLocation:nil]; - return; - } - [self setSslCACertFileLocation:abbreviatedFileName]; - } -} - -/** - * Opens the preferences window, or brings it to the front, and switch to the favorites tab. - * If a favorite is selected in the connection sheet, it is also select in the prefs window. - */ -- (IBAction)editFavorites:(id)sender -{ - SPPreferenceController *prefsController = [[NSApp delegate] preferenceController]; - - [prefsController showWindow:self]; - [prefsController displayFavoritePreferences:self]; - - if ([favoritesTable numberOfSelectedRows]) [[prefsController favoritesPreferencePane] selectFavorites:[NSArray arrayWithObject:[self valueForKeyPath:@"selectedFavorite"]]]; -} - -/** - * Show connection help. + * Show connection help webpage. */ - (IBAction)showHelp:(id)sender { @@ -676,83 +466,6 @@ #pragma mark Connection details interaction and display /** - * Trigger a resize action whenever the tab view changes. The connection - * detail forms are held within container views, which are of a fixed width; - * the tabview and buttons are contained within a resizable view which - * is set to dimensions based on the container views, allowing the view - * to be sized according to the detail type. - */ -- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem -{ - NSInteger selectedTabView = [tabView indexOfTabViewItem:tabViewItem]; - - // Deselect any selected favorite for manual changes - if (!automaticFavoriteSelection) [favoritesTable deselectAll:self]; - automaticFavoriteSelection = NO; - - if (selectedTabView == previousType) return; - - [self resizeTabViewToConnectionType:selectedTabView animating:YES]; - - // Update the host as appropriate - if ((selectedTabView != SPSocketConnection) && [[self host] isEqualToString:@"localhost"]) { - [self setHost:@""]; - } - - previousType = selectedTabView; -} - -/** - * As the scrollview resizes, keep the details centered within it if - * the detail frame is larger than the scrollview size; otherwise, pin - * the detail frame to the top of the scrollview. - */ -- (void)scrollViewFrameChanged:(NSNotification *)aNotification -{ - NSRect scrollViewFrame = [connectionDetailsScrollView frame]; - NSRect scrollDocumentFrame = [[connectionDetailsScrollView documentView] frame]; - NSRect connectionDetailsFrame = [connectionResizeContainer frame]; - - // Scroll view is smaller than contents - keep positioned at top. - if (scrollViewFrame.size.height < connectionDetailsFrame.size.height + 10) { - if (connectionDetailsFrame.origin.y != 0) { - connectionDetailsFrame.origin.y = 0; - [connectionResizeContainer setFrame:connectionDetailsFrame]; - scrollDocumentFrame.size.height = connectionDetailsFrame.size.height + 10; - [[connectionDetailsScrollView documentView] setFrame:scrollDocumentFrame]; - } - - // Otherwise, center. - } else { - connectionDetailsFrame.origin.y = (scrollViewFrame.size.height - connectionDetailsFrame.size.height)/3; - [connectionResizeContainer setFrame:connectionDetailsFrame]; - scrollDocumentFrame.size.height = scrollViewFrame.size.height; - [[connectionDetailsScrollView documentView] setFrame:scrollDocumentFrame]; - } -} - -/** - * When a favorite is selected, and the connection details are edited, deselect the favorite; - * this is clearer and also prevents a failed connection from being repopulated with the - * favorite's details instead of the last used details. - */ -- (void)controlTextDidChange:(NSNotification *)aNotification -{ - [favoritesTable deselectAll:self]; -} - -/** - * When a host field finishes editing, ensure that it hasn't been set to "localhost" - * to ensure that socket connections don't inadvertently occur. - */ -- (void)controlTextDidEndEditing:(NSNotification *)notification -{ - if ([notification object] == standardSQLHostField || [notification object] == sshSQLHostField) { - [self checkHost]; - } -} - -/** * Control tab view resizing based on the supplied connection type, * with an option defining whether it should be animated or not. */ @@ -775,49 +488,15 @@ case SPSSHTunnelConnection: targetResizeRect = [sshConnectionFormContainer frame]; break; - } + } frameRect.size.height = targetResizeRect.size.height + additionalFormHeight; if (animate) { [[connectionResizeContainer animator] setFrame:frameRect]; - } else { - [connectionResizeContainer setFrame:frameRect]; - } -} - -/** - * Check the host field and ensure it isn't set to "localhost" for - * non-socket connections. - */ -- (BOOL)checkHost -{ - if ([self type] != SPSocketConnection && [[self host] isEqualToString:@"localhost"]) { - SPBeginAlertSheet(NSLocalizedString(@"You have entered 'localhost' for a non-socket connection", @"title of error when using 'localhost' for a network connection"), - NSLocalizedString(@"Use 127.0.0.1", @"Use 127.0.0.1 button"), // Main button - NSLocalizedString(@"Connect via socket", @"Connect via socket button"), // Alternate button - nil, // Other button - [tableDocument parentWindow], // Window to attach to - self, // Modal delegate - @selector(localhostErrorSheetDidEnd:returnCode:contextInfo:), // Did end selector - nil, // Contextual info for selectors - NSLocalizedString(@"To MySQL, 'localhost' is a special host and means that a socket connection should be used.\n\nDid you mean to use a socket connection, or to connect to the local machine via a port? If you meant to connect via a port, '127.0.0.1' should be used instead of 'localhost'.", @"message of error when using 'localhost' for a network connection")); - return NO; - } - - return YES; -} - -/** - * Alert sheet callback method - invoked when the error sheet is closed. - */ -- (void)localhostErrorSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo -{ - if (returnCode == NSAlertAlternateReturn) { - [self setType:SPSocketConnection]; - [self setHost:@""]; - } else { - [self setHost:@"127.0.0.1"]; + } + else { + [connectionResizeContainer setFrame:frameRect]; } } @@ -828,17 +507,17 @@ * Sorts the favorites table view based on the selected sort by item. */ - (void)sortFavorites:(id)sender -{ +{ previousSortItem = currentSortItem; currentSortItem = [[sender menu] indexOfItem:sender]; - + [prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; - + // Perform sorting [self _sortFavorites]; - + if (previousSortItem > -1) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState]; - + [[[sender menu] itemAtIndex:currentSortItem] setState:NSOnState]; } @@ -848,36 +527,13 @@ - (void)reverseSortFavorites:(id)sender { reverseFavoritesSort = (![sender state]); - + [prefs setBool:reverseFavoritesSort forKey:SPFavoritesSortedInReverse]; - + // Perform re-sorting [self _sortFavorites]; - - [sender setState:reverseFavoritesSort]; -} - -/** - * Updates the local favorites array from the user defaults - */ -- (void)updateFavorites -{ - [favoritesTable deselectAll:self]; - - if (favorites) [favorites release]; - - if ([prefs objectForKey:SPFavorites]) { - favorites = [[NSMutableArray alloc] initWithArray:[prefs objectForKey:SPFavorites]]; - } - else { - favorites = [[NSMutableArray alloc] init]; - } - - [self _buildFavoritesTree]; - - [favoritesTable reloadData]; - - [favoritesTable expandItem:[[favoritesRoot nodeChildren] objectAtIndex:0]]; + + [sender setState:reverseFavoritesSort]; } /** @@ -885,9 +541,6 @@ */ - (void)updateFavoriteSelection:(id)sender { - // If nothing is selected, return without updating the interface - if (![self selectedFavorite]) return; - automaticFavoriteSelection = YES; // Clear the keychain referral items as appropriate @@ -895,10 +548,19 @@ if (connectionKeychainItemAccount) [connectionKeychainItemAccount release], connectionKeychainItemAccount = nil; if (connectionSSHKeychainItemName) [connectionSSHKeychainItemName release], connectionSSHKeychainItemName = nil; if (connectionSSHKeychainItemAccount) [connectionSSHKeychainItemAccount release], connectionSSHKeychainItemAccount = nil; - + + SPTreeNode *node = [self selectedFavoriteNode]; + // Update key-value properties from the selected favourite, using empty strings where not found - NSDictionary *fav = [self selectedFavorite]; - + NSDictionary *fav = [[node representedObject] nodeFavorite]; + + // Keep a copy of the favorite as it currently stands + if (currentFavorite) [currentFavorite release], currentFavorite = nil; + + currentFavorite = [[node representedObject] copy]; + + [connectionResizeContainer setHidden:NO]; + // Standard details [self setType:([fav objectForKey:SPFavoriteTypeKey] ? [[fav objectForKey:SPFavoriteTypeKey] integerValue] : SPTCPIPConnection)]; [self setName:([fav objectForKey:SPFavoriteNameKey] ? [fav objectForKey:SPFavoriteNameKey] : @"")]; @@ -907,7 +569,7 @@ [self setUser:([fav objectForKey:SPFavoriteUserKey] ? [fav objectForKey:SPFavoriteUserKey] : @"")]; [self setPort:([fav objectForKey:SPFavoritePortKey] ? [fav objectForKey:SPFavoritePortKey] : @"")]; [self setDatabase:([fav objectForKey:SPFavoriteDatabaseKey] ? [fav objectForKey:SPFavoriteDatabaseKey] : @"")]; - + // SSL details [self setUseSSL:([fav objectForKey:SPFavoriteUseSSLKey] ? [[fav objectForKey:SPFavoriteUseSSLKey] intValue] : NSOffState)]; [self setSslKeyFileLocationEnabled:([fav objectForKey:SPFavoriteSSLKeyFileLocationEnabledKey] ? [[fav objectForKey:SPFavoriteSSLKeyFileLocationEnabledKey] intValue] : NSOffState)]; @@ -916,89 +578,173 @@ [self setSslCertificateFileLocation:([fav objectForKey:SPFavoriteSSLCertificateFileLocationKey] ? [fav objectForKey:SPFavoriteSSLCertificateFileLocationKey] : @"")]; [self setSslCACertFileLocationEnabled:([fav objectForKey:SPFavoriteSSLCACertFileLocationEnabledKey] ? [[fav objectForKey:SPFavoriteSSLCACertFileLocationEnabledKey] intValue] : NSOffState)]; [self setSslCACertFileLocation:([fav objectForKey:SPFavoriteSSLCACertFileLocationKey] ? [fav objectForKey:SPFavoriteSSLCACertFileLocationKey] : @"")]; - + // SSH details [self setSshHost:([fav objectForKey:SPFavoriteSSHHostKey] ? [fav objectForKey:SPFavoriteSSHHostKey] : @"")]; [self setSshUser:([fav objectForKey:SPFavoriteSSHUserKey] ? [fav objectForKey:SPFavoriteSSHUserKey] : @"")]; [self setSshKeyLocationEnabled:([fav objectForKey:SPFavoriteSSHKeyLocationEnabledKey] ? [[fav objectForKey:SPFavoriteSSHKeyLocationEnabledKey] intValue] : NSOffState)]; [self setSshKeyLocation:([fav objectForKey:SPFavoriteSSHKeyLocationKey] ? [fav objectForKey:SPFavoriteSSHKeyLocationKey] : @"")]; [self setSshPort:([fav objectForKey:SPFavoriteSSHPortKey] ? [fav objectForKey:SPFavoriteSSHPortKey] : @"")]; - + // Trigger an interface update [self resizeTabViewToConnectionType:[self type] animating:YES]; - + // Check whether the password exists in the keychain, and if so add it; also record the // keychain details so we can pass around only those details if the password doesn't change connectionKeychainItemName = [[keychain nameForFavoriteName:[self valueForKeyPath:@"selectedFavorite.name"] id:[self valueForKeyPath:@"selectedFavorite.id"]] retain]; connectionKeychainItemAccount = [[keychain accountForUser:[self valueForKeyPath:@"selectedFavorite.user"] host:(([self type] == SPSocketConnection)?@"localhost":[self valueForKeyPath:@"selectedFavorite.host"]) database:[self valueForKeyPath:@"selectedFavorite.database"]] retain]; - + [self setPassword:[keychain getPasswordForName:connectionKeychainItemName account:connectionKeychainItemAccount]]; - + if (![[self password] length]) { [self setPassword:nil]; [connectionKeychainItemName release], connectionKeychainItemName = nil; [connectionKeychainItemAccount release], connectionKeychainItemAccount = nil; } - + // And the same for the SSH password connectionSSHKeychainItemName = [[keychain nameForSSHForFavoriteName:[self valueForKeyPath:@"selectedFavorite.name"] id:[self valueForKeyPath:@"selectedFavorite.id"]] retain]; connectionSSHKeychainItemAccount = [[keychain accountForSSHUser:[self valueForKeyPath:@"selectedFavorite.sshUser"] sshHost:[self valueForKeyPath:@"selectedFavorite.sshHost"]] retain]; - + [self setSshPassword:[keychain getPasswordForName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]]; - + if (![[self sshPassword] length]) { [self setSshPassword:nil]; [connectionSSHKeychainItemName release], connectionSSHKeychainItemName = nil; [connectionSSHKeychainItemAccount release], connectionSSHKeychainItemAccount = nil; } - - [prefs setInteger:([favoritesTable selectedRow] - 1) forKey:SPLastFavoriteIndex]; - - // Set next KeyView to password field if it is empty - switch ([self type]) + + [prefs setInteger:([favoritesOutlineView selectedRow] - 1) forKey:SPLastFavoriteID]; + + // Set first responder to password field if it is empty + switch ([self type]) { case SPTCPIPConnection: - if (![[standardPasswordField stringValue] length]) [favoritesTable setNextKeyView:standardPasswordField]; + if (![[standardPasswordField stringValue] length]) [[dbDocument parentWindow] makeFirstResponder:standardPasswordField]; break; case SPSocketConnection: - if (![[socketPasswordField stringValue] length]) [favoritesTable setNextKeyView:socketPasswordField]; + if (![[socketPasswordField stringValue] length]) [[dbDocument parentWindow] makeFirstResponder:socketPasswordField]; break; case SPSSHTunnelConnection: - if (![[sshPasswordField stringValue] length]) [favoritesTable setNextKeyView:sshPasswordField]; + if (![[sshPasswordField stringValue] length]) [[dbDocument parentWindow] makeFirstResponder:sshPasswordField]; break; } } /** - * Returns a KVC-compliant proxy to the currently selected favorite, or nil if nothing selected. + * Returns the selected favorite data dictionary or nil if nothing is selected. + */ +- (NSMutableDictionary *)selectedFavorite +{ + SPTreeNode *node = [self selectedFavoriteNode]; + + return (![node isGroup]) ? [[node representedObject] nodeFavorite] : nil; +} + +/** + * Returns the selected favorite node or nil if nothing is selected. */ -- (id)selectedFavorite +- (SPTreeNode *)selectedFavoriteNode { - if ([favoritesTable selectedRow] == -1) return nil; + NSArray *nodes = [self selectedFavoriteNodes]; + + return ([nodes count]) ? (SPTreeNode *)[[self selectedFavoriteNodes] objectAtIndex:0] : nil; +} - return [favorites objectAtIndex:([favoritesTable selectedRow] - 1)]; +/** + * Returns an array of selected favorite nodes. + */ +- (NSArray *)selectedFavoriteNodes +{ + NSMutableArray *nodes = [NSMutableArray array]; + NSIndexSet *indexes = [favoritesOutlineView selectedRowIndexes]; + + NSUInteger currentIndex = [indexes firstIndex]; + + while (currentIndex != NSNotFound) + { + [nodes addObject:[favoritesOutlineView itemAtRow:currentIndex]]; + + currentIndex = [indexes indexGreaterThanIndex:currentIndex]; + } + + return nodes; } /** - * Adds the current details as a new favorite, select it, and scroll the selected - * row to visible. + * Adds a new connection favorite. */ - (IBAction)addFavorite:(id)sender { - NSString *thePassword, *theSSHPassword; - NSNumber *favoriteid = [NSNumber numberWithInteger:[[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; - NSString *favoriteName = [[self name] length] ? [self name]:[NSString stringWithFormat:@"%@@%@", ([self user] && [[self user] length])?[self user] : @"anonymous", (([self type] == SPSocketConnection) ? @"localhost" : [self host])]; + NSNumber *favoriteID = [self _createNewFavoriteID]; + + NSArray *objects = [NSArray arrayWithObjects:NSLocalizedString(@"New Favorite", @"new favorite name"), + [NSNumber numberWithInteger:0], @"", @"", @"", @"", + [NSNumber numberWithInt:NSOffState], + [NSNumber numberWithInt:NSOffState], + [NSNumber numberWithInt:NSOffState], + [NSNumber numberWithInt:NSOffState], @"", @"", @"", + [NSNumber numberWithInt:NSOffState], @"", @"", favoriteID, nil]; + + NSArray *keys = [NSArray arrayWithObjects: + SPFavoriteNameKey, + SPFavoriteTypeKey, + SPFavoriteHostKey, + SPFavoriteSocketKey, + SPFavoriteUserKey, + SPFavoritePortKey, + SPFavoriteUseSSLKey, + SPFavoriteSSLKeyFileLocationEnabledKey, + SPFavoriteSSLCertificateFileLocationEnabledKey, + SPFavoriteSSLCACertFileLocationEnabledKey, + SPFavoriteDatabaseKey, + SPFavoriteSSHHostKey, + SPFavoriteSSHUserKey, + SPFavoriteSSHKeyLocationEnabledKey, + SPFavoriteSSHKeyLocationKey, + SPFavoriteSSHPortKey, + SPFavoriteIDKey, + nil]; + + // Create default favorite + NSMutableDictionary *favorite = [NSMutableDictionary dictionaryWithObjects:objects forKeys:keys]; + + SPTreeNode *selectedNode = [self selectedFavoriteNode]; + + SPTreeNode *parent = ([selectedNode isGroup]) ? selectedNode : [selectedNode parentNode]; + + SPTreeNode *node = [favoritesController addFavoriteNodeWithData:favorite asChildOfNode:parent]; + + [self _reloadFavoritesViewData]; + [self _selectNode:node]; + + [[[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; + + favoriteNameFieldWasTouched = NO; + + [favoritesOutlineView editColumn:0 row:[favoritesOutlineView selectedRow] withEvent:nil select:YES]; +} +/** + * Adds the current details as a new connection favorite, selects it, and scrolls the selected + * row to be visible. + */ +- (IBAction)addFavoriteUsingCurrentDetails:(id)sender +{ + NSString *thePassword, *theSSHPassword; + NSNumber *favoriteid = [self _createNewFavoriteID]; + NSString *favoriteName = [[self name] length] ? [self name] : [NSString stringWithFormat:@"%@@%@", ([self user] && [[self user] length])?[self user] : @"anonymous", (([self type] == SPSocketConnection) ? @"localhost" : [self host])]; + if (![[self name] length] && [self database] && ![[self database] isEqualToString:@""]) { favoriteName = [NSString stringWithFormat:@"%@ %@", [self database], favoriteName]; } - + // Ensure that host is not empty if this is a TCP/IP or SSH connection if (([self type] == SPTCPIPConnection || [self type] == SPSSHTunnelConnection) && ![[self host] length]) { NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Insufficient details provided to establish a connection. Please provide at least a host.", @"insufficient details informative message"), NSLocalizedString(@"OK", @"OK button"), nil, nil); return; } - + // If SSH is enabled, ensure that the SSH host is not nil if ([self type] == SPSSHTunnelConnection && ![[self sshHost] length]) { NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"message of panel when ssh details are incomplete"), NSLocalizedString(@"OK", @"OK button"), nil, nil); @@ -1006,22 +752,22 @@ } // Ensure that a socket connection is not inadvertently used - if (![self checkHost]) return; - + if (![self _checkHost]) return; + // Construct the favorite details - cannot use only dictionaryWithObjectsAndKeys for possible nil values. NSMutableDictionary *newFavorite = [NSMutableDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInteger:[self type]], SPFavoriteTypeKey, favoriteName, SPFavoriteNameKey, favoriteid, SPFavoriteIDKey, nil]; - + // Standard details if ([self host]) [newFavorite setObject:[self host] forKey:SPFavoriteHostKey]; if ([self socket]) [newFavorite setObject:[self socket] forKey:SPFavoriteSocketKey]; if ([self user]) [newFavorite setObject:[self user] forKey:SPFavoriteUserKey]; if ([self port]) [newFavorite setObject:[self port] forKey:SPFavoritePortKey]; if ([self database]) [newFavorite setObject:[self database] forKey:SPFavoriteDatabaseKey]; - + // SSL details if ([self useSSL]) [newFavorite setObject:[NSNumber numberWithInt:[self useSSL]] forKey:SPFavoriteUseSSLKey]; [newFavorite setObject:[NSNumber numberWithInt:[self sslKeyFileLocationEnabled]] forKey:SPFavoriteSSLKeyFileLocationEnabledKey]; @@ -1030,7 +776,7 @@ if ([self sslCertificateFileLocation]) [newFavorite setObject:[self sslCertificateFileLocation] forKey:SPFavoriteSSLCertificateFileLocationKey]; [newFavorite setObject:[NSNumber numberWithInt:[self sslCACertFileLocationEnabled]] forKey:SPFavoriteSSLCACertFileLocationEnabledKey]; if ([self sslCACertFileLocation]) [newFavorite setObject:[self sslCACertFileLocation] forKey:SPFavoriteSSLCACertFileLocationKey]; - + // SSH details if ([self sshHost]) [newFavorite setObject:[self sshHost] forKey:SPFavoriteSSHHostKey]; if ([self sshUser]) [newFavorite setObject:[self sshUser] forKey:SPFavoriteSSHUserKey]; @@ -1038,22 +784,13 @@ [newFavorite setObject:[NSNumber numberWithInt:[self sshKeyLocationEnabled]] forKey:SPFavoriteSSHKeyLocationEnabledKey]; if ([self sshKeyLocation]) [newFavorite setObject:[self sshKeyLocation] forKey:SPFavoriteSSHKeyLocationKey]; - // Add the new favorite to the user defaults array - NSMutableArray *currentFavorites = ([prefs objectForKey:SPFavorites]) ? [[NSMutableArray alloc] initWithArray:[prefs objectForKey:SPFavorites]] : [[NSMutableArray alloc] init]; - - [currentFavorites addObject:newFavorite]; - - [prefs setObject:[NSArray arrayWithArray:currentFavorites] forKey:SPFavorites]; - - [currentFavorites release]; - // Add the password to keychain as appropriate thePassword = [self password]; - + if (mySQLConnection && connectionKeychainItemName) { thePassword = [keychain getPasswordForName:connectionKeychainItemName account:connectionKeychainItemAccount]; } - + if (thePassword && (![thePassword isEqualToString:@""])) { [keychain addPassword:thePassword forName:[keychain nameForFavoriteName:favoriteName id:[NSString stringWithFormat:@"%lld", [favoriteid longLongValue]]] @@ -1062,71 +799,375 @@ // Add the SSH password to keychain as appropriate theSSHPassword = [self sshPassword]; - + if (mySQLConnection && connectionSSHKeychainItemName) { theSSHPassword = [keychain getPasswordForName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]; } - + if (theSSHPassword && (![theSSHPassword isEqualToString:@""])) { [keychain addPassword:theSSHPassword forName:[keychain nameForSSHForFavoriteName:favoriteName id:[NSString stringWithFormat:@"%lld", [favoriteid longLongValue]]] account:[keychain accountForSSHUser:[self sshUser] sshHost:[self sshHost]]]; } - - // Update the favorites list and selection - [self updateFavorites]; - - [favoritesTable selectRowIndexes:[NSIndexSet indexSetWithIndex:[favorites count]-1] byExtendingSelection:NO]; - [favoritesTable scrollRowToVisible:[favoritesTable selectedRow]]; + + SPTreeNode *node = [favoritesController addFavoriteNodeWithData:newFavorite asChildOfNode:nil]; + + [self _reloadFavoritesViewData]; + [self _selectNode:node]; // Update the favorites popup button in the preferences [[[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; } /** - * If the favorites list in the preferences change, trigger a reload of - * the favorites table data. + * Adds a new group node to the favorites tree with a default name. Once added it is selected for editing. */ -- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +- (IBAction)addGroup:(id)sender { - if ([keyPath isEqualToString:SPFavorites]) { - [self updateFavorites]; + SPTreeNode *selectedNode = [self selectedFavoriteNode]; + + SPTreeNode *parent = ([selectedNode isGroup]) ? selectedNode : [selectedNode parentNode]; + + SPTreeNode *node = [favoritesController addGroupNodeWithName:NSLocalizedString(@"New Folder", @"new folder placeholder name") asChildOfNode:parent]; + + [self _reloadFavoritesViewData]; + [self _selectNode:node]; + + [favoritesOutlineView editColumn:0 row:[favoritesOutlineView selectedRow] withEvent:nil select:YES]; +} + +/** + * Removes the selected node. + */ +- (IBAction)removeNode:(id)sender +{ + if ([favoritesOutlineView numberOfSelectedRows] == 1) { + + SPTreeNode *node = [self selectedFavoriteNode]; + + NSString *message = @""; + NSString *informativeMessage = @""; + + if (![node isGroup]) { + message = [NSString stringWithFormat:NSLocalizedString(@"Delete favorite '%@'?", @"delete database message"), [[[node representedObject] nodeFavorite] objectForKey:SPFavoriteNameKey]]; + informativeMessage = [NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the favorite '%@'? This operation cannot be undone.", @"delete database informative message"), [[[node representedObject] nodeFavorite] objectForKey:SPFavoriteNameKey]]; + } + else { + message = [NSString stringWithFormat:NSLocalizedString(@"Delete group '%@'?", @"delete database message"), [[node representedObject] nodeName]]; + informativeMessage = [NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the group '%@'? All favorites within this group will also be deleted. This operation cannot be undone.", @"delete database informative message"), [[node representedObject] nodeName]]; + } + + NSAlert *alert = [NSAlert alertWithMessageText:message + defaultButton:NSLocalizedString(@"Delete", @"delete button") + alternateButton:NSLocalizedString(@"Cancel", @"cancel button") + otherButton:nil + informativeTextWithFormat:informativeMessage]; + + NSArray *buttons = [alert buttons]; + + // Change the alert's cancel button to have the key equivalent of return + [[buttons objectAtIndex:0] setKeyEquivalent:@"d"]; + [[buttons objectAtIndex:0] setKeyEquivalentModifierMask:NSCommandKeyMask]; + [[buttons objectAtIndex:1] setKeyEquivalent:@"\r"]; + + [alert setAlertStyle:NSCriticalAlertStyle]; + + [alert beginSheetModalForWindow:[dbDocument parentWindow] + modalDelegate:self + didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) + contextInfo:SPRemoveNode]; + } +} + +/** + * Duplicates the selected connection favorite. + */ +- (IBAction)duplicateFavorite:(id)sender +{ + if ([favoritesOutlineView numberOfSelectedRows] == 1) { + + NSMutableDictionary *favorite = [NSMutableDictionary dictionaryWithDictionary:[self selectedFavorite]]; + + NSNumber *favoriteID = [self _createNewFavoriteID]; + + NSInteger duplicatedFavoriteType = [[favorite objectForKey:SPFavoriteTypeKey] integerValue]; + + // Update the unique ID + [favorite setObject:favoriteID forKey:SPFavoriteIDKey]; + + // Alter the name for clarity + [favorite setObject:[NSString stringWithFormat:NSLocalizedString(@"%@ Copy", @"Initial favourite name after duplicating a previous favourite"), [favorite objectForKey:SPFavoriteNameKey]] forKey:SPFavoriteNameKey]; + + // Create new keychain items if appropriate + if (password && [password length]) { + NSString *keychainName = [keychain nameForFavoriteName:[favorite objectForKey:SPFavoriteNameKey] id:[favorite objectForKey:SPFavoriteIDKey]]; + NSString *keychainAccount = [keychain accountForUser:[favorite objectForKey:SPFavoriteUserKey] host:((duplicatedFavoriteType == SPSocketConnection) ? @"localhost" : [favorite objectForKey:SPFavoriteHostKey]) database:[favorite objectForKey:SPFavoriteDatabaseKey]]; + NSString *favoritePassword = [keychain getPasswordForName:keychainName account:keychainAccount]; + + keychainName = [keychain nameForFavoriteName:[favorite objectForKey:SPFavoriteNameKey] id:[favorite objectForKey:SPFavoriteIDKey]]; + + [keychain addPassword:favoritePassword forName:keychainName account:keychainAccount]; + + favoritePassword = nil; + } + + if (sshPassword && [sshPassword length]) { + NSString *keychainSSHName = [keychain nameForSSHForFavoriteName:[favorite objectForKey:SPFavoriteNameKey] id:[favorite objectForKey:SPFavoriteIDKey]]; + NSString *keychainSSHAccount = [keychain accountForSSHUser:[favorite objectForKey:SPFavoriteSSHUserKey] sshHost:[favorite objectForKey:SPFavoriteSSHHostKey]]; + NSString *favoriteSSHPassword = [keychain getPasswordForName:keychainSSHName account:keychainSSHAccount]; + + keychainSSHName = [keychain nameForSSHForFavoriteName:[favorite objectForKey:SPFavoriteNameKey] id:[favorite objectForKey:SPFavoriteIDKey]]; + + [keychain addPassword:favoriteSSHPassword forName:keychainSSHName account:keychainSSHAccount]; + + favoriteSSHPassword = nil; + } + + SPTreeNode *selectedNode = [self selectedFavoriteNode]; + + SPTreeNode *parent = ([selectedNode isGroup]) ? selectedNode : [selectedNode parentNode]; + + SPTreeNode *node = [favoritesController addFavoriteNodeWithData:favorite asChildOfNode:parent]; + + [self _reloadFavoritesViewData]; + [self _selectNode:node]; + + [[(SPPreferenceController *)[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; } } +/** + * Switches the selected favorite/group to editing mode so it can be renamed. + */ +- (IBAction)renameFavorite:(id)sender +{ + if ([favoritesOutlineView numberOfSelectedRows] == 1) { + [favoritesOutlineView editColumn:0 row:[favoritesOutlineView selectedRow] withEvent:nil select:YES]; + } +} + +/** + * Marks the selected favorite as the default. + */ +- (IBAction)makeSelectedFavoriteDefault:(id)sender +{ + NSInteger favoriteID = [[[self selectedFavorite] objectForKey:SPFavoriteIDKey] integerValue]; + + [prefs setInteger:favoriteID forKey:SPDefaultFavorite]; +} + #pragma mark - -#pragma mark Menu Validation +#pragma mark Import/export favorites --(BOOL)validateMenuItem:(NSMenuItem *)menuItem +/** + * Displays an open panel, allowing the user to import their favorites. + */ +- (IBAction)importFavorites:(id)sender { - SEL action = [menuItem action]; - if ((action == @selector(sortFavorites:)) || (action == @selector(reverseSortFavorites:))) { + NSOpenPanel *openPanel = [NSOpenPanel openPanel]; + + [openPanel beginSheetForDirectory:nil + file:nil + types:nil + modalForWindow:[dbDocument parentWindow] + modalDelegate:self + didEndSelector:@selector(importExportFavoritesSheetDidEnd:returnCode:contextInfo:) + contextInfo:SPImportFavorites]; +} - // Loop all the items in the sort by menu only checking the currently selected one - for (NSMenuItem *item in [[menuItem menu] itemArray]) - { - [item setState:([[menuItem menu] indexOfItem:item] == currentSortItem) ? NSOnState : NSOffState]; +/** + * Displays a save panel, allowing the user to export their favorites. + */ +- (IBAction)exportFavorites:(id)sender +{ + NSSavePanel *savePanel = [NSSavePanel savePanel]; + + [savePanel beginSheetForDirectory:nil + file:SPExportFavoritesFilename + modalForWindow:[dbDocument parentWindow] + modalDelegate:self + didEndSelector:@selector(importExportFavoritesSheetDidEnd:returnCode:contextInfo:) + contextInfo:SPExportFavorites]; +} + +#pragma mark - +#pragma mark Key Value Observing + +/** + * This method is called as part of Key Value Observing. + */ +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + id oldObject = [change objectForKey:NSKeyValueChangeOldKey]; + id newObject = [change objectForKey:NSKeyValueChangeNewKey]; + + if (oldObject != newObject) { + NSMutableDictionary *favorite = [self selectedFavorite]; + + [favorite setObject:(newObject) ? newObject : @"" forKey:keyPath]; + + // Save the new data to disk + [favoritesController saveFavorites]; + + [self _reloadFavoritesViewData]; + } +} + +#pragma mark - +#pragma mark Sheet methods + +/** + * Called when the user dismisses the remove node sheet. + */ +- (void)sheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo +{ + // Remove the current favorite/group + if ([contextInfo isEqualToString:SPRemoveNode]) { + if (returnCode == NSAlertDefaultReturn) { + + SPTreeNode *node = [self selectedFavoriteNode]; + + if (![node isGroup]) { + NSDictionary *favorite = [[node representedObject] nodeFavorite]; + + // Get selected favorite's details + NSString *favoriteName = [favorite objectForKey:SPFavoriteNameKey]; + NSString *favoriteUser = [favorite objectForKey:SPFavoriteUserKey]; + NSString *favoriteHost = [favorite objectForKey:SPFavoriteHostKey]; + NSString *favoriteDatabase = [favorite objectForKey:SPFavoriteDatabaseKey]; + NSString *favoriteSSHUser = [favorite objectForKey:SPFavoriteSSHUserKey]; + NSString *favoriteSSHHost = [favorite objectForKey:SPFavoriteSSHHostKey]; + NSString *favoriteID = [favorite objectForKey:SPFavoriteIDKey]; + + NSInteger favoriteType = [[favorite objectForKey:SPFavoriteTypeKey] integerValue]; + + // Remove passwords from the Keychain + [keychain deletePasswordForName:[keychain nameForFavoriteName:favoriteName id:favoriteID] + account:[keychain accountForUser:favoriteUser host:((type == SPSocketConnection) ? @"localhost" : favoriteHost) database:favoriteDatabase]]; + [keychain deletePasswordForName:[keychain nameForSSHForFavoriteName:favoriteName id:favoriteID] + account:[keychain accountForSSHUser:favoriteSSHUser sshHost:favoriteSSHHost]]; + + // Reset last used favorite + if ([[favorite objectForKey:SPFavoriteIDKey] integerValue] == [prefs integerForKey:SPLastFavoriteID]) { + [prefs setInteger:0 forKey:SPLastFavoriteID]; + } + + // Reset default favorite + if ([[favorite objectForKey:SPFavoriteIDKey] integerValue] == [prefs integerForKey:SPDefaultFavorite]) { + [prefs setInteger:[prefs integerForKey:SPLastFavoriteID] forKey:SPDefaultFavorite]; + } + } + + [favoritesController removeFavoriteNode:node]; + + [self _reloadFavoritesViewData]; + + [[(SPPreferenceController *)[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; } + } +} - // Check or uncheck the reverse sort item - if (action == @selector(reverseSortFavorites:)) { - [menuItem setState:reverseFavoritesSort]; +/** + * Called after closing the SSH/SSL key selection sheet. + */ +- (void)chooseKeyLocationSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo +{ + NSString *abbreviatedFileName = [[openPanel filename] stringByAbbreviatingWithTildeInPath]; + + // SSH key file selection + if (contextInfo == sshSSHKeyButton) { + if (returnCode == NSCancelButton) { + [self setSshKeyLocationEnabled:NSOffState]; + return; + } + + [self setSshKeyLocation:abbreviatedFileName]; + } + // SSL key file selection + else if (contextInfo == standardSSLKeyFileButton || contextInfo == socketSSLKeyFileButton) { + if (returnCode == NSCancelButton) { + [self setSslKeyFileLocationEnabled:NSOffState]; + [self setSslKeyFileLocation:nil]; + return; + } + + [self setSslKeyFileLocation:abbreviatedFileName]; + } + // SSL certificate file selection + else if (contextInfo == standardSSLCertificateButton || contextInfo == socketSSLCertificateButton) { + if (returnCode == NSCancelButton) { + [self setSslCertificateFileLocationEnabled:NSOffState]; + [self setSslCertificateFileLocation:nil]; + return; + } + + [self setSslCertificateFileLocation:abbreviatedFileName]; + } + // SSL CA certificate file selection + else if (contextInfo == standardSSLCACertButton || contextInfo == socketSSLCACertButton) { + if (returnCode == NSCancelButton) { + [self setSslCACertFileLocationEnabled:NSOffState]; + [self setSslCACertFileLocation:nil]; + return; } - } - return YES; + + [self setSslCACertFileLocation:abbreviatedFileName]; + } +} +/** + * Called when the user dismisses either the import of export favorites panels. + */ +- (void)importExportFavoritesSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo +{ + +} + +/** + * Alert sheet callback method - invoked when the error sheet is closed. + */ +- (void)localhostErrorSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo +{ + if (returnCode == NSAlertAlternateReturn) { + [self setType:SPSocketConnection]; + [self setHost:@""]; + } + else { + [self setHost:@"127.0.0.1"]; + } } #pragma mark - #pragma mark Private API /** + * Check the host field and ensure it isn't set to 'localhost' for non-socket connections. + */ +- (BOOL)_checkHost +{ + if ([self type] != SPSocketConnection && [[self host] isEqualToString:@"localhost"]) { + SPBeginAlertSheet(NSLocalizedString(@"You have entered 'localhost' for a non-socket connection", @"title of error when using 'localhost' for a network connection"), + NSLocalizedString(@"Use 127.0.0.1", @"Use 127.0.0.1 button"), // Main button + NSLocalizedString(@"Connect via socket", @"Connect via socket button"), // Alternate button + nil, // Other button + [dbDocument parentWindow], // Window to attach to + self, // Modal delegate + @selector(localhostErrorSheetDidEnd:returnCode:contextInfo:), // Did end selector + nil, // Contextual info for selectors + NSLocalizedString(@"To MySQL, 'localhost' is a special host and means that a socket connection should be used.\n\nDid you mean to use a socket connection, or to connect to the local machine via a port? If you meant to connect via a port, '127.0.0.1' should be used instead of 'localhost'.", @"message of error when using 'localhost' for a network connection")); + return NO; + } + + return YES; +} + +/** * Sorts the connection favorites based on the selected criteria. */ - (void)_sortFavorites { NSString *sortKey = SPFavoriteNameKey; - + switch (currentSortItem) { case SPFavoritesSortNameItem: @@ -1139,61 +1180,57 @@ sortKey = SPFavoriteTypeKey; break; } - + NSSortDescriptor *sortDescriptor = nil; - + if (currentSortItem == SPFavoritesSortTypeItem) { sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:sortKey ascending:(!reverseFavoritesSort)] autorelease]; } else { sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:sortKey ascending:(!reverseFavoritesSort) selector:@selector(caseInsensitiveCompare:)] autorelease]; } - - NSDictionary *first = [[favorites objectAtIndex:0] retain]; - - [favorites removeObjectAtIndex:0]; - [favorites sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]]; - [favorites insertObject:first atIndex:0]; - - // Rebuild the favorites tree - [self _buildFavoritesTree]; - - [favoritesTable reloadData]; - - [favoritesTable expandItem:[[favoritesRoot nodeChildren] objectAtIndex:0]]; - - [first release]; + + // TODO: Perform actual sorting here + + [self _reloadFavoritesViewData]; } /** - * Builds a tree structure from the user's connection favorties by wrapping them in SPFavoriteNode instances. + * Updates the favorite's host when the type changes. */ -- (void)_buildFavoritesTree +- (void)_favoriteTypeDidChange { - if (favoritesRoot) [favoritesRoot release], favoritesRoot = nil; - - favoritesRoot = [[SPFavoriteNode alloc] init]; - - // Add a dummy item to represent the favorites heading - SPFavoriteNode *favoritesNode = [[SPFavoriteNode alloc] init]; - - [favoritesNode setNodeIsGroup:YES]; - [favoritesNode setNodeName:NSLocalizedString(@"FAVORITES", @"Favorites title at the top of the sidebar")]; - - for (NSDictionary *favorite in favorites) - { - SPFavoriteNode *node2 = [[SPFavoriteNode alloc] init]; - - [node2 setNodeFavorite:favorite]; - - [[favoritesNode nodeChildren] addObject:node2]; - - [node2 release]; + // TODO: Handle changing favorite connection types + + /*NSDictionary *favorite = [[[self selectedFavoriteNode] representedObject] nodeFavorite]; + + // If either socket or host is localhost, clear. + if ((selectedTabView != SPSocketConnection) && [[favorite objectForKey:SPFavoriteHostKey] isEqualToString:@"localhost"]) { + [self setHost:@""]; } + + // Update the name for newly added favorites if not already touched by the user, by trigger a KVO update + if (!favoriteNameFieldWasTouched) { + [self setName:[NSString stringWithFormat:@"%@@%@", + ([favorite objectForKey:SPFavoriteUserKey]) ? [favorite objectForKey:SPFavoriteUserKey] : @"", + ((previousType == SPSocketConnection) ? @"localhost" : + (([favorite objectForKey:SPFavoriteHostKey]) ? [favorite valueForKeyPath:SPFavoriteHostKey] : @"")) + ]]; + } + + // Request a password refresh to keep keychain references in synch with the favorites + [self _updateFavoritePasswordsFromField:nil];*/ +} - [[favoritesRoot nodeChildren] addObject:favoritesNode]; - - [favoritesNode release]; +/** + * Convenience method for rebuilding the connection favorites tree, reloading the outline view, expanding the + * items and scrolling to the selected item. + */ +- (void)_reloadFavoritesViewData +{ + [favoritesOutlineView reloadData]; + [favoritesOutlineView expandItem:[[favoritesRoot childNodes] objectAtIndex:0] expandChildren:YES]; + [favoritesOutlineView scrollRowToVisible:[favoritesOutlineView selectedRow]]; } /** @@ -1203,13 +1240,13 @@ { // Must be performed on the main thread if (![NSThread isMainThread]) return [[self onMainThread] _restoreConnectionInterface]; - + // Reset the window title - [[tableDocument parentWindow] setTitle:[tableDocument displayName]]; - + [[dbDocument parentWindow] setTitle:[dbDocument displayName]]; + // Stop the current tab's progress indicator - [tableDocument setIsProcessing:NO]; - + [dbDocument setIsProcessing:NO]; + // Reset the UI [addToFavoritesButton setHidden:NO]; [addToFavoritesButton display]; @@ -1222,47 +1259,56 @@ [progressIndicator display]; [progressIndicatorText setHidden:YES]; [progressIndicatorText display]; - + // Re-enable favorites table view - [favoritesTable setEnabled:YES]; - [favoritesTable display]; - + [favoritesOutlineView setEnabled:YES]; + [favoritesOutlineView display]; + mySQLConnectionCancelled = NO; - + // Revert the connect button back to its original selector [connectButton setAction:@selector(initiateConnection:)]; } /** + * Selected the supplied node in the favorites outline view. + */ +- (void)_selectNode:(SPTreeNode *)node +{ + [favoritesOutlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[favoritesOutlineView rowForItem:node]] byExtendingSelection:NO]; + [favoritesOutlineView scrollRowToVisible:[favoritesOutlineView selectedRow]]; +} + +/** * Called on the main thread once the MySQL connection is established on the background thread. Either the - * connection was cancelled or it was successful. + * connection was cancelled or it was successful. */ - (void)_mySQLConnectionEstablished -{ +{ isConnecting = NO; - - // If the user hit cancel during the connection attempt, kill the connection once + + // If the user hit cancel during the connection attempt, kill the connection once // established and reset the UI. - if (mySQLConnectionCancelled) { + if (mySQLConnectionCancelled) { if ([mySQLConnection isConnected]) { [mySQLConnection disconnect]; [mySQLConnection release], mySQLConnection = nil; } - + // Kill the SSH connection if present [self cancelConnection]; - + [self _restoreConnectionInterface]; - + return; } - + [progressIndicatorText setStringValue:NSLocalizedString(@"Connected", @"connection established message")]; [progressIndicatorText display]; - + // Stop the current tab's progress indicator - [tableDocument setIsProcessing:NO]; - + [dbDocument setIsProcessing:NO]; + // Successful connection! [connectButton setEnabled:NO]; [connectButton display]; @@ -1273,19 +1319,20 @@ // If SSL was enabled, check it was established correctly if (useSSL && ([self type] == SPTCPIPConnection || [self type] == SPSocketConnection)) { if (![mySQLConnection isConnectedViaSSL]) { - SPBeginAlertSheet(NSLocalizedString(@"SSL connection not established", @"SSL requested but not used title"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocument parentWindow], nil, nil, nil, NSLocalizedString(@"You requested that the connection should be established using SSL, but MySQL made the connection without SSL.\n\nThis may be because the server does not support SSL connections, or has SSL disabled; or insufficient details were supplied to establish an SSL connection.\n\nThis connection is not encrypted.", @"SSL connection requested but not established error detail")); - } else { - [tableDocument setStatusIconToImageWithName:@"titlebarlock"]; + SPBeginAlertSheet(NSLocalizedString(@"SSL connection not established", @"SSL requested but not used title"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], nil, nil, nil, NSLocalizedString(@"You requested that the connection should be established using SSL, but MySQL made the connection without SSL.\n\nThis may be because the server does not support SSL connections, or has SSL disabled; or insufficient details were supplied to establish an SSL connection.\n\nThis connection is not encrypted.", @"SSL connection requested but not established error detail")); + } + else { + [dbDocument setStatusIconToImageWithName:@"titlebarlock"]; } } // Re-enable favorites table view - [favoritesTable setEnabled:YES]; - [favoritesTable display]; - + [favoritesOutlineView setEnabled:YES]; + [favoritesOutlineView display]; + // Release the tunnel if set - will now be retained by the connection if (sshTunnel) [sshTunnel release], sshTunnel = nil; - + // Pass the connection to the document and clean up the interface [self addConnectionToDocument]; } @@ -1296,11 +1343,11 @@ - (void)_initiateMySQLConnectionInBackground { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - + // Initialise to socket if appropriate. if ([self type] == SPSocketConnection) { mySQLConnection = [[MCPConnection alloc] initToSocket:[self socket] withLogin:[self user]]; - + // Otherwise, initialise to host, using tunnel if appropriate } else { if ([self type] == SPSSHTunnelConnection) { @@ -1311,11 +1358,11 @@ } else { mySQLConnection = [[MCPConnection alloc] initToHost:[self host] withLogin:[self user] - usingPort:([[self port] length]?[[self port] integerValue]:3306)]; + usingPort:([[self port] length] ? [[self port] integerValue] : 3306)]; } } - - // Only set the password if there is no Keychain item set. The connection will ask the delegate for passwords in the Keychain. + + // Only set the password if there is no Keychain item set. The connection will ask the delegate for passwords in the Keychain. if (!connectionKeychainItemName && [self password]) { [mySQLConnection setPassword:[self password]]; } @@ -1327,28 +1374,28 @@ certificatePath:[self sslCertificateFileLocationEnabled] ? [self sslCertificateFileLocation] : nil certificateAuthorityCertificatePath:[self sslCACertFileLocationEnabled] ? [self sslCACertFileLocation] : nil]; } - + // Connection delegate must be set before actual connection attempt is made - [mySQLConnection setDelegate:tableDocument]; + [mySQLConnection setDelegate:dbDocument]; // Set whether or not we should enable delegate logging according to the prefs [mySQLConnection setDelegateQueryLogging:[prefs boolForKey:SPConsoleEnableLogging]]; - + // Set options from preferences [mySQLConnection setConnectionTimeout:[[prefs objectForKey:SPConnectionTimeoutValue] integerValue]]; [mySQLConnection setUseKeepAlive:[[prefs objectForKey:SPUseKeepAlive] boolValue]]; [mySQLConnection setKeepAliveInterval:[[prefs objectForKey:SPKeepAliveInterval] doubleValue]]; - + // Connect [mySQLConnection connect]; - + if (![mySQLConnection isConnected]) { if (sshTunnel) { - + // If an SSH tunnel is running, temporarily block to allow the tunnel to register changes in state [[NSRunLoop currentRunLoop] runMode:NSModalPanelRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.2]]; - + // If the state is connection refused, attempt the MySQL connection again with the host using the hostfield value. if ([sshTunnel state] == PROXY_STATE_FORWARDING_FAILED) { if ([sshTunnel localPortFallback]) { @@ -1360,7 +1407,7 @@ } } } - + if (![mySQLConnection isConnected]) { NSString *errorMessage = @""; if (sshTunnel && [sshTunnel state] == PROXY_STATE_FORWARDING_FAILED) { @@ -1379,56 +1426,183 @@ errorMessage = [NSString stringWithFormat:NSLocalizedString(@"Unable to connect to host %@, or the request timed out.\n\nBe sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently %ld seconds).\n\nMySQL said: %@", @"message of panel when connection to host failed"), [self host], (long)[[prefs objectForKey:SPConnectionTimeoutValue] integerValue], [mySQLConnection getLastErrorMessage]]; [[self onMainThread] failConnectionWithTitle:NSLocalizedString(@"Connection failed!", @"connection failed title") errorMessage:errorMessage detail:nil]; } - + // Tidy up isConnecting = NO; - + if (sshTunnel) [sshTunnel release], sshTunnel = nil; - + [mySQLConnection release], mySQLConnection = nil; [self _restoreConnectionInterface]; [pool release]; - + return; } } - + if ([self database] && ![[self database] isEqualToString:@""]) { if (![mySQLConnection selectDB:[self database]]) { [[self onMainThread] failConnectionWithTitle:NSLocalizedString(@"Could not select database", @"message when database selection failed") errorMessage:[NSString stringWithFormat:NSLocalizedString(@"Connected to host, but unable to connect to database %@.\n\nBe sure that the database exists and that you have the necessary privileges.\n\nMySQL said: %@", @"message of panel when connection to db failed"), [self database], [mySQLConnection getLastErrorMessage]] detail:nil]; - + // Tidy up isConnecting = NO; - + if (sshTunnel) [sshTunnel release], sshTunnel = nil; - + [mySQLConnection release], mySQLConnection = nil; [self _restoreConnectionInterface]; [pool release]; - + return; } } - + // Connection established [self performSelectorOnMainThread:@selector(_mySQLConnectionEstablished) withObject:nil waitUntilDone:NO]; - + [pool release]; } -@end +/** + * Creates a new favorite ID based on the UNIX epoch time. + */ +- (NSNumber *)_createNewFavoriteID +{ + return [NSNumber numberWithInteger:[[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; +} -#pragma mark - -#pragma mark NSView subclass - flipped view for simpler drawing +/** + * Returns the favorite node for the conection favorite with the supplied ID. + */ +- (SPTreeNode *)_favoriteNodeForFavoriteID:(NSInteger)favoriteID +{ + SPTreeNode *node = nil; + + if (!favoritesRoot) return; + + for (node in [favoritesRoot allChildLeafs]) + { + if ([[[[node representedObject] nodeFavorite] objectForKey:SPFavoriteIDKey] integerValue] == favoriteID) { + return node; + } + } +} /** - * Add an implementation of a flipped view to simplify drawing. + * Check all fields used in the keychain names against the old values for that + * favorite, and update the keychain names to match if necessary. + * If an (optional) recognised password field is supplied, that field is assumed + * to have changed and is used to supply the new value. */ -@implementation SPFlippedView: NSView +- (void)_updateFavoritePasswordsFromField:(NSControl *)control +{ + if (!currentFavorite) return; + + NSDictionary *oldFavorite = [currentFavorite nodeFavorite]; + NSDictionary *newFavorite = [[[self selectedFavoriteNode] representedObject] nodeFavorite]; + + NSString *passwordValue; + NSString *oldKeychainName, *newKeychainName; + NSString *oldKeychainAccount, *newKeychainAccount; + NSString *oldHostnameForPassword = ([[oldFavorite objectForKey:SPFavoriteTypeKey] integerValue] == SPSocketConnection) ? @"localhost" : [oldFavorite objectForKey:SPFavoriteHostKey]; + NSString *newHostnameForPassword = ([[newFavorite objectForKey:SPFavoriteTypeKey] integerValue] == SPSocketConnection) ? @"localhost" : [newFavorite objectForKey:SPFavoriteHostKey]; + + // SQL passwords are indexed by name, host, user and database. If any of these + // have changed, or a standard password field has, alter the keychain item to match. + if (![[oldFavorite objectForKey:SPFavoriteNameKey] isEqualToString:[newFavorite objectForKey:SPFavoriteNameKey]] || + ![oldHostnameForPassword isEqualToString:newHostnameForPassword] || + ![[oldFavorite objectForKey:SPFavoriteUserKey] isEqualToString:[newFavorite objectForKey:SPFavoriteUserKey]] || + ![[oldFavorite objectForKey:SPFavoriteDatabaseKey] isEqualToString:[newFavorite objectForKey:SPFavoriteDatabaseKey]] || + control == standardPasswordField || control == socketPasswordField || control == sshPasswordField) + { + // Determine the correct password field to read the password from, defaulting to standard + if (control == socketPasswordField) { + passwordValue = [socketPasswordField stringValue]; + } + else if (control == sshPasswordField) { + passwordValue = [sshPasswordField stringValue]; + } + else { + passwordValue = [standardPasswordField stringValue]; + } + + // Get the old keychain name and account strings + oldKeychainName = [keychain nameForFavoriteName:[oldFavorite objectForKey:SPFavoriteNameKey] id:[newFavorite objectForKey:SPFavoriteIDKey]]; + oldKeychainAccount = [keychain accountForUser:[oldFavorite objectForKey:SPFavoriteUserKey] host:oldHostnameForPassword database:[oldFavorite objectForKey:SPFavoriteDatabaseKey]]; + + // Delete the old keychain item + [keychain deletePasswordForName:oldKeychainName account:oldKeychainAccount]; + + // Set up the new keychain name and account strings + newKeychainName = [keychain nameForFavoriteName:[newFavorite objectForKey:SPFavoriteNameKey] id:[newFavorite objectForKey:SPFavoriteIDKey]]; + newKeychainAccount = [keychain accountForUser:[newFavorite objectForKey:SPFavoriteUserKey] host:newHostnameForPassword database:[newFavorite objectForKey:SPFavoriteDatabaseKey]]; + + // Add the new keychain item if the password field has a value + if ([passwordValue length]) { + [keychain addPassword:passwordValue forName:newKeychainName account:newKeychainAccount]; + } + + // Synch password changes + [standardPasswordField setStringValue:passwordValue]; + [socketPasswordField setStringValue:passwordValue]; + [sshPasswordField setStringValue:passwordValue]; + + passwordValue = @""; + } + + // If SSH account/password details have changed, update the keychain to match + if (![[oldFavorite objectForKey:SPFavoriteNameKey] isEqualToString:[newFavorite objectForKey:SPFavoriteNameKey]] || + ![[oldFavorite objectForKey:SPFavoriteSSHHostKey] isEqualToString:[newFavorite objectForKey:SPFavoriteSSHHostKey]] || + ![[oldFavorite objectForKey:SPFavoriteSSHUserKey] isEqualToString:[newFavorite objectForKey:SPFavoriteSSHUserKey]] || + control == sshSSHPasswordField) + { + // Get the old keychain name and account strings + oldKeychainName = [keychain nameForSSHForFavoriteName:[oldFavorite objectForKey:SPFavoriteNameKey] id:[newFavorite objectForKey:SPFavoriteIDKey]]; + oldKeychainAccount = [keychain accountForSSHUser:[oldFavorite objectForKey:SPFavoriteSSHUserKey] sshHost:[oldFavorite objectForKey:SPFavoriteSSHHostKey]]; + + // Delete the old keychain item + [keychain deletePasswordForName:oldKeychainName account:oldKeychainAccount]; + + // Set up the new keychain name and account strings + newKeychainName = [keychain nameForSSHForFavoriteName:[newFavorite objectForKey:SPFavoriteNameKey] id:[newFavorite objectForKey:SPFavoriteIDKey]]; + newKeychainAccount = [keychain accountForSSHUser:[newFavorite objectForKey:SPFavoriteSSHUserKey] sshHost:[newFavorite objectForKey:SPFavoriteSSHHostKey]]; + + // Add the new keychain item if the password field has a value + if ([[sshPasswordField stringValue] length]) { + [keychain addPassword:[sshPasswordField stringValue] forName:newKeychainName account:newKeychainAccount]; + } + } + + // Update the current favorite + if (currentFavorite) [currentFavorite release], currentFavorite = nil; + + if ([[favoritesOutlineView selectedRowIndexes] count]) { + currentFavorite = [[[self selectedFavoriteNode] representedObject] copy]; + } +} + +#pragma mark - -- (BOOL)isFlipped +- (void)dealloc { - return YES; + [keychain release]; + [prefs release]; + + [folderImage release], folderImage = nil; + + for (id retainedObject in nibObjectsToRelease) [retainedObject release]; + + [nibObjectsToRelease release]; + + if (mySQLConnection) [mySQLConnection release]; + if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], [sshTunnel disconnect], [sshTunnel release]; + if (connectionKeychainItemName) [connectionKeychainItemName release]; + if (connectionKeychainItemAccount) [connectionKeychainItemAccount release]; + if (connectionSSHKeychainItemName) [connectionSSHKeychainItemName release]; + if (connectionSSHKeychainItemAccount) [connectionSSHKeychainItemAccount release]; + if (currentFavorite) [currentFavorite release], currentFavorite = nil; + + [super dealloc]; } @end diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index a2653c5a..65804eff 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -25,88 +25,11 @@ #import "SPConnectionControllerDelegate.h" #import "SPTableTextFieldCell.h" +#import "SPFavoriteNode.h" +#import "SPGroupNode.h" @implementation SPConnectionController (SPConnectionControllerDelegate) -/*#pragma mark - - #pragma mark TableView drag & drop delegate methods - - - (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard - { - NSData *archivedData = [NSKeyedArchiver archivedDataWithRootObject:rowIndexes]; - [pboard declareTypes:[NSArray arrayWithObject:favoritesPBoardType] owner:self]; - [pboard setData:archivedData forType:favoritesPBoardType]; - return YES; - } - - - (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id <NSDraggingInfo>)info proposedRow:(NSInteger)row proposedDropOperation:(NSTableViewDropOperation)operation - { - if (row == 0) return NSDragOperationNone; - if ([info draggingSource] == aTableView) - { - [aTableView setDropRow:row dropOperation:NSTableViewDropAbove]; - return NSDragOperationMove; - } - return NSDragOperationNone; - } - - - (BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id <NSDraggingInfo>)info row:(NSInteger)row dropOperation:(NSTableViewDropOperation)operation - { - BOOL acceptedDrop = NO; - - if ((row == 0) || ([info draggingSource] != aTableView)) return acceptedDrop; - - // Disable all automatic sorting - currentSortItem = -1; - reverseFavoritesSort = NO; - - [prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; - [prefs setBool:NO forKey:SPFavoritesSortedInReverse]; - - // Remove sort descriptors - [favorites sortUsingDescriptors:[NSArray array]]; - - // Uncheck sort by menu items - for (NSMenuItem *menuItem in [[favoritesSortByMenuItem submenu] itemArray]) - { - [menuItem setState:NSOffState]; - } - - NSPasteboard* pboard = [info draggingPasteboard]; - NSData* rowData = [pboard dataForType:favoritesPBoardType]; - NSIndexSet* rowIndexes = [NSKeyedUnarchiver unarchiveObjectWithData:rowData]; - NSInteger dragRow = [rowIndexes firstIndex]; - NSInteger defaultConnectionRow = [prefs integerForKey:SPLastFavoriteIndex]; - if (defaultConnectionRow == dragRow) - { - [prefs setInteger:row forKey:SPLastFavoriteIndex]; - } - NSMutableDictionary *draggedFavorite = [favorites objectAtIndex:dragRow]; - [favorites removeObjectAtIndex:dragRow]; - if (row > dragRow) - { - row--; - } - [favorites insertObject:draggedFavorite atIndex:row]; - [aTableView reloadData]; - - // reset the prefs with the new order - NSMutableArray *reorderedFavorites = [[NSMutableArray alloc] initWithArray:favorites]; - [reorderedFavorites removeObjectAtIndex:0]; - [prefs setObject:reorderedFavorites forKey:SPFavorites]; - - [[[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; - - [reorderedFavorites release]; - - [self updateFavorites]; - [aTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO]; - - acceptedDrop = YES; - - return acceptedDrop; - }*/ - #pragma mark - #pragma mark SplitView delegate methods @@ -144,81 +67,464 @@ - (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { - SPFavoriteNode *node = (item == nil ? favoritesRoot : (SPFavoriteNode *)item); + SPTreeNode *node = (item == nil ? favoritesRoot : (SPTreeNode *)item); - return [[node nodeChildren] count]; + return [[node childNodes] count]; } - (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item { - SPFavoriteNode *node = (item == nil ? favoritesRoot : (SPFavoriteNode *)item); + SPTreeNode *node = (item == nil ? favoritesRoot : (SPTreeNode *)item); - return NSArrayObjectAtIndex([node nodeChildren], index); + return NSArrayObjectAtIndex([node childNodes], index); } - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { - return [(SPFavoriteNode *)item nodeIsGroup]; + return [(SPTreeNode *)item isGroup]; } - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { - SPFavoriteNode *node = (SPFavoriteNode *)item; + SPTreeNode *node = (SPTreeNode *)item; + + return (![node isGroup]) ? [[[node representedObject] nodeFavorite] objectForKey:SPFavoriteNameKey] : [[node representedObject] nodeName]; +} + +- (void)outlineView:(NSOutlineView *)outlineView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn byItem:(id)item +{ + // Trim whitespace + NSString *newName = [object stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; - return ([node nodeIsGroup]) ? [node nodeName] : [[node nodeFavorite] objectForKey:SPFavoriteNameKey]; + if ([newName length]) { + + // Get the node that was renamed + SPTreeNode *node = [self selectedFavoriteNode]; + + if (![node isGroup]) { + // Updating the name triggers a KVO update + [self setName:newName]; + + // Update associated Keychain items + [self _updateFavoritePasswordsFromField:nil]; + } + else { + [[node representedObject] setNodeName:newName]; + + [favoritesController saveFavorites]; + + [self _reloadFavoritesViewData]; + } + } } #pragma mark - #pragma mark Outline view delegate methods - (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item -{ - return [(SPFavoriteNode *)item nodeIsGroup]; +{ + return ([[(SPTreeNode *)item parentNode] parentNode] == nil); } - (void)outlineViewSelectionDidChange:(NSNotification *)notification -{ - if ([favoritesTable numberOfSelectedRows] == 1) { - [self updateFavoriteSelection:self]; +{ + if ([favoritesOutlineView numberOfSelectedRows] == 1) { + + SPTreeNode *node = [self selectedFavoriteNode]; - [addToFavoritesButton setEnabled:NO]; - } + if (![node isGroup]) { + [self updateFavoriteSelection:self]; + + [addToFavoritesButton setEnabled:NO]; + + favoriteNameFieldWasTouched = YES; + + [connectionResizeContainer setHidden:NO]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Enter connection details below, or choose a favorite", @"enter connection details label")]; + } + else { + [connectionResizeContainer setHidden:YES]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")]; + } + } else { - [addToFavoritesButton setEnabled:YES]; + [connectionResizeContainer setHidden:YES]; + [connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")]; } } - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item { + SPTreeNode *node = (SPTreeNode *)item; + [(SPTableTextFieldCell *)cell setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; - if ([favoritesTable isEnabled]) { - [(SPTableTextFieldCell *)cell setTextColor:[NSColor blackColor]]; + [(SPTableTextFieldCell *)cell setTextColor:([favoritesOutlineView isEnabled]) ? [NSColor blackColor] : [NSColor grayColor]]; + + if (![[node parentNode] parentNode]) { + [(SPTableTextFieldCell *)cell setImage:nil]; } else { - [(SPTableTextFieldCell *)cell setTextColor:[NSColor grayColor]]; - } - - [(SPTableTextFieldCell *)cell setImage:([(SPFavoriteNode *)item nodeIsGroup]) ? nil : [NSImage imageNamed:@"database-small"]]; + [(SPTableTextFieldCell *)cell setImage:(![node isGroup]) ? [NSImage imageNamed:@"database-small"] : folderImage]; + } } - (CGFloat)outlineView:(NSOutlineView *)outlineView heightOfRowByItem:(id)item { - return ([item nodeIsGroup]) ? 22 : 17; + return ((SPTreeNode *)[[item parentNode] parentNode] == nil) ? 22 : 17; +} + +- (NSString *)outlineView:(NSOutlineView *)outlineView toolTipForCell:(NSCell *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tableColumn item:(id)item mouseLocation:(NSPoint)mouseLocation +{ + SPTreeNode *node = (SPTreeNode *)item; + + if (![node isGroup]) { + return [[[node representedObject] nodeFavorite] objectForKey:SPFavoriteNameKey]; + } + else { + NSUInteger favCount = [[node childNodes] count]; + + return [NSString stringWithFormat:@"%@ - %d %@", [[node representedObject] nodeName], favCount, (favCount == 1) ? NSLocalizedString(@"favorite", @"favorite singular label") : NSLocalizedString(@"favorites", @"favorites plural label")]; + } } - (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item +{ + return ([[item parentNode] parentNode] != nil); +} + +#pragma mark - +#pragma mark Outline view drag & drop + +/*- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard +{ + [pboard declareTypes:[NSArray arrayWithObject:SPFavoritesPasteboardDragType] owner:self]; + [pboard setData:[NSData data] forType:SPFavoritesPasteboardDragType]; + + return YES; +} + +- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index { - return (![item nodeIsGroup]); + NSDragOperation result = NSDragOperationNone; + + if ([info draggingSource] == outlineView) { + [outlineView setDropItem:item dropChildIndex:index]; + + result = NSDragOperationMove; + } + + return result; } +- (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(NSInteger)index +{ + BOOL acceptedDrop = NO; + + if ((!item) || ([info draggingSource] != outlineView)) return acceptedDrop; + + SPTreeNode *node = (item) ? item : [[[[favoritesRoot childNodes] objectAtIndex:0] childNodes] objectAtIndex:0]; + + // TODO: Fix me, disable automatic sorting + + // Disable all automatic sorting + //currentSortItem = -1; + //reverseFavoritesSort = NO; + + //[prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; + //[prefs setBool:NO forKey:SPFavoritesSortedInReverse]; + + // Remove sort descriptors + //[favorites sortUsingDescriptors:[NSArray array]]; + + // Uncheck sort by menu items + for (NSMenuItem *menuItem in [[favoritesSortByMenuItem submenu] itemArray]) + { + [menuItem setState:NSOffState]; + } + + NSArray *nodes = [self selectedFavoriteNodes]; + + if ([node isGroup]) { + if (index == NSOutlineViewDropOnItemIndex) { + index = 0; + } + else { + SPTreeNode *oldNode = node; + + node = [node parentNode]; + index = ([[node childNodes] indexOfObject:oldNode] + 1); + } + } + else { + if (index == NSOutlineViewDropOnItemIndex) { + index = 0; + } + } + + NSMutableArray *childNodeArray = [node mutableChildNodes]; + + for (SPTreeNode *treeNode in nodes) + { + // Remove the node from its old location + NSInteger oldIndex = [childNodeArray indexOfObject:treeNode]; + NSInteger newIndex = index; + + if (oldIndex != NSNotFound) { + + [childNodeArray removeObjectAtIndex:oldIndex]; + + if (index > oldIndex) { + newIndex--; + } + } + else { + [[[treeNode parentNode] mutableChildNodes] removeObject:treeNode]; + } + + [childNodeArray insertObject:treeNode atIndex:newIndex]; + + newIndex++; + } + + [favoritesController saveFavorites]; + + [self _reloadFavoritesViewData]; + + [[[[NSApp delegate] preferenceController] generalPreferencePane] updateDefaultFavoritePopup]; + + acceptedDrop = YES; + + return acceptedDrop; +}*/ + +#pragma mark - +#pragma mark Textfield delegate methods /** - * Double-Click opens the connection. + * Trap and control the 'name' field of the selected favorite. If the user pressed + * 'Add Favorite' the 'name' field is set to 'New Favorite'. If the user did not + * change the 'name' field or delete that field it will be set to user@host automatically. */ -- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item +- (void)controlTextDidChange:(NSNotification *)notification { - [self initiateConnection:self]; - return NO; + id field = [notification object]; + + NSMutableDictionary *favorite = [self selectedFavorite]; + + BOOL nameFieldIsEmpty = [[favorite objectForKey:SPFavoriteNameKey] isEqualToString:@""]; + + switch (previousType) + { + case SPTCPIPConnection: + + nameFieldIsEmpty = (nameFieldIsEmpty || [[standardNameField stringValue] isEqualToString:@""]); + + if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && (field == standardUserField || field == standardSQLHostField))) { + [standardNameField setStringValue:[NSString stringWithFormat:@"%@@%@", [standardUserField stringValue], [standardSQLHostField stringValue]]]; + + // Trigger KVO update + [self setName:[standardNameField stringValue]]; + + // If name field is empty enable user@host update + if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; + } + + break; + case SPSocketConnection: + + nameFieldIsEmpty = (nameFieldIsEmpty || [[socketNameField stringValue] isEqualToString:@""]); + + if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && field == socketUserField)) { + [socketNameField setStringValue:[NSString stringWithFormat:@"%@@localhost", [socketUserField stringValue]]]; + + // Trigger KVO update + [self setName:[socketNameField stringValue]]; + + // If name field is empty enable user@host update + if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; + } + + break; + case SPSSHTunnelConnection: + + nameFieldIsEmpty = (nameFieldIsEmpty || [[sshNameField stringValue] isEqualToString:@""]); + + if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && (field == sshUserField || field == sshSQLHostField))) { + [sshNameField setStringValue:[NSString stringWithFormat:@"%@@%@", [sshUserField stringValue], [sshSQLHostField stringValue]]]; + + // Trigger KVO update + [self setName:[sshNameField stringValue]]; + + // If name field is empty enable user@host update + if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; + } + + break; + default: + break; + } + + if ((field == standardNameField) || (field == socketNameField) || (field == sshNameField)) favoriteNameFieldWasTouched = YES; } + +/** + * When a host field finishes editing, ensure that it hasn't been set to "localhost" + * to ensure that socket connections don't inadvertently occur. + */ +- (void)controlTextDidEndEditing:(NSNotification *)notification +{ + if ([notification object] == standardSQLHostField || [notification object] == sshSQLHostField) { + [self _checkHost]; + } +} + +/** + * Trap editing end notifications and use them to update the keychain password + * appropriately when name, host, user, password or database changes. + */ +- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor +{ + if (control != favoritesOutlineView) { + // Request a password refresh to keep keychain references in synch with favorites + [self _updateFavoritePasswordsFromField:control]; + } + + // Proceed with editing + return YES; +} + +#pragma mark - +#pragma mark Tab bar delegate methods + +/** + * Trigger a resize action whenever the tab view changes. The connection + * detail forms are held within container views, which are of a fixed width; + * the tabview and buttons are contained within a resizable view which + * is set to dimensions based on the container views, allowing the view + * to be sized according to the detail type. + */ +- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem +{ + NSInteger selectedTabView = [tabView indexOfTabViewItem:tabViewItem]; + + // Deselect any selected favorite for manual changes + if (!automaticFavoriteSelection) [favoritesOutlineView deselectAll:self]; + automaticFavoriteSelection = NO; + + if (selectedTabView == previousType) return; + + [self resizeTabViewToConnectionType:selectedTabView animating:YES]; + + // Update the host as appropriate + if ((selectedTabView != SPSocketConnection) && [[self host] isEqualToString:@"localhost"]) { + [self setHost:@""]; + } + + previousType = selectedTabView; + + [self _favoriteTypeDidChange]; +} + +#pragma mark - +#pragma mark Scroll view notifications + +/** + * As the scrollview resizes, keep the details centered within it if + * the detail frame is larger than the scrollview size; otherwise, pin + * the detail frame to the top of the scrollview. + */ +- (void)scrollViewFrameChanged:(NSNotification *)aNotification +{ + NSRect scrollViewFrame = [connectionDetailsScrollView frame]; + NSRect scrollDocumentFrame = [[connectionDetailsScrollView documentView] frame]; + NSRect connectionDetailsFrame = [connectionResizeContainer frame]; + + // Scroll view is smaller than contents - keep positioned at top. + if (scrollViewFrame.size.height < connectionDetailsFrame.size.height + 10) { + if (connectionDetailsFrame.origin.y != 0) { + connectionDetailsFrame.origin.y = 0; + [connectionResizeContainer setFrame:connectionDetailsFrame]; + scrollDocumentFrame.size.height = connectionDetailsFrame.size.height + 10; + [[connectionDetailsScrollView documentView] setFrame:scrollDocumentFrame]; + } + } + // Otherwise, center + else { + connectionDetailsFrame.origin.y = (scrollViewFrame.size.height - connectionDetailsFrame.size.height)/3; + [connectionResizeContainer setFrame:connectionDetailsFrame]; + scrollDocumentFrame.size.height = scrollViewFrame.size.height; + [[connectionDetailsScrollView documentView] setFrame:scrollDocumentFrame]; + } +} + +#pragma mark - +#pragma mark Menu Validation + +/** + * Menu item validation. + */ +- (BOOL)validateMenuItem:(NSMenuItem *)menuItem +{ + SEL action = [menuItem action]; + + SPTreeNode *node = [self selectedFavoriteNode]; + + if ((action == @selector(sortFavorites:)) || (action == @selector(reverseSortFavorites:))) { + + // TODO: Fix me, disabled because of new outline view + return NO; + + // Loop all the items in the sort by menu only checking the currently selected one + for (NSMenuItem *item in [[menuItem menu] itemArray]) + { + [item setState:([[menuItem menu] indexOfItem:item] == currentSortItem) ? NSOnState : NSOffState]; + } + + // Check or uncheck the reverse sort item + if (action == @selector(reverseSortFavorites:)) { + [menuItem setState:reverseFavoritesSort]; + } + } + + // Remove the selected favorite + if (action == @selector(removeNode:)) { + return ([favoritesOutlineView numberOfSelectedRows] == 1); + } + + // Duplicate and make the selected favorite the default + if (action == @selector(duplicateFavorite:)) { + return (([favoritesOutlineView numberOfSelectedRows] == 1) && (![node isGroup])); + } + + // Make selected favorite the default + if (action == @selector(makeSelectedFavoriteDefault:)) { + NSInteger favoriteID = [[[self selectedFavorite] objectForKey:SPFavoriteIDKey] integerValue]; + + return (([favoritesOutlineView numberOfSelectedRows] == 1) && (![node isGroup]) && (favoriteID != [prefs integerForKey:SPDefaultFavorite])); + } + + // Rename selected favorite/group + if (action == @selector(renameFavorite:)) { + return ([favoritesOutlineView numberOfSelectedRows] == 1); + } + + // Favorites export + if (action == @selector(exportFavorites:)) { + + NSInteger rows = [favoritesOutlineView numberOfSelectedRows]; + + if (rows > 1) { + [menuItem setTitle:NSLocalizedString(@"Export Selected...", @"export selected favorites menu item")]; + } + else if (rows == 1) { + return (![[self selectedFavoriteNode] isGroup]); + } + + return YES; + } + + return YES; +} + @end diff --git a/Source/SPConnectionHandler.h b/Source/SPConnectionHandler.h new file mode 100644 index 00000000..07bba90e --- /dev/null +++ b/Source/SPConnectionHandler.h @@ -0,0 +1,44 @@ +// +// $Id$ +// +// SPConnectionHandler.h +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 15, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +#import "SPConnectionController.h" + +/** + * @category SPConnectionHandler SPConnectionHandler.h + * + * @author Stuart Connolly http://stuconnolly.com/ + * + * Connection handler category. Handles all connection related non-interface processes. + */ +@interface SPConnectionController (SPConnectionHandler) + +- (void)initiateSSHTunnelConnection; +- (void)sshTunnelCallback:(SPSSHTunnel *)theTunnel; +- (void)initiateMySQLConnection; +- (void)cancelConnection; +- (void)failConnectionWithTitle:(NSString *)theTitle errorMessage:(NSString *)theErrorMessage detail:(NSString *)errorDetail; +- (void)addConnectionToDocument; + +@end diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m new file mode 100644 index 00000000..818e528f --- /dev/null +++ b/Source/SPConnectionHandler.m @@ -0,0 +1,245 @@ +// +// $Id$ +// +// SPConnectionHandler.m +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 15, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +#import "SPConnectionHandler.h" +#import "SPAlertSheets.h" + +@implementation SPConnectionController (SPConnectionHandler) + +/* + * Initiate the SSH connection process. + * This should only be called as part of initiateConnection:, and will indirectly + * call initiateMySQLConnection if it's successful. + */ +- (void)initiateSSHTunnelConnection +{ + [progressIndicatorText setStringValue:NSLocalizedString(@"SSH connecting...", @"SSH connecting very short status message")]; + [progressIndicatorText display]; + + // Trim whitespace and newlines from the SSH host field before attempting to connect + [self setSshHost:[[self sshHost] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]]; + + // Set up the tunnel details + sshTunnel = [[SPSSHTunnel alloc] initToHost:[self sshHost] port:[[self sshPort] integerValue] login:[self sshUser] tunnellingToPort:([[self port] length]?[[self port] integerValue]:3306) onHost:[self host]]; + [sshTunnel setParentWindow:[dbDocument parentWindow]]; + + // Add keychain or plaintext password as appropriate - note the checks in initiateConnection. + if (connectionSSHKeychainItemName) { + [sshTunnel setPasswordKeychainName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]; + } else if (sshPassword) { + [sshTunnel setPassword:[self sshPassword]]; + } + + // Set the public key path if appropriate + if (sshKeyLocationEnabled && sshKeyLocation) { + [sshTunnel setKeyFilePath:sshKeyLocation]; + } + + // Set the callback function on the tunnel + [sshTunnel setConnectionStateChangeSelector:@selector(sshTunnelCallback:) delegate:self]; + + // Ask the tunnel to connect. This will call the callback below on success or failure, passing + // itself as an argument - retain count should be one at this point. + [sshTunnel connect]; +} + +/* + * Cancel connection. + * Currently only cleans up the SSH connection (MySQL connection isn't threaded) + */ +- (void)cancelConnection +{ + if (!sshTunnel) return; + + cancellingConnection = YES; + + [sshTunnel disconnect]; + [sshTunnel release]; + + sshTunnel = nil; +} + +/* + * A callback function for the SSH Tunnel setup process - will be called on a connection + * state change, allowing connection to fail or proceed as appropriate. If successful, + * will call initiateMySQLConnection. + */ +- (void)sshTunnelCallback:(SPSSHTunnel *)theTunnel +{ + if (cancellingConnection) return; + + NSInteger newState = [theTunnel state]; + + if (newState == PROXY_STATE_IDLE) { + [dbDocument setTitlebarStatus:NSLocalizedString(@"SSH Disconnected", @"SSH disconnected titlebar marker")]; + + [self failConnectionWithTitle:NSLocalizedString(@"SSH connection failed!", @"SSH connection failed title") errorMessage:[theTunnel lastError] detail:[sshTunnel debugMessages]]; + } + else if (newState == PROXY_STATE_CONNECTED) { + [dbDocument setTitlebarStatus:NSLocalizedString(@"SSH Connected", @"SSH connected titlebar marker")]; + + [self initiateMySQLConnection]; + } + else { + [dbDocument setTitlebarStatus:NSLocalizedString(@"SSH Connecting…", @"SSH connecting titlebar marker")]; + } +} + +/* + * Set up the MySQL connection, either through a successful tunnel or directly in the background. + */ +- (void)initiateMySQLConnection +{ + // Disable the favorites table view to prevent further connections attempts + [favoritesOutlineView setEnabled:NO]; + + if (sshTunnel) { + [progressIndicatorText setStringValue:NSLocalizedString(@"MySQL connecting...", @"MySQL connecting very short status message")]; + } + else { + [progressIndicatorText setStringValue:NSLocalizedString(@"Connecting...", @"Generic connecting very short status message")]; + } + + [progressIndicatorText display]; + + [connectButton setTitle:NSLocalizedString(@"Cancel", @"cancel button")]; + [connectButton setAction:@selector(cancelMySQLConnection:)]; + [connectButton setEnabled:YES]; + [connectButton display]; + + [NSThread detachNewThreadSelector:@selector(_initiateMySQLConnectionInBackground) toTarget:self withObject:nil]; +} + +/* + * Ends a connection attempt by stopping the connection animation and + * displaying a specified error message. + */ +- (void)failConnectionWithTitle:(NSString *)theTitle errorMessage:(NSString *)theErrorMessage detail:(NSString *)errorDetail +{ + BOOL isSSHTunnelBindError = NO; + + // Clean up the interface + [progressIndicator stopAnimation:self]; + [progressIndicator display]; + [progressIndicatorText setHidden:YES]; + [progressIndicatorText display]; + [addToFavoritesButton setHidden:NO]; + [addToFavoritesButton display]; + [connectButton setEnabled:YES]; + [dbDocument clearStatusIcon]; + + // Release as appropriate + if (sshTunnel) { + [sshTunnel disconnect], [sshTunnel release], sshTunnel = nil; + + // If the SSH tunnel connection failed because the port it was trying to bind to was already in use take note + // of it so we can give the user the option of connecting via standard connection and use the existing tunnel. + if ([theErrorMessage rangeOfString:@"bind"].location != NSNotFound) { + isSSHTunnelBindError = YES; + } + } + + if (errorDetail) [errorDetailText setString:errorDetail]; + + // Inform the delegate that the connection attempt failed + if (delegate && [delegate respondsToSelector:@selector(connectionControllerConnectAttemptFailed:)]) { + [delegate connectionControllerConnectAttemptFailed:self]; + } + + // Only display the connection error message if there is a window visible and the connection attempt + // wasn't cancelled even though it failed. + if ([[dbDocument parentWindow] isVisible] && (!mySQLConnectionCancelled)) { + SPBeginAlertSheet(theTitle, NSLocalizedString(@"OK", @"OK button"), (errorDetail) ? NSLocalizedString(@"Show Detail", @"Show detail button") : nil, (isSSHTunnelBindError) ? NSLocalizedString(@"Use Standard Connection", @"use standard connection button") : nil, [dbDocument parentWindow], self, @selector(connectionFailureSheetDidEnd:returnCode:contextInfo:), @"connect", theErrorMessage); + } +} + +/** + * Alert sheet callback method - invoked when an error sheet is closed. + */ +- (void)connectionFailureSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo +{ + // Restore the passwords from keychain for editing if appropriate + if (connectionKeychainItemName) { + [self setPassword:[keychain getPasswordForName:connectionKeychainItemName account:connectionKeychainItemAccount]]; + } + if (connectionSSHKeychainItemName) { + [self setSshPassword:[keychain getPasswordForName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]]; + } + + if (returnCode == NSAlertAlternateReturn) { + [errorDetailText setFont:[NSFont userFontOfSize:12]]; + [errorDetailText setAlignment:NSLeftTextAlignment]; + [errorDetailWindow makeKeyAndOrderFront:self]; + } + // Currently only SSH port bind errors offer a 3rd option in the error dialog, but if this ever changes + // this will definitely need to be updated. + else if (returnCode == NSAlertOtherReturn) { + // Extract the local port number that SSH attempted to bind to from the debug output + NSString *tunnelPort = [[[errorDetailText string] componentsMatchedByRegex:@"LOCALHOST:([0-9]+)" capture:1L] lastObject]; + + // Change the connection type to standard TCP/IP + [self setType:SPTCPIPConnection]; + + // Change connection details + [self setPort:tunnelPort]; + [self setHost:@"127.0.0.1"]; + + // Change to standard TCP/IP connection view + [self resizeTabViewToConnectionType:SPTCPIPConnection animating:YES]; + + // Initiate the connection after half a second to give the connection view a chance to resize + [self performSelector:@selector(initiateConnection:) withObject:self afterDelay:0.5]; + } +} + +/** + * Add the connection to the parent document and restore the + * interface, allowing the application to run as normal. + */ +- (void)addConnectionToDocument +{ + // Hide the connection view and restore the main view + [connectionView removeFromSuperviewWithoutNeedingDisplay]; + [databaseConnectionView setHidden:NO]; + + // Restore the toolbar icons + NSArray *toolbarItems = [[[dbDocument parentWindow] toolbar] items]; + + for (NSInteger i = 0; i < [toolbarItems count]; i++) [[toolbarItems objectAtIndex:i] setEnabled:YES]; + + // Set keychain id for saving SPF files + if ([self valueForKeyPath:@"selectedFavorite.id"]) { + [dbDocument setKeychainID:[[self valueForKeyPath:@"selectedFavorite.id"] stringValue]]; + } + else { + [dbDocument setKeychainID:@""]; + } + + // Pass the connection to the table document, allowing it to set + // up the other classes and the rest of the interface. + [dbDocument setConnection:mySQLConnection]; +} + +@end diff --git a/Source/SPConstants.h b/Source/SPConstants.h index 1e48f2c2..09763e45 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -218,10 +218,6 @@ extern const CGFloat SPLongRunningNotificationTime; // Narrow down completion max rows extern const NSUInteger SPNarrowDownCompletionMaxRows; -// Kill mode constants -extern NSString *SPKillProcessQueryMode; -extern NSString *SPKillProcessConnectionMode; - // Default monospaced font name extern NSString *SPDefaultMonospacedFontName; @@ -253,7 +249,7 @@ extern NSString *SPDataSupportFolder; // General Prefpane extern NSString *SPDefaultFavorite; extern NSString *SPSelectLastFavoriteUsed; -extern NSString *SPLastFavoriteIndex; +extern NSString *SPLastFavoriteID; extern NSString *SPAutoConnectToDefault; extern NSString *SPDefaultViewMode; extern NSString *SPLastViewMode; diff --git a/Source/SPConstants.m b/Source/SPConstants.m index cd683a5b..1ef054bb 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -31,10 +31,6 @@ const CGFloat SPLongRunningNotificationTime = 3.0; // Narrow down completion max rows const NSUInteger SPNarrowDownCompletionMaxRows = 15; -// Kill mode constants -NSString *SPKillProcessQueryMode = @"SPKillProcessQueryMode"; -NSString *SPKillProcessConnectionMode = @"SPKillProcessConnectionMode"; - // Default monospaced font name NSString *SPDefaultMonospacedFontName = @"Monaco"; @@ -65,7 +61,7 @@ NSString *SPDataSupportFolder = @"Data"; // General Prefpane NSString *SPDefaultFavorite = @"DefaultFavorite"; NSString *SPSelectLastFavoriteUsed = @"SelectLastFavoriteUsed"; -NSString *SPLastFavoriteIndex = @"LastFavoriteIndex"; +NSString *SPLastFavoriteID = @"LastFavoriteID"; NSString *SPAutoConnectToDefault = @"AutoConnectToDefault"; NSString *SPDefaultViewMode = @"DefaultViewMode"; NSString *SPLastViewMode = @"LastViewMode"; diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 5f05573c..f1ac803f 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -3252,7 +3252,7 @@ if ([connectionController selectedFavorite]) return; // Request the connection controller to add its details to favorites - [connectionController addFavorite:self]; + [connectionController addFavoriteUsingCurrentDetails:self]; } /** @@ -3826,7 +3826,7 @@ { // If the window is being set for the first time - connection controller is visible - update focus if (!parentWindow && !mySQLConnection) { - [aWindow makeFirstResponder:[connectionController valueForKey:@"favoritesTable"]]; + [aWindow makeFirstResponder:[connectionController valueForKey:@"favoritesOutlineView"]]; [connectionController performSelector:@selector(updateFavoriteSelection:) withObject:self afterDelay:0.0]; } @@ -4105,12 +4105,12 @@ [self updateWindowTitle:self]; // Deselect all favorites on the connection controller - [[connectionController valueForKeyPath:@"favoritesTable"] deselectAll:connectionController]; + [[connectionController valueForKeyPath:@"favoritesOutlineView"] deselectAll:connectionController]; // Suppress the possibility to choose an other connection from the favorites // if a connection should initialized by SPF file. Otherwise it could happen // that the SPF file runs out of sync. - [[connectionController valueForKeyPath:@"favoritesTable"] setEnabled:NO]; + [[connectionController valueForKeyPath:@"favoritesOutlineView"] setEnabled:NO]; // Ensure the connection controller is set to a blank slate [connectionController setName:@""]; diff --git a/Source/SPFavoriteNode.h b/Source/SPFavoriteNode.h index d3b25854..5387c137 100644 --- a/Source/SPFavoriteNode.h +++ b/Source/SPFavoriteNode.h @@ -28,38 +28,22 @@ * * @author Stuart Connolly http://stuconnolly.com/ * - * This class is designed to be a simple wrapper around a connection favorite to allow us to easily represent - * them in a tree structure for use in an outline view. If the node is a group item (i.e. a folder) then it - * should have a name as well as zero or more child nodes. Similarly, actual connection favorite nodes, don't - * have a name and should have no children. + * Tree node the represents a connection favorite. */ -@interface SPFavoriteNode : NSObject -{ - BOOL nodeIsGroup; - NSString *nodeName; - +@interface SPFavoriteNode : NSObject <NSCopying> +{ NSDictionary *nodeFavorite; - NSMutableArray *nodeChildren; } /** - * @property nodeIsGroup Indicates whether this node is a group item - */ -@property (readwrite, assign) BOOL nodeIsGroup; - -/** - * @property nodeName The node's name if it's a group item - */ -@property (readwrite, retain) NSString *nodeName; - -/** * @property nodeFavorite The actual favorite dictionary */ @property (readwrite, retain) NSDictionary *nodeFavorite; -/** - * @property nodeChildren This node's children - */ -@property (readwrite, retain) NSMutableArray *nodeChildren; +- (id)initWithDictionary:(NSDictionary *)dictionary; + ++ (SPFavoriteNode *)favoriteNodeWithDictionary:(NSDictionary *)dictionary; + +- (NSDictionary *)dictionaryRepresentation; @end diff --git a/Source/SPFavoriteNode.m b/Source/SPFavoriteNode.m index 51a9d1aa..55a44653 100644 --- a/Source/SPFavoriteNode.m +++ b/Source/SPFavoriteNode.m @@ -27,28 +27,60 @@ @implementation SPFavoriteNode -@synthesize nodeIsGroup; -@synthesize nodeName; @synthesize nodeFavorite; -@synthesize nodeChildren; + +#pragma mark - +#pragma mark Initialisation - (id)init { if ((self = [super init])) { - [self setNodeIsGroup:NO]; - [self setNodeName:nil]; [self setNodeFavorite:nil]; - [self setNodeChildren:[[NSMutableArray alloc] init]]; } return self; } +- (id)initWithDictionary:(NSDictionary *)dictionary +{ + if ((self = [self init])) { + [self setNodeFavorite:dictionary]; + } + + return self; +} + ++ (SPFavoriteNode *)favoriteNodeWithDictionary:(NSDictionary *)dictionary +{ + return [[[self alloc] initWithDictionary:dictionary] autorelease]; +} + +#pragma mark - +#pragma mark Copying protocol methods + +- (id)copyWithZone:(NSZone *)zone +{ + SPFavoriteNode *node = [[[self class] allocWithZone:zone] init]; + + [node setNodeFavorite:[[self nodeFavorite] copyWithZone:zone]]; + + return node; +} + + +#pragma mark - +#pragma mark Other + +- (NSString *)description +{ + return [NSString stringWithFormat:@"<%@: %p ('%@')>", [self className], self, [[self nodeFavorite] objectForKey:SPFavoriteNameKey]]; +} + +#pragma mark - + - (void)dealloc { - if (nodeName) [nodeName release], nodeName = nil; if (nodeFavorite) [nodeFavorite release], nodeFavorite = nil; - if (nodeChildren) [nodeChildren release], nodeChildren = nil; [super dealloc]; } diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h index 1b9f0aca..095e1cd0 100644 --- a/Source/SPFavoritesController.h +++ b/Source/SPFavoritesController.h @@ -25,6 +25,8 @@ #import "SPSingleton.h" +@class SPTreeNode; + /** * @class SPFavoritesController SPFavoritesController.h * @@ -35,17 +37,31 @@ */ @interface SPFavoritesController : SPSingleton { - NSMutableDictionary *favorites; + SPTreeNode *favoritesTree; + NSMutableDictionary *favoritesData; + + pthread_mutex_t writeLock; + pthread_mutex_t favoritesLock; } /** - * @property favorites Favorites data dictionary + * @property favoritesTree + */ +@property (readonly) SPTreeNode *favoritesTree; + +/** + * @property favoritesData Favorites data dictionary */ -@property (readonly) NSMutableDictionary *favorites; +@property (readonly) NSMutableDictionary *favoritesData; + (SPFavoritesController *)sharedFavoritesController; - (void)saveFavorites; - (void)reloadFavoritesWithSave:(BOOL)save; +- (SPTreeNode *)addGroupNodeWithName:(NSString *)name asChildOfNode:(SPTreeNode *)parent; +- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent; + +- (void)removeFavoriteNode:(SPTreeNode *)node; + @end diff --git a/Source/SPFavoritesController.m b/Source/SPFavoritesController.m index 285cbd90..920cec6b 100644 --- a/Source/SPFavoritesController.m +++ b/Source/SPFavoritesController.m @@ -24,18 +24,27 @@ // More info at <http://code.google.com/p/sequel-pro/> #import "SPFavoritesController.h" +#import "SPFavoriteNode.h" +#import "SPGroupNode.h" +#import "pthread.h" static SPFavoritesController *sharedFavoritesController = nil; @interface SPFavoritesController (PrivateAPI) - (void)_loadFavorites; +- (void)_constructFavoritesTree; +- (void)_saveFavoritesDataInBackground:(NSDictionary *)data; +- (void)_addNode:(SPTreeNode *)node asChildOfNode:(SPTreeNode *)parent; + +- (SPTreeNode *)_constructBranchForNodeData:(NSDictionary *)nodeData; @end @implementation SPFavoritesController -@synthesize favorites; +@synthesize favoritesTree; +@synthesize favoritesData; #pragma mark - #pragma mark Initialisation @@ -51,19 +60,25 @@ static SPFavoritesController *sharedFavoritesController = nil; { if ((self = [super init])) { - favorites = nil; + favoritesTree = nil; + favoritesData = nil; + + pthread_mutex_init(&writeLock, NULL); + pthread_mutex_init(&favoritesLock, NULL); [self _loadFavorites]; + [self _constructFavoritesTree]; } return self; } #pragma mark - -#pragma mark Public API /** * Returns the shared favorites controller. + * + * @return The shared controller instance. */ + (SPFavoritesController *)sharedFavoritesController { @@ -76,6 +91,9 @@ static SPFavoritesController *sharedFavoritesController = nil; return sharedFavoritesController; } +#pragma mark - +#pragma mark Favorites data handling + /** * Saves the current favorites dictionary in memory to disk. Note that the current favorites data file is moved * rather than overwritten in the event that we can't write the new file, the original can simply be restored. @@ -83,129 +101,333 @@ static SPFavoritesController *sharedFavoritesController = nil; */ - (void)saveFavorites { - NSError *error = nil; - NSString *errorString = nil; + pthread_mutex_lock(&favoritesLock); + + [NSThread detachNewThreadSelector:@selector(_saveFavoritesDataInBackground:) toTarget:self withObject:[[[favoritesTree childNodes] objectAtIndex:0] dictionaryRepresentation]]; + + pthread_mutex_unlock(&favoritesLock); +} + +/** + * Reloads the favorites data from disk with the option to save before doing so. + * + * @param save Indicates whether the current favorites data in memory should be saved to disk before being + * reloaded. Specifying NO effectively discards any changes since the last save operation. + */ +- (void)reloadFavoritesWithSave:(BOOL)save +{ + if (save) [self saveFavorites]; + + if (favoritesData) { + [self _loadFavorites]; + [self _constructFavoritesTree]; + } +} + +#pragma mark - +#pragma mark Favorites interaction + +/** + * Adds a new group node with the supplied name to the children of the supplied parent node. + * + * @param name The name of the new group + * @param parent + * + * @return The node instance that was created and added + */ +- (SPTreeNode *)addGroupNodeWithName:(NSString *)name asChildOfNode:(SPTreeNode *)parent +{ + SPTreeNode *node = [SPTreeNode treeNodeWithRepresentedObject:[SPGroupNode groupNodeWithName:name]]; + + [node setIsGroup:YES]; + + [self _addNode:node asChildOfNode:parent]; + + return [node autorelease]; +} + +/** + * Adds a new favorite node with the supplied data to the children of the supplied parent node. + * + * @param data The data for the new favorite + * @param + * + * @return The node instance that was created and added + */ +- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent +{ + SPTreeNode *node = [SPTreeNode treeNodeWithRepresentedObject:[SPFavoriteNode favoriteNodeWithDictionary:data]]; + + [self _addNode:node asChildOfNode:parent]; + return [node autorelease]; +} + +/** + * Removes the supplied favorite node by asking the root node to remove it from it's children (i.e. the + * entire tree is searched. + * + * @param The node to be removed + */ +- (void)removeFavoriteNode:(SPTreeNode *)node +{ + [favoritesTree removeObjectFromChildren:node]; + + // Save data to disk + [self reloadFavoritesWithSave:YES]; +} + +#pragma mark - +#pragma mark Private API + +/** + * Attempts to load the users connection favorites from ~/Library/Application Support/Sequel Pro/Data/Favorites.plist + * If the 'Data' directory doesn't already exist it will be created, as well as an empty favorites plist. + */ +- (void)_loadFavorites +{ + pthread_mutex_lock(&favoritesLock); + + NSError *error = nil; NSFileManager *fileManager = [NSFileManager defaultManager]; + if (favoritesData) [favoritesData release], favoritesData = nil; + NSString *dataPath = [fileManager applicationSupportDirectoryForSubDirectory:SPDataSupportFolder error:&error]; if (error) { NSLog(@"Error retrieving data directory path: %@", [error localizedDescription]); + + pthread_mutex_unlock(&favoritesLock); + return; } NSString *favoritesFile = [dataPath stringByAppendingPathComponent:SPFavoritesDataFile]; - NSString *favoritesBackupFile = [dataPath stringByAppendingPathComponent:[@"~" stringByAppendingString:SPFavoritesDataFile]]; - // If the favorites data file already exists, attempt to move it to keep as a backup + // If the favorites data file already exists use it, otherwise create an empty one if ([fileManager fileExistsAtPath:favoritesFile]) { - [fileManager moveItemAtPath:favoritesFile toPath:favoritesBackupFile error:&error]; + favoritesData = [[NSDictionary alloc] initWithContentsOfFile:favoritesFile]; } - - if (error) { - NSLog(@"Unable to backup (move) existing favorites data file during save. Deleting instead: %@", [error localizedDescription]); + else { + NSDictionary *newFavorites = [NSMutableDictionary dictionaryWithObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [NSArray array], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; - error = nil; + NSError *error = nil; + NSString *errorString = nil; - // We can't move it so try and delete it - if (![fileManager removeItemAtPath:favoritesFile error:&error] && error) { - NSLog(@"Unable to delete existing favorites data file during save. Something is wrong, permissions perhaps: %@", [error localizedDescription]); - return; - } - } - else { - NSData *plistData = [NSPropertyListSerialization dataFromPropertyList:favorites + NSData *plistData = [NSPropertyListSerialization dataFromPropertyList:newFavorites format:NSPropertyListXMLFormat_v1_0 errorDescription:&errorString]; - if (plistData) { [plistData writeToFile:favoritesFile options:NSAtomicWrite error:&error]; if (error) { - NSLog(@"Error writing favorites data. Restoring backup if available: %@", [error localizedDescription]); - - // Restore the original data file - [fileManager moveItemAtPath:favoritesBackupFile toPath:favoritesFile error:NULL]; - } - else { - // Remove the original backup - [fileManager removeItemAtPath:favoritesBackupFile error:NULL]; + NSLog(@"Error writing default favorites data: %@", [error localizedDescription]); } } else if (errorString) { - NSLog(@"Error converting favorites data to plist format: %@", errorString); + NSLog(@"Error converting default favorites data to plist format: %@", errorString); [errorString release]; + + pthread_mutex_unlock(&favoritesLock); + + return; } + + favoritesData = newFavorites; } + + pthread_mutex_unlock(&favoritesLock); } /** - * Reloads the favorites data from disk with the option to save before doing so. - * - * @param save Indicates whether the current favorites data in memory should be saved to disk before being - * reloaded. Specifying NO effectively discards any changes since the last save operation. + * Constructs the favorites tree by initialising an instance of SPFavoriteNode for every favorite and group. */ -- (void)reloadFavoritesWithSave:(BOOL)save +- (void)_constructFavoritesTree { - if (save) [self saveFavorites]; + pthread_mutex_lock(&favoritesLock); + + if (!favoritesData) { + pthread_mutex_unlock(&favoritesLock); + return; + } + + NSDictionary *root = [favoritesData objectForKey:SPFavoritesRootKey]; + + SPGroupNode *rootGroupNode = [[SPGroupNode alloc] init]; + SPGroupNode *favoritesGroupNode = [[SPGroupNode alloc] initWithName:[[root objectForKey:SPFavoritesGroupNameKey] uppercaseString]]; + + SPTreeNode *rootNode = [[SPTreeNode alloc] initWithRepresentedObject:rootGroupNode]; + SPTreeNode *favoritesNode = [[SPTreeNode alloc] initWithRepresentedObject:favoritesGroupNode]; + + [rootNode setIsGroup:YES]; + [favoritesNode setIsGroup:YES]; + + for (NSDictionary *favorite in [root objectForKey:SPFavoriteChildrenKey]) + { + SPTreeNode *node = [self _constructBranchForNodeData:favorite]; + + [[favoritesNode mutableChildNodes] addObject:node]; + + [node release]; + } + + [[rootNode mutableChildNodes] addObject:favoritesNode]; + + [rootGroupNode release]; + [favoritesGroupNode release]; + [favoritesNode release]; + + favoritesTree = rootNode; - if (favorites) [self _loadFavorites]; + pthread_mutex_unlock(&favoritesLock); } -#pragma mark - -#pragma mark Private API +/** + * Constructs the tree branch for the supplied favorites data. Note that depending on the contents of the + * branch (i.e. does it contain any groups and their depth) this method will recursively call itself. + * + * @param nodeData The favorites data dictionary + * + * @return The root node of the branch + */ +- (SPTreeNode *)_constructBranchForNodeData:(NSDictionary *)nodeData +{ + id node = nil; + SPTreeNode *treeNode = nil; + + if ([nodeData objectForKey:SPFavoritesGroupNameKey] && [nodeData objectForKey:SPFavoriteChildrenKey]) { + + node = [[SPGroupNode alloc] initWithName:[nodeData objectForKey:SPFavoritesGroupNameKey]]; + + treeNode = [[SPTreeNode alloc] initWithRepresentedObject:node]; + + [treeNode setIsGroup:YES]; + + for (NSDictionary *favorite in [nodeData objectForKey:SPFavoriteChildrenKey]) + { + SPTreeNode *innerNode = [self _constructBranchForNodeData:favorite]; + + [innerNode setIsGroup:YES]; + + [[treeNode mutableChildNodes] addObject:innerNode]; + + [innerNode release]; + } + } + else { + node = [[SPFavoriteNode alloc] initWithDictionary:nodeData]; + + treeNode = [[SPTreeNode alloc] initWithRepresentedObject:node]; + } + + return treeNode; +} /** - * Attempts to load the users connection favorites from ~/Library/Application Support/Sequel Pro/Data/Favorites.plist - * If the 'Data' directory doesn't already exist it will be created, as well as an empty favorites plist. + * Saves the supplied favorites data to disk on a background thread. + * + * @param data The raw plist data (serialized NSDictionary) to be saved */ -- (void)_loadFavorites +- (void)_saveFavoritesDataInBackground:(NSDictionary *)data { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + pthread_mutex_lock(&writeLock); + + if (!favoritesTree) { + pthread_mutex_unlock(&writeLock); + return; + } + NSError *error = nil; - NSFileManager *fileManager = [NSFileManager defaultManager]; + NSString *errorString = nil; - if (favorites) [favorites release], favorites = nil; + NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *dataPath = [fileManager applicationSupportDirectoryForSubDirectory:SPDataSupportFolder error:&error]; if (error) { NSLog(@"Error retrieving data directory path: %@", [error localizedDescription]); + + pthread_mutex_unlock(&writeLock); return; } NSString *favoritesFile = [dataPath stringByAppendingPathComponent:SPFavoritesDataFile]; + NSString *favoritesBackupFile = [dataPath stringByAppendingPathComponent:[@"~" stringByAppendingString:SPFavoritesDataFile]]; - // If the favorites data file already exists use it, otherwise create an empty one + // If the favorites data file already exists, attempt to move it to keep as a backup if ([fileManager fileExistsAtPath:favoritesFile]) { - favorites = [[NSDictionary alloc] initWithContentsOfFile:favoritesFile]; + [fileManager moveItemAtPath:favoritesFile toPath:favoritesBackupFile error:&error]; } - else { - NSDictionary *newFavorites = [NSMutableDictionary dictionaryWithObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [NSArray array], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; + + if (error) { + NSLog(@"Unable to backup (move) existing favorites data file during save. Deleting instead: %@", [error localizedDescription]); - NSError *error = nil; - NSString *errorString = nil; + error = nil; - NSData *plistData = [NSPropertyListSerialization dataFromPropertyList:newFavorites + // We can't move it so try and delete it + if (![fileManager removeItemAtPath:favoritesFile error:&error] && error) { + NSLog(@"Unable to delete existing favorites data file during save. Something is wrong, permissions perhaps: %@", [error localizedDescription]); + + pthread_mutex_unlock(&writeLock); + return; + } + } + else { + NSDictionary *dictionary = [NSDictionary dictionaryWithObject:data forKey:SPFavoritesRootKey]; + + // Convert the current favorites tree to a dictionary representation to create the plist data + NSData *plistData = [NSPropertyListSerialization dataFromPropertyList:dictionary format:NSPropertyListXMLFormat_v1_0 errorDescription:&errorString]; + if (plistData) { [plistData writeToFile:favoritesFile options:NSAtomicWrite error:&error]; if (error) { - NSLog(@"Error writing default favorites data: %@", [error localizedDescription]); + NSLog(@"Error writing favorites data. Restoring backup if available: %@", [error localizedDescription]); + + // Restore the original data file + [fileManager moveItemAtPath:favoritesBackupFile toPath:favoritesFile error:NULL]; + } + else { + // Remove the original backup + [fileManager removeItemAtPath:favoritesBackupFile error:NULL]; } } else if (errorString) { - NSLog(@"Error converting default favorites data to plist format: %@", errorString); + NSLog(@"Error converting favorites data to plist format: %@", errorString); [errorString release]; - return; + + [fileManager removeItemAtPath:favoritesBackupFile error:NULL]; } - - favorites = newFavorites; } + + pthread_mutex_unlock(&writeLock); + + [pool release]; +} + +/** + * Adds the supplied node to the children of the supplied parent and saves the tree to disk. + * + * @param node The node to be added + * @param asChild + */ +- (void)_addNode:(SPTreeNode *)node asChildOfNode:(SPTreeNode *)parent +{ + if (parent) { + [[parent mutableChildNodes] addObject:node]; + } + else { + [[[[favoritesTree mutableChildNodes] objectAtIndex:0] mutableChildNodes] addObject:node]; + } + + [self saveFavorites]; } #pragma mark - @@ -215,7 +437,11 @@ static SPFavoritesController *sharedFavoritesController = nil; */ - (void)dealloc { - if (favorites) [favorites release], favorites = nil; + if (favoritesTree) [favoritesTree release], favoritesTree = nil; + if (favoritesData) [favoritesData release], favoritesData = nil; + + pthread_mutex_destroy(&writeLock); + pthread_mutex_destroy(&favoritesLock); [super dealloc]; } diff --git a/Source/SPFavoritesOutlineView.m b/Source/SPFavoritesOutlineView.m index 6930c281..4a47b3db 100644 --- a/Source/SPFavoritesOutlineView.m +++ b/Source/SPFavoritesOutlineView.m @@ -52,6 +52,19 @@ return [self menu]; } +- (void)keyDown:(NSEvent *)event +{ + // Enter or Return initiates a connection to the selected favorite, which is the same as double-clicking + // one, so call the same selector. + if (([self numberOfSelectedRows] == 1) && (([event keyCode] == 36) || ([event keyCode] == 76))) { + [[self delegate] performSelector:[self doubleAction]]; + + return; + } + + [super keyDown:event]; +} + /** * To prevent right-clicking in a column's 'group' heading, ask the delegate if we support selecting it * as this normally doesn't apply to left-clicks. If we do support selecting this row, simply pass on the event. diff --git a/Source/SPFavoritesPreferencePane.h b/Source/SPFavoritesPreferencePane.h deleted file mode 100644 index 9d77d4c4..00000000 --- a/Source/SPFavoritesPreferencePane.h +++ /dev/null @@ -1,98 +0,0 @@ -// -// $Id$ -// -// SPFavoritesPreferencePane.h -// sequel-pro -// -// Created by Stuart Connolly (stuconnolly.com) on October 31, 2010 -// Copyright (c) 2010 Stuart Connolly. All rights reserved. -// -// 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 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, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// More info at <http://code.google.com/p/sequel-pro/> - -#import "SPPreferencePane.h" - -@class SPKeychain, BWAnchoredButtonBar; - -/** - * @class SPFavoritesPreferencePane SPFavoritesPreferencePane.h - * - * @author Stuart Connolly http://stuconnolly.com/ - * - * Favorites preference pane controller. - */ -@interface SPFavoritesPreferencePane : SPPreferencePane <SPPreferencePaneProtocol> -{ - IBOutlet NSTableView *favoritesTableView; - IBOutlet NSArrayController *favoritesController; - - IBOutlet NSTabView *favoritesTabView; - - IBOutlet NSSecureTextField *standardPasswordField; - IBOutlet NSSecureTextField *socketPasswordField; - IBOutlet NSSecureTextField *sshSQLPasswordField; - IBOutlet NSSecureTextField *sshPasswordField; - - IBOutlet NSTextField *favoriteNameTextField; - IBOutlet NSTextField *favoriteUserTextField; - IBOutlet NSTextField *favoriteHostTextField; - IBOutlet NSTextField *favoriteUserTextFieldSocket; - IBOutlet NSTextField *favoriteUserTextFieldSSH; - IBOutlet NSTextField *favoriteHostTextFieldSSH; - - IBOutlet NSButton *sshSSHKeyButton; - IBOutlet NSButton *standardSSLKeyFileButton; - IBOutlet NSButton *standardSSLCertificateButton; - IBOutlet NSButton *standardSSLCACertButton; - IBOutlet NSButton *socketSSLKeyFileButton; - IBOutlet NSButton *socketSSLCertificateButton; - IBOutlet NSButton *socketSSLCACertButton; - - IBOutlet NSView *sshKeyLocationHelp; - IBOutlet NSView *sslKeyFileLocationHelp; - IBOutlet NSView *sslCertificateLocationHelp; - IBOutlet NSView *sslCACertLocationHelp; - - IBOutlet NSTextFieldCell *tableCell; - - IBOutlet NSMenuItem *favoritesSortByMenuItem; - - IBOutlet BWAnchoredButtonBar *splitViewButtonBar; - - SPKeychain *keychain; - - NSInteger favoriteType; - NSDictionary *currentFavorite; - BOOL favoriteNameFieldWasTouched; - - // Sorting - BOOL reverseFavoritesSort; - SPFavoritesSortItem previousSortItem, currentSortItem; -} - -- (IBAction)addFavorite:(id)sender; -- (IBAction)removeFavorite:(id)sender; -- (IBAction)duplicateFavorite:(id)sender; -- (IBAction)makeSelectedFavoriteDefault:(id)sender; -- (IBAction)sortFavorites:(id)sender; -- (IBAction)reverseFavoritesSortOrder:(id)sender; -- (IBAction)chooseKeyLocation:(id)sender; -- (IBAction)favoriteTypeDidChange:(id)sender; -- (IBAction)chooseKeyLocation:(id)sender; - -- (void)selectFavorites:(NSArray *)favorites; - -@end diff --git a/Source/SPFavoritesPreferencePane.m b/Source/SPFavoritesPreferencePane.m deleted file mode 100644 index 6b328d47..00000000 --- a/Source/SPFavoritesPreferencePane.m +++ /dev/null @@ -1,902 +0,0 @@ -// -// $Id$ -// -// SPFavoritesPreferencePane.m -// sequel-pro -// -// Created by Stuart Connolly (stuconnolly.com) on October 31, 2010 -// Copyright (c) 2010 Stuart Connolly. All rights reserved. -// -// 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 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, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// More info at <http://code.google.com/p/sequel-pro/> - -#import "SPFavoritesPreferencePane.h" -#import "SPFavoriteTextFieldCell.h" -#import "SPPreferenceController.h" -#import "SPKeychain.h" - -@interface SPFavoritesPreferencePane (PrivateAPI) - -- (void)_sortFavorites; -- (void)_updateFavoritePasswordsFromField:(NSControl *)passwordControl; - -@end - -@implementation SPFavoritesPreferencePane - -#pragma mark - -#pragma mark Intialisation - -/** - * Init. - */ -- (id)init -{ - if ((self = [super init])) { - - keychain = [[SPKeychain alloc] init]; - - favoriteType = 0; - reverseFavoritesSort = NO; - favoriteNameFieldWasTouched = YES; - - previousSortItem = SPFavoritesSortNameItem; - } - - return self; -} - -/** - * Initialise the UI, specifically the favourites table view and sort the favourites if required. - */ -- (void)awakeFromNib -{ - // Set sort items - currentSortItem = [prefs integerForKey:SPFavoritesSortedBy]; - reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse]; - - // Replace column's NSTextFieldCell with custom SWProfileTextFieldCell - [[[favoritesTableView tableColumns] objectAtIndex:0] setDataCell:tableCell]; - - [favoritesTableView registerForDraggedTypes:[NSArray arrayWithObject:SPFavoritesPasteboardDragType]]; - - [favoritesTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; - [favoritesTableView reloadData]; - - [tableCell setImage:[NSImage imageNamed:@"database"]]; - - // Set the button bar delegate - [splitViewButtonBar setSplitViewDelegate:self]; - - // Hide the tabs on the favorites tab view - left visible in IB for easy use - [favoritesTabView setTabViewType:NSNoTabsNoBorder]; - - // Sort favorites if a sort type has been selected - if (currentSortItem > -1) [self _sortFavorites]; -} - -#pragma mark - -#pragma mark IBAction methods - -/** - * Adds a new connection favorite. - */ -- (IBAction)addFavorite:(id)sender -{ - NSNumber *favoriteid = [NSNumber numberWithInteger:[[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; - - // Create default favorite - NSMutableDictionary *favorite = [NSMutableDictionary dictionaryWithObjects:[NSArray arrayWithObjects:NSLocalizedString(@"New Favorite", @"new favorite name"), [NSNumber numberWithInteger:0], @"", @"", @"", @"", [NSNumber numberWithInt:NSOffState], [NSNumber numberWithInt:NSOffState], [NSNumber numberWithInt:NSOffState], [NSNumber numberWithInt:NSOffState], @"", @"", @"", [NSNumber numberWithInt:NSOffState], @"", @"", favoriteid, nil] - forKeys:[NSArray arrayWithObjects:@"name", @"type", @"host", @"socket", @"user", @"port", @"useSSL", @"sslKeyFileLocationEnabled", @"sslCertificateFileLocationEnabled", @"sslCACertFileLocationEnabled", @"database", @"sshHost", @"sshUser", @"sshKeyLocationEnabled", @"sshKeyLocation", @"sshPort", @"id", nil]]; - - [favoritesController addObject:favorite]; - [favoritesController setSelectedObjects:[NSArray arrayWithObject:favorite]]; - - [favoritesTableView reloadData]; - [favoritesTableView scrollRowToVisible:[favoritesTableView selectedRow]]; - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; - - favoriteNameFieldWasTouched = NO; - - [[[self view] window] makeFirstResponder:favoriteHostTextField]; -} - -/** - * Removes the selected connection favorite. - */ -- (IBAction)removeFavorite:(id)sender -{ - if ([favoritesTableView numberOfSelectedRows] == 1) { - NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Delete favorite '%@'?", @"delete database message"), [favoritesController valueForKeyPath:@"selection.name"]] - defaultButton:NSLocalizedString(@"Delete", @"delete button") - alternateButton:NSLocalizedString(@"Cancel", @"cancel button") - otherButton:nil - informativeTextWithFormat:[NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the favorite '%@'? This operation cannot be undone.", @"delete database informative message"), [favoritesController valueForKeyPath:@"selection.name"]]]; - - NSArray *buttons = [alert buttons]; - - // Change the alert's cancel button to have the key equivalent of return - [[buttons objectAtIndex:0] setKeyEquivalent:@"d"]; - [[buttons objectAtIndex:0] setKeyEquivalentModifierMask:NSCommandKeyMask]; - [[buttons objectAtIndex:1] setKeyEquivalent:@"\r"]; - - [alert setAlertStyle:NSCriticalAlertStyle]; - - [alert beginSheetModalForWindow:[[self view] window] modalDelegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:@"removeFavorite"]; - } -} - -/** - * Duplicates the selected connection favorite. - */ -- (IBAction)duplicateFavorite:(id)sender -{ - if ([favoritesTableView numberOfSelectedRows] == 1) { - - NSMutableDictionary *favorite = [NSMutableDictionary dictionaryWithDictionary:[[favoritesController arrangedObjects] objectAtIndex:[favoritesTableView selectedRow]]]; - NSNumber *favoriteid = [NSNumber numberWithInteger:[[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; - NSInteger duplicatedFavoriteType = [[favorite objectForKey:@"type"] integerValue]; - - // Select the keychain passwords for duplication - NSString *keychainName = [keychain nameForFavoriteName:[favorite objectForKey:@"name"] id:[favorite objectForKey:@"id"]]; - NSString *keychainAccount = [keychain accountForUser:[favorite objectForKey:@"user"] host:((duplicatedFavoriteType == SPSocketConnection)?@"localhost":[favorite objectForKey:@"host"]) database:[favorite objectForKey:@"database"]]; - NSString *password = [keychain getPasswordForName:keychainName account:keychainAccount]; - NSString *keychainSSHName = [keychain nameForSSHForFavoriteName:[favorite objectForKey:@"name"] id:[favorite objectForKey:@"id"]]; - NSString *keychainSSHAccount = [keychain accountForSSHUser:[favorite objectForKey:@"sshUser"] sshHost:[favorite objectForKey:@"sshHost"]]; - NSString *sshPassword = [keychain getPasswordForName:keychainSSHName account:keychainSSHAccount]; - - // Update the unique ID - [favorite setObject:favoriteid forKey:@"id"]; - - // Alter the name for clarity - [favorite setObject:[NSString stringWithFormat:NSLocalizedString(@"%@ Copy", @"Initial favourite name after duplicating a previous favourite"), [favorite objectForKey:@"name"]] forKey:@"name"]; - - // Create new keychain items if appropriate - if (password && [password length]) { - keychainName = [keychain nameForFavoriteName:[favorite objectForKey:@"name"] id:[favorite objectForKey:@"id"]]; - [keychain addPassword:password forName:keychainName account:keychainAccount]; - } - - if (sshPassword && [sshPassword length]) { - keychainSSHName = [keychain nameForSSHForFavoriteName:[favorite objectForKey:@"name"] id:[favorite objectForKey:@"id"]]; - [keychain addPassword:sshPassword forName:keychainSSHName account:keychainSSHAccount]; - } - - password = nil, sshPassword = nil; - - [favoritesController addObject:favorite]; - [favoritesController setSelectedObjects:[NSArray arrayWithObject:favorite]]; - - [favoritesTableView reloadData]; - [favoritesTableView scrollRowToVisible:[favoritesTableView selectedRow]]; - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; - - [[[self view] window] makeFirstResponder:favoriteNameTextField]; - } -} - -/** - * Sorts the favorites table view based on the selected sort by item - */ -- (IBAction)sortFavorites:(id)sender -{ - previousSortItem = currentSortItem; - currentSortItem = [[sender menu] indexOfItem:sender]; - - [prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; - - // Perform sorting - [self _sortFavorites]; - - if (previousSortItem > -1) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState]; - - [[[sender menu] itemAtIndex:currentSortItem] setState:NSOnState]; -} - -/** - * Reverses the favorites table view sorting based on the selected criteria - */ -- (IBAction)reverseFavoritesSortOrder:(id)sender -{ - reverseFavoritesSort = (![sender state]); - - [prefs setBool:reverseFavoritesSort forKey:SPFavoritesSortedInReverse]; - - // Perform re-sorting - [self _sortFavorites]; - - [sender setState:reverseFavoritesSort]; -} - -/** - * Makes the selected favorite the default. - */ -- (IBAction)makeSelectedFavoriteDefault:(id)sender -{ - // Minus 2 from index to account for the 'Last Used' and separator items - [prefs setInteger:[favoritesTableView selectedRow] forKey:SPDefaultFavorite]; - - [favoritesTableView reloadData]; - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; -} - -/** - * Update the favorite host when the type changes. - */ -- (IBAction)favoriteTypeDidChange:(id)sender -{ - // If not socket and host is localhost, clear. - if (([sender indexOfSelectedItem] != 1) && [[favoritesController valueForKeyPath:@"selection.host"] isEqualToString:@"localhost"]) - { - [favoritesController setValue:@"" forKeyPath:@"selection.host"]; - } - - favoriteType = [sender indexOfSelectedItem]; - - // Update the name for a new added favorite if not touched by the user - if(!favoriteNameFieldWasTouched) { - [favoriteNameTextField setStringValue:[NSString stringWithFormat:@"%@@%@", - ([favoritesController valueForKeyPath:@"selection.user"]) ? [favoritesController valueForKeyPath:@"selection.user"] : @"", - (([sender indexOfSelectedItem] == 1) ? @"localhost" : - (([favoritesController valueForKeyPath:@"selection.host"]) ? [favoritesController valueForKeyPath:@"selection.host"] : @"")) - ]]; - - [favoritesController setValue:[favoriteNameTextField stringValue] forKeyPath:@"selection.name"]; - } - - // Request a password refresh to keep keychain references in synch with the favorites - [self _updateFavoritePasswordsFromField:nil]; -} - -/** - * Opens the SSH/SSL key selection window, ready to select a key file. - */ -- (IBAction)chooseKeyLocation:(id)sender -{ - NSString *directoryPath = nil; - NSString *filePath = nil; - NSArray *permittedFileTypes = nil; - NSOpenPanel *openPanel = [NSOpenPanel openPanel]; - - // Switch details by sender. - // First, SSH keys: - if (sender == sshSSHKeyButton) { - - // If the custom key location is currently disabled - after the button - // action - leave it disabled and return without showing the sheet. - if (![favoritesController valueForKeyPath:@"selection.sshKeyLocationEnabled"]) { - return; - } - - // Otherwise open a panel at the last or default location - NSString *sshKeyLocation = [favoritesController valueForKeyPath:@"selection.sshKeyLocation"]; - if (sshKeyLocation && [sshKeyLocation length]) { - filePath = [sshKeyLocation lastPathComponent]; - directoryPath = [sshKeyLocation stringByDeletingLastPathComponent]; - } - - permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"", nil]; - - [openPanel setAccessoryView:sshKeyLocationHelp]; - - // SSL key file location: - } - else if (sender == standardSSLKeyFileButton || sender == socketSSLKeyFileButton) { - if ([sender state] == NSOffState) { - [favoritesController setValue:nil forKeyPath:@"selection.sslKeyFileLocation"]; - return; - } - - permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"key", @"", nil]; - [openPanel setAccessoryView:sslKeyFileLocationHelp]; - - // SSL certificate file location: - } - else if (sender == standardSSLCertificateButton || sender == socketSSLCertificateButton) { - if ([sender state] == NSOffState) { - [favoritesController setValue:nil forKeyPath:@"selection.sslCertificateFileLocation"]; - return; - } - - permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"cert", @"", nil]; - [openPanel setAccessoryView:sslCertificateLocationHelp]; - - // SSL CA certificate file location: - } - else if (sender == standardSSLCACertButton || sender == socketSSLCACertButton) { - if ([sender state] == NSOffState) { - [favoritesController setValue:nil forKeyPath:@"selection.sslCACertFileLocation"]; - return; - } - - permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"cert", @"", nil]; - [openPanel setAccessoryView:sslCACertLocationHelp]; - } - - [openPanel beginSheetForDirectory:directoryPath - file:filePath - types:permittedFileTypes - modalForWindow:[[self view] window] - modalDelegate:self - didEndSelector:@selector(chooseKeyLocationSheetDidEnd:returnCode:contextInfo:) - contextInfo:sender]; -} - -#pragma mark - -#pragma mark Public API - -/** - * Selects the specified favorite(s) in the favorites list. - */ -- (void)selectFavorites:(NSArray *)favorites -{ - [favoritesController setSelectedObjects:favorites]; - [favoritesTableView scrollRowToVisible:[favoritesController selectionIndex]]; -} - -#pragma mark - -#pragma mark TableView datasource methods - -- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView -{ - return [[favoritesController arrangedObjects] count]; -} - -- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIndex -{ - return [[[favoritesController arrangedObjects] objectAtIndex:rowIndex] objectForKey:[tableColumn identifier]]; -} - -#pragma mark - -#pragma mark TableView drag & drop delegate methods - -- (BOOL)tableView:(NSTableView *)tableView writeRowsWithIndexes:(NSIndexSet *)rows toPasteboard:(NSPasteboard*)pboard -{ - if ([rows count] == 1) { - [pboard declareTypes:[NSArray arrayWithObject:SPFavoritesPasteboardDragType] owner:nil]; - [pboard setString:[[NSNumber numberWithInteger:[rows firstIndex]] stringValue] forType:SPFavoritesPasteboardDragType]; - - return YES; - } - else { - return NO; - } -} - -- (NSDragOperation)tableView:(NSTableView *)tableView validateDrop:(id <NSDraggingInfo>)info proposedRow:(NSInteger)row proposedDropOperation:(NSTableViewDropOperation)operation -{ - NSInteger originalRow; - NSArray *pboardTypes = [[info draggingPasteboard] types]; - - if (([pboardTypes count] > 1) && (row != -1)) { - if (([pboardTypes containsObject:SPFavoritesPasteboardDragType]) && (operation == NSTableViewDropAbove)) { - originalRow = [[[info draggingPasteboard] stringForType:SPFavoritesPasteboardDragType] integerValue]; - - if ((row != originalRow) && (row != (originalRow + 1))) { - return NSDragOperationMove; - } - } - } - - return NSDragOperationNone; -} - -- (BOOL)tableView:(NSTableView *)tableView acceptDrop:(id <NSDraggingInfo>)info row:(NSInteger)row dropOperation:(NSTableViewDropOperation)operation -{ - NSInteger originalRow; - NSInteger destinationRow; - NSInteger lastFavoriteIndexCached; - NSMutableDictionary *draggedRow; - - // Disable all automatic sorting - currentSortItem = -1; - reverseFavoritesSort = NO; - - [prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; - [prefs setBool:NO forKey:SPFavoritesSortedInReverse]; - - // Remove sort descriptors - [favoritesController setSortDescriptors:[NSArray array]]; - - // Uncheck sort by menu items - for (NSMenuItem *menuItem in [[favoritesSortByMenuItem submenu] itemArray]) - { - [menuItem setState:NSOffState]; - } - - originalRow = [[[info draggingPasteboard] stringForType:SPFavoritesPasteboardDragType] integerValue]; - destinationRow = row; - - if (destinationRow > originalRow) { - destinationRow--; - } - - draggedRow = [NSMutableDictionary dictionaryWithDictionary:[[favoritesController arrangedObjects] objectAtIndex:originalRow]]; - - // Before deleting this favorite, we need to save the current index. - // because removeObjectAtArrangedObjectIndex will set prefs LastFavoriteIndex to 0 - lastFavoriteIndexCached = [prefs integerForKey:SPLastFavoriteIndex]; - - [favoritesController removeObjectAtArrangedObjectIndex:originalRow]; - [favoritesController insertObject:draggedRow atArrangedObjectIndex:destinationRow]; - - [favoritesTableView reloadData]; - [favoritesTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:destinationRow] byExtendingSelection:NO]; - - // Update default favorite to take on new value - if (lastFavoriteIndexCached == originalRow) { - [prefs setInteger:destinationRow forKey:SPLastFavoriteIndex]; - } - - // Update default favorite to take on new value - if ([prefs integerForKey:SPDefaultFavorite] == originalRow) { - [prefs setInteger:destinationRow forKey:SPDefaultFavorite]; - } - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; - - return YES; -} - -#pragma mark - -#pragma mark TableView delegate methods - -- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)index -{ - if ([cell isKindOfClass:[SPFavoriteTextFieldCell class]]) { - [cell setFavoriteName:[[[favoritesController arrangedObjects] objectAtIndex:index] objectForKey:@"name"]]; - - if ([[[[favoritesController arrangedObjects] objectAtIndex:index] objectForKey:@"type"] integerValue] == SPSocketConnection) { - [cell setFavoriteHost:@"localhost"]; - } - else { - [cell setFavoriteHost:[[[favoritesController arrangedObjects] objectAtIndex:index] objectForKey:@"host"]]; - } - } -} - -- (void)tableViewSelectionDidChange:(NSNotification *)notification -{ - if ([[favoritesTableView selectedRowIndexes] count] > 0) { - [favoritesController setSelectionIndexes:[favoritesTableView selectedRowIndexes]]; - } - - // If no selection is present, blank the password fields (which can't use bindings) - if ([[favoritesTableView selectedRowIndexes] count] == 0) { - [standardPasswordField setStringValue:@""]; - [socketPasswordField setStringValue:@""]; - [sshSQLPasswordField setStringValue:@""]; - [sshPasswordField setStringValue:@""]; - - return; - } - - // Keep a copy of the favorite as it currently stands - if (currentFavorite) [currentFavorite release]; - - currentFavorite = [[[favoritesController selectedObjects] objectAtIndex:0] copy]; - - // Retrieve and set the password. - NSString *keychainName = [keychain nameForFavoriteName:[currentFavorite objectForKey:@"name"] id:[currentFavorite objectForKey:@"id"]]; - NSString *keychainAccount = [keychain accountForUser:[currentFavorite objectForKey:@"user"] host:(([[currentFavorite objectForKey:@"type"] integerValue] == SPSocketConnection)?@"localhost":[currentFavorite objectForKey:@"host"]) database:[currentFavorite objectForKey:@"database"]]; - NSString *passwordValue = [keychain getPasswordForName:keychainName account:keychainAccount]; - - [standardPasswordField setStringValue:passwordValue]; - [socketPasswordField setStringValue:passwordValue]; - [sshSQLPasswordField setStringValue:passwordValue]; - - // Retrieve the SSH keychain password if appropriate. - NSString *keychainSSHName = [keychain nameForSSHForFavoriteName:[currentFavorite objectForKey:@"name"] id:[currentFavorite objectForKey:@"id"]]; - NSString *keychainSSHAccount = [keychain accountForSSHUser:[currentFavorite objectForKey:@"sshUser"] sshHost:[currentFavorite objectForKey:@"sshHost"]]; - - [sshPasswordField setStringValue:[keychain getPasswordForName:keychainSSHName account:keychainSSHAccount]]; - - favoriteNameFieldWasTouched = YES; -} - -#pragma mark - -#pragma mark TextField delegate methods and type change action - -/** - * Trap editing end notifications and use them to update the keychain password - * appropriately when name, host, user, password or database changes. - */ -- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor -{ - // Request a password refresh to keep keychain references in synch with favorites - [self _updateFavoritePasswordsFromField:control]; - - // Proceed with editing - return YES; -} - -/** - * Trap and control the 'name' field of the selected favorite. If the user pressed - * 'Add Favorite' the 'name' field is set to "New Favorite". If the user do not - * change the 'name' field or delete that field it will be set to user@host automatically. - */ -- (void)controlTextDidChange:(NSNotification *)notification -{ - id field = [notification object]; - - BOOL nameFieldIsEmpty = ([[favoritesController valueForKeyPath:@"selection.name"] isEqualToString:@""] || - [[favoriteNameTextField stringValue] isEqualToString:@""]); - - switch (favoriteType) - { - case 0: - if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && (field == favoriteUserTextField || field == favoriteHostTextField))) { - [favoriteNameTextField setStringValue:[NSString stringWithFormat:@"%@@%@", [favoriteUserTextField stringValue], [favoriteHostTextField stringValue]]]; - [favoritesController setValue:[favoriteNameTextField stringValue] forKeyPath:@"selection.name"]; - [prefs synchronize]; - - // if name field is empty enable user@host update - if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; - } - break; - case 1: - if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && field == favoriteUserTextFieldSocket)) { - [favoriteNameTextField setStringValue:[NSString stringWithFormat:@"%@@localhost", [favoriteUserTextFieldSocket stringValue]]]; - [favoritesController setValue:[favoriteNameTextField stringValue] forKeyPath:@"selection.name"]; - [prefs synchronize]; - - // if name field is empty enable user@host update - if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; - } - break; - case 2: - if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && (field == favoriteUserTextFieldSSH || field == favoriteHostTextFieldSSH))) { - [favoriteNameTextField setStringValue:[NSString stringWithFormat:@"%@@%@", [favoriteUserTextFieldSSH stringValue], [favoriteHostTextFieldSSH stringValue]]]; - [favoritesController setValue:[favoriteNameTextField stringValue] forKeyPath:@"selection.name"]; - [prefs synchronize]; - - // if name field is empty enable user@host update - if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; - } - break; - default: - break; - } - - if (field == favoriteNameTextField) favoriteNameFieldWasTouched = YES; -} - -#pragma mark - -#pragma mark SplitView delegate methods - -- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset -{ - return (proposedMax - 220); -} - -- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset -{ - return (proposedMin + 94); -} - -#pragma mark - -#pragma mark Other - -/** - * Menu item validation; - */ -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ - SEL action = [menuItem action]; - - if ((action == @selector(removeFavorite:)) || (action == @selector(duplicateFavorite:))) { - return ([favoritesTableView numberOfSelectedRows] > 0); - } - - if (action == @selector(makeSelectedFavoriteDefault:)) { - return ([favoritesTableView numberOfSelectedRows] == 1); - } - - if ((action == @selector(sortFavorites:)) || (action == @selector(reverseFavoritesSortOrder:))) { - - // Loop all the items in the sort by menu only checking the currently selected one - for (NSMenuItem *item in [[menuItem menu] itemArray]) - { - [item setState:([[menuItem menu] indexOfItem:item] == currentSortItem)]; - } - - // Check or uncheck the reverse sort item - if (action == @selector(reverseFavoritesSortOrder:)) { - [menuItem setState:reverseFavoritesSort]; - } - - return [[[[[self view] window] toolbar] selectedItemIdentifier] isEqualToString:SPPreferenceToolbarFavorites]; - } - - return YES; -} - -/** - * Called after closing the SSH/SSL key selection sheet. - */ -- (void)chooseKeyLocationSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo -{ - NSString *abbreviatedFileName = [[openPanel filename] stringByAbbreviatingWithTildeInPath]; - - // SSH key file selection - if (contextInfo == sshSSHKeyButton) { - if (returnCode == NSCancelButton) { - [favoritesController setValue:[NSNumber numberWithInt:NSOffState] forKeyPath:@"selection.sshKeyLocationEnabled"]; - return; - } - - [favoritesController setValue:abbreviatedFileName forKeyPath:@"selection.sshKeyLocation"]; - [self setSshKeyLocation:abbreviatedFileName]; - - // SSL key file selection - } - else if (contextInfo == standardSSLKeyFileButton || contextInfo == socketSSLKeyFileButton) { - if (returnCode == NSCancelButton) { - [favoritesController setValue:[NSNumber numberWithInt:NSOffState] forKeyPath:@"selection.sslKeyFileLocationEnabled"]; - [favoritesController setValue:nil forKeyPath:@"selection.sslKeyFileLocation"]; - return; - } - - [favoritesController setValue:abbreviatedFileName forKeyPath:@"selection.sslKeyFileLocation"]; - - // SSL certificate file selection - } - else if (contextInfo == standardSSLCertificateButton || contextInfo == socketSSLCertificateButton) { - if (returnCode == NSCancelButton) { - [favoritesController setValue:[NSNumber numberWithInt:NSOffState] forKeyPath:@"selection.sslCertificateFileLocationEnabled"]; - [favoritesController setValue:nil forKeyPath:@"selection.sslCertificateFileLocation"]; - return; - } - - [favoritesController setValue:abbreviatedFileName forKeyPath:@"selection.sslCertificateFileLocation"]; - - // SSL CA certificate file selection - } - else if (contextInfo == standardSSLCACertButton || contextInfo == socketSSLCACertButton) { - if (returnCode == NSCancelButton) { - [favoritesController setValue:[NSNumber numberWithInt:NSOffState] forKeyPath:@"selection.sslCACertFileLocationEnabled"]; - [favoritesController setValue:nil forKeyPath:@"selection.sslCACertFileLocation"]; - return; - } - - [favoritesController setValue:abbreviatedFileName forKeyPath:@"selection.sslCACertFileLocation"]; - } -} - -- (void)sheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo -{ - // Order out current sheet to suppress overlapping of sheets - if ([sheet respondsToSelector:@selector(orderOut:)]) { - [sheet orderOut:nil]; - } - else if ([sheet respondsToSelector:@selector(window)]) { - [[sheet window] orderOut:nil]; - } - - // Remove the current database - if ([contextInfo isEqualToString:@"removeFavorite"]) { - if (returnCode == NSAlertDefaultReturn) { - - // Get selected favorite's details - NSString *name = [favoritesController valueForKeyPath:@"selection.name"]; - NSString *user = [favoritesController valueForKeyPath:@"selection.user"]; - NSString *host = [favoritesController valueForKeyPath:@"selection.host"]; - NSString *database = [favoritesController valueForKeyPath:@"selection.database"]; - NSString *sshUser = [favoritesController valueForKeyPath:@"selection.sshUser"]; - NSString *sshHost = [favoritesController valueForKeyPath:@"selection.sshHost"]; - NSString *favoriteid = [favoritesController valueForKeyPath:@"selection.id"]; - NSInteger type = [[favoritesController valueForKeyPath:@"selection.type"] integerValue]; - - // Remove passwords from the Keychain - [keychain deletePasswordForName:[keychain nameForFavoriteName:name id:favoriteid] - account:[keychain accountForUser:user host:((type == SPSocketConnection)?@"localhost":host) database:database]]; - [keychain deletePasswordForName:[keychain nameForSSHForFavoriteName:name id:favoriteid] - account:[keychain accountForSSHUser:sshUser sshHost:sshHost]]; - - // Reset last used favorite - if ([favoritesTableView selectedRow] == [prefs integerForKey:SPLastFavoriteIndex]) { - [prefs setInteger:0 forKey:SPLastFavoriteIndex]; - } - - // Reset default favorite - if ([favoritesTableView selectedRow] == [prefs integerForKey:SPDefaultFavorite]) { - [prefs setInteger:[prefs integerForKey:SPLastFavoriteIndex] forKey:SPDefaultFavorite]; - } - - [favoritesController removeObjectAtArrangedObjectIndex:[favoritesTableView selectedRow]]; - - [favoritesTableView reloadData]; - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; - } - } -} - -#pragma mark - -#pragma mark Preference pane protocol methods - -- (NSView *)preferencePaneView -{ - return [self view]; -} - -- (NSImage *)preferencePaneIcon -{ - return [NSImage imageNamed:@"toolbar-preferences-favorites"]; -} - -- (NSString *)preferencePaneName -{ - return NSLocalizedString(@"Favorites", @"favorites label"); -} - -- (NSString *)preferencePaneIdentifier -{ - return SPPreferenceToolbarFavorites; -} - -- (NSString *)preferencePaneToolTip -{ - return NSLocalizedString(@"Favorite Preferences", @"favorites preference pane tooltip"); -} - -- (BOOL)preferencePaneAllowsResizing -{ - return YES; -} - -#pragma mark - -#pragma mark Private API - -/** - * Sorts the connection favorites based on the selected criteria. - */ -- (void)_sortFavorites -{ - NSString *sortKey = SPFavoriteNameKey; - - switch (currentSortItem) - { - case SPFavoritesSortNameItem: - sortKey = SPFavoriteNameKey; - break; - case SPFavoritesSortHostItem: - sortKey = SPFavoriteHostKey; - break; - case SPFavoritesSortTypeItem: - sortKey = SPFavoriteTypeKey; - break; - } - - NSSortDescriptor *sortDescriptor = nil; - - if (currentSortItem == SPFavoritesSortTypeItem) { - sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:sortKey ascending:(!reverseFavoritesSort)] autorelease]; - } - else { - sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:sortKey ascending:(!reverseFavoritesSort) selector:@selector(caseInsensitiveCompare:)] autorelease]; - } - - [favoritesController setSortDescriptors:[NSArray arrayWithObject:sortDescriptor]]; - - [favoritesTableView reloadData]; - - [[(SPPreferenceController *)[[[self view] window] delegate] generalPreferencePane] updateDefaultFavoritePopup]; -} - -/** - * Check all fields used in the keychain names against the old values for that - * favorite, and update the keychain names to match if necessary. - * If an (optional) recognised password field is supplied, that field is assumed - * to have changed and is used to supply the new value. - */ -- (void)_updateFavoritePasswordsFromField:(NSControl *)passwordControl -{ - if (!currentFavorite) return; - - NSString *passwordValue; - NSString *oldKeychainName, *newKeychainName; - NSString *oldKeychainAccount, *newKeychainAccount; - NSString *oldHostnameForPassword = ([[currentFavorite objectForKey:@"type"] integerValue] == SPSocketConnection) ? @"localhost" : [currentFavorite objectForKey:@"host"]; - NSString *newHostnameForPassword = ([[favoritesController valueForKeyPath:@"selection.type"] integerValue] == SPSocketConnection) ? @"localhost" : [favoritesController valueForKeyPath:@"selection.host"]; - - // SQL passwords are indexed by name, host, user and database. If any of these - // have changed, or a standard password field has, alter the keychain item to match. - if (![[currentFavorite objectForKey:@"name"] isEqualToString:[favoritesController valueForKeyPath:@"selection.name"]] - || ![oldHostnameForPassword isEqualToString:newHostnameForPassword] - || ![[currentFavorite objectForKey:@"user"] isEqualToString:[favoritesController valueForKeyPath:@"selection.user"]] - || ![[currentFavorite objectForKey:@"database"] isEqualToString:[favoritesController valueForKeyPath:@"selection.database"]] - || passwordControl == standardPasswordField || passwordControl == socketPasswordField || passwordControl == sshSQLPasswordField) - { - - // Determine the correct password field to read the password from, defaulting to standard - if (passwordControl == socketPasswordField) { - passwordValue = [socketPasswordField stringValue]; - } - else if (passwordControl == sshSQLPasswordField) { - passwordValue = [sshSQLPasswordField stringValue]; - } - else { - passwordValue = [standardPasswordField stringValue]; - } - - // Get the old keychain name and account strings - oldKeychainName = [keychain nameForFavoriteName:[currentFavorite objectForKey:@"name"] id:[favoritesController valueForKeyPath:@"selection.id"]]; - oldKeychainAccount = [keychain accountForUser:[currentFavorite objectForKey:@"user"] host:oldHostnameForPassword database:[currentFavorite objectForKey:@"database"]]; - - // Delete the old keychain item - [keychain deletePasswordForName:oldKeychainName account:oldKeychainAccount]; - - // Set up the new keychain name and account strings - newKeychainName = [keychain nameForFavoriteName:[favoritesController valueForKeyPath:@"selection.name"] id:[favoritesController valueForKeyPath:@"selection.id"]]; - newKeychainAccount = [keychain accountForUser:[favoritesController valueForKeyPath:@"selection.user"] host:newHostnameForPassword database:[favoritesController valueForKeyPath:@"selection.database"]]; - - // Add the new keychain item if the password field has a value - if ([passwordValue length]) - [keychain addPassword:passwordValue forName:newKeychainName account:newKeychainAccount]; - - // Synch password changes - [standardPasswordField setStringValue:passwordValue]; - [socketPasswordField setStringValue:passwordValue]; - [sshSQLPasswordField setStringValue:passwordValue]; - - passwordValue = @""; - } - - // If SSH account/password details have changed, update the keychain to match - if (![[currentFavorite objectForKey:@"name"] isEqualToString:[favoritesController valueForKeyPath:@"selection.name"]] - || ![[currentFavorite objectForKey:@"sshHost"] isEqualToString:[favoritesController valueForKeyPath:@"selection.sshHost"]] - || ![[currentFavorite objectForKey:@"sshUser"] isEqualToString:[favoritesController valueForKeyPath:@"selection.sshUser"]] - || passwordControl == sshPasswordField) { - - // Get the old keychain name and account strings - oldKeychainName = [keychain nameForSSHForFavoriteName:[currentFavorite objectForKey:@"name"] id:[favoritesController valueForKeyPath:@"selection.id"]]; - oldKeychainAccount = [keychain accountForSSHUser:[currentFavorite objectForKey:@"sshUser"] sshHost:[currentFavorite objectForKey:@"sshHost"]]; - - // Delete the old keychain item - [keychain deletePasswordForName:oldKeychainName account:oldKeychainAccount]; - - // Set up the new keychain name and account strings - newKeychainName = [keychain nameForSSHForFavoriteName:[favoritesController valueForKeyPath:@"selection.name"] id:[favoritesController valueForKeyPath:@"selection.id"]]; - newKeychainAccount = [keychain accountForSSHUser:[favoritesController valueForKeyPath:@"selection.sshUser"] sshHost:[favoritesController valueForKeyPath:@"selection.sshHost"]]; - - // Add the new keychain item if the password field has a value - if ([[sshPasswordField stringValue] length]) - [keychain addPassword:[sshPasswordField stringValue] forName:newKeychainName account:newKeychainAccount]; - } - - // Update the current favorite - if (currentFavorite) [currentFavorite release], currentFavorite = nil; - - if ([[favoritesTableView selectedRowIndexes] count] > 0) - currentFavorite = [[[favoritesController selectedObjects] objectAtIndex:0] copy]; -} - -#pragma mark - - -- (void)dealloc -{ - [keychain release], keychain = nil; - - if (currentFavorite) [currentFavorite release], currentFavorite = nil; - - [super dealloc]; -} - -@end diff --git a/Source/SPFlippedView.h b/Source/SPFlippedView.h new file mode 100644 index 00000000..0270daf8 --- /dev/null +++ b/Source/SPFlippedView.h @@ -0,0 +1,28 @@ +// +// $Id$ +// +// SPFlippedView.h +// sequel-pro +// +// Created by Rowan Beentje on 28/06/2009. +// Copyright 2009 Arboreal. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +@interface SPFlippedView : NSView + +@end diff --git a/Source/SPFlippedView.m b/Source/SPFlippedView.m new file mode 100644 index 00000000..b5334488 --- /dev/null +++ b/Source/SPFlippedView.m @@ -0,0 +1,38 @@ +// +// $Id$ +// +// SPFlippedView.m +// sequel-pro +// +// Created by Rowan Beentje on 28/06/2009. +// Copyright 2009 Arboreal. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +#import "SPFlippedView.h" + +@implementation SPFlippedView + +/** + * Is flipped to simplify drawing. + */ +- (BOOL)isFlipped +{ + return YES; +} + +@end diff --git a/Source/SPGeneralPreferencePane.h b/Source/SPGeneralPreferencePane.h index 76343a83..ab7ef949 100644 --- a/Source/SPGeneralPreferencePane.h +++ b/Source/SPGeneralPreferencePane.h @@ -42,6 +42,5 @@ - (IBAction)updateDefaultFavorite:(id)sender; - (void)updateDefaultFavoritePopup; -- (void)resetDefaultFavoritePopupSelection; @end diff --git a/Source/SPGeneralPreferencePane.m b/Source/SPGeneralPreferencePane.m index b87d6ab8..36cbed9f 100644 --- a/Source/SPGeneralPreferencePane.m +++ b/Source/SPGeneralPreferencePane.m @@ -36,9 +36,8 @@ - (IBAction)updateDefaultFavorite:(id)sender { [prefs setBool:([defaultFavoritePopup indexOfSelectedItem] == 0) forKey:SPSelectLastFavoriteUsed]; - - // Minus 2 from index to account for the "Last Used" and separator items - [prefs setInteger:([defaultFavoritePopup indexOfSelectedItem] - 2) forKey:SPDefaultFavorite]; + + [prefs setInteger:[[sender selectedItem] tag] forKey:SPDefaultFavorite]; } #pragma mark - @@ -56,36 +55,24 @@ [[defaultFavoritePopup menu] addItem:[NSMenuItem separatorItem]]; // Add all favorites to the menu - for (NSString *favorite in [[favoritesController arrangedObjects] valueForKeyPath:@"name"]) + for (NSDictionary *favorite in [favoritesController arrangedObjects]) { - NSMenuItem *favoriteMenuItem = [[NSMenuItem alloc] initWithTitle:favorite action:NULL keyEquivalent:@""]; + NSMenuItem *favoriteMenuItem = [[NSMenuItem alloc] initWithTitle:[favorite objectForKey:SPFavoriteNameKey] action:NULL keyEquivalent:@""]; + + [favoriteMenuItem setTag:[[favorite objectForKey:SPFavoriteIDKey] integerValue]]; [[defaultFavoritePopup menu] addItem:favoriteMenuItem]; [favoriteMenuItem release]; } - // Add item to switch to edit favorites pane - [[defaultFavoritePopup menu] addItem:[NSMenuItem separatorItem]]; - - NSMenuItem *editMenuItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Edit Favorites…", @"edit favorites menu item") action:@selector(displayFavoritePreferences:) keyEquivalent:@""]; - - [editMenuItem setTarget:[[[self view] window] delegate]]; - - [[defaultFavoritePopup menu] addItem:editMenuItem]; - - [editMenuItem release]; - // Select the default favorite from prefs - [defaultFavoritePopup selectItemAtIndex:(![prefs boolForKey:SPSelectLastFavoriteUsed]) ? ([prefs integerForKey:SPDefaultFavorite] + 2) : 0]; -} - -/** - * Resets the default favorite popup button selection based on the user's preferences. - */ -- (void)resetDefaultFavoritePopupSelection -{ - [defaultFavoritePopup selectItemAtIndex:(![prefs boolForKey:SPSelectLastFavoriteUsed]) ? ([prefs integerForKey:SPDefaultFavorite] + 2) : 0]; + if (![prefs boolForKey:SPSelectLastFavoriteUsed]) { + [defaultFavoritePopup selectItemWithTag:[prefs integerForKey:SPDefaultFavorite]]; + } + else { + [defaultFavoritePopup selectItemAtIndex:0]; + } } #pragma mark - diff --git a/Source/SPGroupNode.h b/Source/SPGroupNode.h new file mode 100644 index 00000000..e5dad641 --- /dev/null +++ b/Source/SPGroupNode.h @@ -0,0 +1,47 @@ +// +// $Id$ +// +// SPGroupNode.h +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 21, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +/** + * @class SPGroupNode SPGroupNode.h + * + * @author Stuart Connolly http://stuconnolly.com/ + * + * Tree node that represents a group. + */ +@interface SPGroupNode : NSObject <NSCopying> +{ + NSString *nodeName; +} + +/** + * @property nodeName The group node's name + */ +@property (readwrite, retain) NSString *nodeName; + +- (id)initWithName:(NSString *)name; + ++ (SPGroupNode *)groupNodeWithName:(NSString *)name; + +@end diff --git a/Source/SPGroupNode.m b/Source/SPGroupNode.m new file mode 100644 index 00000000..6687b29e --- /dev/null +++ b/Source/SPGroupNode.m @@ -0,0 +1,85 @@ +// +// $Id$ +// +// SPGroupNode.m +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 21, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +#import "SPGroupNode.h" + +@implementation SPGroupNode + +@synthesize nodeName; + +#pragma mark - +#pragma mark Initialisation + +- (id)init +{ + if ((self = [super init])) { + [self setNodeName:nil]; + } + + return self; +} + +- (id)initWithName:(NSString *)name +{ + if ((self = [self init])) { + [self setNodeName:name]; + } + + return self; +} + ++ (SPGroupNode *)groupNodeWithName:(NSString *)name +{ + return [[[self alloc] initWithName:name] autorelease]; +} + +#pragma mark - +#pragma mark Copying protocol methods + +- (id)copyWithZone:(NSZone *)zone +{ + SPGroupNode *node = [[[self class] allocWithZone:zone] init]; + + [node setNodeName:[self nodeName]]; + + return node; +} + +#pragma mark - +#pragma mark Other + +- (NSString *)description +{ + return [NSString stringWithFormat:@"<%@: %p ('%@')>", [self className], self, [self nodeName]]; +} + +#pragma mark - + +- (void)dealloc +{ + if (nodeName) [nodeName release], nodeName = nil; +} + +@end diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index 575881af..7b0e0cc3 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -27,7 +27,6 @@ @class SPGeneralPreferencePane, SPTablesPreferencePane, - SPFavoritesPreferencePane, SPNotificationsPreferencePane, SPEditorPreferencePane, SPAutoUpdatePreferencePane, @@ -45,7 +44,6 @@ // Preference pane controllers IBOutlet SPGeneralPreferencePane *generalPreferencePane; IBOutlet SPTablesPreferencePane *tablesPreferencePane; - IBOutlet SPFavoritesPreferencePane *favoritesPreferencePane; IBOutlet SPNotificationsPreferencePane *notificationsPreferencePane; IBOutlet SPEditorPreferencePane *editorPreferencePane; IBOutlet SPAutoUpdatePreferencePane *autoUpdatePreferencePane; @@ -69,7 +67,6 @@ @property (readonly) SPGeneralPreferencePane *generalPreferencePane; @property (readonly) SPTablesPreferencePane *tablesPreferencePane; -@property (readonly) SPFavoritesPreferencePane *favoritesPreferencePane; @property (readonly) SPNotificationsPreferencePane *notificationsPreferencePane; @property (readonly) SPEditorPreferencePane *editorPreferencePane; @property (readonly) SPAutoUpdatePreferencePane *autoUpdatePreferencePane; diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 8a9eb530..7592319a 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -39,7 +39,6 @@ @synthesize generalPreferencePane; @synthesize tablesPreferencePane; -@synthesize favoritesPreferencePane; @synthesize notificationsPreferencePane; @synthesize editorPreferencePane; @synthesize autoUpdatePreferencePane; @@ -75,7 +74,6 @@ generalPreferencePane, tablesPreferencePane, notificationsPreferencePane, - favoritesPreferencePane, editorPreferencePane, autoUpdatePreferencePane, networkPreferencePane, @@ -125,27 +123,6 @@ [self _resizeWindowForContentView:[tablesPreferencePane preferencePaneView]]; } -/** - * Displays the favorite preferences pane. - */ -- (IBAction)displayFavoritePreferences:(id)sender -{ - // To make the Favorites pane resizable give the window a minimum size and display the resize indicator. - // Notice that we still make all other panes non-resizable by removing the dsiplay of the indicator and - // resetting the minimum size to zero. - [[self window] setMinSize:NSMakeSize(500, 381)]; - [[self window] setShowsResizeIndicator:[favoritesPreferencePane preferencePaneAllowsResizing]]; - - [toolbar setSelectedItemIdentifier:[favoritesPreferencePane preferencePaneIdentifier]]; - - [self _resizeWindowForContentView:[favoritesPreferencePane preferencePaneView]]; - - // Set the default favorite popup back to preference - if ([sender isKindOfClass:[NSMenuItem class]]) { - [generalPreferencePane resetDefaultFavoritePopupSelection]; - } -} - /** * Displays the editor preferences pane. */ @@ -223,14 +200,6 @@ [tablesItem setTarget:self]; [tablesItem setAction:@selector(displayTablePreferences:)]; - // Favorite preferences - favoritesItem = [[NSToolbarItem alloc] initWithItemIdentifier:[favoritesPreferencePane preferencePaneIdentifier]]; - - [favoritesItem setLabel:[favoritesPreferencePane preferencePaneName]]; - [favoritesItem setImage:[favoritesPreferencePane preferencePaneIcon]]; - [favoritesItem setTarget:self]; - [favoritesItem setAction:@selector(displayFavoritePreferences:)]; - // Notification preferences notificationsItem = [[NSToolbarItem alloc] initWithItemIdentifier:[notificationsPreferencePane preferencePaneIdentifier]]; diff --git a/Source/SPPreferenceControllerDelegate.m b/Source/SPPreferenceControllerDelegate.m index 56bb807a..5b531066 100644 --- a/Source/SPPreferenceControllerDelegate.m +++ b/Source/SPPreferenceControllerDelegate.m @@ -65,9 +65,6 @@ else if ([itemIdentifier isEqualToString:SPPreferenceToolbarTables]) { return tablesItem; } - else if ([itemIdentifier isEqualToString:SPPreferenceToolbarFavorites]) { - return favoritesItem; - } else if ([itemIdentifier isEqualToString:SPPreferenceToolbarNotifications]) { return notificationsItem; } @@ -92,7 +89,6 @@ return [NSArray arrayWithObjects: SPPreferenceToolbarGeneral, SPPreferenceToolbarTables, - SPPreferenceToolbarFavorites, SPPreferenceToolbarNotifications, SPPreferenceToolbarEditor, SPPreferenceToolbarShortcuts, @@ -106,7 +102,6 @@ return [NSArray arrayWithObjects: SPPreferenceToolbarGeneral, SPPreferenceToolbarTables, - SPPreferenceToolbarFavorites, SPPreferenceToolbarNotifications, SPPreferenceToolbarEditor, SPPreferenceToolbarShortcuts, @@ -120,7 +115,6 @@ return [NSArray arrayWithObjects: SPPreferenceToolbarGeneral, SPPreferenceToolbarTables, - SPPreferenceToolbarFavorites, SPPreferenceToolbarNotifications, SPPreferenceToolbarEditor, SPPreferenceToolbarShortcuts, diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m index 7b1c31cf..a6a5ef4f 100644 --- a/Source/SPPreferencesUpgrade.m +++ b/Source/SPPreferencesUpgrade.m @@ -121,7 +121,7 @@ void SPApplyRevisionChanges(void) @"showError", SPShowNoAffectedRowsError, @"connectionTimeout", SPConnectionTimeoutValue, @"keepAliveInterval", SPKeepAliveInterval, - @"lastFavoriteIndex", SPLastFavoriteIndex, + @"lastFavoriteIndex", SPLastFavoriteID, nil]; keyEnumerator = [keysToUpgrade keyEnumerator]; @@ -298,7 +298,7 @@ void SPApplyRevisionChanges(void) } /** - * Attempts to migrate the user's connection favorites from their preference file to the new Favaorites + * Attempts to migrate the user's connection favorites from their preference file to the new favorites * plist in the application's support 'Data' directory. */ void SPMigrateConnectionFavoritesData(void) @@ -307,6 +307,26 @@ void SPMigrateConnectionFavoritesData(void) NSFileManager *fileManager = [NSFileManager defaultManager]; NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; + NSMutableArray *favorites = [[NSMutableArray alloc] initWithArray:[prefs objectForKey:SPFavorites]]; + + // Change the last used favorite and default favorite's indexes to be ID based + if (![prefs objectForKey:SPLastFavoriteID]) { + + NSInteger lastFavoriteIndex = [prefs integerForKey:@"LastFavoriteIndex"]; + NSInteger defaultFavoriteIndex = [prefs integerForKey:SPDefaultFavorite]; + + if ((lastFavoriteIndex >= 0) && (lastFavoriteIndex <= [favorites count])) { + [prefs setInteger:[[[favorites objectAtIndex:lastFavoriteIndex] objectForKey:SPFavoriteIDKey] integerValue] forKey:SPLastFavoriteID]; + } + + if ((defaultFavoriteIndex >= 0) && (defaultFavoriteIndex <= [favorites count])) { + [prefs setInteger:[[[favorites objectAtIndex:defaultFavoriteIndex] objectForKey:SPFavoriteIDKey] integerValue] forKey:SPDefaultFavorite]; + } + + // TOOD: Only uncomment when migration is complete + //[prefs removeObjectForKey:@"LastFavoriteIndex"]; + } + NSString *dataPath = [fileManager applicationSupportDirectoryForSubDirectory:SPDataSupportFolder error:&error]; if (error) { @@ -319,7 +339,7 @@ void SPMigrateConnectionFavoritesData(void) // Only proceed if the new favorites plist doesn't already exist if (![fileManager fileExistsAtPath:favoritesFile]) { - NSDictionary *newFavorites = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [prefs objectForKey:SPFavorites], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; + NSDictionary *newFavorites = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, favorites, SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; error = nil; NSString *errorString = nil; @@ -334,7 +354,7 @@ void SPMigrateConnectionFavoritesData(void) NSLog(@"Error migrating favorites data: %@", [error localizedDescription]); } else { - // Only uncomment when migration is complete + // TODO: Only uncomment when migration is complete //[prefs removeObjectForKey:SPFavorites]; } } @@ -345,6 +365,8 @@ void SPMigrateConnectionFavoritesData(void) return; } } + + [favorites release]; } @end diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index 82075eac..d6b5c186 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -27,6 +27,9 @@ #import "SPDatabaseDocument.h" #import "SPAlertSheets.h" +// Constants +static const NSString *SPKillProcessQueryMode = @"SPKillProcessQueryMode"; +static const NSString *SPKillProcessConnectionMode = @"SPKillProcessConnectionMode"; static const NSString *SPTableViewIDColumnIdentifier = @"Id"; @interface SPProcessListController (PrivateAPI) diff --git a/Source/SPTreeNode.h b/Source/SPTreeNode.h new file mode 100644 index 00000000..f93157ea --- /dev/null +++ b/Source/SPTreeNode.h @@ -0,0 +1,56 @@ +// +// $Id$ +// +// SPTreeNode.h +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 23, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +/** + * @class SPTreeNode SPTreeNode.h + * + * @author Stuart Connolly http://stuconnolly.com/ + * + * NSTreeNode subclass which adds some convenience methods. + */ +@interface SPTreeNode : NSTreeNode +{ + BOOL isGroup; +} + +/** + * @property isGroup Indicates whether or not the node is a group. + */ +@property (readwrite, assign) BOOL isGroup; + +- (void)removeObjectFromChildren:(id)object; + +- (NSArray *)descendants; +- (NSArray *)allChildLeafs; +- (NSArray *)groupChildren; + +- (SPTreeNode *)parentFromArray:(NSArray *)array; + +- (BOOL)isDescendantOfOrOneOfNodes:(NSArray *)nodes; +- (BOOL)isDescendantOfNodes:(NSArray *)nodes; + +- (NSDictionary *)dictionaryRepresentation; + +@end diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m new file mode 100644 index 00000000..507939c4 --- /dev/null +++ b/Source/SPTreeNode.m @@ -0,0 +1,252 @@ +// +// $Id$ +// +// SPTreeNode.m +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on November 23, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// 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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +#import "SPTreeNode.h" +#import "SPFavoriteNode.h" +#import "SPGroupNode.h" + +@implementation SPTreeNode + +@synthesize isGroup; + +#pragma mark - +#pragma mark Initialisation + ++ (id)treeNodeWithRepresentedObject:(id)object +{ + return [[[SPTreeNode alloc] initWithRepresentedObject:object] autorelease]; +} + +- (id)initWithRepresentedObject:(id)object +{ + if ((self = [super initWithRepresentedObject:object])) { + [self setIsGroup:NO]; + } + + return self; +} + +#pragma mark - +#pragma mark Public API + +/** + * Recursive method which searches children and children of all sub-nodes + * to remove the supplied object. + * + * @param object The object to remove + */ +- (void)removeObjectFromChildren:(id)object +{ + for (SPTreeNode *node in [self childNodes]) + { + if (node == object) { + [[self childNodes] removeObjectIdenticalTo:object]; + return; + } + + if (![node isLeaf]) { + [node removeObjectFromChildren:object]; + } + } +} + +/** + * Generates an array of all descendants. + * + * @return The array of decendant nodes. + */ +- (NSArray *)descendants +{ + NSMutableArray *descendants = [NSMutableArray array]; + + for (SPTreeNode *node in [self childNodes]) + { + [descendants addObject:node]; + + if (![node isLeaf]) { + [descendants addObjectsFromArray:[node descendants]]; + } + } + + return descendants; +} + +/** + * Generates an array of all leafs in children and children of all sub-nodes. + * + * @return The array of child nodes. + */ +- (NSArray *)allChildLeafs +{ + NSMutableArray *childLeafs = [NSMutableArray array]; + + for (SPTreeNode *node in [self childNodes]) + { + if ([node isLeaf]) { + [childLeafs addObject:node]; + } + else { + [childLeafs addObjectsFromArray:[node allChildLeafs]]; + } + } + + return childLeafs; +} + +/** + * Returns only the children that are group nodes. + * + * @return The array of child group nodes. + */ +- (NSArray *)groupChildren +{ + NSMutableArray *groupChildren = [NSMutableArray array]; + + for (SPTreeNode *node in [self childNodes]) + { + if (![node isLeaf]) { + [groupChildren addObject:node]; + } + } + + return groupChildren; +} + +/** + * Finds the receiver's parent from the supplied array of nodes. + * + * @param array The array of nodes + * + * @return The parent of this instance of nil if not found + */ +- (SPTreeNode *)parentFromArray:(NSArray *)array +{ + SPTreeNode *result = nil; + + for (SPTreeNode *node in array) + { + if (node == self) break; + + if ([[node childNodes] indexOfObjectIdenticalTo:self] != NSNotFound) { + result = node; + break; + } + + if (![node isLeaf]) { + SPTreeNode *innerNode = [self parentFromArray:[node childNodes]]; + + if (innerNode) { + result = innerNode; + break; + } + } + } + + return result; +} + +/** + * Returns YES if self is contained anywhere inside the children or children of + * sub-nodes of the nodes contained inside the supplied array. + * + * @param nodes + * + * @return + */ +- (BOOL)isDescendantOfOrOneOfNodes:(NSArray *)nodes +{ + for (SPTreeNode *node in nodes) + { + if (node == self) return YES; + + // Check all the sub-nodes + if (![node isLeaf]) { + if ([self isDescendantOfOrOneOfNodes:[node childNodes]]) { + return YES; + } + } + } + + return NO; +} + +/** + * Returns YES if any node in the array passed in is an ancestor of ours. + * + * @param nodes + * + * @return + */ +- (BOOL)isDescendantOfNodes:(NSArray *)nodes +{ + for (SPTreeNode *node in nodes) + { + // Check all the sub-nodes + if (![node isLeaf]) { + if ([self isDescendantOfOrOneOfNodes:[node childNodes]]) { + return YES; + } + } + } + + return NO; +} + +/** + * Constructs a dictionary representation of the favorite. + * + * @return The dictionary representation. + */ +- (NSDictionary *)dictionaryRepresentation +{ + NSMutableDictionary *dictionary = nil; + + id object = [self representedObject]; + + if ([object isKindOfClass:[SPFavoriteNode class]]) { + + dictionary = [NSDictionary dictionaryWithDictionary:[object nodeFavorite]]; + } + else if ([object isKindOfClass:[SPGroupNode class]]) { + + NSMutableArray *children = [NSMutableArray array]; + + for (SPTreeNode *node in [self childNodes]) + { + [children addObject:[node dictionaryRepresentation]]; + } + + dictionary = [NSMutableDictionary dictionary]; + + NSString *name = (![self parentNode]) ? NSLocalizedString(@"Favorites", @"favorites label") : [object nodeName]; + + [dictionary setObject:(name) ? name : @"" forKey:SPFavoritesGroupNameKey]; + [dictionary setObject:children forKey:SPFavoriteChildrenKey]; + } + + return dictionary; +} + +@end diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index a86d089f..0baff5ea 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -43,6 +43,8 @@ 172A65110F7BED7A001E861A /* SPConsoleMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 172A65100F7BED7A001E861A /* SPConsoleMessage.m */; }; 173284EA1088FEDE0062E892 /* SPConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 173284E91088FEDE0062E892 /* SPConstants.m */; }; 1734696B11C1167000AB3D16 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; }; + 173565D112AB1E2C000DCCEF /* plus.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 173565D012AB1E2C000DCCEF /* plus.tiff */; }; + 1735667412ABDCA7000DCCEF /* plus.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 1735667312ABDCA7000DCCEF /* plus.tiff */; }; 173C4362104455CA001F3A30 /* QueryFavoriteManager.xib in Resources */ = {isa = PBXBuildFile; fileRef = 173C4360104455CA001F3A30 /* QueryFavoriteManager.xib */; }; 173C4366104455E0001F3A30 /* SPQueryFavoriteManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 173C4365104455E0001F3A30 /* SPQueryFavoriteManager.m */; }; 173C44D81044A6B0001F3A30 /* SPOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 173C44D71044A6B0001F3A30 /* SPOutlineView.m */; }; @@ -69,7 +71,6 @@ 1785E9F7127D8C7500F468C8 /* SPPreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785E9F6127D8C7500F468C8 /* SPPreferencePane.m */; }; 1785EA16127DAE3A00F468C8 /* SPPreferenceControllerDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EA15127DAE3A00F468C8 /* SPPreferenceControllerDelegate.m */; }; 1785EA23127DAF3300F468C8 /* SPTablesPreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EA22127DAF3300F468C8 /* SPTablesPreferencePane.m */; }; - 1785EA26127DB4DC00F468C8 /* SPFavoritesPreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EA25127DB4DC00F468C8 /* SPFavoritesPreferencePane.m */; }; 1785EB60127DD5A800F468C8 /* SPNotificationsPreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EB5F127DD5A800F468C8 /* SPNotificationsPreferencePane.m */; }; 1785EB63127DD5DE00F468C8 /* SPAutoUpdatePreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EB62127DD5DE00F468C8 /* SPAutoUpdatePreferencePane.m */; }; 1785EB66127DD5EA00F468C8 /* SPNetworkPreferencePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1785EB65127DD5EA00F468C8 /* SPNetworkPreferencePane.m */; }; @@ -84,6 +85,12 @@ 17A20AC6124F9B110095CEFB /* SPServerSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 17A20AC5124F9B110095CEFB /* SPServerSupport.m */; }; 17A7773411C52D8E001E27B4 /* SPIndexesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 17A7773311C52D8E001E27B4 /* SPIndexesController.m */; }; 17A7773811C52E61001E27B4 /* IndexesView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17A7773611C52E61001E27B4 /* IndexesView.xib */; }; + 17AF712F12A8424C00C54D6A /* SPConnectionHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF712E12A8424C00C54D6A /* SPConnectionHandler.m */; }; + 17AF713512A842B000C54D6A /* SPGroupNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF713212A842B000C54D6A /* SPGroupNode.m */; }; + 17AF713612A842B000C54D6A /* SPTreeNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF713412A842B000C54D6A /* SPTreeNode.m */; }; + 17AF713912A842DE00C54D6A /* SPFlippedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF713812A842DE00C54D6A /* SPFlippedView.m */; }; + 17AF72DD12A88CBA00C54D6A /* MCPKitTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 380F4F240FC0C3D300B0BFD7 /* MCPKitTest.m */; }; + 17AF739D12AAABDD00C54D6A /* SPChooseMenuItemDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF739C12AAABDD00C54D6A /* SPChooseMenuItemDialog.m */; }; 17AF787B11FC41C00073D043 /* SPExportFilenameUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 17AF787A11FC41C00073D043 /* SPExportFilenameUtilities.m */; }; 17B7B578101601C300F057DE /* libmysqlclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B576101601C300F057DE /* libmysqlclient.a */; }; 17B7B5901016028F00F057DE /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B58F1016028F00F057DE /* libcrypto.dylib */; }; @@ -187,7 +194,6 @@ 29A1B7E50FD1293A000B88E8 /* SPPrintAccessory.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A1B7E40FD1293A000B88E8 /* SPPrintAccessory.m */; }; 29FA88231114619E00D1AF3D /* SPTableTriggers.m in Sources */ = {isa = PBXBuildFile; fileRef = 29FA88221114619E00D1AF3D /* SPTableTriggers.m */; }; 380F4EF50FC0B68F00B0BFD7 /* SPStringAdditionsTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 380F4EF40FC0B68F00B0BFD7 /* SPStringAdditionsTest.m */; }; - 380F4F250FC0C3D300B0BFD7 /* MCPKitTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 380F4F240FC0C3D300B0BFD7 /* MCPKitTest.m */; }; 384582C40FB95FF800DDACB6 /* func-small.png in Resources */ = {isa = PBXBuildFile; fileRef = 384582C30FB95FF800DDACB6 /* func-small.png */; }; 384582C70FB9603600DDACB6 /* proc-small.png in Resources */ = {isa = PBXBuildFile; fileRef = 384582C60FB9603600DDACB6 /* proc-small.png */; }; 387BBBA80FBCB6CB00B31746 /* SPTableRelations.m in Sources */ = {isa = PBXBuildFile; fileRef = 387BBBA70FBCB6CB00B31746 /* SPTableRelations.m */; }; @@ -388,7 +394,6 @@ BC0E1493120AABE900E52E25 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B58F1016028F00F057DE /* libcrypto.dylib */; }; BC0E14A1120AAC2E00E52E25 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 179ECEC611F265EE009C6A40 /* libbz2.dylib */; }; BC0E14A4120AAC5000E52E25 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 583CE52C11725642008F148E /* libz.dylib */; }; - BC0ED3DA12A9196C00088461 /* SPChooseMenuItemDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = BC0ED3D912A9196C00088461 /* SPChooseMenuItemDialog.m */; }; BC1847EA0FE6EC8400094BFB /* SPEditSheetTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC1847E90FE6EC8400094BFB /* SPEditSheetTextView.m */; }; BC1944D01297291800A236CD /* SPBundleCommandTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC1944CF1297291800A236CD /* SPBundleCommandTextView.m */; }; BC1E55C4100DC92200AAE9F0 /* table-view-small-square.tiff in Resources */ = {isa = PBXBuildFile; fileRef = BC1E55C3100DC92200AAE9F0 /* table-view-small-square.tiff */; }; @@ -573,6 +578,8 @@ 172A65100F7BED7A001E861A /* SPConsoleMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPConsoleMessage.m; sourceTree = "<group>"; }; 173284E81088FEDE0062E892 /* SPConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPConstants.h; sourceTree = "<group>"; }; 173284E91088FEDE0062E892 /* SPConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPConstants.m; sourceTree = "<group>"; }; + 173565D012AB1E2C000DCCEF /* plus.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = plus.tiff; sourceTree = "<group>"; }; + 1735667312ABDCA7000DCCEF /* plus.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = plus.tiff; sourceTree = "<group>"; }; 173C4361104455CA001F3A30 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/QueryFavoriteManager.xib; sourceTree = "<group>"; }; 173C4364104455E0001F3A30 /* SPQueryFavoriteManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPQueryFavoriteManager.h; sourceTree = "<group>"; }; 173C4365104455E0001F3A30 /* SPQueryFavoriteManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPQueryFavoriteManager.m; sourceTree = "<group>"; }; @@ -627,8 +634,6 @@ 1785EA15127DAE3A00F468C8 /* SPPreferenceControllerDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPPreferenceControllerDelegate.m; sourceTree = "<group>"; }; 1785EA21127DAF3300F468C8 /* SPTablesPreferencePane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPTablesPreferencePane.h; sourceTree = "<group>"; }; 1785EA22127DAF3300F468C8 /* SPTablesPreferencePane.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTablesPreferencePane.m; sourceTree = "<group>"; }; - 1785EA24127DB4DC00F468C8 /* SPFavoritesPreferencePane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPFavoritesPreferencePane.h; sourceTree = "<group>"; }; - 1785EA25127DB4DC00F468C8 /* SPFavoritesPreferencePane.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPFavoritesPreferencePane.m; sourceTree = "<group>"; }; 1785EB5E127DD5A800F468C8 /* SPNotificationsPreferencePane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPNotificationsPreferencePane.h; sourceTree = "<group>"; }; 1785EB5F127DD5A800F468C8 /* SPNotificationsPreferencePane.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPNotificationsPreferencePane.m; sourceTree = "<group>"; }; 1785EB61127DD5DE00F468C8 /* SPAutoUpdatePreferencePane.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPAutoUpdatePreferencePane.h; sourceTree = "<group>"; }; @@ -657,6 +662,16 @@ 17A7773211C52D8E001E27B4 /* SPIndexesController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPIndexesController.h; sourceTree = "<group>"; }; 17A7773311C52D8E001E27B4 /* SPIndexesController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPIndexesController.m; sourceTree = "<group>"; }; 17A7773711C52E61001E27B4 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = Interfaces/English.lproj/IndexesView.xib; sourceTree = "<group>"; }; + 17AF712D12A8424C00C54D6A /* SPConnectionHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPConnectionHandler.h; sourceTree = "<group>"; }; + 17AF712E12A8424C00C54D6A /* SPConnectionHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPConnectionHandler.m; sourceTree = "<group>"; }; + 17AF713112A842B000C54D6A /* SPGroupNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPGroupNode.h; sourceTree = "<group>"; }; + 17AF713212A842B000C54D6A /* SPGroupNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPGroupNode.m; sourceTree = "<group>"; }; + 17AF713312A842B000C54D6A /* SPTreeNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPTreeNode.h; sourceTree = "<group>"; }; + 17AF713412A842B000C54D6A /* SPTreeNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTreeNode.m; sourceTree = "<group>"; }; + 17AF713712A842DE00C54D6A /* SPFlippedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPFlippedView.h; sourceTree = "<group>"; }; + 17AF713812A842DE00C54D6A /* SPFlippedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPFlippedView.m; sourceTree = "<group>"; }; + 17AF739B12AAABDD00C54D6A /* SPChooseMenuItemDialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPChooseMenuItemDialog.h; sourceTree = "<group>"; }; + 17AF739C12AAABDD00C54D6A /* SPChooseMenuItemDialog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPChooseMenuItemDialog.m; sourceTree = "<group>"; }; 17AF787911FC41C00073D043 /* SPExportFilenameUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPExportFilenameUtilities.h; sourceTree = "<group>"; }; 17AF787A11FC41C00073D043 /* SPExportFilenameUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPExportFilenameUtilities.m; sourceTree = "<group>"; }; 17B7B5621016012700F057DE /* MCPKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MCPKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -1112,8 +1127,6 @@ BC09D7DB12A786FB0030DB64 /* cancel-hovered-highlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cancel-hovered-highlighted.png"; sourceTree = "<group>"; }; BC09D7DC12A786FB0030DB64 /* cancel-hovered.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cancel-hovered.png"; sourceTree = "<group>"; }; BC09D7DD12A786FB0030DB64 /* cancel.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = cancel.png; sourceTree = "<group>"; }; - BC0ED3D812A9196C00088461 /* SPChooseMenuItemDialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPChooseMenuItemDialog.h; sourceTree = "<group>"; }; - BC0ED3D912A9196C00088461 /* SPChooseMenuItemDialog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPChooseMenuItemDialog.m; sourceTree = "<group>"; }; BC1847E80FE6EC8400094BFB /* SPEditSheetTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPEditSheetTextView.h; sourceTree = "<group>"; }; BC1847E90FE6EC8400094BFB /* SPEditSheetTextView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPEditSheetTextView.m; sourceTree = "<group>"; }; BC1944CE1297291800A236CD /* SPBundleCommandTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPBundleCommandTextView.h; sourceTree = "<group>"; }; @@ -1286,12 +1299,13 @@ 584756B4120A06740057631F /* CoreServices.framework */, 584756B6120A067B0057631F /* ApplicationServices.framework */, 584756B8120A06830057631F /* QuickLook.framework */, + 11D44DEF118F5887002AA43C /* OCMock.framework */, + 58DC0D5E1293293400B76DA5 /* ShortcutRecorder.framework */, 296DC8BE0F9091DF002A3258 /* libicucore.dylib */, 179ECEC611F265EE009C6A40 /* libbz2.dylib */, 17B7B591101602AE00F057DE /* libssl.dylib */, 17B7B58F1016028F00F057DE /* libcrypto.dylib */, 583CE52C11725642008F148E /* libz.dylib */, - 58DC0D5E1293293400B76DA5 /* ShortcutRecorder.framework */, ); name = "Linked Frameworks"; sourceTree = "<group>"; @@ -1299,7 +1313,6 @@ 1058C7A8FEA54F5311CA2CBB /* Other Frameworks */ = { isa = PBXGroup; children = ( - 11D44DEF118F5887002AA43C /* OCMock.framework */, 2A37F4C4FDCFA73011CA2CEA /* AppKit.framework */, 2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */, B5EAC0FC0EC87FF900CC579C /* Security.framework */, @@ -1375,7 +1388,7 @@ name = Data; sourceTree = "<group>"; }; - 173567BA12AC1306000DCCEF /* Bundle Support */ = { + 173567CD12AC140A000DCCEF /* Bundle Support */ = { isa = PBXGroup; children = ( BC77C5E2129AA69E009AD832 /* SPBundleHTMLOutputController.h */, @@ -1594,6 +1607,19 @@ name = "Controller Categories"; sourceTree = "<group>"; }; + 17AF713012A8428000C54D6A /* Tree Nodes */ = { + isa = PBXGroup; + children = ( + 17AF713312A842B000C54D6A /* SPTreeNode.h */, + 17AF713412A842B000C54D6A /* SPTreeNode.m */, + 17AF713112A842B000C54D6A /* SPGroupNode.h */, + 17AF713212A842B000C54D6A /* SPGroupNode.m */, + 17D3C22012859E070047709F /* SPFavoriteNode.h */, + 17D3C22112859E070047709F /* SPFavoriteNode.m */, + ); + name = "Tree Nodes"; + sourceTree = "<group>"; + }; 17B7B5551016002900F057DE /* MCPKit */ = { isa = PBXGroup; children = ( @@ -1696,6 +1722,7 @@ 17BFC80D10D3FF5200A3B112 /* Icons */ = { isa = PBXGroup; children = ( + 173565D012AB1E2C000DCCEF /* plus.tiff */, 17E6418C0EF02036001BC333 /* appicon.icns */, 58C4593610D0674D00E6E13E /* spficon.icns */, 58C4593710D0674D00E6E13E /* sqlicon.icns */, @@ -1731,6 +1758,8 @@ 17D38FC2127B0C9500672B13 /* Connection View */ = { isa = PBXGroup; children = ( + 17AF712D12A8424C00C54D6A /* SPConnectionHandler.h */, + 17AF712E12A8424C00C54D6A /* SPConnectionHandler.m */, 5822C9B31000DB2400DCC3D6 /* SPConnectionController.h */, 5822C9B41000DB2400DCC3D6 /* SPConnectionController.m */, 17D3C6021289BF350047709F /* SPConnectionControllerDelegate.h */, @@ -1764,8 +1793,6 @@ 17D390C7127B65AF00672B13 /* SPGeneralPreferencePane.m */, 1785EA21127DAF3300F468C8 /* SPTablesPreferencePane.h */, 1785EA22127DAF3300F468C8 /* SPTablesPreferencePane.m */, - 1785EA24127DB4DC00F468C8 /* SPFavoritesPreferencePane.h */, - 1785EA25127DB4DC00F468C8 /* SPFavoritesPreferencePane.m */, 1785EB5E127DD5A800F468C8 /* SPNotificationsPreferencePane.h */, 1785EB5F127DD5A800F468C8 /* SPNotificationsPreferencePane.m */, 1785EB68127DD79300F468C8 /* SPEditorPreferencePane.h */, @@ -1957,7 +1984,7 @@ 58A8A79011A036C000B95749 /* SPWindowController.m */, 1798AB8F1267924D000D946A /* SPAppleScriptSupport.h */, 1798AB901267924D000D946A /* SPAppleScriptSupport.m */, - 173567BA12AC1306000DCCEF /* Bundle Support */, + 173567CD12AC140A000DCCEF /* Bundle Support */, 173E70A6107FF61D008733C9 /* Main View Controllers */, 173E70D2107FF687008733C9 /* Subview Controllers */, 173E70D4107FF6E7008733C9 /* Data Controllers */, @@ -1976,14 +2003,13 @@ BCA6271B1031B9D40047E5D5 /* SPTooltip.m */, 17D3C66F128AD8160047709F /* SPSingleton.h */, 17D3C670128AD8160047709F /* SPSingleton.m */, - 17D3C22012859E070047709F /* SPFavoriteNode.h */, - 17D3C22112859E070047709F /* SPFavoriteNode.m */, 172A650F0F7BED7A001E861A /* SPConsoleMessage.h */, 172A65100F7BED7A001E861A /* SPConsoleMessage.m */, 17C058860FC9FC390077E9CF /* SPNarrowDownCompletion.h */, 17C058870FC9FC390077E9CF /* SPNarrowDownCompletion.m */, - BC0ED3D812A9196C00088461 /* SPChooseMenuItemDialog.h */, - BC0ED3D912A9196C00088461 /* SPChooseMenuItemDialog.m */, + 17AF739B12AAABDD00C54D6A /* SPChooseMenuItemDialog.h */, + 17AF739C12AAABDD00C54D6A /* SPChooseMenuItemDialog.m */, + 17AF713012A8428000C54D6A /* Tree Nodes */, 173E70A1107FF495008733C9 /* Core Data */, ); name = Model; @@ -1996,6 +2022,8 @@ 17E6417F0EF01FA8001BC333 /* SPImageView.m */, 584094CC1107BD0500260CFD /* SPAlertSheets.h */, 584095181107CB6600260CFD /* SPAlertSheets.m */, + 17AF713712A842DE00C54D6A /* SPFlippedView.h */, + 17AF713812A842DE00C54D6A /* SPFlippedView.m */, 58C56EF30F438E120035701E /* SPDataCellFormatter.h */, 58C56EF40F438E120035701E /* SPDataCellFormatter.m */, BC2898F1125F4488001B50E1 /* SPGeometryDataView.h */, @@ -2050,6 +2078,7 @@ isa = PBXGroup; children = ( 17BFC80D10D3FF5200A3B112 /* Icons */, + 1735667312ABDCA7000DCCEF /* plus.tiff */, BCCDED62115940CB00285E65 /* sync_arrows_01.tiff */, BCCDED63115940CB00285E65 /* sync_arrows_02.tiff */, BCCDED64115940CB00285E65 /* sync_arrows_03.tiff */, @@ -2889,6 +2918,8 @@ BC09D7E112A786FB0030DB64 /* cancel-hovered-highlighted.png in Resources */, BC09D7E212A786FB0030DB64 /* cancel-hovered.png in Resources */, BC09D7E312A786FB0030DB64 /* cancel.png in Resources */, + 173565D112AB1E2C000DCCEF /* plus.tiff in Resources */, + 1735667412ABDCA7000DCCEF /* plus.tiff in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2966,8 +2997,8 @@ 1127305B11807894000737FD /* SPDatabaseInfoTest.m in Sources */, 1198F7541174FFCF00670590 /* SPDatabaseCopy.m in Sources */, 380F4EF50FC0B68F00B0BFD7 /* SPStringAdditionsTest.m in Sources */, - 380F4F250FC0C3D300B0BFD7 /* MCPKitTest.m in Sources */, 1198F5C41174EF3F00670590 /* SPDatabaseCopyTest.m in Sources */, + 17AF72DD12A88CBA00C54D6A /* MCPKitTest.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3150,7 +3181,6 @@ 1785E9F7127D8C7500F468C8 /* SPPreferencePane.m in Sources */, 1785EA16127DAE3A00F468C8 /* SPPreferenceControllerDelegate.m in Sources */, 1785EA23127DAF3300F468C8 /* SPTablesPreferencePane.m in Sources */, - 1785EA26127DB4DC00F468C8 /* SPFavoritesPreferencePane.m in Sources */, 1785EB60127DD5A800F468C8 /* SPNotificationsPreferencePane.m in Sources */, 1785EB63127DD5DE00F468C8 /* SPAutoUpdatePreferencePane.m in Sources */, 1785EB66127DD5EA00F468C8 /* SPNetworkPreferencePane.m in Sources */, @@ -3167,7 +3197,11 @@ BC77C5E4129AA69E009AD832 /* SPBundleHTMLOutputController.m in Sources */, 58DC10D312A1B8DF00B76DA5 /* SPMenuAdditions.m in Sources */, BC5750D512A6233900911BA2 /* SPActivityTextFieldCell.m in Sources */, - BC0ED3DA12A9196C00088461 /* SPChooseMenuItemDialog.m in Sources */, + 17AF712F12A8424C00C54D6A /* SPConnectionHandler.m in Sources */, + 17AF713512A842B000C54D6A /* SPGroupNode.m in Sources */, + 17AF713612A842B000C54D6A /* SPTreeNode.m in Sources */, + 17AF713912A842DE00C54D6A /* SPFlippedView.m in Sources */, + 17AF739D12AAABDD00C54D6A /* SPChooseMenuItemDialog.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3734,7 +3768,6 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; FRAMEWORK_SEARCH_PATHS = ( - "$(DEVELOPER_LIBRARY_DIR)/Frameworks", "\"$(SRCROOT)/Frameworks\"", "\"$(SRCROOT)\"", ); @@ -3747,6 +3780,8 @@ INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; OTHER_LDFLAGS = ( "-framework", + OCMock, + "-framework", Cocoa, "-framework", SenTestingKit, |