Revision: 3705
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3705&view=rev
Author:   hofman
Date:     2008-04-11 04:08:53 -0700 (Fri, 11 Apr 2008)

Log Message:
-----------
Add more string constants.

Modified Paths:
--------------
    trunk/PDFPage_SKExtensions.h
    trunk/PDFPage_SKExtensions.m
    trunk/SKBookmark.m
    trunk/SKMainWindowController.m
    trunk/SKPDFView.h
    trunk/SKPDFView.m

Modified: trunk/PDFPage_SKExtensions.h
===================================================================
--- trunk/PDFPage_SKExtensions.h        2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/PDFPage_SKExtensions.h        2008-04-11 11:08:53 UTC (rev 3705)
@@ -40,8 +40,13 @@
 #import <Quartz/Quartz.h>
 #import "NSValue_SKExtensions.h"
 
-extern NSString *SKPDFDocumentPageBoundsDidChangeNotification;
+extern NSString *SKPDFPageBoundsDidChangeNotification;
 
+extern NSString *SKPDFPagePageKey;
+extern NSString *SKPDFPageActionKey;
+extern NSString *SKPDFPageActionCrop;
+extern NSString *SKPDFPageActionRotate;
+
 @class SKDocument;
 
 @interface PDFPage (SKExtensions)

Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m        2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/PDFPage_SKExtensions.m        2008-04-11 11:08:53 UTC (rev 3705)
@@ -48,8 +48,13 @@
 #import "NSGeometry_SKExtensions.h"
 #import "SKCFCallBacks.h"
 
-NSString *SKPDFDocumentPageBoundsDidChangeNotification = 
@"SKPDFDocumentPageBoundsDidChangeNotification";
+NSString *SKPDFPageBoundsDidChangeNotification = 
@"SKPDFPageBoundsDidChangeNotification";
 
+NSString *SKPDFPagePageKey = @"page";
+NSString *SKPDFPageActionKey = @"action";
+NSString *SKPDFPageActionCrop = @"crop";
+NSString *SKPDFPageActionRotate = @"rotate";
+
 static NSString *SKAutoCropBoxMarginWidthKey = @"SKAutoCropBoxMarginWidth";
 static NSString *SKAutoCropBoxMarginHeightKey = @"SKAutoCropBoxMarginHeight";
 
@@ -358,7 +363,7 @@
         
         [self setRotation:angle];
         
-        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
+        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
                 object:[self document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"rotate", @"action", self, @"page", nil]];
     }
 }
@@ -384,7 +389,7 @@
             newBounds.size.height = 0.0;
         [self setBounds:newBounds forBox:kPDFDisplayBoxCropBox];
         
-        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
+        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
                 object:[self document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", self, @"page", nil]];
     }
 }
@@ -410,7 +415,7 @@
             newBounds.size.height = 0.0;
         [self setBounds:newBounds forBox:kPDFDisplayBoxMediaBox];
         
-        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
+        [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
                 object:[self document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", self, @"page", nil]];
     }
 }

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/SKBookmark.m  2008-04-11 11:08:53 UTC (rev 3705)
@@ -49,6 +49,8 @@
 static NSString *SKBookmarkTypeFolderString = @"folder";
 static NSString *SKBookmarkTypeSeparatorString = @"separator";
 
+static NSString *SKBookmarkPropertiesKey = @"properties";
+
 static NSString *SKBookmarkChildrenKey = @"children";
 static NSString *SKBookmarkLabelKey = @"label";
 static NSString *SKBookmarkPageIndexKey = @"pageIndex";
