aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-02-17 01:22:38 +0000
committerstuconnolly <stuart02@gmail.com>2013-02-17 01:22:38 +0000
commit37253fa9894c9ff40b07c001b77c77b3e7e59368 (patch)
tree89bd8132e7e5069a5afc8d9fb69e53201572891c /Source/SPFieldMapperController.m
parent27156550b646a74d2345b4ff9650b7a3b4ba052e (diff)
downloadsequelpro-37253fa9894c9ff40b07c001b77c77b3e7e59368.tar.gz
sequelpro-37253fa9894c9ff40b07c001b77c77b3e7e59368.tar.bz2
sequelpro-37253fa9894c9ff40b07c001b77c77b3e7e59368.zip
Fix warnings by not using id for IB outlet references.
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r--Source/SPFieldMapperController.m15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m
index db7df98e..b4982a22 100644
--- a/Source/SPFieldMapperController.m
+++ b/Source/SPFieldMapperController.m
@@ -1310,23 +1310,22 @@ static NSString *SPTableViewSqlColumnID = @"sql";
- (IBAction)insertPulldownValue:(id)sender
{
-
- if([globalValuesTableView numberOfSelectedRows] != 1 || [globalValuesTableView editedRow] < 0) return;
+ if ([globalValuesTableView numberOfSelectedRows] != 1 || [globalValuesTableView editedRow] < 0) return;
NSInteger selectedIndex = [sender indexOfItem:[sender selectedItem]] - 4;
- if([[[NSApp keyWindow] firstResponder] respondsToSelector:@selector(insertText:)])
+
+ if ([[[NSApp keyWindow] firstResponder] respondsToSelector:@selector(insertText:)]) {
[[[NSApp keyWindow] firstResponder] insertText:[NSString stringWithFormat:@"$%ld", selectedIndex]];
-
+ }
}
- (IBAction)insertRecentGlobalValue:(id)sender
{
+ if ([globalValuesTableView numberOfSelectedRows] != 1 || [globalValuesTableView editedRow] < 0) return;
- if([globalValuesTableView numberOfSelectedRows] != 1 || [globalValuesTableView editedRow] < 0) return;
-
- if([[[NSApp keyWindow] firstResponder] respondsToSelector:@selector(insertText:)])
+ if ([[[NSApp keyWindow] firstResponder] respondsToSelector:@selector(insertText:)]) {
[[[NSApp keyWindow] firstResponder] insertText:[sender title]];
-
+ }
}
#pragma mark -