aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}