Revision: 6744
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6744&view=rev
Author:   hofman
Date:     2010-08-27 11:41:11 +0000 (Fri, 27 Aug 2010)

Log Message:
-----------
small changes to use of some local variables in presentation option sheet

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

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2010-08-26 20:49:32 UTC 
(rev 6743)
+++ trunk/SKPresentationOptionsSheetController.m        2010-08-27 11:41:11 UTC 
(rev 6744)
@@ -109,11 +109,12 @@
     while ([notesDocumentPopUpButton numberOfItems] > 1)
         [notesDocumentPopUpButton removeItemAtIndex:[notesDocumentPopUpButton 
numberOfItems] - 1];
     
-    id doc;
+    NSDocument *doc;
+    NSDocument *document = [controller document];
     NSMutableArray *documents = [NSMutableArray array];
-    NSUInteger pageCount = [[controller pdfDocument] pageCount];
+    NSUInteger pageCount = [[document pdfDocument] pageCount];
     for (doc in [[NSDocumentController sharedDocumentController] documents]) {
-        if ([doc isPDFDocument] && doc != [controller document] && [[doc 
pdfDocument] pageCount] == pageCount)
+        if ([doc isPDFDocument] && doc != document && [[doc pdfDocument] 
pageCount] == pageCount)
             [documents addObject:doc];
     }
     NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] 
initWithKey:@"displayName" ascending:YES] autorelease];
@@ -176,7 +177,7 @@
     [typeSelectHelper setCyclesSimilarResults:NO];
     [tableView setTypeSelectHelper:typeSelectHelper];
     
-    if ([[[controller pdfView] transitionController] pageTransitions]) {
+    if ([transitionController pageTransitions]) {
         [[self undoManager] disableUndoRegistration];
         [self setSeparate:YES];
         [[self undoManager] enableUndoRegistration];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to