From 4a950f357fb29640b2732ca34c80f81c0b23fbe6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 8 Mar 2011 20:41:11 +0000 Subject: Bring outline view branch up to date with trunk (r3227:r3233). --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | 1 + Interfaces/English.lproj/ConnectionErrorDialog.xib | 58 +- Interfaces/English.lproj/DBView.xib | 351 +++--- Interfaces/English.lproj/DataMigrationDialog.xib | 1260 +++++++------------- .../English.lproj/DatabaseServerVariables.xib | 97 +- Interfaces/English.lproj/ExportDialog.xib | 145 ++- Interfaces/English.lproj/Preferences.xib | 386 ++++-- Interfaces/English.lproj/UserManagerView.xib | 196 +-- Source/NSMutableArray-MultipleSort.m | 2 +- Source/SPAppController.m | 14 +- Source/SPConnectionDelegate.h | 3 + Source/SPCustomQuery.m | 2 +- Source/SPDataCellFormatter.m | 4 +- Source/SPDataImport.h | 5 +- Source/SPDataImport.m | 19 +- Source/SPDatabaseData.m | 2 +- Source/SPDatabaseDocument.h | 17 +- Source/SPDatabaseDocument.m | 77 +- Source/SPDatabaseViewController.h | 2 +- Source/SPDatabaseViewController.m | 2 +- Source/SPExtendedTableInfo.m | 2 + Source/SPFavoriteTextFieldCell.m | 18 +- Source/SPHistoryController.h | 2 + Source/SPHistoryController.m | 19 +- Source/SPLogger.m | 18 +- Source/SPNarrowDownCompletion.h | 2 +- Source/SPNarrowDownCompletion.m | 10 +- Source/SPSQLExporter.m | 9 +- Source/SPSSHTunnel.m | 8 +- Source/SPTableContent.m | 7 +- Source/SPTableData.m | 18 +- Source/SPTableRelations.h | 3 + Source/SPTableRelations.m | 16 +- Source/SPTableStructure.h | 9 +- Source/SPTableStructure.m | 55 +- Source/SPTablesList.h | 7 +- Source/SPTablesList.m | 49 +- Source/SPTooltip.m | 2 +- 38 files changed, 1401 insertions(+), 1496 deletions(-) diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h index 6364add8..0b3f932b 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h @@ -182,6 +182,7 @@ void pingThreadCleanup(void *pingDetails); // MySQL defaults + (NSDictionary *)getMySQLLocales; + (NSStringEncoding)encodingForMySQLEncoding:(const char *)mysqlEncoding; ++ (NSString *) mySQLEncodingForStringEncoding:(NSStringEncoding)stringEncoding; + (NSStringEncoding)defaultMySQLEncoding; + (BOOL)isErrorNumberConnectionError:(NSInteger)theErrorNumber; diff --git a/Interfaces/English.lproj/ConnectionErrorDialog.xib b/Interfaces/English.lproj/ConnectionErrorDialog.xib index 03a586e3..9e63a2b6 100644 --- a/Interfaces/English.lproj/ConnectionErrorDialog.xib +++ b/Interfaces/English.lproj/ConnectionErrorDialog.xib @@ -2,13 +2,13 @@ 1050 - 10F569 - 788 - 1038.29 - 461.00 + 10J567 + 804 + 1038.35 + 462.00 com.apple.InterfaceBuilder.CocoaPlugin - 788 + 804 YES @@ -91,7 +91,7 @@ 289 - {{414, 12}, {105, 32}} + {{365, 12}, {154, 32}} 1 YES @@ -112,7 +112,7 @@ 289 - {{266, 12}, {148, 32}} + {{198, 12}, {167, 32}} 2 YES @@ -398,8 +398,10 @@ 1.IBWindowTemplateEditedContentRect 1.NSWindowTemplate.visibleAtLaunch 11.IBPluginDependency + 11.IBViewBoundsToFrameTransform 12.IBPluginDependency 13.IBPluginDependency + 13.IBViewBoundsToFrameTransform 14.IBPluginDependency 2.IBPluginDependency 26.IBPluginDependency @@ -414,13 +416,19 @@ YES com.apple.InterfaceBuilder.CocoaPlugin - {{469, 495}, {533, 147}} + {{433, 866}, {533, 147}} com.apple.InterfaceBuilder.CocoaPlugin - {{469, 495}, {533, 147}} + {{433, 866}, {533, 147}} com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDwwAAwigAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDTQAAwigAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -462,10 +470,10 @@ - NSObject + NSMenu IBProjectSource - Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h + Source/SPMenuAdditions.h @@ -489,6 +497,13 @@ Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject @@ -975,6 +990,27 @@ PrintCore.framework/Headers/PDEPluginInterface.h + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderCell.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderControl.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRValidator.h + + NSObject diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index bd064e22..ca4d7a86 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -3,7 +3,7 @@ 1050 10J567 - 788 + 823 1038.35 462.00 @@ -16,20 +16,24 @@ YES - 788 - 788 + 823 + 823 1.2.5 YES + + + + YES com.brandonwalkin.BWToolkit - com.apple.InterfaceBuilder.CocoaPlugin com.apple.WebKitIBPlugin + com.apple.InterfaceBuilder.CocoaPlugin PluginDependencyRecalculationVersion @@ -71,7 +75,6 @@ 268 {{-1, -1}, {32, 24}} - YES 67239424 @@ -100,7 +103,6 @@ 268 {{30, -1}, {32, 24}} - YES 71433792 @@ -302,7 +304,6 @@ 268 {{61, -1}, {32, 24}} - YES 67239424 @@ -327,7 +328,6 @@ 268 {{92, -1}, {32, 24}} - YES -2080244224 @@ -354,7 +354,6 @@ {{0, 1}, {214, 23}} - YES YES NO @@ -385,7 +384,6 @@ 290 {{5, 2}, {204, 19}} - YES 343014976 @@ -474,7 +472,6 @@ 4362 {218, 38} - YES @@ -515,7 +512,7 @@ controlColor 3 - MC42NjY2NjY2NjY3AA + MC42NjY2NjY2ODY1AA @@ -560,7 +557,6 @@ {{1, 1}, {218, 38}} - @@ -576,7 +572,6 @@ -2147483392 {{-100, -100}, {15, 8}} - _doScroller: 0.42105263471603394 @@ -586,7 +581,6 @@ -2147483392 {{-100, -100}, {223, 15}} - 1 _doScroller: @@ -595,7 +589,6 @@ {{-1, -13}, {220, 40}} - 2 @@ -606,7 +599,6 @@ {214, 26} - NSView @@ -629,7 +621,6 @@ 4352 {214, 352} - YES @@ -696,7 +687,6 @@ {214, 352} - @@ -707,7 +697,6 @@ -2147483392 {{197, 0}, {15, 292}} - _doScroller: 0.096045196056365967 @@ -718,7 +707,6 @@ -2147483392 {{-100, -100}, {141, 11}} - 257 _doScroller: @@ -727,7 +715,6 @@ {214, 352} - 528 @@ -738,13 +725,11 @@ {{0, 27}, {214, 352}} - NSView {214, 379} - 2 6 @@ -778,7 +763,6 @@ {214, 379} - NSView @@ -801,7 +785,6 @@ 4352 {216, 145} - YES @@ -868,7 +851,6 @@ {216, 145} - @@ -879,7 +861,6 @@ -2147483392 {{-100, -100}, {15, 20}} - _doScroller: 0.99315071105957031 @@ -889,7 +870,6 @@ -2147483392 {{-100, -100}, {141, 11}} - 257 _doScroller: @@ -898,7 +878,6 @@ {{-1, 0}, {216, 145}} - 528 @@ -921,7 +900,6 @@ 4352 {214, 145} - YES @@ -988,7 +966,6 @@ {214, 145} - @@ -999,7 +976,6 @@ -2147483392 {{-100, -100}, {15, 20}} - _doScroller: 0.48965516686439514 @@ -1010,7 +986,6 @@ -2147483392 {{-100, -100}, {141, 11}} - 257 _doScroller: @@ -1019,7 +994,6 @@ {214, 145} - 512 @@ -1030,13 +1004,11 @@ {{0, 380}, {214, 145}} - NSView {{0, 24}, {214, 525}} - 2 NO @@ -1080,7 +1052,6 @@ {214, 549} - NSView @@ -1093,13 +1064,12 @@ 274 {{-7, -10}, {741, 564}} - YES source - + 256 YES @@ -1118,7 +1088,6 @@ 289 {{662, -1}, {32, 24}} - YES 71433792 @@ -1226,7 +1195,6 @@ -2147483356 {{124, -1}, {33, 25}} - YES -2080244224 @@ -1261,14 +1229,12 @@ 4352 {694, 288} - YES 256 {694, 17} - @@ -1276,7 +1242,6 @@ -2147483392 {{-26, 0}, {16, 17}} - YES @@ -1830,7 +1795,6 @@ {{1, 17}, {694, 288}} - @@ -1841,7 +1805,6 @@ -2147483392 {{674, 17}, {15, 274}} - _doScroller: 0.9480968713760376 @@ -1851,7 +1814,6 @@ -2147483392 {{1, 291}, {694, 15}} - 1 _doScroller: @@ -1867,7 +1829,6 @@ {{1, 0}, {694, 17}} - @@ -1877,7 +1838,6 @@ {{-1, 22}, {696, 306}} - 562 @@ -1892,7 +1852,6 @@ 292 {{-1, -1}, {32, 25}} - YES -1543373312 @@ -1917,7 +1876,6 @@ 292 {{93, -1}, {32, 25}} - YES -2080244224 @@ -1942,7 +1900,6 @@ 292 {{30, -1}, {32, 25}} - YES -1543373312 @@ -1967,7 +1924,6 @@ 292 {{61, -1}, {32, 25}} - YES -1543373312 @@ -2004,7 +1960,6 @@ {{125, 0}, {507, 23}} - YES 130560 @@ -2025,7 +1980,6 @@ 289 {{632, -1}, {32, 25}} - YES -1543373312 @@ -2048,7 +2002,6 @@ {695, 328} - NSView @@ -2066,7 +2019,6 @@ 268 {{3, 3}, {49, 14}} - YES 68288064 @@ -2105,7 +2057,6 @@ {{678, 4}, {10, 13}} - YES 130560 @@ -2124,7 +2075,6 @@ {{0, 181}, {695, 20}} - 1 MC42NzU3Njg0OTQ2IDAuNzIxOTQ4MTQ2OCAwLjc2NTMwNjExNTIAA @@ -2167,14 +2117,12 @@ 4352 {694, 140} - YES 256 {694, 17} - @@ -2182,7 +2130,6 @@ -2147483392 {{-26, 0}, {16, 17}} - YES @@ -2438,7 +2385,6 @@ {{1, 17}, {694, 140}} - @@ -2449,7 +2395,6 @@ -2147483392 {{611, 17}, {15, 126}} - _doScroller: 0.97794115543365479 @@ -2459,7 +2404,6 @@ -2147483392 {{1, 143}, {610, 15}} - 1 _doScroller: @@ -2474,7 +2418,6 @@ {{1, 0}, {694, 17}} - @@ -2484,7 +2427,6 @@ {{-1, 23}, {696, 158}} - 562 @@ -2499,7 +2441,6 @@ 292 {{-1, 0}, {32, 25}} - YES -1543373312 @@ -2521,7 +2462,6 @@ 292 {{61, 0}, {32, 25}} - YES -2080244224 @@ -2543,7 +2483,6 @@ 292 {{30, 0}, {32, 25}} - YES -1543373312 @@ -2577,7 +2516,6 @@ {{93, 1}, {602, 23}} - YES 130560 @@ -2593,19 +2531,15 @@ {{0, 329}, {695, 201}} - NSView {{7, 10}, {695, 530}} - 2 {{10, 7}, {706, 544}} - - Structure @@ -2614,7 +2548,7 @@ content - + 256 YES @@ -3067,7 +3001,7 @@ 266 - {{50, 3}, {160, 20}} + {{79, 3}, {131, 20}} YES @@ -3115,12 +3049,12 @@ 264 - {{7, 6}, {43, 14}} + {{7, 6}, {67, 14}} YES 67239488 - 272761856 + 71435264 Search: @@ -3353,6 +3287,7 @@ {{10, 7}, {706, 544}} + Content @@ -5216,7 +5151,7 @@ 270 - {{152, 400}, {152, 14}} + {{175, 400}, {101, 14}} YES @@ -5232,7 +5167,7 @@ 270 - {{152, 378}, {152, 14}} + {{175, 378}, {101, 14}} YES @@ -5248,7 +5183,7 @@ 270 - {{152, 356}, {152, 14}} + {{175, 356}, {101, 14}} YES @@ -5264,7 +5199,7 @@ 268 - {{152, 334}, {152, 14}} + {{175, 334}, {101, 14}} YES @@ -5350,7 +5285,7 @@ 270 - {{418, 400}, {256, 14}} + {{401, 398}, {273, 14}} YES @@ -5366,7 +5301,7 @@ 270 - {{418, 378}, {256, 14}} + {{401, 376}, {273, 14}} YES @@ -5382,7 +5317,7 @@ 266 - {{418, 356}, {256, 14}} + {{401, 354}, {273, 14}} YES @@ -5398,7 +5333,7 @@ 266 - {{418, 334}, {256, 14}} + {{401, 332}, {273, 14}} YES @@ -5487,7 +5422,7 @@ 268 - {{53, 334}, {97, 14}} + {{50, 334}, {123, 14}} YES @@ -5503,7 +5438,7 @@ 268 - {{21, 356}, {129, 14}} + {{23, 356}, {150, 14}} YES @@ -5519,7 +5454,7 @@ 268 - {{21, 378}, {129, 14}} + {{23, 378}, {150, 14}} YES @@ -5535,7 +5470,7 @@ 268 - {{21, 400}, {129, 14}} + {{23, 400}, {150, 14}} YES @@ -5551,7 +5486,7 @@ 268 - {{304, 400}, {113, 14}} + {{286, 398}, {113, 14}} YES @@ -5599,7 +5534,7 @@ 268 - {{304, 378}, {113, 14}} + {{286, 376}, {113, 14}} YES @@ -5615,7 +5550,7 @@ 268 - {{304, 356}, {113, 14}} + {{286, 354}, {113, 14}} YES @@ -5631,7 +5566,7 @@ 268 - {{304, 334}, {113, 14}} + {{286, 332}, {113, 14}} YES @@ -6325,7 +6260,7 @@ _doScroller: - 0.96696035242290745 + 0.9669603705406189 @@ -6335,7 +6270,7 @@ 1 _doScroller: - 0.99856115107913668 + 0.99856114387512207 @@ -6480,26 +6415,24 @@ - + 134217731 YES YES YES - + {{215, 0}, {728, 549}} - NSView {943, 549} - YES 2 DBViewSplitter @@ -6548,7 +6481,6 @@ {943, 549} - NSView @@ -6939,7 +6871,7 @@ 9 2 - {{343, 453}, {269, 142}} + {{343, 453}, {308, 142}} 1886912512 New Table NSWindow @@ -6947,16 +6879,16 @@ View {600, 142} - {269, 142} + {308, 142} - + 256 YES 256 - {{36, 105}, {71, 14}} + {{5, 105}, {128, 14}} YES @@ -6972,7 +6904,7 @@ 256 - {{17, 80}, {90, 14}} + {{5, 80}, {128, 14}} YES @@ -6988,7 +6920,7 @@ 258 - {{112, 104}, {137, 18}} + {{138, 104}, {150, 18}} YES @@ -7005,7 +6937,7 @@ 257 - {{184, 13}, {70, 28}} + {{215, 13}, {78, 28}} 1 YES @@ -7027,8 +6959,8 @@ - 256 - {{109, 75}, {143, 22}} + 258 + {{135, 75}, {156, 22}} YES @@ -7063,7 +6995,7 @@ 256 - {{41, 54}, {66, 14}} + {{5, 54}, {128, 14}} YES @@ -7078,8 +7010,8 @@ - 256 - {{109, 50}, {143, 22}} + 258 + {{135, 50}, {156, 22}} YES @@ -7114,7 +7046,7 @@ 257 - {{116, 13}, {70, 28}} + {{133, 13}, {84, 28}} YES @@ -7133,10 +7065,11 @@ - {269, 142} + {308, 142} + {{0, 0}, {1680, 1028}} - {269, 164} + {308, 164} {600, 164} @@ -7271,7 +7204,7 @@ View - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {213, 107} @@ -7416,7 +7349,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1440, 878}} {213, 129} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 7 @@ -7426,7 +7359,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 Reset Auto Increment NSWindow - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {255, 95} @@ -7589,7 +7522,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1280, 1002}} {255, 117} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 1 @@ -7599,7 +7532,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 New Relation NSPanel - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 256 @@ -8200,7 +8133,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {302, 307} {{0, 0}, {1440, 878}} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 9 @@ -8210,7 +8143,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 New Trigger NSPanel - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {360, 348} @@ -8617,7 +8550,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1680, 1028}} {360, 370} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 3 @@ -8629,10 +8562,10 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 View - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {213, 50} - + 256 YES @@ -8670,7 +8603,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 256 - {{279, 12}, {83, 32}} + {{257, 12}, {108, 32}} YES @@ -8746,10 +8679,11 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {379, 139} + {{0, 0}, {1920, 1178}} {213, 72} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 9 @@ -8761,7 +8695,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 View - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {213, 107} @@ -8896,7 +8830,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1440, 878}} {213, 129} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 15 @@ -8908,7 +8842,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 View - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {350, 200} @@ -9131,7 +9065,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1680, 1028}} {350, 222} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} SPCreateSyntaxSheet @@ -9144,7 +9078,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 View - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {213, 107} @@ -9314,7 +9248,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1440, 878}} {213, 129} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 31 @@ -9324,7 +9258,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 MySQL Help NSPanel - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {351, 120} @@ -9722,7 +9656,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1280, 1002}} {351, 136} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} MYSQL_HELP_WINDOW @@ -9733,7 +9667,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 Filter NSPanel - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} {380, 170} @@ -10375,7 +10309,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {{0, 0}, {1280, 778}} {380, 192} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} SPTableFilterPanel @@ -10875,7 +10809,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA Secure Text Input Sheet NSPanel - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} 256 @@ -10979,7 +10913,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA {338, 150} {{0, 0}, {1280, 778}} - {1.79769e+308, 1.79769e+308} + {3.40282e+38, 3.40282e+38} @@ -11163,7 +11097,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA disabledControlTextColor 3 - MC4zMzMzMzMzMzMzAA + MC4zMzMzMzMzNDMzAA @@ -11648,6 +11582,16 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA + + + YES + YES + + + 2147483647 + + + Export @@ -18135,6 +18079,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA + Table List Menu @@ -21804,10 +21749,6 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA - - - - @@ -21821,15 +21762,19 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA + + + + + + - - @@ -23188,6 +23133,11 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA + + 7783 + + + @@ -23515,6 +23465,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 5202.IBPluginDependency 5322.IBEditorWindowLastContentRect 5322.IBPluginDependency + 5322.IBViewEditorWindowController.showingBoundsRectangles 5322.IBWindowTemplateEditedContentRect 5322.ImportedFromIB2 5322.windowTemplate.hasMaxSize @@ -23532,6 +23483,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 5327.IBPluginDependency 5327.ImportedFromIB2 5328.IBPluginDependency + 5328.IBViewBoundsToFrameTransform 5328.ImportedFromIB2 5331.IBPluginDependency 5332.IBPluginDependency @@ -23689,6 +23641,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 5659.IBPluginDependency 5660.IBPluginDependency 5701.IBPluginDependency + 5701.IBViewBoundsToFrameTransform 5701.ImportedFromIB2 5702.IBPluginDependency 5713.IBPluginDependency @@ -23735,9 +23688,13 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 579.IBViewBoundsToFrameTransform 579.ImportedFromIB2 5790.IBPluginDependency + 5790.IBViewBoundsToFrameTransform 5791.IBPluginDependency + 5791.IBViewBoundsToFrameTransform 5792.IBPluginDependency + 5792.IBViewBoundsToFrameTransform 5793.IBPluginDependency + 5793.IBViewBoundsToFrameTransform 5794.IBPluginDependency 5795.IBPluginDependency 5796.IBPluginDependency @@ -23791,6 +23748,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 6127.IBPluginDependency 6127.ImportedFromIB2 6129.IBPluginDependency + 6129.IBViewBoundsToFrameTransform 6129.ImportedFromIB2 6130.IBPluginDependency 6130.ImportedFromIB2 @@ -24344,18 +24302,25 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 7429.IBPluginDependency 7430.IBPluginDependency 7438.IBPluginDependency + 7438.IBViewBoundsToFrameTransform 7439.IBPluginDependency 7440.IBPluginDependency + 7440.IBViewBoundsToFrameTransform 7441.IBPluginDependency 7442.IBPluginDependency + 7442.IBViewBoundsToFrameTransform 7443.IBPluginDependency 7444.IBPluginDependency + 7444.IBViewBoundsToFrameTransform 7445.IBPluginDependency 7446.IBPluginDependency + 7446.IBViewBoundsToFrameTransform 7447.IBPluginDependency 7448.IBPluginDependency + 7448.IBViewBoundsToFrameTransform 7449.IBPluginDependency 7450.IBPluginDependency + 7450.IBViewBoundsToFrameTransform 7451.IBPluginDependency 7452.IBPluginDependency 7453.IBPluginDependency @@ -24504,6 +24469,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA 7777.IBPluginDependency 7778.IBPluginDependency 7779.IBPluginDependency + 7783.IBPluginDependency 858.IBPluginDependency 858.ImportedFromIB2 959.IBEditorWindowLastContentRect @@ -24971,14 +24937,15 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{471, 382}, {269, 142}} + {{530, 765}, {308, 142}} com.apple.InterfaceBuilder.CocoaPlugin - {{471, 382}, {269, 142}} + + {{530, 765}, {308, 142}} {600, 142} - {269, 142} + {308, 142} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -24990,6 +24957,9 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDNAAAwhwAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -25180,6 +25150,9 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABCqAAAwhwAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -25228,9 +25201,21 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABD3gAAw60AAA + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABD3gAAw7gAAA + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABD3gAAw8MAAA + com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABD3gAAw84AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -25282,9 +25267,9 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.brandonwalkin.BWToolkit com.brandonwalkin.BWToolkit com.brandonwalkin.BWToolkit - {{717, 615}, {379, 139}} + {{515, 364}, {379, 139}} com.apple.InterfaceBuilder.CocoaPlugin - {{717, 615}, {379, 139}} + {{515, 364}, {379, 139}} {213, 50} @@ -25293,6 +25278,9 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDhYAAwigAAA + com.apple.InterfaceBuilder.CocoaPlugin @@ -25379,7 +25367,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.brandonwalkin.BWToolkit com.brandonwalkin.BWToolkit - {{574, 389}, {241, 173}} + {{574, 379}, {241, 183}} com.apple.InterfaceBuilder.CocoaPlugin ToolTip @@ -25842,7 +25830,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{59, 207}, {943, 549}} + {{45, 286}, {943, 549}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -26093,18 +26081,39 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABCLAAAw7gAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABCLAAAw8MAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABCLAAAw84AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDpIAAw84AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDpIAAw8MAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDpIAAw7gAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDpIAAw60AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -26317,6 +26326,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{265, 489}, {405, 267}} com.apple.InterfaceBuilder.CocoaPlugin @@ -26354,7 +26364,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA - 7782 + 7783 @@ -26429,6 +26439,13 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject @@ -27000,7 +27017,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA NSMenuItem NSMenuItem NSButton - id + NSButton NSMenuItem NSMenuItem id @@ -27252,7 +27269,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA saveQueryFavoriteGlobal - id + NSButton shiftLeftMenuItem @@ -30360,8 +30377,8 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA NSMenuItem NSButton NSMenuItem - id - id + NSButton + NSButton NSPanel NSComboBox SPCopyTable @@ -30384,7 +30401,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA SPHistoryController SPCopyTable id - id + SPDatabaseDocument SPTableInfo id id @@ -30497,11 +30514,11 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA filterTableLiveSearchCheckbox - id + NSButton filterTableNegateCheckbox - id + NSButton filterTableSetDefaultOperatorSheet @@ -30593,7 +30610,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA tableDocumentInstance - id + SPDatabaseDocument tableInfoInstance @@ -31625,7 +31642,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA YES id id - id + NSButton id id id @@ -31732,7 +31749,7 @@ bGQgTmFtZQkgID0gQAoJCQkJICBMRU5HVEgoYEBgKSA+IEA copyTableContentSwitch - id + NSButton copyTableMessageField diff --git a/Interfaces/English.lproj/DataMigrationDialog.xib b/Interfaces/English.lproj/DataMigrationDialog.xib index 1a7c25b6..d1c0fee3 100644 --- a/Interfaces/English.lproj/DataMigrationDialog.xib +++ b/Interfaces/English.lproj/DataMigrationDialog.xib @@ -3,29 +3,24 @@ 1050 10J567 - 788 + 804 1038.35 462.00 com.apple.InterfaceBuilder.CocoaPlugin - 788 + 804 YES - + YES com.apple.InterfaceBuilder.CocoaPlugin - YES - - YES - - - YES - + PluginDependencyRecalculationVersion + YES @@ -41,15 +36,15 @@ 15 2 - {{366, 230}, {522, 348}} + {{366, 230}, {634, 348}} 1886912512 CSV Field Mapping NSWindow View - {3.40282e+38, 3.40282e+38} - {522, 348} + {1.79769e+308, 1.79769e+308} + {634, 348} 274 @@ -63,12 +58,12 @@ 256 - {{1, 2.5}, {544, 0}} + {{1, 2.5}, {656, 0}} - {{-12, 53}, {546, 2}} - {{0, 1.5}, {546, 0}} + {{-12, 53}, {658, 2}} + {{0, 1.5}, {658, 2}} {0, 0} @@ -117,7 +112,7 @@ 271 - {{12, 12}, {498, 17}} + {{14, 12}, {604, 17}} YES @@ -136,7 +131,7 @@ controlColor 3 - MC42NjY2NjY2ODY1AA + MC42NjY2NjY2NjY3AA @@ -153,7 +148,7 @@ 265 - {{400, 51}, {226, 32}} + {{512, 51}, {226, 32}} YES @@ -173,7 +168,7 @@ 265 - {{552, 1}, {226, 32}} + {{664, 1}, {226, 32}} YES @@ -193,7 +188,7 @@ 265 - {{556, 1}, {226, 32}} + {{668, 1}, {226, 32}} YES @@ -211,11 +206,11 @@ - {{1, 1}, {522, 39}} + {{1, 1}, {634, 39}} - {{-1, 308}, {524, 41}} + {{-1, 308}, {636, 41}} {0, 0} @@ -252,13 +247,13 @@ 288 - {522, 126} + {634, 126} YES 256 - {522, 17} + {634, 17} @@ -272,7 +267,7 @@ YES import_value - 121 + 233 15 1000 @@ -515,7 +510,7 @@ 1 - {{1, 17}, {522, 126}} + {{1, 17}, {634, 126}} @@ -555,7 +550,7 @@ YES - {{1, 0}, {522, 17}} + {{1, 0}, {634, 17}} @@ -564,7 +559,7 @@ - {{-1, 129}, {524, 144}} + {{-1, 129}, {636, 144}} 530 @@ -578,7 +573,7 @@ 289 - {{303, 12}, {102, 32}} + {{415, 12}, {102, 32}} YES @@ -603,7 +598,7 @@ 289 - {{405, 12}, {102, 32}} + {{517, 12}, {102, 32}} 1 YES @@ -676,7 +671,7 @@ 294 - {{88, 23}, {155, 14}} + {{88, 23}, {195, 14}} YES @@ -692,7 +687,7 @@ 267 - {{290, 278}, {166, 22}} + {{361, 278}, {200, 22}} YES @@ -724,7 +719,7 @@ 289 - {{372, 97}, {133, 22}} + {{484, 97}, {133, 22}} YES @@ -788,7 +783,7 @@ 289 - {{258, 102}, {112, 14}} + {{302, 102}, {180, 14}} YES @@ -812,7 +807,7 @@ NSFilenamesPboardType - {{5, 280}, {260, 20}} + {{5, 280}, {316, 20}} YES @@ -833,7 +828,7 @@ 292 - {{17, 100}, {238, 18}} + {{17, 100}, {275, 18}} YES @@ -860,7 +855,7 @@ 289 - {{372, 73}, {133, 22}} + {{484, 73}, {133, 22}} YES @@ -942,7 +937,7 @@ 289 - {{213, 79}, {157, 14}} + {{302, 79}, {180, 14}} YES @@ -958,7 +953,7 @@ 289 - {{214, 12}, {82, 32}} + {{326, 12}, {82, 32}} YES @@ -1047,7 +1042,7 @@ - {{145, 20}, {230, 44}} + {{200, 20}, {230, 44}} NSView @@ -1348,7 +1343,7 @@ - {{39, -57}, {442, 121}} + {{93, -57}, {442, 121}} NSView @@ -1424,7 +1419,7 @@ - {{59.5, 20}, {390, 44}} + {{110, 20}, {390, 44}} NSView @@ -1451,7 +1446,7 @@ 265 - {{375, 280}, {106, 19}} + {{487, 280}, {106, 19}} YES @@ -1473,7 +1468,7 @@ 265 - {{290, 283}, {80, 14}} + {{402, 283}, {80, 14}} YES @@ -1489,7 +1484,7 @@ 265 - {{487, 280}, {20, 20}} + {{599, 280}, {20, 20}} YES @@ -1513,7 +1508,7 @@ 265 - {{461, 281}, {46, 17}} + {{566, 281}, {61, 17}} YES @@ -1531,12 +1526,12 @@ - {522, 348} + {634, 348} {{0, 0}, {1280, 778}} - {522, 370} - {3.40282e+38, 3.40282e+38} + {634, 370} + {1.79769e+308, 1.79769e+308} SPCSVFieldMappingSheet @@ -1547,10 +1542,10 @@ Window NSWindow - {3.40282e+38, 3.40282e+38} + {1.79769e+308, 1.79769e+308} {311, 186} - + 274 YES @@ -1569,14 +1564,12 @@ 256 {311, 111} - YES 256 {311, 17} - @@ -1584,7 +1577,6 @@ -2147483392 {{224, 0}, {16, 17}} - YES @@ -1704,8 +1696,6 @@ {{1, 17}, {311, 111}} - - 4 @@ -1715,7 +1705,6 @@ -2147483392 {{-100, -100}, {15, 102}} - _doScroller: 0.99065423011779785 @@ -1725,7 +1714,6 @@ -2147483392 {{-100, -100}, {238, 15}} - 1 _doScroller: @@ -1741,8 +1729,6 @@ {{1, 0}, {311, 17}} - - 4 @@ -1751,8 +1737,6 @@ {{-1, 71}, {313, 129}} - - 530 @@ -1766,7 +1750,6 @@ 292 {{17, 42}, {22, 22}} - YES -2080244224 @@ -1791,7 +1774,6 @@ 292 {{38, 42}, {22, 22}} - YES -2080244224 @@ -1816,7 +1798,6 @@ 289 {{216, 13}, {80, 28}} - 1 YES @@ -1838,7 +1819,6 @@ 292 {{18, 17}, {197, 18}} - YES -2080244224 @@ -1861,7 +1841,6 @@ 292 {{70, 42}, {105, 22}} - YES -2076049856 @@ -1946,7 +1925,6 @@ - 3 YES 1 YES @@ -1956,12 +1934,10 @@ {311, 210} - - {{0, 0}, {1280, 1002}} {311, 208} - {3.40282e+38, 3.40282e+38} + {1.79769e+308, 1.79769e+308} @@ -2105,7 +2081,7 @@ {269, 120} {269, 120} - + 256 YES @@ -2114,6 +2090,7 @@ 256 {{17, 80}, {90, 14}} + YES 68288064 @@ -2130,6 +2107,7 @@ 257 {{184, 13}, {70, 28}} + 1 YES @@ -2157,6 +2135,7 @@ 256 {{109, 75}, {143, 22}} + YES -2076049856 @@ -2192,6 +2171,7 @@ 256 {{41, 54}, {66, 14}} + YES 68288064 @@ -2208,6 +2188,7 @@ 256 {{109, 50}, {143, 22}} + YES -2076049856 @@ -2243,6 +2224,7 @@ 257 {{116, 12}, {70, 28}} + YES 67239424 @@ -2261,6 +2243,8 @@ {269, 120} + + {{0, 0}, {1280, 778}} {269, 142} @@ -3044,7 +3028,9 @@ YES 0 - + + YES + @@ -4550,16 +4536,16 @@ YES com.apple.InterfaceBuilder.CocoaPlugin - {{343, 83}, {522, 348}} + {{597, 562}, {634, 348}} com.apple.InterfaceBuilder.CocoaPlugin - {{343, 83}, {522, 348}} + {{597, 562}, {634, 348}} {{387, 725}, {432, 282}} {10000, 500} - {522, 348} + {634, 348} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -4617,9 +4603,9 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{60, 533}, {311, 210}} + {{329, 533}, {311, 210}} com.apple.InterfaceBuilder.CocoaPlugin - {{60, 533}, {311, 210}} + {{329, 533}, {311, 210}} {311, 186} @@ -4943,10 +4929,10 @@ - NSObject + NSMenu IBProjectSource - Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h + Source/SPMenuAdditions.h @@ -4970,6 +4956,13 @@ Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject @@ -5045,7 +5038,10 @@ doSelectionTitleCase: doSelectionUpperCase: doTranspose: + executeBundleItemForInputField: insertNULLvalue: + moveSelectionLineDown: + moveSelectionLineUp: selectCurrentLine: selectCurrentWord: selectEnclosingBrackets: @@ -5065,6 +5061,9 @@ id id id + id + id + id @@ -5080,7 +5079,10 @@ doSelectionTitleCase: doSelectionUpperCase: doTranspose: + executeBundleItemForInputField: insertNULLvalue: + moveSelectionLineDown: + moveSelectionLineUp: selectCurrentLine: selectCurrentWord: selectEnclosingBrackets: @@ -5123,10 +5125,22 @@ doTranspose: id + + executeBundleItemForInputField: + id + insertNULLvalue: id + + moveSelectionLineDown: + id + + + moveSelectionLineUp: + id + selectCurrentLine: id @@ -5157,14 +5171,35 @@ SPCopyTable SPTableView - copy: - id + YES + + YES + copy: + executeBundleItemForDataTable: + + + YES + id + id + - copy: - - copy: - id + YES + + YES + copy: + executeBundleItemForDataTable: + + + YES + + copy: + id + + + executeBundleItemForDataTable: + id + @@ -5405,6 +5440,7 @@ editorFontMenuItem encodingPopUp errorText + errorTextScrollView helpNavigator helpSearchField helpSearchFieldCell @@ -5460,6 +5496,7 @@ NSMenuItem NSPopUpButton id + NSScrollView NSSegmentedControl NSSearchField NSSearchFieldCell @@ -5489,7 +5526,7 @@ NSMenuItem NSMenuItem NSButton - id + NSButton NSMenuItem NSMenuItem id @@ -5518,6 +5555,7 @@ editorFontMenuItem encodingPopUp errorText + errorTextScrollView helpNavigator helpSearchField helpSearchFieldCell @@ -5618,6 +5656,10 @@ errorText id + + errorTextScrollView + NSScrollView + helpNavigator NSSegmentedControl @@ -5736,7 +5778,7 @@ saveQueryFavoriteGlobal - id + NSButton shiftLeftMenuItem @@ -5812,7 +5854,9 @@ import: importFromClipboard: openCurrentConnectionInNewWindow: + openDatabaseInNewTab: optimizeTable: + refreshTables: removeDatabase: renameDatabase: repairTable: @@ -5829,12 +5873,6 @@ toggleNavigator: updateWindowTitle: validateSaveConnectionAccessory: - viewContent: - viewQuery: - viewRelations: - viewStatus: - viewStructure: - viewTriggers: YES @@ -5882,10 +5920,6 @@ id id id - id - id - id - id @@ -5917,7 +5951,9 @@ import: importFromClipboard: openCurrentConnectionInNewWindow: + openDatabaseInNewTab: optimizeTable: + refreshTables: removeDatabase: renameDatabase: repairTable: @@ -5934,12 +5970,6 @@ toggleNavigator: updateWindowTitle: validateSaveConnectionAccessory: - viewContent: - viewQuery: - viewRelations: - viewStatus: - viewStructure: - viewTriggers: YES @@ -6043,10 +6073,18 @@ openCurrentConnectionInNewWindow: id + + openDatabaseInNewTab: + id + optimizeTable: id + + refreshTables: + id + removeDatabase: id @@ -6111,36 +6149,13 @@ validateSaveConnectionAccessory: id - - viewContent: - id - - - viewQuery: - id - - - viewRelations: - id - - - viewStatus: - id - - - viewStructure: - id - - - viewTriggers: - id - YES YES + activitiesScrollView addDatabaseButton chooseDatabaseButton connectionErrorDialog @@ -6194,6 +6209,7 @@ tableDataInstance tableDumpInstance tableInfoCollapseButton + tableInfoScrollView tableInfoTable tableListSplitter tableRelationsInstance @@ -6212,6 +6228,7 @@ YES + NSScrollView id id NSWindow @@ -6265,6 +6282,7 @@ id id NSButton + NSScrollView NSTableView NSSplitView id @@ -6286,6 +6304,7 @@ YES YES + activitiesScrollView addDatabaseButton chooseDatabaseButton connectionErrorDialog @@ -6339,6 +6358,7 @@ tableDataInstance tableDumpInstance tableInfoCollapseButton + tableInfoScrollView tableInfoTable tableListSplitter tableRelationsInstance @@ -6357,6 +6377,10 @@ YES + + activitiesScrollView + NSScrollView + addDatabaseButton id @@ -6569,6 +6593,10 @@ tableInfoCollapseButton NSButton + + tableInfoScrollView + NSScrollView + tableInfoTable NSTableView @@ -6636,6 +6664,73 @@ Source/SPDatabaseDocument.h + + SPDatabaseDocument + + YES + + YES + viewContent: + viewQuery: + viewRelations: + viewStatus: + viewStructure: + viewTriggers: + + + YES + id + id + id + id + id + id + + + + YES + + YES + viewContent: + viewQuery: + viewRelations: + viewStatus: + viewStructure: + viewTriggers: + + + YES + + viewContent: + id + + + viewQuery: + id + + + viewRelations: + id + + + viewStatus: + id + + + viewStructure: + id + + + viewTriggers: + id + + + + + IBProjectSource + Source/SPDatabaseViewController.h + + SPDatabaseDocument @@ -6662,7 +6757,10 @@ closeInfoSheet: closeSheet: goBackToFileChooser: + goBackToFileChooserFromPathControl: insertNULLValue: + insertPulldownValue: + insertRecentGlobalValue: newTable: newTableInfo: openAdvancedSheet: @@ -6693,6 +6791,9 @@ id id id + id + id + id @@ -6711,7 +6812,10 @@ closeInfoSheet: closeSheet: goBackToFileChooser: + goBackToFileChooserFromPathControl: insertNULLValue: + insertPulldownValue: + insertRecentGlobalValue: newTable: newTableInfo: openAdvancedSheet: @@ -6770,10 +6874,22 @@ goBackToFileChooser: id + + goBackToFileChooserFromPathControl: + id + insertNULLValue: id + + insertPulldownValue: + id + + + insertRecentGlobalValue: + id + newTable: id @@ -6829,6 +6945,7 @@ fileSourcePath globalValuesSheet globalValuesTableView + gobackButton highPriorityCheckBox ignoreCheckBox ignoreUpdateCheckBox @@ -6837,6 +6954,7 @@ importMethodLabel importMethodPopup insertNULLValueButton + insertPullDownButton lowPriorityCheckBox lowPriorityReplaceCheckBox lowPriorityUpdateCheckBox @@ -6850,6 +6968,7 @@ newTableNameTextField onupdateCheckBox onupdateTextView + recentGlobalValueMenu recordCountLabel removeGlobalValueButton replaceAfterSavingCheckBox @@ -6891,8 +7010,10 @@ id id id + id NSPopUpButton NSButton + NSPopUpButton id id id @@ -6906,6 +7027,7 @@ NSTextField id SPTextView + NSMenu id NSButton id @@ -6944,6 +7066,7 @@ fileSourcePath globalValuesSheet globalValuesTableView + gobackButton highPriorityCheckBox ignoreCheckBox ignoreUpdateCheckBox @@ -6952,6 +7075,7 @@ importMethodLabel importMethodPopup insertNULLValueButton + insertPullDownButton lowPriorityCheckBox lowPriorityReplaceCheckBox lowPriorityUpdateCheckBox @@ -6965,6 +7089,7 @@ newTableNameTextField onupdateCheckBox onupdateTextView + recentGlobalValueMenu recordCountLabel removeGlobalValueButton replaceAfterSavingCheckBox @@ -7063,6 +7188,10 @@ globalValuesTableView NSTableView + + gobackButton + id + highPriorityCheckBox id @@ -7095,6 +7224,10 @@ insertNULLValueButton NSButton + + insertPullDownButton + NSPopUpButton + lowPriorityCheckBox id @@ -7147,6 +7280,10 @@ onupdateTextView SPTextView + + recentGlobalValueMenu + NSMenu + recordCountLabel id @@ -7267,6 +7404,7 @@ addTable: closeSheet: copyTable: + openTableInNewTab: removeTable: renameTable: togglePaneCollapse: @@ -7285,6 +7423,7 @@ id id id + id @@ -7294,6 +7433,7 @@ addTable: closeSheet: copyTable: + openTableInNewTab: removeTable: renameTable: togglePaneCollapse: @@ -7315,6 +7455,10 @@ copyTable: id + + openTableInNewTab: + id + removeTable: id @@ -7357,6 +7501,8 @@ duplicateTableMenuItem extendedTableInfoInstance listFilterField + openTableInNewTabContextMenuItem + openTableInNewTabMenuItem removeTableContextMenuItem removeTableMenuItem renameTableContextMenuItem @@ -7368,7 +7514,6 @@ showCreateSyntaxContextMenuItem showCreateSyntaxMenuItem spHistoryControllerInstance - tabView tableContentInstance tableDataInstance tableDocumentInstance @@ -7388,13 +7533,13 @@ toolbarAddButton toolbarReloadButton truncateTableButton - truncateTableContextButton + truncateTableContextMenuItem YES id id - id + NSButton id id id @@ -7414,13 +7559,14 @@ NSMenuItem NSMenuItem NSMenuItem + NSMenuItem + NSMenuItem SPHistoryController id id id id id - id NSButton id NSSplitView @@ -7435,7 +7581,7 @@ id id id - id + NSMenuItem @@ -7454,6 +7600,8 @@ duplicateTableMenuItem extendedTableInfoInstance listFilterField + openTableInNewTabContextMenuItem + openTableInNewTabMenuItem removeTableContextMenuItem removeTableMenuItem renameTableContextMenuItem @@ -7465,7 +7613,6 @@ showCreateSyntaxContextMenuItem showCreateSyntaxMenuItem spHistoryControllerInstance - tabView tableContentInstance tableDataInstance tableDocumentInstance @@ -7485,7 +7632,7 @@ toolbarAddButton toolbarReloadButton truncateTableButton - truncateTableContextButton + truncateTableContextMenuItem YES @@ -7499,7 +7646,7 @@ copyTableContentSwitch - id + NSButton copyTableMessageField @@ -7538,808 +7685,212 @@ NSSearchField - removeTableContextMenuItem + openTableInNewTabContextMenuItem NSMenuItem - removeTableMenuItem - NSMenuItem - - - renameTableContextMenuItem - NSMenuItem - - - renameTableMenuItem - NSMenuItem - - - separatorTableContextMenuItem - NSMenuItem - - - separatorTableContextMenuItem2 - NSMenuItem - - - separatorTableMenuItem - NSMenuItem - - - separatorTableMenuItem2 - NSMenuItem - - - showCreateSyntaxContextMenuItem - NSMenuItem - - - showCreateSyntaxMenuItem - NSMenuItem - - - spHistoryControllerInstance - SPHistoryController - - - tabView - id - - - tableContentInstance - id - - - tableDataInstance - id - - - tableDocumentInstance - id - - - tableDumpInstance - id - - - tableEncodingButton - id - - - tableInfoCollapseButton - NSButton - - - tableInfoInstance - id - - - tableListFilterSplitView - NSSplitView - - - tableListSplitView - NSSplitView - - - tableNameField - id - - - tableSheet - id - - - tableSourceInstance - id - - - tableTriggersInstance - id - - - tableTypeButton - id - - - tablesListView - id - - - toolbarActionsButton - id - - - toolbarAddButton - id - - - toolbarReloadButton - id - - - truncateTableButton - id - - - truncateTableContextButton - id - - - - - - - SPTextView - NSTextView - - showMySQLHelpForCurrentWord: - id - - - showMySQLHelpForCurrentWord: - - showMySQLHelpForCurrentWord: - id - - - - YES - - YES - customQueryInstance - scrollView - tableDocumentInstance - tablesListInstance - - - YES - SPCustomQuery - NSScrollView - SPDatabaseDocument - SPTablesList - - - - YES - - YES - customQueryInstance - scrollView - tableDocumentInstance - tablesListInstance - - - YES - - customQueryInstance - SPCustomQuery - - - scrollView - NSScrollView - - - tableDocumentInstance - SPDatabaseDocument - - - tablesListInstance - SPTablesList - - - - - IBProjectSource - Source/SPTextView.h - - - - SPTextView - NSTextView - - IBUserSource - - - - - - YES - - SPFieldMapperController - NSWindowController - - YES - - YES - addGlobalSourceVariable: - addGlobalValue: - addNewColumn: - advancedCheckboxValidation: - changeFieldAlignment: - changeHasHeaderCheckbox: - changeImportMethod: - changeTableTarget: - closeGlobalValuesSheet: - closeInfoSheet: - closeSheet: - goBackToFileChooser: - goBackToFileChooserFromPathControl: - insertNULLValue: - insertPulldownValue: - insertRecentGlobalValue: - newTable: - newTableInfo: - openAdvancedSheet: - removeGlobalValue: - removeNewColumn: - setAllTypesTo: - stepRow: - - - YES - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - id - - - - YES - - YES - addGlobalSourceVariable: - addGlobalValue: - addNewColumn: - advancedCheckboxValidation: - changeFieldAlignment: - changeHasHeaderCheckbox: - changeImportMethod: - changeTableTarget: - closeGlobalValuesSheet: - closeInfoSheet: - closeSheet: - goBackToFileChooser: - goBackToFileChooserFromPathControl: - insertNULLValue: - insertPulldownValue: - insertRecentGlobalValue: - newTable: - newTableInfo: - openAdvancedSheet: - removeGlobalValue: - removeNewColumn: - setAllTypesTo: - stepRow: - - - YES - - addGlobalSourceVariable: - id - - - addGlobalValue: - id - - - addNewColumn: - id - - - advancedCheckboxValidation: - id - - - changeFieldAlignment: - id - - - changeHasHeaderCheckbox: - id - - - changeImportMethod: - id - - - changeTableTarget: - id - - - closeGlobalValuesSheet: - id - - - closeInfoSheet: - id - - - closeSheet: - id - - - goBackToFileChooser: - id - - - goBackToFileChooserFromPathControl: - id - - - insertNULLValue: - id - - - insertPulldownValue: - id - - - insertRecentGlobalValue: - id - - - newTable: - id - - - newTableInfo: - id - - - openAdvancedSheet: - id - - - removeGlobalValue: - id - - - removeNewColumn: - id - - - setAllTypesTo: - id - - - stepRow: - id - - - - - YES - - YES - addGlobalValueButton - addNewColumnMenuItem - addRemainingDataSwitch - advancedBox - advancedButton - advancedInsertView - advancedLabel - advancedReplaceView - advancedUpdateView - alignByPopup - alignByPopupLabel - customQueryInstance - databaseDataInstance - delayedCheckBox - delayedReplaceCheckBox - fieldMapperTableScrollView - fieldMapperTableView - fieldMappingImportArray - fileSourcePath - globalValuesSheet - globalValuesTableView - gobackButton - highPriorityCheckBox - ignoreCheckBox - ignoreUpdateCheckBox - importButton - importFieldNamesHeaderSwitch - importMethodLabel - importMethodPopup - insertNULLValueButton - insertPullDownButton - lowPriorityCheckBox - lowPriorityReplaceCheckBox - lowPriorityUpdateCheckBox - matchingNameMenuItem - newTableButton - newTableInfoEncodingPopup - newTableInfoEnginePopup - newTableInfoWindow - newTableNameInfoButton - newTableNameLabel - newTableNameTextField - onupdateCheckBox - onupdateTextView - recentGlobalValueMenu - recordCountLabel - removeGlobalValueButton - replaceAfterSavingCheckBox - rowDownButton - rowUpButton - setAllTypesToMenuItem - skipexistingRowsCheckBox - tableTargetPopup - tablesListInstance - theDelegate - typeComboxBox - - - YES - NSButton - NSMenuItem - id - id - id - id - id - id - id - NSPopUpButton - id - id - id - id - id - id - SPTableView - id - NSPathControl - id - NSTableView - id - id - id - id - id - id - id - NSPopUpButton - NSButton - NSPopUpButton - id - id - id - NSMenuItem - NSButton - id - id - id - NSButton - NSTextField - NSTextField - id - SPTextView - NSMenu - id - NSButton - id - id - id - NSMenuItem - id - NSPopUpButton - id - id - NSComboBoxCell - - - - YES - - YES - addGlobalValueButton - addNewColumnMenuItem - addRemainingDataSwitch - advancedBox - advancedButton - advancedInsertView - advancedLabel - advancedReplaceView - advancedUpdateView - alignByPopup - alignByPopupLabel - customQueryInstance - databaseDataInstance - delayedCheckBox - delayedReplaceCheckBox - fieldMapperTableScrollView - fieldMapperTableView - fieldMappingImportArray - fileSourcePath - globalValuesSheet - globalValuesTableView - gobackButton - highPriorityCheckBox - ignoreCheckBox - ignoreUpdateCheckBox - importButton - importFieldNamesHeaderSwitch - importMethodLabel - importMethodPopup - insertNULLValueButton - insertPullDownButton - lowPriorityCheckBox - lowPriorityReplaceCheckBox - lowPriorityUpdateCheckBox - matchingNameMenuItem - newTableButton - newTableInfoEncodingPopup - newTableInfoEnginePopup - newTableInfoWindow - newTableNameInfoButton - newTableNameLabel - newTableNameTextField - onupdateCheckBox - onupdateTextView - recentGlobalValueMenu - recordCountLabel - removeGlobalValueButton - replaceAfterSavingCheckBox - rowDownButton - rowUpButton - setAllTypesToMenuItem - skipexistingRowsCheckBox - tableTargetPopup - tablesListInstance - theDelegate - typeComboxBox - - - YES - - addGlobalValueButton - NSButton - - - addNewColumnMenuItem + openTableInNewTabMenuItem NSMenuItem - addRemainingDataSwitch - id - - - advancedBox - id - - - advancedButton - id - - - advancedInsertView - id - - - advancedLabel - id - - - advancedReplaceView - id - - - advancedUpdateView - id - - - alignByPopup - NSPopUpButton - - - alignByPopupLabel - id + removeTableContextMenuItem + NSMenuItem - customQueryInstance - id + removeTableMenuItem + NSMenuItem - databaseDataInstance - id + renameTableContextMenuItem + NSMenuItem - delayedCheckBox - id + renameTableMenuItem + NSMenuItem - delayedReplaceCheckBox - id + separatorTableContextMenuItem + NSMenuItem - fieldMapperTableScrollView - id + separatorTableContextMenuItem2 + NSMenuItem - fieldMapperTableView - SPTableView + separatorTableMenuItem + NSMenuItem - fieldMappingImportArray - id + separatorTableMenuItem2 + NSMenuItem - fileSourcePath - NSPathControl + showCreateSyntaxContextMenuItem + NSMenuItem - globalValuesSheet - id + showCreateSyntaxMenuItem + NSMenuItem - globalValuesTableView - NSTableView + spHistoryControllerInstance + SPHistoryController - gobackButton + tableContentInstance id - highPriorityCheckBox + tableDataInstance id - ignoreCheckBox + tableDocumentInstance id - ignoreUpdateCheckBox + tableDumpInstance id - importButton + tableEncodingButton id - importFieldNamesHeaderSwitch - id + tableInfoCollapseButton + NSButton - importMethodLabel + tableInfoInstance id - importMethodPopup - NSPopUpButton - - - insertNULLValueButton - NSButton - - - insertPullDownButton - NSPopUpButton + tableListFilterSplitView + NSSplitView - lowPriorityCheckBox - id + tableListSplitView + NSSplitView - lowPriorityReplaceCheckBox + tableNameField id - lowPriorityUpdateCheckBox + tableSheet id - matchingNameMenuItem - NSMenuItem - - - newTableButton - NSButton - - - newTableInfoEncodingPopup + tableSourceInstance id - newTableInfoEnginePopup + tableTriggersInstance id - newTableInfoWindow + tableTypeButton id - newTableNameInfoButton - NSButton - - - newTableNameLabel - NSTextField - - - newTableNameTextField - NSTextField - - - onupdateCheckBox + tablesListView id - onupdateTextView - SPTextView - - - recentGlobalValueMenu - NSMenu - - - recordCountLabel + toolbarActionsButton id - removeGlobalValueButton - NSButton - - - replaceAfterSavingCheckBox + toolbarAddButton id - rowDownButton + toolbarReloadButton id - rowUpButton + truncateTableButton id - setAllTypesToMenuItem + truncateTableContextMenuItem NSMenuItem + + + + + + SPTextView + NSTextView + + showMySQLHelpForCurrentWord: + id + + + showMySQLHelpForCurrentWord: + + showMySQLHelpForCurrentWord: + id + + + + YES + + YES + customQueryInstance + scrollView + tableDocumentInstance + tablesListInstance + + + YES + SPCustomQuery + NSScrollView + SPDatabaseDocument + SPTablesList + + + + YES + + YES + customQueryInstance + scrollView + tableDocumentInstance + tablesListInstance + + + YES - skipexistingRowsCheckBox - id - - - tableTargetPopup - NSPopUpButton + customQueryInstance + SPCustomQuery - tablesListInstance - id + scrollView + NSScrollView - theDelegate - id + tableDocumentInstance + SPDatabaseDocument - typeComboxBox - NSComboBoxCell + tablesListInstance + SPTablesList - IBDocumentRelativeSource - ../../Source/SPFieldMapperController.h + IBProjectSource + Source/SPTextView.h + + + + SPTextView + NSTextView + + IBUserSource + @@ -8775,6 +8326,27 @@ PrintCore.framework/Headers/PDEPluginInterface.h + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderCell.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderControl.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRValidator.h + + NSObject diff --git a/Interfaces/English.lproj/DatabaseServerVariables.xib b/Interfaces/English.lproj/DatabaseServerVariables.xib index 6981e74d..6164b81c 100644 --- a/Interfaces/English.lproj/DatabaseServerVariables.xib +++ b/Interfaces/English.lproj/DatabaseServerVariables.xib @@ -2,10 +2,10 @@ 1050 - 10F569 - 788 - 1038.29 - 461.00 + 10J567 + 804 + 1038.35 + 462.00 YES @@ -15,14 +15,14 @@ YES - 788 + 804 1.2.2 YES - + YES @@ -30,13 +30,8 @@ com.brandonwalkin.BWToolkit - YES - - YES - - - YES - + PluginDependencyRecalculationVersion + YES @@ -52,7 +47,7 @@ 15 2 - {{386, 508}, {411, 341}} + {{386, 508}, {433, 341}} 1886912512 Variables NSWindow @@ -60,7 +55,7 @@ View {1.79769e+308, 1.79769e+308} - {400, 200} + {433, 341} 256 @@ -79,27 +74,27 @@ 256 - {399, 251} + {421, 251} YES 256 - {399, 17} + {421, 17} 256 - {{400, 0}, {12, 17}} + {{422, 0}, {12, 17}} YES Variable_name - 202 + 224 40 1000 @@ -204,7 +199,7 @@ 0 - {{1, 17}, {399, 251}} + {{1, 17}, {421, 251}} @@ -214,7 +209,7 @@ 256 - {{400, 17}, {11, 251}} + {{422, 17}, {11, 251}} 256 @@ -238,7 +233,7 @@ YES - {{1, 0}, {399, 17}} + {{1, 0}, {421, 17}} @@ -247,7 +242,7 @@ - {{-1, 39}, {412, 269}} + {{-1, 39}, {434, 269}} 18 @@ -261,7 +256,7 @@ 257 - {{320, 5}, {76, 28}} + {{342, 5}, {77, 28}} YES @@ -306,7 +301,7 @@ 268 - {{9, 316}, {140, 14}} + {{9, 316}, {156, 14}} YES @@ -331,7 +326,7 @@ 265 - {{229, 314}, {170, 19}} + {{251, 314}, {170, 19}} YES @@ -399,7 +394,7 @@ -2147483382 - {{151, 316}, {73, 14}} + {{167, 316}, {79, 14}} YES @@ -413,11 +408,11 @@ - {411, 341} + {433, 341} {{0, 0}, {1680, 1028}} - {400, 222} + {433, 363} {1.79769e+308, 1.79769e+308} @@ -596,7 +591,9 @@ YES 0 - + + YES + @@ -819,6 +816,7 @@ -3.IBPluginDependency 1.IBEditorWindowLastContentRect 1.IBPluginDependency + 1.IBViewEditorWindowController.showingBoundsRectangles 1.IBWindowTemplateEditedContentRect 1.ImportedFromIB2 1.editorWindowContentRectSynchronizationRect @@ -867,15 +865,16 @@ YES com.apple.InterfaceBuilder.CocoaPlugin - {{426, 162}, {411, 341}} + {{440, 258}, {433, 341}} com.apple.InterfaceBuilder.CocoaPlugin - {{426, 162}, {411, 341}} + + {{440, 258}, {433, 341}} {{321, 508}, {411, 341}} {3.40282e+38, 3.40282e+38} - {400, 200} + {433, 341} com.apple.InterfaceBuilder.CocoaPlugin com.brandonwalkin.BWToolkit com.apple.InterfaceBuilder.CocoaPlugin @@ -944,10 +943,10 @@ - NSObject + NSMenu IBProjectSource - Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h + Source/SPMenuAdditions.h @@ -971,6 +970,13 @@ Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject @@ -1535,6 +1541,27 @@ PrintCore.framework/Headers/PDEPluginInterface.h + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderCell.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRRecorderControl.h + + + + NSObject + + IBFrameworkSource + ShortcutRecorder.framework/Headers/SRValidator.h + + NSObject diff --git a/Interfaces/English.lproj/ExportDialog.xib b/Interfaces/English.lproj/ExportDialog.xib index 16c7be68..50a42201 100644 --- a/Interfaces/English.lproj/ExportDialog.xib +++ b/Interfaces/English.lproj/ExportDialog.xib @@ -21,7 +21,8 @@ YES - + + YES @@ -46,22 +47,22 @@ 4111 2 - {{610, 291}, {451, 480}} + {{610, 291}, {517, 480}} 611845120 Export NSWindow {1.79769e+308, 1.79769e+308} - {449, 480} + {517, 480} - + 256 YES 18 - {{-8, 69}, {467, 405}} + {{-8, 69}, {533, 405}} YES @@ -70,7 +71,7 @@ 256 - {{10, 33}, {447, 359}} + {{10, 33}, {513, 359}} SQL @@ -135,7 +136,7 @@ 289 - {{331, 12}, {104, 32}} + {{397, 12}, {104, 32}} 1 YES @@ -156,7 +157,7 @@ 289 - {{227, 12}, {104, 32}} + {{293, 12}, {104, 32}} YES @@ -318,11 +319,11 @@ - {{1, 1}, {412, 65}} + {{1, 1}, {478, 65}} - {{-3, -4}, {414, 67}} + {{-3, -4}, {480, 67}} {0, 0} @@ -373,7 +374,7 @@ - {{21, -16}, {408, 61}} + {{21, -16}, {474, 61}} NSView @@ -424,10 +425,11 @@ - {451, 480} + {517, 480} + {{0, 0}, {1680, 1028}} - {449, 502} + {517, 502} {1.79769e+308, 1.79769e+308} SPExportWindow @@ -857,7 +859,7 @@ 266 - {{29, 59}, {411, 19}} + {{29, 59}, {482, 19}} YES @@ -879,7 +881,7 @@ 268 - {{29, 86}, {414, 14}} + {{29, 86}, {485, 14}} YES @@ -905,7 +907,7 @@ 258 - {{21, 4}, {383, 22}} + {{21, 4}, {450, 22}} YES @@ -919,11 +921,11 @@ - {{1, 1}, {415, 38}} + {{1, 1}, {486, 38}} - {{26, 10}, {417, 40}} + {{26, 10}, {488, 40}} {0, 0} @@ -944,11 +946,11 @@ NO - {{1, 1}, {468, 112}} + {{1, 1}, {529, 112}} - {{-11, -4}, {470, 114}} + {{-11, -4}, {531, 114}} {0, 0} @@ -969,14 +971,14 @@ NO - {{0, 188}, {450, 108}} + {{0, 188}, {517, 108}} NSView 268 - {{32, 297}, {400, 28}} + {{32, 297}, {467, 28}} YES @@ -1104,7 +1106,7 @@ 265 - {{341, 325}, {94, 28}} + {{408, 325}, {94, 28}} YES @@ -1124,7 +1126,7 @@ 10 - {{20, 293}, {410, 5}} + {{20, 293}, {477, 5}} {0, 0} @@ -1146,7 +1148,7 @@ 266 - {{53, 330}, {285, 19}} + {{73, 330}, {332, 19}} YES @@ -1163,12 +1165,12 @@ 268 - {{17, 332}, {31, 14}} + {{17, 332}, {51, 14}} YES 68288064 - 272761856 + 71435264 Path: @@ -1179,7 +1181,7 @@ -2147483380 - {{226, 269}, {160, 18}} + {{226, 269}, {273, 18}} YES @@ -1201,21 +1203,21 @@ 17 - {{225, 16}, {209, 249}} + {{225, 16}, {276, 249}} YES sql - + 256 YES 268 - {{11, 176}, {179, 18}} + {{11, 176}, {233, 18}} YES @@ -1237,7 +1239,7 @@ 268 - {{12, 200}, {180, 14}} + {{12, 200}, {233, 14}} YES @@ -1253,7 +1255,7 @@ 268 - {{12, 96}, {180, 14}} + {{12, 96}, {233, 14}} YES @@ -1269,7 +1271,7 @@ 268 - {{12, 136}, {179, 18}} + {{12, 136}, {232, 18}} YES @@ -1291,7 +1293,7 @@ 268 - {{12, 116}, {179, 18}} + {{12, 116}, {232, 18}} YES @@ -1313,7 +1315,7 @@ 268 - {{12, 156}, {179, 18}} + {{12, 156}, {232, 18}} YES @@ -1335,7 +1337,7 @@ 268 - {{12, 72}, {179, 18}} + {{12, 72}, {232, 18}} YES @@ -1357,7 +1359,7 @@ 268 - {{12, 52}, {179, 18}} + {{12, 52}, {232, 18}} YES @@ -1379,7 +1381,7 @@ 268 - {{12, 32}, {180, 14}} + {{12, 32}, {233, 14}} YES @@ -1481,7 +1483,7 @@ 268 - {{80, 2}, {98, 22}} + {{80, 2}, {117, 22}} YES @@ -1534,8 +1536,7 @@ - {{10, 7}, {189, 229}} - + {{10, 7}, {256, 229}} SQL @@ -1778,7 +1779,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} Excel @@ -1787,14 +1788,14 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA csv - + 256 YES 268 - {{5, 178}, {120, 14}} + {{5, 178}, {240, 14}} YES @@ -1810,7 +1811,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{5, 79}, {120, 14}} + {{5, 79}, {240, 14}} YES @@ -1826,7 +1827,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{46, 125}, {110, 17}} + {{46, 125}, {199, 17}} YES @@ -1842,7 +1843,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{46, 150}, {110, 17}} + {{46, 150}, {199, 17}} YES @@ -2123,7 +2124,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{46, 98}, {110, 17}} + {{46, 98}, {199, 17}} YES @@ -2222,7 +2223,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{46, 51}, {110, 17}} + {{46, 51}, {199, 17}} YES @@ -2238,7 +2239,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{5, 198}, {172, 18}} + {{5, 198}, {259, 18}} YES @@ -2259,7 +2260,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{5, 29}, {120, 14}} + {{5, 29}, {240, 14}} YES @@ -2290,7 +2291,8 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} + CSV @@ -2301,7 +2303,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} HTML @@ -2479,7 +2481,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} XML @@ -2490,7 +2492,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} PDF @@ -2506,7 +2508,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{2, 198}, {186, 18}} + {{2, 198}, {262, 18}} YES @@ -2525,21 +2527,21 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - {{10, 7}, {189, 229}} + {{10, 7}, {256, 229}} Dot - + 4 YES YES YES - + @@ -2784,7 +2786,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA QSAAAEEgAABBmAAAQZgAAA - {450, 359} + {517, 359} NSView @@ -3720,12 +3722,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - + Exporter View @@ -5000,6 +5002,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 1094.IBPluginDependency 1095.IBPluginDependency 1096.IBPluginDependency + 1096.IBViewBoundsToFrameTransform 1097.IBPluginDependency 1100.IBAttributePlaceholdersKey 1100.IBPluginDependency @@ -5268,15 +5271,15 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA YES com.apple.InterfaceBuilder.CocoaPlugin - {{354, 248}, {451, 480}} + {{354, 248}, {517, 480}} com.apple.InterfaceBuilder.CocoaPlugin - {{354, 248}, {451, 480}} + {{354, 248}, {517, 480}} - {449, 480} - {{872, 645}, {450, 359}} + {517, 480} + {{872, 645}, {517, 359}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -5296,6 +5299,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDqoAAw6+AAA + com.brandonwalkin.BWToolkit ToolTip @@ -5764,6 +5770,13 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject diff --git a/Interfaces/English.lproj/Preferences.xib b/Interfaces/English.lproj/Preferences.xib index e3b85901..6e90ea65 100644 --- a/Interfaces/English.lproj/Preferences.xib +++ b/Interfaces/English.lproj/Preferences.xib @@ -21,6 +21,8 @@ YES + + YES @@ -2387,14 +2389,14 @@ AQAAAAA NSView - + 268 YES 268 - {{11, 56}, {188, 17}} + {{17, 56}, {204, 17}} YES @@ -2410,7 +2412,7 @@ AQAAAAA 268 - {{202, 18}, {360, 18}} + {{224, 19}, {338, 18}} YES @@ -2432,7 +2434,7 @@ AQAAAAA 268 - {{204, 53}, {50, 22}} + {{226, 54}, {50, 22}} YES @@ -2494,7 +2496,7 @@ AQAAAAA 268 - {{259, 56}, {304, 17}} + {{281, 57}, {282, 17}} YES @@ -2510,7 +2512,7 @@ AQAAAAA 12 - {{204, 42}, {356, 5}} + {{226, 43}, {334, 5}} {0, 0} @@ -2531,10 +2533,11 @@ AQAAAAA {580, 93} + NSView - + 268 YES @@ -2650,12 +2653,12 @@ AQAAAAA 268 - {{124, 21}, {121, 14}} + {{144, 21}, {101, 14}} YES 68288064 - 272761856 + 71435264 theme name @@ -2666,7 +2669,7 @@ AQAAAAA 268 - {{49, 21}, {83, 14}} + {{49, 21}, {93, 14}} YES @@ -2776,6 +2779,7 @@ AQAAAAA {{1, 1}, {220, 249}} + 2 @@ -2802,6 +2806,7 @@ AQAAAAA {{20, 47}, {222, 251}} + 2 @@ -3537,47 +3542,108 @@ AQAAAAA {580, 360} + + NSView + + + + 274 + + YES + + + 274 + {{2, 10}, {575, 34}} + + YES + + 67239424 + 138674176 + Choose a custom SSH key file to use with this connection. Note that standard locations like ~/.ssh are checked automatically, as are any files in your SSH configuration. + + + + + + + + {579, 51} + NSView + + + + 274 + + YES + + + 274 + {{2, 10}, {575, 17}} + + YES + + 67239424 + 138674176 + Please select the SSL key file to use when establishing a secure connection. + + + + + + + + {579, 34} NSView - - - + + + 274 + YES - - - Remove - - 2147483647 - - - - - - Duplicate - - 2147483647 - - - - - - YES - YES - - - 2147483647 - - - - - - Make Default - - 2147483647 - - + + + 274 + {{2, 10}, {575, 17}} + + YES + + 67239424 + 138674176 + Please select the client SSL certificate file to use when establishing a secure connection. + + + + + + {579, 34} + NSView + + + + 274 + + YES + + + 274 + {{2, 10}, {575, 34}} + + YES + + 67239424 + 138674176 + Please select the client SSL Certificate Authority certificate to use when establishing a secure connection. This must be the same as the server CA certificate. + + + + + + + + {579, 51} + NSView @@ -4572,14 +4638,6 @@ AQAAAAA 1545 - - - delegate - - - - 1555 - value: values.SUSendProfileInfo @@ -5882,10 +5940,10 @@ AQAAAAA YES - - - + + + Network @@ -6778,34 +6836,6 @@ AQAAAAA - - 1547 - - - YES - - - - - - - Context Menu - - - 1548 - - - - - 1549 - - - - - 1551 - - - 1615 @@ -6830,11 +6860,6 @@ AQAAAAA - - 1640 - - - 1669 @@ -7213,6 +7238,102 @@ AQAAAAA + + 1873 + + + YES + + + + SSH Key Selection Help + + + 1874 + + + YES + + + + + + 1875 + + + + + 2040 + + + YES + + + + SSL CA Cert File Selection Help + + + 2041 + + + YES + + + + SSL Key File Selection Help + + + 2042 + + + YES + + + + SSL Certificate File Selection Help + + + 2043 + + + YES + + + + + + 2044 + + + + + 2045 + + + YES + + + + + + 2046 + + + + + 2047 + + + YES + + + + + + 2048 + + + 2074 @@ -7443,17 +7564,11 @@ AQAAAAA 1542.IBPluginDependency 1543.IBPluginDependency 1546.IBPluginDependency - 1547.IBEditorWindowLastContentRect - 1547.IBPluginDependency - 1548.IBPluginDependency - 1549.IBPluginDependency - 1551.IBPluginDependency 1615.IBPluginDependency 1615.ImportedFromIB2 1616.IBPluginDependency 1618.IBPluginDependency 1620.IBPluginDependency - 1640.IBPluginDependency 1669.IBAttributePlaceholdersKey 1669.IBPluginDependency 1670.IBPluginDependency @@ -7537,7 +7652,23 @@ AQAAAAA 1824.IBPluginDependency 1824.ImportedFromIB2 1825.IBPluginDependency + 1873.IBEditorWindowLastContentRect + 1873.IBPluginDependency + 1874.IBPluginDependency + 1875.IBPluginDependency 2.IBPluginDependency + 2040.IBEditorWindowLastContentRect + 2040.IBPluginDependency + 2041.IBEditorWindowLastContentRect + 2041.IBPluginDependency + 2042.IBEditorWindowLastContentRect + 2042.IBPluginDependency + 2043.IBPluginDependency + 2044.IBPluginDependency + 2045.IBPluginDependency + 2046.IBPluginDependency + 2047.IBPluginDependency + 2048.IBPluginDependency 2074.IBPluginDependency 2080.IBPluginDependency 2143.IBPluginDependency @@ -7672,14 +7803,18 @@ AQAAAAA 642.IBPluginDependency 652.IBAttributePlaceholdersKey 652.IBPluginDependency + 652.IBViewBoundsToFrameTransform 661.IBPluginDependency 669.IBPluginDependency 674.IBAttributePlaceholdersKey 674.IBPluginDependency + 674.IBViewBoundsToFrameTransform 675.IBPluginDependency 676.IBPluginDependency + 676.IBViewBoundsToFrameTransform 677.IBPluginDependency 681.IBPluginDependency + 681.IBViewBoundsToFrameTransform 784.IBPluginDependency 785.IBPluginDependency 786.IBPluginDependency @@ -7845,17 +7980,11 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{508, 537}, {142, 73}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin ToolTip @@ -7866,7 +7995,7 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{128, 250}, {222, 125}} + {{493, 438}, {222, 125}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -7983,6 +8112,22 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{249, 289}, {579, 51}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + {{245, 466}, {579, 51}} + com.apple.InterfaceBuilder.CocoaPlugin + {{245, 483}, {579, 34}} + com.apple.InterfaceBuilder.CocoaPlugin + {{245, 483}, {579, 34}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -8139,15 +8284,10 @@ AQAAAAA 0 - {{117, 527}, {580, 93}} + {{314, 726}, {580, 93}} com.apple.InterfaceBuilder.CocoaPlugin YES - - - 195 - 0 - com.apple.InterfaceBuilder.CocoaPlugin @@ -8159,6 +8299,9 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDSgAAwggAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -8170,10 +8313,19 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDTAAAwpIAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDgYAAwo4AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + AUNMAABCKAAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -8200,7 +8352,7 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{119, 335}, {580, 360}} + {{314, 523}, {580, 360}} com.apple.InterfaceBuilder.CocoaPlugin YES @@ -8293,6 +8445,13 @@ AQAAAAA Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject @@ -8385,7 +8544,6 @@ AQAAAAA saveAsColorScheme: setDefaultColors: showCustomQueryFontPanel: - showGlobalResultTableFontPanel: YES @@ -8399,7 +8557,6 @@ AQAAAAA id id id - id @@ -8416,7 +8573,6 @@ AQAAAAA saveAsColorScheme: setDefaultColors: showCustomQueryFontPanel: - showGlobalResultTableFontPanel: YES @@ -8460,10 +8616,6 @@ AQAAAAA showCustomQueryFontPanel: id - - showGlobalResultTableFontPanel: - id - diff --git a/Interfaces/English.lproj/UserManagerView.xib b/Interfaces/English.lproj/UserManagerView.xib index fbde0774..ea51d763 100644 --- a/Interfaces/English.lproj/UserManagerView.xib +++ b/Interfaces/English.lproj/UserManagerView.xib @@ -3,7 +3,7 @@ 1050 10J567 - 788 + 804 1038.35 462.00 @@ -15,13 +15,13 @@ YES - 788 - 1.2.5 + 804 + 1.2.2 YES - + @@ -573,7 +573,7 @@ Global Privileges - + 288 YES @@ -595,7 +595,7 @@ 268 - {{16, 32}, {179, 18}} + {{16, 32}, {221, 18}} YES @@ -646,7 +646,7 @@ - {{293, 175}, {255, 74}} + {{17, 75}, {255, 74}} {0, 0} @@ -679,7 +679,7 @@ 268 - {{16, 190}, {124, 18}} + {{16, 192}, {124, 18}} YES @@ -701,7 +701,7 @@ 268 - {{16, 170}, {234, 18}} + {{16, 172}, {259, 18}} YES @@ -723,7 +723,7 @@ 268 - {{16, 150}, {234, 18}} + {{16, 152}, {259, 18}} YES @@ -745,7 +745,7 @@ 268 - {{16, 130}, {234, 18}} + {{16, 132}, {259, 18}} YES @@ -767,7 +767,7 @@ 268 - {{16, 110}, {234, 18}} + {{16, 112}, {259, 18}} YES @@ -789,7 +789,7 @@ 268 - {{16, 90}, {234, 18}} + {{16, 92}, {259, 18}} YES @@ -811,7 +811,7 @@ 268 - {{16, 70}, {234, 18}} + {{16, 72}, {259, 18}} YES @@ -833,7 +833,7 @@ 268 - {{16, 50}, {234, 18}} + {{16, 52}, {259, 18}} YES @@ -855,7 +855,7 @@ 268 - {{16, 30}, {234, 18}} + {{16, 32}, {259, 18}} YES @@ -877,7 +877,7 @@ 268 - {{16, 10}, {234, 18}} + {{16, 12}, {259, 18}} YES @@ -899,7 +899,7 @@ 268 - {{144, 190}, {106, 18}} + {{144, 192}, {131, 18}} YES @@ -919,11 +919,11 @@ - {{1, 1}, {266, 216}} + {{1, 1}, {291, 218}} - {{17, 17}, {268, 232}} + {{273, 15}, {293, 234}} {0, 0} @@ -946,7 +946,7 @@ 289 - {{352, 131}, {157, 32}} + {{65, 44}, {157, 32}} YES @@ -976,7 +976,7 @@ 268 - {{16, 92}, {118, 18}} + {{16, 192}, {220, 18}} YES @@ -998,7 +998,7 @@ 268 - {{16, 72}, {124, 18}} + {{16, 172}, {220, 18}} YES @@ -1020,7 +1020,7 @@ 268 - {{16, 52}, {124, 18}} + {{16, 152}, {220, 18}} YES @@ -1042,7 +1042,7 @@ 268 - {{16, 32}, {124, 18}} + {{16, 132}, {220, 18}} YES @@ -1064,7 +1064,7 @@ 268 - {{16, 12}, {124, 18}} + {{16, 112}, {220, 18}} YES @@ -1086,7 +1086,7 @@ 268 - {{144, 92}, {106, 18}} + {{16, 92}, {220, 18}} YES @@ -1108,7 +1108,7 @@ 268 - {{144, 72}, {106, 18}} + {{16, 72}, {220, 18}} YES @@ -1130,7 +1130,7 @@ 268 - {{144, 52}, {106, 18}} + {{16, 52}, {220, 18}} YES @@ -1152,7 +1152,7 @@ 268 - {{144, 32}, {106, 18}} + {{16, 32}, {220, 18}} YES @@ -1174,7 +1174,7 @@ 268 - {{144, 12}, {106, 18}} + {{16, 12}, {220, 18}} YES @@ -1194,11 +1194,11 @@ - {{1, 1}, {266, 118}} + {{1, 1}, {252, 218}} - {{17, 253}, {268, 134}} + {{17, 153}, {254, 234}} {0, 0} @@ -1221,7 +1221,7 @@ 289 - {{352, 99}, {157, 32}} + {{66, 12}, {157, 32}} YES @@ -1251,7 +1251,7 @@ 268 - {{16, 92}, {179, 18}} + {{16, 92}, {259, 18}} YES @@ -1273,7 +1273,7 @@ 268 - {{16, 72}, {179, 18}} + {{16, 72}, {259, 18}} YES @@ -1295,7 +1295,7 @@ 268 - {{16, 52}, {179, 18}} + {{16, 52}, {259, 18}} YES @@ -1317,7 +1317,7 @@ 268 - {{16, 32}, {179, 18}} + {{16, 32}, {259, 18}} YES @@ -1339,7 +1339,7 @@ 268 - {{16, 12}, {179, 18}} + {{16, 12}, {259, 18}} YES @@ -1359,11 +1359,11 @@ - {{1, 1}, {253, 118}} + {{1, 1}, {291, 118}} - {{293, 253}, {255, 134}} + {{273, 253}, {293, 134}} {0, 0} @@ -1384,12 +1384,13 @@ NO - {{17, 11}, {557, 400}} + {{8, 12}, {574, 399}} NSView {{10, 33}, {591, 414}} + Global Privileges @@ -1850,7 +1851,7 @@ Resources - + 256 YES @@ -1979,8 +1980,8 @@ YES YES - . - , + , + . NO YES NO @@ -2045,8 +2046,8 @@ YES YES - . - , + , + . NO YES NO @@ -2111,8 +2112,8 @@ YES YES - . - , + , + . NO YES NO @@ -2150,20 +2151,19 @@ {{10, 33}, {591, 414}} - Resources - + 0 YES YES - + @@ -2439,6 +2439,7 @@ Errors Sheet NSWindow + {1.79769e+308, 1.79769e+308} 256 @@ -4737,29 +4738,15 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 YES - - - + + + - - 511 - - - YES - - - - - - 512 - - - 509 @@ -4867,11 +4854,11 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 - + @@ -5705,6 +5692,20 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 + + 511 + + + YES + + + + + + 512 + + + @@ -5751,9 +5752,13 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 43.IBPluginDependency 44.IBPluginDependency 451.IBPluginDependency + 451.IBViewBoundsToFrameTransform 452.IBPluginDependency + 452.IBViewBoundsToFrameTransform 453.IBPluginDependency + 453.IBViewBoundsToFrameTransform 454.IBPluginDependency + 454.IBViewBoundsToFrameTransform 455.IBPluginDependency 456.IBPluginDependency 457.IBPluginDependency @@ -5765,12 +5770,16 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 463.IBPluginDependency 464.IBPluginDependency 465.IBPluginDependency + 465.IBViewBoundsToFrameTransform 466.IBPluginDependency 467.IBPluginDependency + 467.IBViewBoundsToFrameTransform 468.IBPluginDependency 469.IBPluginDependency + 469.IBViewBoundsToFrameTransform 470.IBPluginDependency 471.IBPluginDependency + 471.IBViewBoundsToFrameTransform 472.IBPluginDependency 473.IBPluginDependency 474.IBPluginDependency @@ -5808,8 +5817,10 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 505.IBPluginDependency 506.IBPluginDependency 509.IBPluginDependency + 509.IBViewBoundsToFrameTransform 510.IBPluginDependency 511.IBPluginDependency + 511.IBViewBoundsToFrameTransform 512.IBPluginDependency 579.IBPluginDependency 580.IBAttributePlaceholdersKey @@ -5829,6 +5840,7 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 593.IBPluginDependency 648.IBPluginDependency 719.IBPluginDependency + 719.IBViewBoundsToFrameTransform 720.IBPluginDependency 725.IBPluginDependency 726.IBPluginDependency @@ -5924,9 +5936,9 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{187, 326}, {815, 506}} + {{504, 410}, {815, 506}} com.apple.InterfaceBuilder.CocoaPlugin - {{187, 326}, {815, 506}} + {{504, 410}, {815, 506}} {752, 506} @@ -5951,9 +5963,21 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + AUGIAABDEQAAA + com.apple.InterfaceBuilder.CocoaPlugin + + AUOIgABDdQAAA + com.apple.InterfaceBuilder.CocoaPlugin + + AUOIgABBEAAAA + com.apple.InterfaceBuilder.CocoaPlugin + + AUGIAABChgAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -5965,12 +5989,24 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBgAAAwtgAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDFQAAw28AAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDFQAAw1sAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDFQAAw0cAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -6008,8 +6044,14 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABBYAAAwlQAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABCpAAAwigAAA + com.apple.InterfaceBuilder.CocoaPlugin com.brandonwalkin.BWToolkit @@ -6043,6 +6085,9 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + P4AAAL+AAABDFQAAwzMAAA + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -6180,6 +6225,13 @@ IGVycm9ycyBiZWxvdyBiZWZvcmUgcHJvY2VlZGluZy4 Frameworks/PSMTabBar/PSMTabBarControl.h + + NSObject + + IBProjectSource + Frameworks/PSMTabBar/PSMTabBarController.h + + NSObject diff --git a/Source/NSMutableArray-MultipleSort.m b/Source/NSMutableArray-MultipleSort.m index e76f1409..55a55962 100644 --- a/Source/NSMutableArray-MultipleSort.m +++ b/Source/NSMutableArray-MultipleSort.m @@ -51,7 +51,7 @@ [array1 replaceObjectAtIndex: d withObject: a1]; [a1 release]; va_start(argumentList, array1); - while (eachObject = va_arg(argumentList, id)) { + while ((eachObject = va_arg(argumentList, id))) { id ax = [eachObject objectAtIndex:d+stride]; id bx = [eachObject objectAtIndex:d]; [ax retain]; diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 454e3401..71fcd359 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -653,12 +653,14 @@ YY_BUFFER_STATE yy_scan_string (const char *); NSString *command = [url host]; NSString *passedProcessID = [url user]; NSArray *parameter; - NSArray *pathComponents = [url pathComponents]; - if([pathComponents count] > 1) - parameter = [pathComponents subarrayWithRange:NSMakeRange(1,[[url pathComponents] count]-1)]; + NSArray *pathComponents = [[url absoluteString] pathComponents]; + + if([pathComponents count] > 2) + parameter = [pathComponents subarrayWithRange:NSMakeRange(2, [pathComponents count]-2)]; else parameter = [NSArray array]; + NSFileManager *fm = [NSFileManager defaultManager]; // Handle commands which don't need a connection window @@ -1984,7 +1986,7 @@ YY_BUFFER_STATE yy_scan_string (const char *); idx = [SPChooseMenuItemDialog withItems:assignedKeyEquivalents atPosition:[NSEvent mouseLocation]]; if(idx > -1) { - NSArray *eq = [assignedKeyEquivalents objectAtIndex:idx]; + NSDictionary *eq = [assignedKeyEquivalents objectAtIndex:idx]; if(eq && [eq count]) { NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease]; [aMenuItem setTag:0]; @@ -2003,7 +2005,7 @@ YY_BUFFER_STATE yy_scan_string (const char *); idx = [SPChooseMenuItemDialog withItems:assignedKeyEquivalents atPosition:[NSEvent mouseLocation]]; if(idx > -1) { - NSArray *eq = [assignedKeyEquivalents objectAtIndex:idx]; + NSDictionary *eq = [assignedKeyEquivalents objectAtIndex:idx]; if(eq && [eq count]) { NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease]; [aMenuItem setTag:0]; @@ -2022,7 +2024,7 @@ YY_BUFFER_STATE yy_scan_string (const char *); idx = [SPChooseMenuItemDialog withItems:assignedKeyEquivalents atPosition:[NSEvent mouseLocation]]; if(idx > -1) { - NSArray *eq = [assignedKeyEquivalents objectAtIndex:idx]; + NSDictionary *eq = [assignedKeyEquivalents objectAtIndex:idx]; if(eq && [eq count]) { NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease]; [aMenuItem setTag:0]; diff --git a/Source/SPConnectionDelegate.h b/Source/SPConnectionDelegate.h index c1d3bb5e..777b032a 100644 --- a/Source/SPConnectionDelegate.h +++ b/Source/SPConnectionDelegate.h @@ -31,4 +31,7 @@ - (void) closeAndDisconnect; +- (NSString *)keychainPasswordForConnection:(MCPConnection *)connection; +- (NSString *)keychainPasswordForSSHConnection:(MCPConnection *)connection; + @end diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 7228baa3..2c9e890e 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -635,7 +635,7 @@ } // Record any affected rows - if ( [mySQLConnection affectedRows] >= (my_ulonglong)0 ) + if ( [mySQLConnection affectedRows] != (my_ulonglong)~0 ) totalAffectedRows += (NSUInteger)[mySQLConnection affectedRows]; else if ( [streamingResult numOfRows] ) totalAffectedRows += (NSUInteger)[streamingResult numOfRows]; diff --git a/Source/SPDataCellFormatter.m b/Source/SPDataCellFormatter.m index 0180227b..29b22cd7 100644 --- a/Source/SPDataCellFormatter.m +++ b/Source/SPDataCellFormatter.m @@ -65,13 +65,13 @@ return YES; // A single character over the length of the string - likely typed. Prevent the change. - if ([partialString length] == textLimit + 1) { + if ((NSInteger)[partialString length] == textLimit + 1) { [SPTooltip showWithObject:[NSString stringWithFormat:NSLocalizedString(@"Maximum text length is set to %ld.", @"Maximum text length is set to %ld."), (long)textLimit]]; return NO; } // If the string is considerably longer than the limit, likely pasted. Accept but truncate. - if ([partialString length] > textLimit) { + if ((NSInteger)[partialString length] > textLimit) { [SPTooltip showWithObject:[NSString stringWithFormat:NSLocalizedString(@"Maximum text length is set to %ld. Inserted text was truncated.", @"Maximum text length is set to %ld. Inserted text was truncated."), (long)textLimit]]; *newString = [NSString stringWithString:[partialString substringToIndex:textLimit]]; return NO; diff --git a/Source/SPDataImport.h b/Source/SPDataImport.h index a8888ab8..f6e51299 100644 --- a/Source/SPDataImport.h +++ b/Source/SPDataImport.h @@ -38,7 +38,7 @@ IBOutlet id importView; IBOutlet id importTabView; - IBOutlet id importFieldNamesSwitch; + IBOutlet NSButton *importFieldNamesSwitch; IBOutlet id importFieldsTerminatedField; IBOutlet id importFieldsEnclosedField; IBOutlet id importFieldsEscapedField; @@ -117,12 +117,15 @@ // Import methods - (void)importFile; +- (void)importFileSheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo; - (void)importFromClipboard; +- (void)importFromClipboardSheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo; - (void)importSQLFile:(NSString *)filename; - (void)startSQLImportProcessWithFile:(NSString *)filename; - (void)importCSVFile:(NSString *)filename; - (IBAction)changeFormat:(id)sender; - (BOOL)buildFieldMappingArrayWithData:(NSArray *)importData isPreview:(BOOL)dataIsPreviewData ofSoureFile:(NSString*)filename; +- (void)fieldMapperDidEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; - (NSString *)mappedValueStringForRowArray:(NSArray *)csvRowArray; - (NSString *)mappedUpdateSetStatementStringForRowArray:(NSArray *)csvRowArray; diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m index 0667ac07..03a1afb7 100644 --- a/Source/SPDataImport.m +++ b/Source/SPDataImport.m @@ -25,6 +25,7 @@ #import "SPDataImport.h" #import "SPDatabaseDocument.h" +#import "SPDatabaseViewController.h" #import "SPTablesList.h" #import "SPTableStructure.h" #import "SPTableContent.h" @@ -176,7 +177,7 @@ { // clipboard textview with no wrapping - const CGFloat LargeNumberForText = 1.0e7; + const CGFloat LargeNumberForText = 1.0e7f; [[importFromClipboardTextView textContainer] setContainerSize:NSMakeSize(LargeNumberForText, LargeNumberForText)]; [[importFromClipboardTextView textContainer] setWidthTracksTextView:NO]; [[importFromClipboardTextView textContainer] setHeightTracksTextView:NO]; @@ -387,7 +388,7 @@ fileIsCompressed = [sqlFileHandle isCompressed]; // Grab the file length - fileTotalLength = [[[[NSFileManager defaultManager] attributesOfItemAtPath:filename error:NULL] objectForKey:NSFileSize] longLongValue]; + fileTotalLength = (NSUInteger)[[[[NSFileManager defaultManager] attributesOfItemAtPath:filename error:NULL] objectForKey:NSFileSize] longLongValue]; if (!fileTotalLength) fileTotalLength = 1; // If importing a bzipped file, use indeterminate progress bars as no progress is available @@ -543,7 +544,7 @@ } // Extract and process any complete SQL queries that can be found in the strings parsed so far - while (query = [sqlParser trimAndReturnStringToCharacter:';' trimmingInclusively:YES returningInclusively:NO]) { + while ((query = [sqlParser trimAndReturnStringToCharacter:';' trimmingInclusively:YES returningInclusively:NO])) { if (progressCancelled) break; fileProcessedLength += [query lengthOfBytesUsingEncoding:sqlEncoding] + 1; @@ -708,14 +709,14 @@ NSMutableArray *parsePositions = [[NSMutableArray alloc] init]; NSArray *csvRowArray; NSInteger fileChunkMaxLength = 256 * 1024; - NSInteger csvRowsPerQuery = 50; + NSUInteger csvRowsPerQuery = 50; NSUInteger csvRowsThisQuery; NSUInteger fileTotalLength = 0; NSInteger rowsImported = 0; NSInteger dataBufferLength = 0; NSInteger dataBufferPosition = 0; NSInteger dataBufferLastQueryEndPosition = 0; - NSInteger i; + NSUInteger i; BOOL allDataRead = NO; BOOL insertBaseStringHasEntries; @@ -746,7 +747,7 @@ } // Grab the file length - fileTotalLength = [[[[NSFileManager defaultManager] attributesOfItemAtPath:filename error:NULL] objectForKey:NSFileSize] longLongValue]; + fileTotalLength = (NSUInteger)[[[[NSFileManager defaultManager] attributesOfItemAtPath:filename error:NULL] objectForKey:NSFileSize] longLongValue]; if (!fileTotalLength) fileTotalLength = 1; // Reset progress interface @@ -1336,7 +1337,7 @@ [globalVar flushCachedRegexData]; NSRange aRange = [globalVar rangeOfRegex:re capture:0L]; NSInteger colIndex = [[globalVar substringWithRange:[globalVar rangeOfRegex:re capture:1L]] integerValue]; - if(colIndex > 0 && colIndex <= [csvRowArray count]) { + if (colIndex > 0 && colIndex <= (NSInteger)[csvRowArray count]) { id colStr = NSArrayObjectAtIndex(csvRowArray, colIndex-1); if(colStr == [NSNull null]) [globalVar replaceCharactersInRange:aRange withString:@"NULL"]; @@ -1388,7 +1389,7 @@ [globalVar flushCachedRegexData]; NSRange aRange = [globalVar rangeOfRegex:re capture:0L]; NSInteger colIndex = [[globalVar substringWithRange:[globalVar rangeOfRegex:re capture:1L]] integerValue]; - if(colIndex > 0 && colIndex <= [csvRowArray count]) { + if(colIndex > 0 && colIndex <= (NSInteger)[csvRowArray count]) { id colStr = NSArrayObjectAtIndex(csvRowArray, colIndex-1); if(colStr == [NSNull null]) [globalVar replaceCharactersInRange:aRange withString:@"NULL"]; @@ -1462,7 +1463,7 @@ [globalVar flushCachedRegexData]; NSRange aRange = [globalVar rangeOfRegex:re capture:0L]; NSInteger colIndex = [[globalVar substringWithRange:[globalVar rangeOfRegex:re capture:1L]] integerValue]; - if(colIndex > 0 && colIndex <= [csvRowArray count]) { + if(colIndex > 0 && colIndex <= (NSInteger)[csvRowArray count]) { id colStr = NSArrayObjectAtIndex(csvRowArray, colIndex-1); if(colStr == [NSNull null]) [globalVar replaceCharactersInRange:aRange withString:@"NULL"]; diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m index 21993d95..2aa809b1 100644 --- a/Source/SPDatabaseData.m +++ b/Source/SPDatabaseData.m @@ -317,7 +317,7 @@ NSInteger _sortMySQL4CharsetEntry(NSDictionary *itemOne, NSDictionary *itemTwo, if (![connection queryErrored]) { [result dataSeek:0]; - for (NSInteger i = 0; i < [result numOfRows]; i++) + for (NSUInteger i = 0; i < [result numOfRows]; i++) { [array addObject:[result fetchRowAsDictionary]]; } diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index efc3f25e..2b7fb38a 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -40,7 +40,7 @@ /** * The SPDatabaseDocument class controls the primary database view window. */ -@interface SPDatabaseDocument : NSObject +@interface SPDatabaseDocument : NSObject { // IBOutlets IBOutlet id tablesListInstance; @@ -121,12 +121,12 @@ IBOutlet NSWindow *connectionErrorDialog; IBOutlet id saveConnectionAccessory; - IBOutlet id saveConnectionIncludeData; - IBOutlet id saveConnectionIncludeQuery; - IBOutlet id saveConnectionSavePassword; + IBOutlet NSButton *saveConnectionIncludeData; + IBOutlet NSButton *saveConnectionIncludeQuery; + IBOutlet NSButton *saveConnectionSavePassword; IBOutlet id saveConnectionSavePasswordAlert; - IBOutlet id saveConnectionEncrypt; - IBOutlet id saveConnectionAutoConnect; + IBOutlet NSButton *saveConnectionEncrypt; + IBOutlet NSButton *saveConnectionAutoConnect; IBOutlet NSSecureTextField *saveConnectionEncryptString; IBOutlet id inputTextWindow; @@ -145,7 +145,7 @@ NSInteger currentTabIndex; NSString *selectedTableName; - NSInteger selectedTableType; + SPTableType selectedTableType; BOOL structureLoaded; BOOL contentLoaded; @@ -303,6 +303,7 @@ - (IBAction)closePasswordSheet:(id)sender; - (IBAction)backForwardInHistory:(id)sender; - (IBAction)showUserManager:(id)sender; +- (void)userManagerSheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void*)context; - (IBAction)copyChecksumFromSheet:(id)sender; - (void)setIsSavedInBundle:(BOOL)savedInBundle; - (void)setFileURL:(NSURL *)fileURL; @@ -366,7 +367,6 @@ - (NSWindow *)parentWindow; // Scripting -- (NSString*)doSQLSyntaxHighlightForString:(NSString*)sqlText cssLike:(BOOL)cssLike; - (void)handleSchemeCommand:(NSDictionary*)commandDict; - (void)registerActivity:(NSDictionary*)commandDict; - (void)removeRegisteredActivity:(NSInteger)pid; @@ -378,5 +378,6 @@ - (NSDictionary *) stateIncludingDetails:(NSDictionary *)detailsToReturn; - (BOOL)setState:(NSDictionary *)stateDetails; - (void)setStateFromConnectionFile:(NSString *)path; +- (void)restoreSession; @end diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index af639127..d582b836 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -60,6 +60,7 @@ #import "SPBundleHTMLOutputController.h" #import "SPConnectionDelegate.h" #import "SPWindowController.h" +#import "SPFileHandle.h" @interface SPDatabaseDocument (PrivateAPI) @@ -236,16 +237,16 @@ // Set up the progress indicator child window and layer - change indicator color and size [taskProgressIndicator setForeColor:[NSColor whiteColor]]; NSShadow *progressIndicatorShadow = [[NSShadow alloc] init]; - [progressIndicatorShadow setShadowOffset:NSMakeSize(1.0, -1.0)]; - [progressIndicatorShadow setShadowBlurRadius:1.0]; - [progressIndicatorShadow setShadowColor:[NSColor colorWithCalibratedWhite:0.0 alpha:0.75]]; + [progressIndicatorShadow setShadowOffset:NSMakeSize(1.0f, -1.0f)]; + [progressIndicatorShadow setShadowBlurRadius:1.0f]; + [progressIndicatorShadow setShadowColor:[NSColor colorWithCalibratedWhite:0.0f alpha:0.75f]]; [taskProgressIndicator setShadow:progressIndicatorShadow]; [progressIndicatorShadow release]; taskProgressWindow = [[NSWindow alloc] initWithContentRect:[taskProgressLayer bounds] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]; [taskProgressWindow setReleasedWhenClosed:NO]; [taskProgressWindow setOpaque:NO]; [taskProgressWindow setBackgroundColor:[NSColor clearColor]]; - [taskProgressWindow setAlphaValue:0.0]; + [taskProgressWindow setAlphaValue:0.0f]; [taskProgressWindow setContentView:taskProgressLayer]; [contentViewSplitter setDelegate:self]; @@ -429,7 +430,7 @@ } } - (void *)[self databaseEncoding]; + (void)[self databaseEncoding]; } /** @@ -475,11 +476,11 @@ if (allDatabases) [allDatabases release]; if (allSystemDatabases) [allSystemDatabases release]; - allDatabases = [[NSMutableArray alloc] initWithCapacity:[queryResult numOfRows]]; + allDatabases = [[NSMutableArray alloc] initWithCapacity:(NSUInteger)[queryResult numOfRows]]; allSystemDatabases = [[NSMutableArray alloc] initWithCapacity:2]; - for (NSInteger i = 0 ; i < [queryResult numOfRows] ; i++) + for (NSUInteger i = 0 ; i < [queryResult numOfRows] ; i++) { NSString *database = NSArrayObjectAtIndex([queryResult fetchRowAsArray], 0); @@ -828,7 +829,7 @@ MCPResult *theResult = [mySQLConnection queryString:@"SELECT DATABASE()"]; if (![mySQLConnection queryErrored]) { NSInteger i; - NSInteger r = [theResult numOfRows]; + NSInteger r = (NSInteger)[theResult numOfRows]; if (r) [theResult dataSeek:0]; for ( i = 0 ; i < r ; i++ ) { dbName = NSArrayObjectAtIndex([theResult fetchRowAsArray], 0); @@ -1003,7 +1004,7 @@ */ - (void) fadeInTaskProgressWindow:(NSTimer *)theTimer { - float timeSinceFadeInStart = [[NSDate date] timeIntervalSinceDate:taskFadeInStartDate]; + double timeSinceFadeInStart = [[NSDate date] timeIntervalSinceDate:taskFadeInStartDate]; // Keep the window hidden for the first ~0.5 secs if (timeSinceFadeInStart < 0.5) return; @@ -1014,8 +1015,8 @@ if (alphaValue == 0) [self centerTaskWindow]; // Fade in the task window over 0.6 seconds - alphaValue = (timeSinceFadeInStart - 0.5) / 0.6; - if (alphaValue > 1.0) alphaValue = 1.0; + alphaValue = (float)(timeSinceFadeInStart - 0.5) / 0.6f; + if (alphaValue > 1.0f) alphaValue = 1.0f; [taskProgressWindow setAlphaValue:alphaValue]; // If the window has been fully faded in, clean up the timer. @@ -1031,14 +1032,14 @@ */ - (void) setTaskDescription:(NSString *)description { - NSShadow *shadow = [[NSShadow alloc] init]; - [shadow setShadowColor:[NSColor colorWithCalibratedWhite:0.0 alpha:0.75]]; - [shadow setShadowOffset:NSMakeSize(1.0, -1.0)]; - [shadow setShadowBlurRadius:3.0]; + NSShadow *textShadow = [[NSShadow alloc] init]; + [textShadow setShadowColor:[NSColor colorWithCalibratedWhite:0.0f alpha:0.75f]]; + [textShadow setShadowOffset:NSMakeSize(1.0f, -1.0f)]; + [textShadow setShadowBlurRadius:3.0f]; NSMutableDictionary *attributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys: - [NSFont boldSystemFontOfSize:13.0], NSFontAttributeName, - shadow, NSShadowAttributeName, + [NSFont boldSystemFontOfSize:13.0f], NSFontAttributeName, + textShadow, NSShadowAttributeName, nil]; NSAttributedString *string = [[NSAttributedString alloc] initWithString:description attributes:attributes]; @@ -1046,7 +1047,7 @@ [string release]; [attributes release]; - [shadow release]; + [textShadow release]; } /** @@ -1129,7 +1130,7 @@ // Hide the task interface and reset to indeterminate if (taskDisplayIsIndeterminate) [taskProgressIndicator stopAnimation:self]; - [taskProgressWindow setAlphaValue:0.0]; + [taskProgressWindow setAlphaValue:0.0f]; taskDisplayIsIndeterminate = YES; [taskProgressIndicator setIndeterminate:YES]; @@ -1224,8 +1225,8 @@ NSRect mainWindowRect = [parentWindow frame]; NSRect taskWindowRect = [taskProgressWindow frame]; - newBottomLeftPoint.x = round(mainWindowRect.origin.x + mainWindowRect.size.width/2 - taskWindowRect.size.width/2); - newBottomLeftPoint.y = round(mainWindowRect.origin.y + mainWindowRect.size.height/2 - taskWindowRect.size.height/2); + newBottomLeftPoint.x = roundf(mainWindowRect.origin.x + mainWindowRect.size.width/2 - taskWindowRect.size.width/2); + newBottomLeftPoint.y = roundf(mainWindowRect.origin.y + mainWindowRect.size.height/2 - taskWindowRect.size.height/2); [taskProgressWindow setFrameOrigin:newBottomLeftPoint]; } @@ -1407,7 +1408,7 @@ */ - (IBAction)chooseEncoding:(id)sender { - [self setConnectionEncoding:[self mysqlEncodingFromEncodingTag:[NSNumber numberWithInt:[(NSMenuItem *)sender tag]]] reloadingViews:YES]; + [self setConnectionEncoding:[self mysqlEncodingFromEncodingTag:[NSNumber numberWithInteger:[(NSMenuItem *)sender tag]]] reloadingViews:YES]; } /** @@ -1435,7 +1436,7 @@ NSIndexSet *indexes = [[tablesListInstance valueForKeyPath:@"tablesListView"] selectedRowIndexes]; NSUInteger currentIndex = [indexes firstIndex]; - NSInteger counter = 0; + NSUInteger counter = 0; NSInteger type; NSArray *types = [tablesListInstance selectedTableTypes]; @@ -2794,11 +2795,11 @@ return; } - NSError *error = nil; + error = nil; [plist writeToFile:[NSString stringWithFormat:@"%@/info.plist", fileName] options:NSAtomicWrite error:&error]; - if(error != nil){ + if (error != nil){ NSAlert *errorAlert = [NSAlert alertWithError:error]; [errorAlert runModal]; @@ -2875,7 +2876,7 @@ @"saveDocPrefSheetStatus", [NSString stringWithFormat:NSLocalizedString(@"Error while reading connection data file", @"error while reading connection data file")], [NSString stringWithFormat:NSLocalizedString(@"Connection data file “%@” couldn't be read. Please try to save the document under a different name.", @"message error while reading connection data file and suggesting to save it under a differnet name"), [fileName lastPathComponent]], - saveDocPrefSheetStatus + &saveDocPrefSheetStatus ); if (spf) [spf release]; @@ -3137,9 +3138,9 @@ } } else { - for (NSNumber *type in [tablesListInstance selectedTableTypes]) + for (NSNumber *eachType in [tablesListInstance selectedTableTypes]) { - if ([type intValue] == SPTableTypeTable || [type intValue] == SPTableTypeView) return enable; + if ([eachType intValue] == SPTableTypeTable || [eachType intValue] == SPTableTypeView) return enable; } return (enable && (tag == SPSQLExport)); @@ -3327,11 +3328,11 @@ } if ([connectionController isConnecting]) { - windowTitle = NSLocalizedString(@"Connecting…", @"window title string indicating that sp is connecting"); + windowTitle = [NSMutableString stringWithString:NSLocalizedString(@"Connecting…", @"window title string indicating that sp is connecting")]; tabTitle = windowTitle; } else if (!_isConnected) { - windowTitle = [NSString stringWithFormat:@"%@%@", pathName, @"Sequel Pro"]; + windowTitle = [NSMutableString stringWithFormat:@"%@%@", pathName, @"Sequel Pro"]; tabTitle = windowTitle; } else { @@ -4253,6 +4254,8 @@ if ([stateDetails objectForKey:@"auto_connect"] && [[stateDetails valueForKey:@"auto_connect"] boolValue]) { [connectionController initiateConnection:self]; } + + return YES; } /** @@ -4706,7 +4709,7 @@ if([command isEqualToString:@"SelectTableRows"]) { if([params count] > 1 && [[[NSApp mainWindow] firstResponder] respondsToSelector:@selector(selectTableRows:)]) { - [[[NSApp mainWindow] firstResponder] selectTableRows:[params subarrayWithRange:NSMakeRange(1, [params count]-1)]]; + [(SPCopyTable *)[[NSApp mainWindow] firstResponder] selectTableRows:[params subarrayWithRange:NSMakeRange(1, [params count]-1)]]; } return; } @@ -4780,7 +4783,7 @@ NSInteger itemType = SPTableTypeNone; NSString *itemTypeStr = @"TABLE"; - NSInteger i; + NSUInteger i; NSInteger queryCol = 1; // Loop through the unfiltered tables/views to find the desired item @@ -4846,7 +4849,7 @@ return; } if(doSyntaxHighlighting) { - [result appendFormat:@"%@
", [self doSQLSyntaxHighlightForString:[syntaxString createViewSyntaxPrettifier] cssLike:doSyntaxHighlightingViaCSS]]; + [result appendFormat:@"%@
", [[NSApp delegate] doSQLSyntaxHighlightForString:[syntaxString createViewSyntaxPrettifier] cssLike:doSyntaxHighlightingViaCSS]]; } else { [result appendFormat:@"%@\n", [syntaxString createViewSyntaxPrettifier]]; } @@ -4946,7 +4949,7 @@ } // write data - NSInteger i, j; + NSUInteger i, j; NSArray *theRow; NSMutableString *result = [NSMutableString string]; if(writeAsCsv) { @@ -5277,7 +5280,7 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex { - if(statusTableView && aTableView == statusTableView && rowIndex < [statusValues count]) { + if (statusTableView && aTableView == statusTableView && rowIndex < (NSInteger)[statusValues count]) { if ([[aTableColumn identifier] isEqualToString:@"table_name"]) { if([[statusValues objectAtIndex:rowIndex] objectForKey:@"table_name"]) return [[statusValues objectAtIndex:rowIndex] objectForKey:@"table_name"]; @@ -5483,7 +5486,7 @@ // If there is an encoding selected other than the default we must specify it in CREATE DATABASE statement if ([databaseEncodingButton indexOfSelectedItem] > 0) { - createStatement = [NSString stringWithFormat:@"%@ DEFAULT CHARACTER SET %@", createStatement, [[self mysqlEncodingFromEncodingTag:[databaseEncodingButton tag]] backtickQuotedString]]; + createStatement = [NSString stringWithFormat:@"%@ DEFAULT CHARACTER SET %@", createStatement, [[self mysqlEncodingFromEncodingTag:[NSNumber numberWithInteger:[databaseEncodingButton tag]]] backtickQuotedString]]; } // Create the database @@ -5649,7 +5652,7 @@ // For HTML output check if corresponding window already exists BOOL stopTrigger = NO; - if([[data objectAtIndex:2] length]) { + if ([(NSString *)[data objectAtIndex:2] length]) { BOOL correspondingWindowFound = NO; NSString *uuid = [data objectAtIndex:2]; for(id win in [NSApp windows]) { diff --git a/Source/SPDatabaseViewController.h b/Source/SPDatabaseViewController.h index f7d795ca..682d6f74 100644 --- a/Source/SPDatabaseViewController.h +++ b/Source/SPDatabaseViewController.h @@ -30,7 +30,7 @@ // Getters - (NSString *)table; -- (NSInteger)tableType; +- (SPTableType)tableType; - (BOOL)structureLoaded; - (BOOL)contentLoaded; - (BOOL)statusLoaded; diff --git a/Source/SPDatabaseViewController.m b/Source/SPDatabaseViewController.m index 88928897..3b6cfc1f 100644 --- a/Source/SPDatabaseViewController.m +++ b/Source/SPDatabaseViewController.m @@ -66,7 +66,7 @@ /** * Returns the currently selected table type, or -1 if no table or multiple tables are selected */ -- (NSInteger)tableType +- (SPTableType)tableType { return selectedTableType; } diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m index 6f039659..13e60f92 100644 --- a/Source/SPExtendedTableInfo.m +++ b/Source/SPExtendedTableInfo.m @@ -28,9 +28,11 @@ #import "RegexKitLite.h" #import "SPDatabaseData.h" #import "SPDatabaseDocument.h" +#import "SPDatabaseViewController.h" #import "SPTablesList.h" #import "SPAlertSheets.h" #import "SPTableStructure.h" +#import "SPServerSupport.h" @interface SPExtendedTableInfo (PrivateAPI) diff --git a/Source/SPFavoriteTextFieldCell.m b/Source/SPFavoriteTextFieldCell.m index a91495ae..d368f602 100644 --- a/Source/SPFavoriteTextFieldCell.m +++ b/Source/SPFavoriteTextFieldCell.m @@ -25,7 +25,7 @@ #import "SPFavoriteTextFieldCell.h" -#define FAVORITE_NAME_FONT_SIZE 12.0 +#define FAVORITE_NAME_FONT_SIZE 12.0f @interface SPFavoriteTextFieldCell (PrivateAPI) @@ -115,21 +115,21 @@ NSAttributedString *mainString = [self attributedStringForFavoriteName]; NSAttributedString *subString = [self constructSubStringAttributedString]; - NSRect subFrame = NSMakeRect(0.0, 0.0, [subString size].width, [subString size].height); + NSRect subFrame = NSMakeRect(0.0f, 0.0f, [subString size].width, [subString size].height); // Total height of both strings with a 2 pixel separation space - CGFloat totalHeight = [mainString size].height + [subString size].height + 1.0; + CGFloat totalHeight = [mainString size].height + [subString size].height + 1.0f; - cellFrame.origin.y += (cellFrame.size.height - totalHeight) / 2.0; - cellFrame.origin.x += 10.0; // Indent main string from image + cellFrame.origin.y += (cellFrame.size.height - totalHeight) / 2.0f; + cellFrame.origin.x += 10.0f; // Indent main string from image // Position the sub text's frame rect - subFrame.origin.y = [mainString size].height + cellFrame.origin.y + 1.0; + subFrame.origin.y = [mainString size].height + cellFrame.origin.y + 1.0f; subFrame.origin.x = cellFrame.origin.x; cellFrame.size.height = totalHeight; - NSInteger i; + NSUInteger i; CGFloat maxWidth = cellFrame.size.width; CGFloat mainStringWidth = [mainString size].width; CGFloat subStringWidth = [subString size].width; @@ -166,10 +166,10 @@ // 15 := indention 10 from image to string plus 5 px padding CGFloat theWidth = MAX([mainString size].width, [subString size].width) + (([self image] != nil) ? [[self image] size].width : 0) + 15; - CGFloat totalHeight = [mainString size].height + [subString size].height + 1.0; + CGFloat totalHeight = [mainString size].height + [subString size].height + 1.0f; cellSize.width = theWidth; - cellSize.height = totalHeight + 13.0; + cellSize.height = totalHeight + 13.0f; return cellSize; } diff --git a/Source/SPHistoryController.h b/Source/SPHistoryController.h index 7429f75c..e27b63aa 100644 --- a/Source/SPHistoryController.h +++ b/Source/SPHistoryController.h @@ -49,6 +49,8 @@ - (IBAction) historyControlClicked:(NSSegmentedControl *)theControl; - (NSUInteger) currentlySelectedView; - (void) setupInterface; +- (void) startDocumentTask:(NSNotification *)aNotification; +- (void) endDocumentTask:(NSNotification *)aNotification; // Adding or updating history entries - (void) updateHistoryEntries; diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m index 9b810a00..3bd3b0b3 100644 --- a/Source/SPHistoryController.m +++ b/Source/SPHistoryController.m @@ -41,7 +41,7 @@ */ - (id) init { - if (self = [super init]) { + if ((self = [super init])) { history = [[NSMutableArray alloc] init]; tableContentStates = [[NSMutableDictionary alloc] init]; historyPosition = NSNotFound; @@ -109,7 +109,7 @@ } if (forwardEnabled) { navMenu = [[NSMenu alloc] init]; - for (i = historyPosition + 1; i < [history count]; i++) { + for (i = historyPosition + 1; i < (NSInteger)[history count]; i++) { [navMenu addItem:[self menuEntryForHistoryEntryAtIndex:i]]; } [historyControl setMenu:navMenu forSegment:1]; @@ -303,7 +303,7 @@ // creating a new entry every time detail is changed. if ([[currentHistoryEntry objectForKey:@"database"] isEqualToString:theDatabase] && [[currentHistoryEntry objectForKey:@"table"] isEqualToString:theTable] - && ([[currentHistoryEntry objectForKey:@"view"] integerValue] != theView + && ([[currentHistoryEntry objectForKey:@"view"] unsignedIntegerValue] != theView || ((![currentHistoryEntry objectForKey:@"contentFilter"] && !contentFilter) || (![currentHistoryEntry objectForKey:@"contentFilter"] && ![(NSString *)[contentFilter objectForKey:@"filterValue"] length] @@ -317,7 +317,7 @@ // position details on the *previous* history item } else if ([[currentHistoryEntry objectForKey:@"database"] isEqualToString:theDatabase] && [[currentHistoryEntry objectForKey:@"table"] isEqualToString:theTable] - && ([[currentHistoryEntry objectForKey:@"view"] integerValue] == theView + && ([[currentHistoryEntry objectForKey:@"view"] unsignedIntegerValue] == theView || ((![currentHistoryEntry objectForKey:@"contentFilter"] && contentFilter) || ![[currentHistoryEntry objectForKey:@"contentFilter"] isEqualToDictionary:contentFilter]))) { @@ -338,7 +338,7 @@ NSMutableDictionary *newEntry = [NSMutableDictionary dictionaryWithObjectsAndKeys: theDatabase, @"database", theTable, @"table", - [NSNumber numberWithInteger:theView], @"view", + [NSNumber numberWithUnsignedInteger:theView], @"view", [NSNumber numberWithBool:contentSortColIsAsc], @"contentSortColIsAsc", [NSNumber numberWithInteger:contentPageNumber], @"contentPageNumber", [NSValue valueWithRect:contentViewport], @"contentViewport", @@ -367,7 +367,7 @@ { // Sanity check the input - if (position == NSNotFound || position < 0 || position >= [history count]) { + if (position == NSNotFound || position >= [history count]) { NSBeep(); return; } @@ -404,7 +404,8 @@ // If the database, table, and view are the same and content - just trigger a table reload (filters) if ([[theDocument database] isEqualToString:[historyEntry objectForKey:@"database"]] && [historyEntry objectForKey:@"table"] && [[theDocument table] isEqualToString:[historyEntry objectForKey:@"table"]] - && [[historyEntry objectForKey:@"view"] integerValue] == [self currentlySelectedView] == SPTableViewContent) + && [[historyEntry objectForKey:@"view"] unsignedIntegerValue] == [self currentlySelectedView] + && [[historyEntry objectForKey:@"view"] unsignedIntegerValue] == SPTableViewContent) { [tableContentInstance loadTable:[historyEntry objectForKey:@"table"]]; modifyingState = NO; @@ -433,7 +434,7 @@ } // Check and set the view - if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] integerValue]) { + if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] unsignedIntegerValue]) { switch ([[historyEntry objectForKey:@"view"] integerValue]) { case SPTableViewStructure: [theDocument viewStructure:self]; @@ -454,7 +455,7 @@ [theDocument viewTriggers:self]; break; } - if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] integerValue]) { + if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] unsignedIntegerValue]) { return [self abortEntryLoadWithPool:loadPool]; } } diff --git a/Source/SPLogger.m b/Source/SPLogger.m index 5736fde6..b1e16bba 100644 --- a/Source/SPLogger.m +++ b/Source/SPLogger.m @@ -37,6 +37,7 @@ static SPLogger *logger = nil; - (void)_initLogFile; - (void)_outputTimeString; +int _isSPLeaksLog(struct direct *entry); @end @@ -137,10 +138,9 @@ static SPLogger *logger = nil; if ([self removeOldLeakDumpsOnTermination]) { int cnt, cnt2, i; - int isSPLeaksLog(); struct direct **files; - cnt = scandir("/tmp", &files, isSPLeaksLog, NULL); + cnt = scandir("/tmp", &files, _isSPLeaksLog, NULL); char fpath[32], fpath2[32], fpath3[64]; @@ -158,7 +158,7 @@ static SPLogger *logger = nil; if (hdir) { snprintf(fpath2, sizeof(fpath2), "%s/Desktop", pw->pw_dir); - cnt2 = scandir(fpath2, &files, isSPLeaksLog, NULL); + cnt2 = scandir(fpath2, &files, _isSPLeaksLog, NULL); for (i = 0; i < cnt2; i++) { @@ -181,7 +181,7 @@ static SPLogger *logger = nil; // Write new leaks log if ((fp = popen(cmd, "r")) && (fp2 = fopen(file, "w"))) { - while (len = fread(buf, 1, sizeof(buf), fp)) + while ((len = fread(buf, 1, sizeof(buf), fp))) { fwrite(buf, 1, len, fp2); } @@ -191,11 +191,6 @@ static SPLogger *logger = nil; } } -int isSPLeaksLog(struct direct *entry) -{ - return (strstr(entry->d_name, "sp.leaks") != NULL); -} - #pragma mark - #pragma mark Private API @@ -249,4 +244,9 @@ int isSPLeaksLog(struct direct *entry) [logFileHandle writeData:[[NSString stringWithFormat:@"Launched at %@\n\n", [[NSDate date] description]] dataUsingEncoding:NSUTF8StringEncoding]]; } +int _isSPLeaksLog(struct direct *entry) +{ + return (strstr(entry->d_name, "sp.leaks") != NULL); +} + @end diff --git a/Source/SPNarrowDownCompletion.h b/Source/SPNarrowDownCompletion.h index 192bbf38..08393d4d 100644 --- a/Source/SPNarrowDownCompletion.h +++ b/Source/SPNarrowDownCompletion.h @@ -59,7 +59,7 @@ NSTimer *stateTimer; NSArray *syncArrowImages; - NSInteger currentSyncImage; + NSUInteger currentSyncImage; NSUInteger timeCounter; diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index ca7f7f7d..b1101704 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -627,13 +627,13 @@ if(fuzzyMode) { // eg filter = "inf" this regexp search will be performed: (?i).*?i.*?n.*?f NSMutableString *fuzzyRegexp = [[NSMutableString alloc] initWithCapacity:3]; - NSInteger i; + NSUInteger i; unichar c; - if(!caseSensitive) + if (!caseSensitive) [fuzzyRegexp setString:@"(?i)"]; - for(i=0; i<[[self filterString] length]; i++) { + for (i=0; i<[[self filterString] length]; i++) { c = [[self filterString] characterAtIndex:i]; if(c != '`') { if(c == '.') @@ -645,8 +645,8 @@ } } - for(id s in suggestions) - if([[s objectForKey:@"display"] isMatchedByRegex:fuzzyRegexp] || [[s objectForKey:@"path"] isMatchedByRegex:fuzzyRegexp]) + for (id s in suggestions) + if ([[s objectForKey:@"display"] isMatchedByRegex:fuzzyRegexp] || [[s objectForKey:@"path"] isMatchedByRegex:fuzzyRegexp]) [newFiltered addObject:s]; diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m index f6760468..3dfed305 100644 --- a/Source/SPSQLExporter.m +++ b/Source/SPSQLExporter.m @@ -29,6 +29,7 @@ #import "SPTablesList.h" #import "SPFileHandle.h" #import "SPExportUtilities.h" +#import "SPExportFile.h" #import "SPTableData.h" @interface SPSQLExporter (PrivateAPI) @@ -294,7 +295,7 @@ if ([connection queryErrored] || ![rowArray count]) { [errors appendFormat:@"%@\n", [connection getLastErrorMessage]]; - [[self exportOutputFileHandle] writeData:[[NSString stringWithFormat:@"# Error: %@\n\n\n", [connection getLastErrorMessage]] dataUsingEncoding:NSUTF8StringEncoding]]; + [[self exportOutputFile] writeData:[[NSString stringWithFormat:@"# Error: %@\n\n\n", [connection getLastErrorMessage]] dataUsingEncoding:NSUTF8StringEncoding]]; continue; } @@ -329,7 +330,7 @@ // Inform the delegate that we are about to start writing the data to disk [delegate performSelectorOnMainThread:@selector(sqlExportProcessWillBeginWritingData:) withObject:self waitUntilDone:NO]; - while (row = [streamingResult fetchNextRowAsArray]) + while ((row = [streamingResult fetchNextRowAsArray])) { // Check for cancellation flag if ([self isCancelled]) { @@ -348,7 +349,7 @@ [sqlString setString:@""]; // Update the progress - NSUInteger progress = (j * ([self exportMaxProgress] / rowCount)); + NSUInteger progress = (NSUInteger)(j * ([self exportMaxProgress] / rowCount)); if (progress > lastProgressValue) { [self setExportProgressValue:progress]; @@ -773,7 +774,7 @@ */ - (NSString *)_createViewPlaceholderSyntaxForView:(NSString *)viewName { - NSInteger i, j; + NSUInteger i, j; NSMutableString *placeholderSyntax; // Get structured information for the view via the SPTableData parsers diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m index 16d0c590..d0464d59 100644 --- a/Source/SPSSHTunnel.m +++ b/Source/SPSSHTunnel.m @@ -245,15 +245,15 @@ // If no local port has yet been chosen, choose one if (!localPort) { - NSInteger tempSocket; + int tempSocket; struct sockaddr_in tempSocketAddress; - NSInteger addressLength = sizeof(tempSocketAddress); + size_t addressLength = sizeof(tempSocketAddress); if((tempSocket = socket(AF_INET, SOCK_STREAM, 0)) > 0) { memset(&tempSocketAddress, 0, sizeof(tempSocketAddress)); tempSocketAddress.sin_family = AF_INET; tempSocketAddress.sin_addr.s_addr = htonl(INADDR_ANY); tempSocketAddress.sin_port = 0; - if (bind(tempSocket, (struct sockaddr *)&tempSocketAddress, addressLength) >= 0) { + if (bind(tempSocket, (struct sockaddr *)&tempSocketAddress, (socklen_t)addressLength) >= 0) { if (getsockname(tempSocket, (struct sockaddr *)&tempSocketAddress, (uint32_t *)&addressLength) >= 0) { localPort = ntohs(tempSocketAddress.sin_port); } @@ -267,7 +267,7 @@ tempSocketAddress.sin_family = AF_INET; tempSocketAddress.sin_addr.s_addr = htonl(INADDR_ANY); tempSocketAddress.sin_port = 0; - if (bind(tempSocket, (struct sockaddr *)&tempSocketAddress, addressLength) >= 0) { + if (bind(tempSocket, (struct sockaddr *)&tempSocketAddress, (socklen_t)addressLength) >= 0) { if (getsockname(tempSocket, (struct sockaddr *)&tempSocketAddress, (uint32_t *)&addressLength) >= 0) { localPortFallback = ntohs(tempSocketAddress.sin_port); } diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 5f5de871..c4eb9f57 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -2645,8 +2645,11 @@ return YES; } - // Save any edits which have been made but not saved to the table yet. - [[tableDocumentInstance parentWindow] endEditingFor:nil]; + // Save any edits which have been made but not saved to the table yet; + // but not for any NSSearchFields which could cause a crash for undo, redo. + if([[[tableDocumentInstance parentWindow] firstResponder] respondsToSelector:@selector(delegate)] + && ![[[[tableDocumentInstance parentWindow] firstResponder] delegate] isKindOfClass:[NSSearchField class]]) + [[tableDocumentInstance parentWindow] endEditingFor:nil]; // If no rows are currently being edited, or a save is in progress, return success at once. if (!isEditingRow || isSavingRow) return YES; diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 7180dc6a..b69ce816 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -216,7 +216,7 @@ * * @param index The index of the column array. */ -- (NSDictionary *) columnAtIndex:(NSInteger)index +- (NSDictionary *) columnAtIndex:(NSInteger)columnIndex { // If processing is already in action, wait for it to complete [self _loopWhileWorking]; @@ -228,7 +228,7 @@ [self updateInformationForCurrentTable]; } } - return [columns objectAtIndex:index]; + return [columns objectAtIndex:columnIndex]; } /** @@ -401,7 +401,7 @@ [columns addObjectsFromArray:[tableData objectForKey:@"columns"]]; enumerator = [columns objectEnumerator]; - while (columnData = [enumerator nextObject]) { + while ((columnData = [enumerator nextObject])) { [columnNames addObject:[NSString stringWithString:[columnData objectForKey:@"name"]]]; } @@ -440,7 +440,7 @@ [columns addObjectsFromArray:[viewData objectForKey:@"columns"]]; enumerator = [columns objectEnumerator]; - while (columnData = [enumerator nextObject]) { + while ((columnData = [enumerator nextObject])) { [columnNames addObject:[NSString stringWithString:[columnData objectForKey:@"name"]]]; } @@ -642,7 +642,7 @@ [fieldsParser setString:[[parts objectAtIndex:7] stringByTrimmingCharactersInSet:bracketSet]]; [constraintDetails setObject:[fieldsParser unquotedString] forKey:@"ref_columns"]; - NSInteger nextOffs = 12; + NSUInteger nextOffs = 12; if( [parts count] > 8 ) { // NOTE: this won't get SET NULL | NO ACTION | RESTRICT if( [[parts objectAtIndex:9] hasPrefix:@"UPDATE"] ) { @@ -674,7 +674,7 @@ } } } - if( [parts count] > nextOffs - 1 ) { + if ([parts count] > nextOffs - 1) { if( [NSArrayObjectAtIndex(parts, nextOffs) hasPrefix:@"UPDATE"] ) { if( [NSArrayObjectAtIndex(parts, nextOffs+1) hasPrefix:@"SET"] ) { [constraintDetails setObject:@"SET NULL" @@ -1069,7 +1069,7 @@ if (triggers) [triggers release]; triggers = [[NSMutableArray alloc] init]; - for (int i=0; i<[theResult numOfRows]; i++) { + for (NSUInteger i=0; i<[theResult numOfRows]; i++) { [triggers addObject:[theResult fetchRowAsDictionary]]; } @@ -1095,7 +1095,7 @@ NSMutableDictionary *fieldDetails = [[NSMutableDictionary alloc] init]; NSMutableArray *detailParts; NSString *detailString; - NSInteger i, definitionPartsIndex = 0, partsArrayLength; + NSUInteger i, definitionPartsIndex = 0, partsArrayLength; NSCharacterSet *whitespaceCharacterSet = [NSCharacterSet whitespaceAndNewlineCharacterSet]; @@ -1306,7 +1306,7 @@ MCPResult *r; NSArray *resultRow; - NSInteger i; + NSUInteger i; NSMutableArray *keyColumns = [NSMutableArray array]; // select all columns that are primary keys diff --git a/Source/SPTableRelations.h b/Source/SPTableRelations.h index 1658861b..3fbef811 100644 --- a/Source/SPTableRelations.h +++ b/Source/SPTableRelations.h @@ -65,11 +65,14 @@ - (IBAction)selectReferenceTable:(id)sender; - (IBAction)refreshRelations:(id)sender; +- (void)tableSelectionChanged:(NSNotification *)notification; + // Task interaction - (void)startDocumentTaskForTab:(NSNotification *)aNotification; - (void)endDocumentTaskForTab:(NSNotification *)aNotification; // Other - (NSArray *)relationDataForPrinting; +- (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo; @end diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m index b7a4bde6..fb833d94 100644 --- a/Source/SPTableRelations.m +++ b/Source/SPTableRelations.m @@ -176,7 +176,7 @@ [result dataSeek:0]; - for (NSInteger i = 0; i < [result numOfRows]; i++) + for (NSUInteger i = 0; i < [result numOfRows]; i++) { [refTablePopUpButton addItemWithTitle:[[result fetchRowAsArray] objectAtIndex:0]]; } @@ -358,16 +358,16 @@ [headings release]; // Get the relation data - for (NSDictionary *relation in relationData) + for (NSDictionary *eachRelation in relationData) { NSMutableArray *temp = [[NSMutableArray alloc] init]; - [temp addObject:[relation objectForKey:@"name"]]; - [temp addObject:[relation objectForKey:@"columns"]]; - [temp addObject:[relation objectForKey:@"fk_table"]]; - [temp addObject:[relation objectForKey:@"fk_columns"]]; - [temp addObject:([relation objectForKey:@"on_update"]) ? [relation objectForKey:@"on_update"] : @""]; - [temp addObject:([relation objectForKey:@"on_delete"]) ? [relation objectForKey:@"on_delete"] : @""]; + [temp addObject:[eachRelation objectForKey:@"name"]]; + [temp addObject:[eachRelation objectForKey:@"columns"]]; + [temp addObject:[eachRelation objectForKey:@"fk_table"]]; + [temp addObject:[eachRelation objectForKey:@"fk_columns"]]; + [temp addObject:([eachRelation objectForKey:@"on_update"]) ? [eachRelation objectForKey:@"on_update"] : @""]; + [temp addObject:([eachRelation objectForKey:@"on_delete"]) ? [eachRelation objectForKey:@"on_delete"] : @""]; [data addObject:temp]; diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h index c7b47e1a..a08ddd15 100644 --- a/Source/SPTableStructure.h +++ b/Source/SPTableStructure.h @@ -25,13 +25,13 @@ #import -@class SPTableFieldValidation; +@class SPDatabaseDocument, SPTableFieldValidation; @interface SPTableStructure : NSObject { IBOutlet id tablesListInstance; IBOutlet id tableDataInstance; - IBOutlet id tableDocumentInstance; + IBOutlet SPDatabaseDocument *tableDocumentInstance; IBOutlet id tableInfoInstance; IBOutlet id extendedTableInfoInstance; IBOutlet id indexesController; @@ -57,7 +57,7 @@ IBOutlet NSButton *indexesShowButton; IBOutlet id viewColumnsMenu; - IBOutlet id encodingPopupCell; + IBOutlet NSPopUpButtonCell *encodingPopupCell; MCPConnection *mySQLConnection; MCPResult *tableSourceResult; @@ -89,7 +89,9 @@ - (IBAction)addField:(id)sender; - (IBAction)copyField:(id)sender; - (IBAction)removeField:(id)sender; +- (void)removeFieldSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; - (IBAction)resetAutoIncrement:(id)sender; +- (void)resetAutoincrementSheetDidEnd:(NSWindow *)theSheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; - (IBAction)showOptimizedFieldType:(id)sender; - (IBAction)toggleColumnView:(id)sender; - (BOOL)cancelRowEditing; @@ -102,6 +104,7 @@ - (NSArray *)fetchResultAsArray:(MCPResult *)theResult; - (BOOL)saveRowOnDeselect; - (BOOL)addRowToDB; +- (void)addRowErrorSheetDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; - (void)setAutoIncrementTo:(NSString*)valueAsString; // Accessors diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index ebcb2bc6..904e4517 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -25,13 +25,16 @@ #import "SPTableStructure.h" #import "SPDatabaseDocument.h" +#import "SPDatabaseViewController.h" #import "SPTableInfo.h" #import "SPTablesList.h" #import "SPTableData.h" +#import "SPDatabaseData.h" #import "SPSQLParser.h" #import "SPAlertSheets.h" #import "SPIndexesController.h" #import "RegexKitLite.h" +#import "SPTableFieldValidation.h" @interface SPTableStructure (PrivateAPI) @@ -279,7 +282,7 @@ } selectedIndex++; // due to leading @"" in popup list } - [theField setObject:[NSNumber numberWithInt:selectedIndex] forKey:@"encoding"]; + [theField setObject:[NSNumber numberWithInteger:selectedIndex] forKey:@"encoding"]; selectedIndex = 0; if([fieldEncoding length] && [theField objectForKey:@"collation"]) { NSArray *theCollations = [databaseDataInstance getDatabaseCollationsForEncoding:fieldEncoding]; @@ -294,7 +297,7 @@ } selectedIndex++; // due to leading @"" in popup list } - [theField setObject:[NSNumber numberWithInt:selectedIndex] forKey:@"collation"]; + [theField setObject:[NSNumber numberWithInteger:selectedIndex] forKey:@"collation"]; NSString *type = [[theField objectForKey:@"type"] uppercaseString]; @@ -530,7 +533,7 @@ if([[col identifier] isEqualToString:columnIdentifierName]) { [col setHidden:([sender state] == NSOffState) ? NO : YES]; - [sender setState:![sender state]]; + [(NSMenuItem *)sender setState:![sender state]]; break; } @@ -582,9 +585,9 @@ // Check whether a save of the current row is required. if (![self saveRowOnDeselect]) return; - NSInteger index = [tableSourceView selectedRow]; + NSInteger anIndex = [tableSourceView selectedRow]; - if ((index == -1) || (index > ([tableFields count] - 1))) return; + if ((anIndex == -1) || (anIndex > (NSInteger)([tableFields count] - 1))) return; // Check if the user tries to delete the last defined field in table // Note that because of better menu item validation, this check will now never evaluate to true. @@ -601,7 +604,7 @@ } - NSString *field = [[tableFields objectAtIndex:index] objectForKey:@"name"]; + NSString *field = [[tableFields objectAtIndex:anIndex] objectForKey:@"name"]; BOOL hasForeignKey = NO; NSString *referencedTable = @""; @@ -689,7 +692,7 @@ if (returnCode == NSAlertDefaultReturn) { [tableDocumentInstance startTaskWithDescription:NSLocalizedString(@"Removing field...", @"removing field task status message")]; - NSNumber *removeKey = [NSNumber numberWithBool:[contextInfo hasSuffix:@"AndForeignKey"]]; + NSNumber *removeKey = [NSNumber numberWithBool:[(NSString *)contextInfo hasSuffix:@"AndForeignKey"]]; if ([NSThread isMainThread]) { [NSThread detachNewThreadSelector:@selector(_removeFieldAndForeignKey:) toTarget:self withObject:removeKey]; @@ -798,11 +801,11 @@ */ - (NSArray *)fetchResultAsArray:(MCPResult *)theResult { - NSUInteger numOfRows = [theResult numOfRows]; + NSUInteger numOfRows = (NSUInteger)[theResult numOfRows]; NSMutableArray *tempResult = [NSMutableArray arrayWithCapacity:numOfRows]; NSMutableDictionary *tempRow; NSArray *keys; - NSInteger i; + NSUInteger i; id prefsNullValue = [prefs objectForKey:SPNullValue]; // Ensure table information is returned as strings to avoid problems with some server versions @@ -922,7 +925,7 @@ [queryString appendString:@"\n DEFAULT NULL "]; } } - else if (![[theRow objectForKey:@"default"] length]) { + else if (![(NSString *)[theRow objectForKey:@"default"] length]) { ; } // Otherwise, use the provided default @@ -1003,12 +1006,12 @@ } // If the field is of type BIT, permit the use of single qoutes and also don't quote the default value. // For example, use DEFAULT b'1' as opposed to DEFAULT 'b\'1\'' which results in an error. - else if ([[theRow objectForKey:@"default"] length] && [theRowType isEqualToString:@"BIT"]) { + else if ([(NSString *)[theRow objectForKey:@"default"] length] && [theRowType isEqualToString:@"BIT"]) { [queryString appendFormat:@"\n DEFAULT %@", [theRow objectForKey:@"default"]]; } // Suppress appending DEFAULT clause for any numerics, date, time fields if default is empty to avoid error messages; // also don't specify a default for TEXT/BLOB or geometry fields to avoid strict mode errors - else if (![[theRow objectForKey:@"default"] length] && ([fieldValidation isFieldTypeNumeric:theRowType] || [fieldValidation isFieldTypeDate:theRowType] || [theRowType hasSuffix:@"TEXT"] || [theRowType hasSuffix:@"BLOB"] || [fieldValidation isFieldTypeGeometry:theRowType])) { + else if (![(NSString *)[theRow objectForKey:@"default"] length] && ([fieldValidation isFieldTypeNumeric:theRowType] || [fieldValidation isFieldTypeDate:theRowType] || [theRowType hasSuffix:@"TEXT"] || [theRowType hasSuffix:@"BLOB"] || [fieldValidation isFieldTypeGeometry:theRowType])) { ; } // Otherwise, use the provided default @@ -1023,14 +1026,14 @@ } // Any column comments - if ([[theRow objectForKey:@"comment"] length]) { + if ([(NSString *)[theRow objectForKey:@"comment"] length]) { [queryString appendFormat:@"\n COMMENT '%@'", [mySQLConnection prepareString:[theRow objectForKey:@"comment"]]]; } if (!isEditingNewRow) { // Unparsed details - column formats, storage, reference definitions - if ([[theRow objectForKey:@"unparsed"] length]) { + if ([(NSString *)[theRow objectForKey:@"unparsed"] length]) { [queryString appendFormat:@"\n %@", [theRow objectForKey:@"unparsed"]]; } } @@ -1048,16 +1051,16 @@ // UNSIGNED keyword. NSRange range = [queryString rangeOfString:[NSString stringWithFormat:@"%@ %@", [[theRow objectForKey:@"name"] backtickQuotedString], theRowType] options:NSLiteralSearch]; - NSInteger index = (range.location + range.length); + NSInteger insertionIndex = (range.location + range.length); // If the field definition's data type includes the length then we must take this into // account when inserting the UNSIGNED keyword. Add 2 to the index to accommodate the // parentheses used. if (fieldDefIncludesLen) { - index += ([[theRow objectForKey:@"length"] length] + 2); + insertionIndex += ([(NSString *)[theRow objectForKey:@"length"] length] + 2); } - [queryString insertString:@" UNSIGNED" atIndex:index]; + [queryString insertString:@" UNSIGNED" atIndex:insertionIndex]; } // Add AFTER ... only if the user added a new field @@ -1099,7 +1102,7 @@ [tableDocumentInstance setContentRequiresReload:YES]; // Query the structure of all databases in the background - [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", selectedTable, @"affectedItem", [NSNumber numberWithInt:[tablesListInstance tableType]], @"affectedItemType", nil]]; + [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", selectedTable, @"affectedItem", [NSNumber numberWithInteger:[tablesListInstance tableType]], @"affectedItemType", nil]]; return YES; } @@ -1353,7 +1356,7 @@ */ - (NSDictionary *)tableSourceForPrinting { - NSInteger i, j; + NSUInteger i, j; NSMutableArray *tempResult = [NSMutableArray array]; NSMutableArray *tempResult2 = [NSMutableArray array]; @@ -1397,22 +1400,22 @@ } for (i = 0; i < [indexesQueryResult numOfRows]; i++) { - NSMutableArray *index = [[indexesQueryResult fetchRowAsArray] mutableCopy]; + NSMutableArray *eachIndex = [[indexesQueryResult fetchRowAsArray] mutableCopy]; // Remove the 'table' column values - [index removeObjectAtIndex:0]; + [eachIndex removeObjectAtIndex:0]; // For every NULL value replace it with the user's NULL value placeholder so we can actually print it - for (j = 0; j < [index count]; j++) + for (j = 0; j < [eachIndex count]; j++) { - if ([[index objectAtIndex:j] isNSNull]) { - [index replaceObjectAtIndex:j withObject:(NSString *)escapedNullValue]; + if ([[eachIndex objectAtIndex:j] isNSNull]) { + [eachIndex replaceObjectAtIndex:j withObject:(NSString *)escapedNullValue]; } } - [tempResult2 addObject:index]; + [tempResult2 addObject:eachIndex]; - [index release]; + [eachIndex release]; } CFRelease(escapedNullValue); diff --git a/Source/SPTablesList.h b/Source/SPTablesList.h index e82903b2..7d486525 100644 --- a/Source/SPTablesList.h +++ b/Source/SPTablesList.h @@ -96,7 +96,7 @@ NSMutableArray *filteredTables; NSMutableArray *tableTypes; NSMutableArray *filteredTableTypes; - NSInteger selectedTableType; + SPTableType selectedTableType; NSString *selectedTableName; BOOL isTableListFiltered; BOOL tableListIsSelectable; @@ -124,7 +124,6 @@ // Additional methods - (void)setConnection:(MCPConnection *)theConnection; -- (void)doPerformQueryService:(NSString *)query; - (void)setSelectionState:(NSDictionary *)selectionDetails; - (void)selectTableAtIndex:(NSNumber *)row; - (void)makeTableListFilterHaveFocus; @@ -134,7 +133,7 @@ - (NSArray *)selectedTableItems; - (NSArray *)selectedTableTypes; - (NSString *)tableName; -- (NSInteger)tableType; +- (SPTableType)tableType; - (NSArray *)tables; - (NSArray *)tableTypes; - (NSArray *)allTableAndViewNames; @@ -147,8 +146,6 @@ - (NSString *)selectedDatabase; // Setters -- (void)setContentRequiresReload:(BOOL)reload; -- (void)setStatusRequiresReload:(BOOL)reload; - (BOOL)selectItemWithName:(NSString *)theName; - (BOOL)selectItemsWithNames:(NSArray *)theNames; diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index cc840e30..3d87fcc7 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -38,6 +38,8 @@ #import "SPNavigatorController.h" #import "SPHistoryController.h" #import "SPServerSupport.h" +#import "SPWindowController.h" +#import "SPAppController.h" @interface SPTablesList (PrivateAPI) @@ -252,7 +254,7 @@ tableListIsSelectable = previousTableListIsSelectable; if (selectedTableName) [selectedTableName release]; selectedTableName = [[NSString alloc] initWithString:[tables objectAtIndex:itemToReselect]]; - selectedTableType = [[tableTypes objectAtIndex:itemToReselect] integerValue]; + selectedTableType = (SPTableType)[[tableTypes objectAtIndex:itemToReselect] integerValue]; } else { if (selectedTableName) [selectedTableName release]; @@ -829,7 +831,7 @@ // If a new selection has been provided, store variables and update the interface to match NSString *selectedItemName = [selectionDetails objectForKey:@"name"]; - NSInteger selectedItemType = [[selectionDetails objectForKey:@"type"] integerValue]; + SPTableType selectedItemType = (SPTableType)[[selectionDetails objectForKey:@"type"] integerValue]; // Update the selected table name and type if (selectedTableName) [selectedTableName release]; @@ -837,7 +839,7 @@ selectedTableType = selectedItemType; // Remove the "current selection" item for filtered lists if appropriate - if (isTableListFiltered && [tablesListView selectedRow] < [filteredTables count] - 2 && [filteredTables count] > 2 + if (isTableListFiltered && [tablesListView selectedRow] < (NSInteger)[filteredTables count] - 2 && [filteredTables count] > 2 && [[filteredTableTypes objectAtIndex:[filteredTableTypes count]-2] integerValue] == SPTableTypeNone && [[filteredTables objectAtIndex:[filteredTables count]-2] isEqualToString:NSLocalizedString(@"CURRENT SELECTION",@"header for current selection in filtered list")]) { @@ -1066,7 +1068,7 @@ /** * Returns the currently selected table type, or -1 if no table or multiple tables are selected */ -- (NSInteger) tableType +- (SPTableType) tableType { return selectedTableType; } @@ -1179,8 +1181,8 @@ */ - (BOOL)selectItemWithName:(NSString *)theName { - NSInteger i, tableType; - NSInteger itemIndex = NSNotFound; + NSUInteger i; + NSInteger tableType, itemIndex = NSNotFound; NSInteger caseInsensitiveItemIndex = NSNotFound; // Loop through the unfiltered tables/views to find the desired item @@ -1212,7 +1214,7 @@ [tablesListView deselectAll:nil]; if (selectedTableName) [selectedTableName release]; selectedTableName = [[NSString alloc] initWithString:[tables objectAtIndex:itemIndex]]; - selectedTableType = [[tableTypes objectAtIndex:itemIndex] integerValue]; + selectedTableType = (SPTableType)[[tableTypes objectAtIndex:itemIndex] integerValue]; [self updateFilter:self]; [tableDocumentInstance loadTable:selectedTableName ofType:selectedTableType]; } @@ -1229,7 +1231,8 @@ */ - (BOOL)selectItemsWithNames:(NSArray *)theNames { - NSInteger i, tableType; + NSUInteger i; + NSInteger tableType; NSMutableIndexSet *selectionIndexSet = [NSMutableIndexSet indexSet]; // Loop through the unfiltered tables/views to find the desired item @@ -1282,7 +1285,7 @@ // During imports the table view sometimes appears to request items beyond the end of the array. // Using a hinted noteNumberOfRowsChanged after dropping tables fixes this but then seems to stick // even after override, so check here for the time being and display empty rows during import. - if (rowIndex >= [filteredTables count]) return @""; + if (rowIndex >= (NSInteger)[filteredTables count]) return @""; return [filteredTables objectAtIndex:rowIndex]; } @@ -1427,7 +1430,7 @@ // Perform no action if the selected table hasn't actually changed - reselection etc NSString *newName = [filteredTables objectAtIndex:selectedRowIndex]; - NSInteger newType = [[filteredTableTypes objectAtIndex:selectedRowIndex] integerValue]; + SPTableType newType = (SPTableType)[[filteredTableTypes objectAtIndex:selectedRowIndex] integerValue]; if ([selectedTableName isEqualToString:newName] && selectedTableType == newType) { return; } @@ -1479,7 +1482,7 @@ - (BOOL)tableView:(NSTableView *)aTableView isGroupRow:(NSInteger)rowIndex { // For empty tables - title still present - or while lists are being altered - if (rowIndex >= [filteredTableTypes count]) return (rowIndex == 0 ); + if (rowIndex >= (NSInteger)[filteredTableTypes count]) return (rowIndex == 0 ); return ([[filteredTableTypes objectAtIndex:rowIndex] integerValue] == SPTableTypeNone ); } @@ -1489,7 +1492,7 @@ */ - (void)tableView:(NSTableView *)aTableView willDisplayCell:(ImageAndTextCell*)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex { - if (rowIndex > 0 && rowIndex < [filteredTableTypes count] && [[aTableColumn identifier] isEqualToString:@"tables"]) { + if (rowIndex > 0 && rowIndex < (NSInteger)[filteredTableTypes count] && [[aTableColumn identifier] isEqualToString:@"tables"]) { id item = NSArrayObjectAtIndex(filteredTables, rowIndex); @@ -1669,7 +1672,8 @@ filteredTables = [[NSMutableArray alloc] init]; filteredTableTypes = [[NSMutableArray alloc] init]; - NSInteger i, lastTableType = NSNotFound, tableType; + NSUInteger i; + NSInteger lastTableType = NSNotFound, tableType; NSRange substringRange; for (i = 0; i < [tables count]; i++) { tableType = [[tableTypes objectAtIndex:i] integerValue]; @@ -1723,7 +1727,7 @@ } // Reselect correct row and reload the table view display - if ([tablesListView numberOfRows] < [filteredTables count]) [tablesListView noteNumberOfRowsChanged]; + if ([tablesListView numberOfRows] < (NSInteger)[filteredTables count]) [tablesListView noteNumberOfRowsChanged]; if (selectedTableName) [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:[filteredTables indexOfObject:selectedTableName]] byExtendingSelection:NO]; [tablesListView reloadData]; } @@ -1734,7 +1738,7 @@ */ - (void) selectTableAtIndex:(NSNumber *)row { - NSInteger rowIndex = [row integerValue]; + NSUInteger rowIndex = [row unsignedIntegerValue]; if (rowIndex == NSNotFound || rowIndex > [filteredTables count] || [[filteredTableTypes objectAtIndex:rowIndex] integerValue] == SPTableTypeNone) return; @@ -2048,12 +2052,12 @@ // Table creation was successful - insert the new item into the tables list and select it. NSInteger addItemAtIndex = NSNotFound; - for (NSInteger i = 0; i < [tables count]; i++) + for (NSUInteger i = 0; i < [tables count]; i++) { - NSInteger tableType = [[tableTypes objectAtIndex:i] integerValue]; + NSInteger eachTableType = [[tableTypes objectAtIndex:i] integerValue]; - if (tableType == SPTableTypeNone) continue; - if (tableType == SPTableTypeProc || tableType == SPTableTypeFunc) { + if (eachTableType == SPTableTypeNone) continue; + if (eachTableType == SPTableTypeProc || eachTableType == SPTableTypeFunc) { addItemAtIndex = (i - 1); break; } @@ -2119,7 +2123,7 @@ BOOL copyTableContent = ([copyTableContentSwitch state] == NSOnState); - NSInteger tblType = [[filteredTableTypes objectAtIndex:[tablesListView selectedRow]] integerValue]; + SPTableType tblType = (SPTableType)[[filteredTableTypes objectAtIndex:[tablesListView selectedRow]] integerValue]; // Set up the table type and whether content can be duplicated. The table type is used // in queries and should not be localized. @@ -2140,6 +2144,8 @@ tableType = @"function"; [copyTableContentSwitch setEnabled:NO]; break; + default: + break; } // Get table/view structure @@ -2247,7 +2253,7 @@ // Insert the new item into the tables list and select it. NSInteger addItemAtIndex = NSNotFound; - for (NSInteger i = 0; i < [tables count]; i++) { + for (NSUInteger i = 0; i < [tables count]; i++) { NSInteger theTableType = [[tableTypes objectAtIndex:i] integerValue]; if (theTableType == SPTableTypeNone) continue; if ((theTableType == SPTableTypeView || theTableType == SPTableTypeTable) @@ -2339,6 +2345,7 @@ switch (tableType){ case SPTableTypeProc: stringTableType = @"PROCEDURE"; break; case SPTableTypeFunc: stringTableType = @"FUNCTION"; break; + default: break; } MCPResult *theResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SHOW CREATE %@ %@", stringTableType, [oldTableName backtickQuotedString] ] ]; diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m index 5a0a2a2e..30f73cc8 100644 --- a/Source/SPTooltip.m +++ b/Source/SPTooltip.m @@ -208,7 +208,7 @@ static CGFloat slow_in_out (CGFloat t) [webPreferences setJavaScriptEnabled:YES]; NSString *fontName = ([displayOptions objectForKey:@"fontname"]) ? [displayOptions objectForKey:@"fontname"] : @"Lucida Grande"; - NSInteger fontSize = ([displayOptions objectForKey:@"fontsize"]) ? [[displayOptions objectForKey:@"fontsize"] integerValue] : 10; + int fontSize = ([displayOptions objectForKey:@"fontsize"]) ? [[displayOptions objectForKey:@"fontsize"] integerValue] : 10; if(fontSize < 5) fontSize = 5; NSFont* font = [NSFont fontWithName:fontName size:fontSize]; -- cgit v1.2.3