Revision: 3892
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3892&view=rev
Author:   hofman
Date:     2008-05-18 07:09:31 -0700 (Sun, 18 May 2008)

Log Message:
-----------
Get annotation from userInfo of notification instead of the sender.

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

Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m  2008-05-18 11:54:27 UTC (rev 3891)
+++ trunk/SKSnapshotWindowController.m  2008-05-18 14:09:31 UTC (rev 3892)
@@ -148,16 +148,16 @@
 }
 
 - (void)handleDidAddRemoveAnnotationNotification:(NSNotification 
*)notification {
-    PDFAnnotation *annotation = [notification object];
-    PDFPage *page = [[notification userInfo] objectForKey:@"page"];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey];
+    PDFPage *page = [[notification userInfo] objectForKey:SKPDFViewPageKey];
     if ([[page document] isEqual:[pdfView document]] && [self 
isPageVisible:page])
         [self setNeedsDisplayForAnnotation:annotation onPage:page];
 }
 
 - (void)handleDidMoveAnnotationNotification:(NSNotification *)notification {
     PDFAnnotation *annotation = [notification object];
-    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 ([[newPage document] isEqual:[pdfView document]]) {
         if ([self isPageVisible:oldPage])
             [self setNeedsDisplayForAnnotation:annotation onPage:oldPage];


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