diff options
author | sqlprodev <sqlprodev@northofthree.com> | 2012-03-27 21:02:15 +0000 |
---|---|---|
committer | sqlprodev <sqlprodev@northofthree.com> | 2012-03-27 21:02:15 +0000 |
commit | 0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919 (patch) | |
tree | 338bb0a6805d74566ae074c5db7ae6e443e9ed30 /Source/SPTableStructure.m | |
parent | 611dc52b10ecace3bc95df5645701fd23f165d37 (diff) | |
download | sequelpro-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/SPTableStructure.m')
-rw-r--r-- | Source/SPTableStructure.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index c6f20ded..6fbc6aac 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -36,7 +36,11 @@ #import "SPIndexesController.h" #import "RegexKitLite.h" #import "SPTableFieldValidation.h" +#ifndef SP_REFACTOR #import "SPMySQL.h" +#else +#import <SPMySQL/SPMySQL.h> +#endif @interface SPTableStructure (PrivateAPI) @@ -699,10 +703,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 beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:@selector(removeFieldSheetDidEnd:returnCode:contextInfo:) contextInfo:(hasForeignKey) ? @"removeFieldAndForeignKey" : @"removeField"]; } |