Revision: 3914
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3914&view=rev
Author:   hofman
Date:     2008-05-23 14:32:25 -0700 (Fri, 23 May 2008)

Log Message:
-----------
Add bounds accessor for snapshot, may be useful for templates, in particular 
for sorting.

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

Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m  2008-05-23 20:54:54 UTC (rev 3913)
+++ trunk/SKSnapshotWindowController.m  2008-05-23 21:32:25 UTC (rev 3914)
@@ -307,6 +307,11 @@
     }
 }
 
+- (NSRect)bounds {
+    NSView *clipView = [[[pdfView documentView] enclosingScrollView] 
contentView];
+    return [pdfView convertRect:[pdfView convertRect:[clipView bounds] 
fromView:clipView] toPage:[pdfView currentPage]];
+}
+
 - (unsigned int)pageIndex {
     return [[pdfView currentPage] pageIndex];
 }


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to