Revision: 3804
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3804&view=rev
Author:   hofman
Date:     2008-04-23 09:47:34 -0700 (Wed, 23 Apr 2008)

Log Message:
-----------
Use class factory method.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-04-23 16:38:14 UTC (rev 3803)
+++ trunk/SKPDFView.m   2008-04-23 16:47:34 UTC (rev 3804)
@@ -2140,7 +2140,7 @@
         unsigned pageCount = [pdfDoc pageCount];
         NSRange range = NSMakeRange(0, pageCount);
         if (pageCount && ([self displayMode] == kPDFDisplaySinglePage || [self 
displayMode] == kPDFDisplayTwoUp)) {
-            NSRange range = NSMakeRange([[self currentPage] pageIndex], 1);
+            range = NSMakeRange([[self currentPage] pageIndex], 1);
             if ([self displayMode] == kPDFDisplayTwoUp) {
                 range.length = 2;
                 if ((unsigned)[self displaysAsBook] != (range.location % 2)) {
@@ -2156,7 +2156,7 @@
         
         NSMutableArray *children = [NSMutableArray array];
         
-        [children addObject:[[[SKAccessibilityPDFDisplayViewElement alloc] 
initWithParent:[self documentView]] autorelease]];
+        [children addObject:[SKAccessibilityPDFDisplayViewElement 
elementWithParent:[self documentView]]];
         
         unsigned int i;
         for (i = range.location; i < NSMaxRange(range); i++) {


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 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to