@@ -337,7 +339,7 @@
 }
 
 - (NSDictionary *)properties {
-    return [NSDictionary 
dictionaryWithObjectsAndKeys:SKBookmarkTypeFolderString, SKBookmarkTypeKey, 
[children valueForKey:@"properties"], SKBookmarkChildrenKey, label, 
SKBookmarkLabelKey, nil];
+    return [NSDictionary 
dictionaryWithObjectsAndKeys:SKBookmarkTypeFolderString, SKBookmarkTypeKey, 
[children valueForKey:SKBookmarkPropertiesKey], SKBookmarkChildrenKey, label, 
SKBookmarkLabelKey, nil];
 }
 
 - (int)bookmarkType {

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/SKMainWindowController.m      2008-04-11 11:08:53 UTC (rev 3705)
@@ -583,7 +583,7 @@
     [nc addObserver:self selector:@selector(handleDocumentEndPageWrite:) 
                              name:@"PDFDidEndPageWrite" object:[pdfView 
document]];
     [nc addObserver:self 
selector:@selector(handlePageBoundsDidChangeNotification:) 
-                             name:SKPDFDocumentPageBoundsDidChangeNotification 
object:[pdfView document]];
+                             name:SKPDFPageBoundsDidChangeNotification 
object:[pdfView document]];
 }
 
 - (void)unregisterForDocumentNotifications {
@@ -591,7 +591,7 @@
     [nc removeObserver:self name:@"PDFDidBeginDocumentWrite" object:[pdfView 
document]];
     [nc removeObserver:self name:@"PDFDidEndDocumentWrite" object:[pdfView 
document]];
     [nc removeObserver:self name:@"PDFDidEndPageWrite" object:[pdfView 
document]];
-    [nc removeObserver:self name:SKPDFDocumentPageBoundsDidChangeNotification 
object:[pdfView document]];
+    [nc removeObserver:self name:SKPDFPageBoundsDidChangeNotification 
object:[pdfView document]];
 }
 
 - (void)registerAsObserver {
@@ -1823,8 +1823,8 @@
     PDFPage *page = [[pdfView document] pageAtIndex:idx];
     [page setRotation:[page rotation] + rotation];
     
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
-            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"rotate", @"action", page, @"page", nil]];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
+            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:SKPDFPageActionRotate, SKPDFPageActionKey, page, 
SKPDFPagePageKey, nil]];
 }
 
 - (IBAction)rotateRight:(id)sender {
@@ -1846,8 +1846,8 @@
         [[[pdfView document] pageAtIndex:i] setRotation:[[[pdfView document] 
pageAtIndex:i] rotation] + 90];
     }
     
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
-            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"rotate", @"action", nil]];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
+            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:SKPDFPageActionRotate, SKPDFPageActionKey, nil]];
 }
 
 - (IBAction)rotateAllLeftRight:(id)sender {
@@ -1868,8 +1868,8 @@
         [[[pdfView document] pageAtIndex:i] setRotation:[[[pdfView document] 
pageAtIndex:i] rotation] - 90];
     }
     
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
-            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"rotate", @"action", nil]];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
+            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:SKPDFPageActionRotate, SKPDFPageActionKey, nil]];
 }
 
 - (void)cropPageAtIndex:(unsigned int)anIndex toRect:(NSRect)rect {
@@ -1883,8 +1883,8 @@
     rect = NSIntersectionRect(rect, [page 
boundsForBox:kPDFDisplayBoxMediaBox]);
     [page setBounds:rect forBox:kPDFDisplayBoxCropBox];
     
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
-            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", page, @"page", nil]];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
+            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:SKPDFPageActionCrop, SKPDFPageActionKey, page, 
SKPDFPagePageKey, nil]];
     
     // make sure we show the crop box
     [pdfView setDisplayBox:kPDFDisplayBoxCropBox];
@@ -1916,8 +1916,8 @@
     [undoManager setActionName:NSLocalizedString(@"Crop", @"Undo action 
name")];
     [[self document] undoableActionDoesntDirtyDocument];
     
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
-            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", nil]];
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 
+            object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:SKPDFPageActionCrop, SKPDFPageActionKey, nil]];
     
     // make sure we show the crop box
     [pdfView setDisplayBox:kPDFDisplayBoxCropBox];
