aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSplitView.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-01-24 20:53:51 +0000
committerstuconnolly <stuart02@gmail.com>2013-01-24 20:53:51 +0000
commitceb7ac070de284fea209962bf7352bffc1788218 (patch)
tree70e433aa8a2ff9f080c49ec05e5a51230053661e /Source/SPSplitView.m
parent5956ce23cb3e98a14aff79ceb122b47712442953 (diff)
downloadsequelpro-ceb7ac070de284fea209962bf7352bffc1788218.tar.gz
sequelpro-ceb7ac070de284fea209962bf7352bffc1788218.tar.bz2
sequelpro-ceb7ac070de284fea209962bf7352bffc1788218.zip
Fix warnings due to not conforming to 10.6 protocols.
Diffstat (limited to 'Source/SPSplitView.m')
-rw-r--r--Source/SPSplitView.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPSplitView.m b/Source/SPSplitView.m
index 2793fd87..362b24aa 100644
--- a/Source/SPSplitView.m
+++ b/Source/SPSplitView.m
@@ -699,6 +699,7 @@
[self _ensureDefaultSubviewSizesToIndex:l-1];
delegate = [super delegate];
+
[super setDelegate:self];
}
@@ -1089,7 +1090,8 @@
}
// Check for a first responder to restore, using the "true" first responder for field editors
- NSResponder *firstResponderToRestore = [[self window] firstResponder];
+ NSResponder<NSTextDelegate> *firstResponderToRestore = [[self window] firstResponder];
+
if ([firstResponderToRestore respondsToSelector:@selector(isFieldEditor)] && [(NSText *)firstResponderToRestore isFieldEditor]) {
firstResponderToRestore = [(NSText *)firstResponderToRestore delegate];
}