diff options
author | avenjamin <avenjamin@gmail.com> | 2009-11-02 08:31:31 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-11-02 08:31:31 +0000 |
commit | 84708d14baec176b8d7bea124243e42c333bd328 (patch) | |
tree | be6c465ef99523ee926cf90b28051f0aeda5d5ca | |
parent | 8e527f643cd29cde785db48a45a73a316cc84474 (diff) | |
download | sequelpro-84708d14baec176b8d7bea124243e42c333bd328.tar.gz sequelpro-84708d14baec176b8d7bea124243e42c333bd328.tar.bz2 sequelpro-84708d14baec176b8d7bea124243e42c333bd328.zip |
• Finish off implementation to set the default selection view mode. Issue #249
-rw-r--r-- | Interfaces/English.lproj/Preferences.xib | 105 | ||||
-rw-r--r-- | Resources/PreferenceDefaults.plist | 6 | ||||
-rw-r--r-- | Source/TableDocument.m | 26 |
3 files changed, 40 insertions, 97 deletions
diff --git a/Interfaces/English.lproj/Preferences.xib b/Interfaces/English.lproj/Preferences.xib index 2f11e4d9..99cffe94 100644 --- a/Interfaces/English.lproj/Preferences.xib +++ b/Interfaces/English.lproj/Preferences.xib @@ -2,7 +2,7 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03"> <data> <int key="IBDocument.SystemTarget">1050</int> - <string key="IBDocument.SystemVersion">9L31a</string> + <string key="IBDocument.SystemVersion">9L30</string> <string key="IBDocument.InterfaceBuilderVersion">677</string> <string key="IBDocument.AppKitVersion">949.54</string> <string key="IBDocument.HIToolboxVersion">353.00</string> @@ -891,7 +891,7 @@ <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="395894064"> - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -900,7 +900,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 181}, {123, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="7693853"> <int key="NSCellFlags">67239424</int> @@ -923,7 +922,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{28, 220}, {120, 17}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="524603578"> <int key="NSCellFlags">67239488</int> @@ -940,7 +938,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{374, 67}, {38, 17}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="596167553"> <int key="NSCellFlags">67239488</int> @@ -957,7 +954,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 221}, {106, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="29938940"> <int key="NSCellFlags">-2080244224</int> @@ -980,7 +976,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 66}, {115, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="920748663"> <int key="NSCellFlags">67239424</int> @@ -1003,7 +998,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 201}, {105, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="516443326"> <int key="NSCellFlags">-2080244224</int> @@ -1026,7 +1020,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{353, 61}, {19, 27}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSStepperCell" key="NSCell" id="1061407286"> <int key="NSCellFlags">917024</int> @@ -1045,7 +1038,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{273, 64}, {75, 22}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="585678618"> <int key="NSCellFlags">-1804468672</int> @@ -1116,7 +1108,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{17, 22}, {131, 17}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="609090823"> <int key="NSCellFlags">68288064</int> @@ -1133,7 +1124,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{154, 20}, {75, 22}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="82744709"> <int key="NSCellFlags">-1804468671</int> @@ -1152,7 +1142,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 141}, {297, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="441275"> <int key="NSCellFlags">67239424</int> @@ -1175,7 +1164,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 121}, {225, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="561991963"> <int key="NSCellFlags">67239424</int> @@ -1198,7 +1186,6 @@ <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 167}, {326, 5}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -1221,7 +1208,6 @@ <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 92}, {326, 5}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -1244,7 +1230,6 @@ <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 53}, {326, 5}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -1267,7 +1252,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 101}, {206, 18}}</string> <reference key="NSSuperview" ref="395894064"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="542131730"> <int key="NSCellFlags">-2080244224</int> @@ -1287,8 +1271,6 @@ </object> </object> <string key="NSFrameSize">{500, 259}</string> - <reference key="NSSuperview"/> - <reference key="NSWindow"/> <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="593732956"> @@ -1476,6 +1458,7 @@ </object> <string key="NSFrame">{{1, 1}, {198, 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> @@ -1503,6 +1486,7 @@ </object> <string key="NSFrame">{{-2, 22}, {200, 360}}</string> <reference key="NSSuperview" ref="984943037"/> + <reference key="NSNextKeyView" ref="253139122"/> <int key="NSsFlags">530</int> <reference key="NSVScroller" ref="940130901"/> <reference key="NSHScroller" ref="2545381"/> @@ -2355,7 +2339,7 @@ <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="1041614321"> - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -2364,7 +2348,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 173}, {187, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="1060471631"> <int key="NSCellFlags">67239424</int> @@ -2387,7 +2370,6 @@ <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 136}, {334, 5}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -2410,7 +2392,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 150}, {261, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="695439962"> <int key="NSCellFlags">67239424</int> @@ -2433,7 +2414,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 110}, {207, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="641765383"> <int key="NSCellFlags">67239424</int> @@ -2456,7 +2436,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{180, 87}, {77, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="135236421"> <int key="NSCellFlags">67239424</int> @@ -2479,7 +2458,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{180, 41}, {123, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="510254021"> <int key="NSCellFlags">67239424</int> @@ -2502,7 +2480,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{180, 64}, {154, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="29352039"> <int key="NSCellFlags">67239424</int> @@ -2525,7 +2502,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{180, 18}, {63, 18}}</string> <reference key="NSSuperview" ref="1041614321"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="545580787"> <int key="NSCellFlags">67239424</int> @@ -2545,12 +2521,10 @@ </object> </object> <string key="NSFrameSize">{500, 209}</string> - <reference key="NSSuperview"/> - <reference key="NSWindow"/> <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="369742224"> - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -2559,7 +2533,6 @@ <int key="NSvFlags">256</int> <string key="NSFrame">{{152, 117}, {225, 18}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="638010774"> <int key="NSCellFlags">67239424</int> @@ -2581,7 +2554,6 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{148, 12}, {111, 32}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="905416501"> <int key="NSCellFlags">67239424</int> @@ -2602,7 +2574,6 @@ <int key="NSvFlags">256</int> <string key="NSFrame">{{73, 49}, {75, 17}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="32693158"> <int key="NSCellFlags">67239424</int> @@ -2619,7 +2590,6 @@ <int key="NSvFlags">256</int> <string key="NSFrame">{{151, 49}, {254, 17}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="1046240552"> <int key="NSCellFlags">67239424</int> @@ -2677,7 +2647,6 @@ AQAAAAA</bytes> <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 72}, {326, 5}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -2700,7 +2669,6 @@ AQAAAAA</bytes> <int key="NSvFlags">256</int> <string key="NSFrame">{{75, 93}, {73, 17}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="250240617"> <int key="NSCellFlags">67239424</int> @@ -2717,7 +2685,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{151, 87}, {150, 26}}</string> <reference key="NSSuperview" ref="369742224"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSPopUpButtonCell" key="NSCell" id="526160091"> <int key="NSCellFlags">-2076049856</int> @@ -2784,12 +2751,10 @@ AQAAAAA</bytes> </object> </object> <string key="NSFrameSize">{500, 153}</string> - <reference key="NSSuperview"/> - <reference key="NSWindow"/> <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="769132533"> - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -2798,7 +2763,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{12, 56}, {137, 17}}</string> <reference key="NSSuperview" ref="769132533"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="1057393276"> <int key="NSCellFlags">67239488</int> @@ -2815,7 +2779,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{152, 18}, {166, 18}}</string> <reference key="NSSuperview" ref="769132533"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="151662644"> <int key="NSCellFlags">-2080244224</int> @@ -2838,7 +2801,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{154, 53}, {50, 22}}</string> <reference key="NSSuperview" ref="769132533"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="170658213"> <int key="NSCellFlags">-1804468671</int> @@ -2905,7 +2867,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{209, 56}, {56, 17}}</string> <reference key="NSSuperview" ref="769132533"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="619604330"> <int key="NSCellFlags">67239488</int> @@ -2922,7 +2883,6 @@ AQAAAAA</bytes> <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 42}, {326, 5}}</string> <reference key="NSSuperview" ref="769132533"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -2942,12 +2902,10 @@ AQAAAAA</bytes> </object> </object> <string key="NSFrameSize">{500, 93}</string> - <reference key="NSSuperview"/> - <reference key="NSWindow"/> <string key="NSClassName">NSView</string> </object> <object class="NSCustomView" id="1033452264"> - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">268</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -2963,7 +2921,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 199}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -2983,7 +2940,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 228}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3003,7 +2959,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 141}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3023,7 +2978,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 112}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3043,7 +2997,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 286}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3063,7 +3016,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 170}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3083,7 +3035,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 83}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3103,7 +3054,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 54}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3123,7 +3073,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 315}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> @@ -3143,7 +3092,6 @@ AQAAAAA</bytes> </object> <string key="NSFrame">{{154, 257}, {44, 23}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSIsBordered">YES</bool> <object class="NSColor" key="NSColor"> <int key="NSColorSpace">1</int> @@ -3155,7 +3103,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{86, 202}, {63, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="465390474"> <int key="NSCellFlags">68288064</int> @@ -3172,7 +3119,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{88, 173}, {61, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="629129203"> <int key="NSCellFlags">68288064</int> @@ -3189,7 +3135,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{79, 231}, {70, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="841770398"> <int key="NSCellFlags">68288064</int> @@ -3206,7 +3151,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{89, 86}, {60, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="837982163"> <int key="NSCellFlags">68288064</int> @@ -3223,7 +3167,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{23, 58}, {125, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="554509386"> <int key="NSCellFlags">68288064</int> @@ -3240,7 +3183,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{102, 144}, {47, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="728610506"> <int key="NSCellFlags">68288064</int> @@ -3257,7 +3199,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{112, 318}, {37, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="693342907"> <int key="NSCellFlags">68288064</int> @@ -3274,7 +3215,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{46, 115}, {103, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="336899348"> <int key="NSCellFlags">68288064</int> @@ -3291,7 +3231,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{66, 289}, {83, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="896659768"> <int key="NSCellFlags">68288064</int> @@ -3308,7 +3247,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{113, 357}, {36, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="10706281"> <int key="NSCellFlags">68288064</int> @@ -3325,7 +3263,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{73, 12}, {131, 32}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="603963569"> <int key="NSCellFlags">-2080244224</int> @@ -3346,7 +3283,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{396, 347}, {90, 32}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="345790946"> <int key="NSCellFlags">67239424</int> @@ -3367,7 +3303,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{154, 355}, {240, 19}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="66452133"> <int key="NSCellFlags">-2076049856</int> @@ -3385,7 +3320,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{107, 260}, {42, 17}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="632150824"> <int key="NSCellFlags">605158976</int> @@ -3402,7 +3336,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{257, 317}, {126, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="823431848"> <int key="NSCellFlags">-2080244224</int> @@ -3425,7 +3358,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{257, 288}, {150, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="743257684"> <int key="NSCellFlags">-2080244224</int> @@ -3448,7 +3380,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{257, 230}, {179, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="231642073"> <int key="NSCellFlags">67239424</int> @@ -3471,7 +3402,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{257, 259}, {185, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="491730308"> <int key="NSCellFlags">-2080244224</int> @@ -3494,7 +3424,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{257, 173}, {185, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="496801621"> <int key="NSCellFlags">-2080244224</int> @@ -3517,7 +3446,6 @@ AQAAAAA</bytes> <int key="NSvFlags">-2147483380</int> <string key="NSFrame">{{257, 144}, {197, 18}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="420702000"> <int key="NSCellFlags">-1543373312</int> @@ -3540,7 +3468,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{357, 205}, {29, 19}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="992523117"> <int key="NSCellFlags">-1538130368</int> @@ -3618,7 +3545,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{298, 207}, {54, 14}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="499174965"> <int key="NSCellFlags">605158976</int> @@ -3635,7 +3561,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{392, 203}, {15, 22}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSStepperCell" key="NSCell" id="266600395"> <int key="NSCellFlags">604896800</int> @@ -3654,7 +3579,6 @@ AQAAAAA</bytes> <int key="NSvFlags">268</int> <string key="NSFrame">{{410, 207}, {27, 14}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="516695546"> <int key="NSCellFlags">605158976</int> @@ -3671,7 +3595,6 @@ AQAAAAA</bytes> <int key="NSvFlags">12</int> <string key="NSFrame">{{154, 344}, {326, 5}}</string> <reference key="NSSuperview" ref="1033452264"/> - <reference key="NSWindow"/> <string key="NSOffsets">{0, 0}</string> <object class="NSTextFieldCell" key="NSTitleCell"> <int key="NSCellFlags">67239424</int> @@ -3691,8 +3614,6 @@ AQAAAAA</bytes> </object> </object> <string key="NSFrameSize">{500, 395}</string> - <reference key="NSSuperview"/> - <reference key="NSWindow"/> <string key="NSClassName">NSView</string> </object> <object class="NSUserDefaultsController" id="151174232"> @@ -5763,19 +5684,19 @@ AQAAAAA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBBindingConnection" key="connection"> - <string key="label">selectedValue: values.DefaultViewMode</string> + <string key="label">selectedTag: values.DefaultViewMode</string> <reference key="source" ref="649933712"/> <reference key="destination" ref="151174232"/> <object class="NSNibBindingConnector" key="connector"> <reference key="NSSource" ref="649933712"/> <reference key="NSDestination" ref="151174232"/> - <string key="NSLabel">selectedValue: values.DefaultViewMode</string> - <string key="NSBinding">selectedValue</string> + <string key="NSLabel">selectedTag: values.DefaultViewMode</string> + <string key="NSBinding">selectedTag</string> <string key="NSKeyPath">values.DefaultViewMode</string> <int key="NSNibBindingConnectorVersion">2</int> </object> </object> - <int key="connectionID">1462</int> + <int key="connectionID">1464</int> </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> @@ -9182,7 +9103,7 @@ AQAAAAA</bytes> </object> </object> <nil key="sourceID"/> - <int key="maxID">1462</int> + <int key="maxID">1464</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> diff --git a/Resources/PreferenceDefaults.plist b/Resources/PreferenceDefaults.plist index f5bf4034..8492b3aa 100644 --- a/Resources/PreferenceDefaults.plist +++ b/Resources/PreferenceDefaults.plist @@ -4,6 +4,10 @@ <dict> <key>DefaultEncoding</key> <string>Autodetect</string> + <key>DefaultViewMode</key> + <integer>0</integer> + <key>LastViewMode</key> + <integer>1</integer> <key>UseMonospacedFonts</key> <false/> <key>CustomQueryMaxHistoryItems</key> @@ -122,7 +126,7 @@ <key>CSVImportLineTerminator</key> <string>\n</string> <key>CSVImportFieldEnclosedBy</key> - <string>"</string> + <string>"</string> <key>CSVImportFieldEscapeCharacter</key> <string>\</string> <key>CSVImportFirstLineIsHeader</key> diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 8847d103..089c6306 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -653,8 +653,7 @@ [customQueryInstance setMySQLversion:mySQLVersion]; [tableWindow setTitle:[self displaySPName]]; - [self viewStructure:self]; - + // Connected Growl notification [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Connected" description:[NSString stringWithFormat:NSLocalizedString(@"Connected to %@",@"description for connected growl notification"), [tableWindow title]] @@ -690,9 +689,28 @@ else [tableWindow makeFirstResponder:[tablesListInstance valueForKeyPath:@"tablesListView"]]; - if(spfSession != nil) + if(spfSession != nil) { [self restoreSession]; - + } else { + switch ([prefs integerForKey:SPDefaultViewMode] > 0 ? [prefs integerForKey:SPDefaultViewMode] : [prefs integerForKey:SPLastViewMode]) { + default: + case SPStructureViewMode: + [self viewStructure:self]; + break; + case SPContentViewMode: + [self viewContent:self]; + break; + case SPRelationsViewMode: + [self viewRelations:self]; + break; + case SPTableInfoViewMode: + [self viewStatus:self]; + break; + case SPQueryEditorViewMode: + [self viewQuery:self]; + break; + } + } } /** |