@@ -3435,8 +3435,8 @@
 }
 
 - (void)handleDidAddAnnotationNotification:(NSNotification *)notification {
-    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:@"annotation"];
-    PDFPage *page = [[notification userInfo] objectForKey:@"page"];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey];
+    PDFPage *page = [[notification userInfo] objectForKey:SKPDFViewPageKey];
     
     if (annotation) {
         updatingNoteSelection = YES;
@@ -3458,8 +3458,8 @@
 }
 
 - (void)handleDidRemoveAnnotationNotification:(NSNotification *)notification {
-    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:@"annotation"];
-    PDFPage *page = [[notification userInfo] objectForKey:@"page"];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey];
+    PDFPage *page = [[notification userInfo] objectForKey:SKPDFViewPageKey];
     
     if ([[self selectedNotes] containsObject:annotation])
         [noteOutlineView deselectAll:self];
@@ -3491,8 +3491,8 @@
 }
 
 - (void)handleDidMoveAnnotationNotification:(NSNotification *)notification {
-    PDFPage *oldPage = [[notification userInfo] objectForKey:@"oldPage"];
-    PDFPage *newPage = [[notification userInfo] objectForKey:@"newPage"];
+    PDFPage *oldPage = [[notification userInfo] 
objectForKey:SKPDFViewOldPageKey];
+    PDFPage *newPage = [[notification userInfo] 
objectForKey:SKPDFViewNewPageKey];
     
     if (oldPage || newPage) {
         if (oldPage)
@@ -3513,15 +3513,15 @@
 }
 
 - (void)handleDoubleClickedAnnotationNotification:(NSNotification 
*)notification {
-    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:@"annotation"];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey];
     
     [self showNote:annotation];
 }
 
 - (void)handleReadingBarDidChangeNotification:(NSNotification *)notification {
     NSDictionary *userInfo = [notification userInfo];
-    PDFPage *oldPage = [userInfo objectForKey:@"oldPage"];
-    PDFPage *newPage = [userInfo objectForKey:@"newPage"];
+    PDFPage *oldPage = [userInfo objectForKey:SKPDFViewOldPageKey];
+    PDFPage *newPage = [userInfo objectForKey:SKPDFViewNewPageKey];
     if (oldPage)
         [self updateThumbnailAtPageIndex:[oldPage pageIndex]];
     if (newPage && [newPage isEqual:oldPage] == NO)
@@ -3530,8 +3530,8 @@
 
 - (void)handlePageBoundsDidChangeNotification:(NSNotification *)notification {
     NSDictionary *info = [notification userInfo];
-    PDFPage *page = [info objectForKey:@"page"];
-    BOOL displayChanged = [[info objectForKey:@"action"] 
isEqualToString:@"rotate"] || [pdfView displayBox] == kPDFDisplayBoxCropBox;
+    PDFPage *page = [info objectForKey:SKPDFPagePageKey];
+    BOOL displayChanged = [[info objectForKey:SKPDFPageActionKey] 
isEqualToString:SKPDFPageActionRotate] || [pdfView displayBox] == 
kPDFDisplayBoxCropBox;
     
     if (displayChanged)
         [pdfView layoutDocumentView];

Modified: trunk/SKPDFView.h
===================================================================
--- trunk/SKPDFView.h   2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/SKPDFView.h   2008-04-11 11:08:53 UTC (rev 3705)
@@ -55,6 +55,11 @@
 extern NSString *SKPDFViewDisplayAsBookChangedNotification;
 extern NSString *SKPDFViewDisplayBoxChangedNotification;
 
+extern NSString *SKPDFViewAnnotationKey;
+extern NSString *SKPDFViewPageKey;
+extern NSString *SKPDFViewOldPageKey;
+extern NSString *SKPDFViewNewPageKey;
+
 extern NSString *SKSkimNotePboardType;
 
 typedef enum _SKToolMode {

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-04-11 10:23:46 UTC (rev 3704)
+++ trunk/SKPDFView.m   2008-04-11 11:08:53 UTC (rev 3705)
@@ -82,6 +82,11 @@
 NSString *SKPDFViewDisplayAsBookChangedNotification = 
@"SKPDFViewDisplayAsBookChangedNotification";
 NSString *SKPDFViewDisplayBoxChangedNotification = 
@"SKPDFViewDisplayBoxChangedNotification";
 
+NSString *SKPDFViewAnnotationKey = @"annotation";
+NSString *SKPDFViewPageKey = @"page";
+NSString *SKPDFViewOldPageKey = @"oldPage";
+NSString *SKPDFViewNewPageKey = @"newPage";
+
 NSString *SKSkimNotePboardType = @"SKSkimNotePboardType";
 
 static NSString *SKSmallMagnificationWidthKey = @"SKSmallMagnificationWidth";
@@ -612,7 +617,7 @@
 }
 
 - (void)toggleReadingBar {
-    NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], @"oldPage", nil];
+    NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], SKPDFViewOldPageKey, nil];
     if (readingBar) {
         [readingBar release];
         readingBar = nil;
@@ -623,7 +628,7 @@
         [readingBar goToNextLine];
         [self setNeedsDisplay:YES];
         [self scrollRect:NSInsetRect([readingBar currentBounds], 0.0, -20.0) 
inPageToVisible:[readingBar page]];
-        [userInfo setValue:[readingBar page] forKey:@"newPage"];
+        [userInfo setValue:[readingBar page] forKey:SKPDFViewNewPageKey];
     }
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:userInfo];
 }
