Revision: 4479
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4479&view=rev
Author:   hofman
Date:     2008-08-29 23:12:04 +0000 (Fri, 29 Aug 2008)

Log Message:
-----------
Simplify condition for validation of actions for bulk navigation

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

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2008-08-29 23:11:46 UTC (rev 4478)
+++ trunk/SKMainWindowController_UI.m   2008-08-29 23:12:04 UTC (rev 4479)
@@ -1269,13 +1269,13 @@
     } else if (action == @selector(doGoToLastPage:)) {
         return [pdfView canGoToLastPage];
     } else if (action == @selector(allGoToNextPage:)) {
-        return NO == [[NSApp 
valueForKeyPath:@"orderedDocuments.pdfView.canGoToNextPage"] 
containsObject:[NSNumber numberWithBool:NO]];
+        return [[NSApp valueForKeyPath:@"[EMAIL PROTECTED]"] boolValue];
     } else if (action == @selector(allGoToPreviousPage:)) {
-        return NO == [[NSApp 
valueForKeyPath:@"orderedDocuments.pdfView.canGoToPreviousPage"] 
containsObject:[NSNumber numberWithBool:NO]];
+        return [[NSApp valueForKeyPath:@"[EMAIL PROTECTED]"] boolValue];
     } else if (action == @selector(allGoToFirstPage:)) {
-        return NO == [[NSApp 
valueForKeyPath:@"orderedDocuments.pdfView.canGoToFirstPage"] 
containsObject:[NSNumber numberWithBool:NO]];
+        return [[NSApp valueForKeyPath:@"[EMAIL PROTECTED]"] boolValue];
     } else if (action == @selector(allGoToLastPage:)) {
-        return NO == [[NSApp 
valueForKeyPath:@"orderedDocuments.pdfView.canGoToLastPage"] 
containsObject:[NSNumber numberWithBool:NO]];
+        return [[NSApp valueForKeyPath:@"[EMAIL PROTECTED]"] boolValue];
     } else if (action == @selector(doGoBack:)) {
         return [pdfView canGoBack];
     } else if (action == @selector(doGoForward:)) {


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