aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-01-11 23:50:32 +0000
committerrowanbeentje <rowan@beent.je>2013-01-11 23:50:32 +0000
commit28543e03bb8e8081767f5b66822b1acd841060af (patch)
tree12313f74888fd41480afb877cfaeb0f0023477c8 /Source
parent6481a034c14baa33e3533737dd794b82b7e4fb26 (diff)
downloadsequelpro-28543e03bb8e8081767f5b66822b1acd841060af.tar.gz
sequelpro-28543e03bb8e8081767f5b66822b1acd841060af.tar.bz2
sequelpro-28543e03bb8e8081767f5b66822b1acd841060af.zip
- Fix toggleFullScreen: errors on <= 10.6, addressing Log #3759. (It appears that an NSWindow subclass which checks whether super respondsToSelector:@selector(toggleFullScreen:) returns YES on 10.6; changing this to an +[NSWindow instancesRespondToSelector:] check works correctly). Thanks to schlabberdog for identifying the problem!
Diffstat (limited to 'Source')
-rw-r--r--Source/SPWindow.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPWindow.m b/Source/SPWindow.m
index 492b8779..6ec5f86f 100644
--- a/Source/SPWindow.m
+++ b/Source/SPWindow.m
@@ -185,7 +185,7 @@
*/
- (void)toggleFullScreen:(id)sender
{
- if ([super respondsToSelector:@selector(toggleFullScreen:)]) {
+ if ([NSWindow instancesRespondToSelector:@selector(toggleFullScreen:)]) {
[super toggleFullScreen:sender];
}
}
@@ -206,7 +206,7 @@
// On systems which don't support fullscreen windows, disable the fullscreen menu item
if ([menuItem action] == @selector(toggleFullScreen:)) {
- if (![super respondsToSelector:@selector(toggleFullScreen:)]) {
+ if (![NSWindow instancesRespondToSelector:@selector(toggleFullScreen:)]) {
return NO;
}
}