aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2012-03-27 21:02:15 +0000
committersqlprodev <sqlprodev@northofthree.com>2012-03-27 21:02:15 +0000
commit0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919 (patch)
tree338bb0a6805d74566ae074c5db7ae6e443e9ed30 /Source/SPTableContent.m
parent611dc52b10ecace3bc95df5645701fd23f165d37 (diff)
downloadsequelpro-0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919.tar.gz
sequelpro-0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919.tar.bz2
sequelpro-0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919.zip
tweaks to compile on Xcode 4 / 10.6 SDK for SP_REFACTOR
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 87056e20..23bac322 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -37,9 +37,11 @@
#import "SPQueryController.h"
#import "SPQueryDocumentsController.h"
#import "SPTextAndLinkCell.h"
-#import "SPMySQL.h"
#ifndef SP_REFACTOR
+#import "SPMySQL.h"
#import "QLPreviewPanel.h"
+#else
+#import <SPMySQL/SPMySQL.h>
#endif
#import "SPFieldEditorController.h"
#import "SPTooltip.h"
@@ -2009,10 +2011,15 @@
NSArray *buttons = [alert buttons];
+#ifndef SP_REFACTOR
// Change the alert's cancel button to have the key equivalent of return
[[buttons objectAtIndex:0] setKeyEquivalent:@"d"];
[[buttons objectAtIndex:0] setKeyEquivalentModifierMask:NSCommandKeyMask];
[[buttons objectAtIndex:1] setKeyEquivalent:@"\r"];
+#else
+ [[buttons objectAtIndex:0] setKeyEquivalent:@"\r"];
+ [[buttons objectAtIndex:1] setKeyEquivalent:@"\e"];
+#endif
[alert setShowsSuppressionButton:NO];
[[alert suppressionButton] setState:NSOffState];
@@ -2684,7 +2691,6 @@
{
[[contentFilters objectForKey:compareType] addObjectsFromArray:[[prefs objectForKey:SPContentFilters] objectForKey:compareType]];
}
-#endif
// Load doc-based user-defined content filters
if([[SPQueryController sharedQueryController] contentFilterForFileURL:[tableDocumentInstance fileURL]]) {
@@ -2692,6 +2698,7 @@
if([filters objectForKey:compareType])
[[contentFilters objectForKey:compareType] addObjectsFromArray:[filters objectForKey:compareType]];
}
+#endif
// Rebuild operator popup menu
NSUInteger i = 0;