@@ -1820,7 +1825,7 @@
         [newAnnotation release];
         if (annotationType == SKAnchoredNote)
             [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewAnnotationDoubleClickedNotification object:self 
-                userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:activeAnnotation, @"annotation", nil]];
+                userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:activeAnnotation, SKPDFViewAnnotationKey, nil]];
     } else NSBeep();
 }
 
@@ -1831,7 +1836,7 @@
     [page addAnnotation:annotation];
     [self setNeedsDisplayForAnnotation:annotation];
     [self resetHoverRects];
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewDidAddAnnotationNotification object:self 
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:page, @"page", annotation, 
@"annotation", nil]];                
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewDidAddAnnotationNotification object:self 
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:page, SKPDFViewPageKey, 
annotation, SKPDFViewAnnotationKey, nil]];                
 }
 
 - (void)removeActiveAnnotation:(id)sender{
@@ -1867,7 +1872,7 @@
     if (wasNote)
         [self resetHoverRects];
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewDidRemoveAnnotationNotification object:self 
-        userInfo:[NSDictionary dictionaryWithObjectsAndKeys:wasAnnotation, 
@"annotation", page, @"page", nil]];
+        userInfo:[NSDictionary dictionaryWithObjectsAndKeys:wasAnnotation, 
SKPDFViewAnnotationKey, page, SKPDFViewPageKey, nil]];
     [wasAnnotation release];
 }
 
@@ -1883,7 +1888,7 @@
     [self setNeedsDisplayForAnnotation:annotation];
     if ([[annotation type] isEqualToString:SKNoteString])
         [self resetHoverRects];
