Revision: 5629
http://skim-app.svn.sourceforge.net/skim-app/?rev=5629&view=rev
Author: hofman
Date: 2009-09-02 19:35:05 +0000 (Wed, 02 Sep 2009)
Log Message:
-----------
use apple method to get visible page range if available
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2009-09-02 19:31:27 UTC (rev 5628)
+++ trunk/SKSnapshotWindowController.m 2009-09-02 19:35:05 UTC (rev 5629)
@@ -265,6 +265,8 @@
- (BOOL)isPageVisible:(PDFPage *)page {
if ([[page document] isEqual:[pdfView document]] == NO)
return NO;
+ if ([pdfView respondsToSelector:@selector(visiblePages)])
+ return [[pdfView visiblePages] containsObject:page];
NSView *clipView = [[[pdfView documentView] enclosingScrollView]
contentView];
NSRect visibleRect = [clipView convertRect:[clipView visibleRect]
toView:pdfView];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit