Revision: 15321
          http://sourceforge.net/p/skim-app/code/15321
Author:   hofman
Date:     2025-05-29 14:36:01 +0000 (Thu, 29 May 2025)
Log Message:
-----------
use tryToPerform:with: to forward cancelOperation:

Modified Paths:
--------------
    trunk/SKFullScreenWindow.m

Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m  2025-05-29 14:06:58 UTC (rev 15320)
+++ trunk/SKFullScreenWindow.m  2025-05-29 14:36:01 UTC (rev 15321)
@@ -62,8 +62,7 @@
 
 - (void)cancelOperation:(id)sender {
     // for some reason this action method is not passed on to the window 
controller, so we do this ourselves
-    if ([[self windowController] respondsToSelector:_cmd])
-        [[self windowController] cancelOperation:self];
+    [[self windowController] tryToPerform:_cmd with:self];
 }
 
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to