-    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewDidMoveAnnotationNotification object:self 
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:oldPage, @"oldPage", page, 
@"newPage", annotation, @"annotation", nil]];                
+    [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewDidMoveAnnotationNotification object:self 
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:oldPage, 
SKPDFViewOldPageKey, page, SKPDFViewNewPageKey, annotation, 
SKPDFViewAnnotationKey, nil]];                
 }
 
 - (void)editThisAnnotation:(id)sender {
@@ -1921,7 +1926,7 @@
         [[SKPDFHoverWindow sharedHoverWindow] orderOut:self];
         
                [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewAnnotationDoubleClickedNotification object:self 
-            userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:activeAnnotation, @"annotation", nil]];
+            userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:activeAnnotation, SKPDFViewAnnotationKey, nil]];
         
     } else if ([type isEqualToString:SKFreeTextString]) {
         
@@ -2224,7 +2229,7 @@
             if (readingBar) {
                 [self setNeedsDisplay:YES];
                 [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification 
-                    object:self userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], @"oldPage", [readingBar page], 
@"newPage", nil]];
+                    object:self userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], SKPDFViewOldPageKey, 
[readingBar page], SKPDFViewNewPageKey, nil]];
             }
         }
     } else {
@@ -2667,7 +2672,7 @@
 
 - (void)doMoveReadingBarForKey:(unichar)eventChar {
     BOOL moved = NO;
-    NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], @"oldPage", nil];
+    NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], SKPDFViewOldPageKey, nil];
     if (eventChar == NSDownArrowFunctionKey)
         moved = [readingBar goToNextLine];
     else if (eventChar == NSUpArrowFunctionKey)
@@ -2685,7 +2690,7 @@
         }
         [self scrollRect:rect inPageToVisible:[readingBar page]];
         [self setNeedsDisplay:YES];
-        [userInfo setObject:[readingBar page] forKey:@"newPage"];
+        [userInfo setObject:[readingBar page] forKey:SKPDFViewNewPageKey];
         [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:userInfo];
     }
 }
@@ -2701,7 +2706,7 @@
         [readingBar setNumberOfLines:numberOfLines];
         [self setNeedsDisplayInRect:[readingBar currentBoundsForBox:[self 
displayBox]] ofPage:[readingBar page]];
         [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
-            userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[readingBar 
page], @"oldPage", [readingBar page], @"newPage", nil]];
+            userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[readingBar 
page], SKPDFViewOldPageKey, [readingBar page], SKPDFViewNewPageKey, nil]];
     }
 }
 
@@ -3314,7 +3319,7 @@
 - (void)doDragReadingBarWithEvent:(NSEvent *)theEvent {
     PDFPage *page = [readingBar page];
     NSArray *lineBounds = [page lineBounds];
-       NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:page, @"oldPage", nil];
+       NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:page, SKPDFViewOldPageKey, nil];
     
     NSPoint lastMouseLoc = [self convertPoint:[theEvent locationInWindow] 
fromView:nil];
     NSPoint point = [self convertPoint:lastMouseLoc toPage:page];
@@ -3372,12 +3377,12 @@
         currentLine = MAX(0, currentLine);
         
         if ([page isEqual:[readingBar page]] == NO || currentLine != 
[readingBar currentLine]) {
-            [userInfo setObject:[readingBar page] forKey:@"oldPage"];
+            [userInfo setObject:[readingBar page] forKey:SKPDFViewOldPageKey];
             [self setNeedsDisplayInRect:[readingBar currentBoundsForBox:[self 
displayBox]] ofPage:[readingBar page]];
             [readingBar setPage:currentPage];
             [readingBar setCurrentLine:currentLine];
             [self setNeedsDisplayInRect:[readingBar currentBoundsForBox:[self 
displayBox]] ofPage:[readingBar page]];
-            [userInfo setObject:[readingBar page] forKey:@"newPage"];
+            [userInfo setObject:[readingBar page] forKey:SKPDFViewNewPageKey];
             [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:userInfo];
             lastMouseLoc = mouseLocInDocument;
         }
@@ -3392,7 +3397,7 @@
     PDFPage *page = [readingBar page];
     int firstLine = [readingBar currentLine];
     NSArray *lineBounds = [page lineBounds];
-       NSDictionary *userInfo = [NSDictionary 
dictionaryWithObjectsAndKeys:page, @"oldPage", page, @"newPage", nil];
+       NSDictionary *userInfo = [NSDictionary 
dictionaryWithObjectsAndKeys:page, SKPDFViewOldPageKey, page, 
SKPDFViewNewPageKey, nil];
     
     [[NSCursor resizeUpDownCursor] push];
     


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