From: <ho...@us...> - 2008-08-29 23:12:05
|
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:@"orderedDocuments.@min.pdfView.canGoToNextPage"] boolValue]; } else if (action == @selector(allGoToPreviousPage:)) { - return NO == [[NSApp valueForKeyPath:@"orderedDocuments.pdfView.canGoToPreviousPage"] containsObject:[NSNumber numberWithBool:NO]]; + return [[NSApp valueForKeyPath:@"orderedDocuments.@min.pdfView.canGoToPreviousPage"] boolValue]; } else if (action == @selector(allGoToFirstPage:)) { - return NO == [[NSApp valueForKeyPath:@"orderedDocuments.pdfView.canGoToFirstPage"] containsObject:[NSNumber numberWithBool:NO]]; + return [[NSApp valueForKeyPath:@"orderedDocuments.@min.pdfView.canGoToFirstPage"] boolValue]; } else if (action == @selector(allGoToLastPage:)) { - return NO == [[NSApp valueForKeyPath:@"orderedDocuments.pdfView.canGoToLastPage"] containsObject:[NSNumber numberWithBool:NO]]; + return [[NSApp valueForKeyPath:@"orderedDocuments.@min.pdfView.canGoToLastPage"] 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. |