Revision: 4529
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4529&view=rev
Author:   hofman
Date:     2008-09-03 15:26:18 +0000 (Wed, 03 Sep 2008)

Log Message:
-----------
Pass remote button event to document if a target could not be found.

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

Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m       2008-09-03 15:11:47 UTC (rev 4528)
+++ trunk/SKApplication.m       2008-09-03 15:26:18 UTC (rev 4529)
@@ -73,6 +73,11 @@
         }
     } else if ([anEvent type] == NSApplicationDefined && [anEvent subtype] == 
SKRemoteButtonEvent) {
         id target = [self targetForAction:@selector(remoteButtonPressed:)];
+        if (target == nil) {
+            target = [[NSDocumentController sharedDocumentController] 
currentDocument];
+            if ([target respondsToSelector:@selector(remoteButtonPressed:)] == 
NO)
+                target = nil;
+        }
         if (target) {
             [target performSelector:@selector(remoteButtonPressed:) 
withObject:anEvent];
             return;


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to