Revision: 6396
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6396&view=rev
Author:   hofman
Date:     2010-03-30 17:15:17 +0000 (Tue, 30 Mar 2010)

Log Message:
-----------
register as observer for another change

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

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2010-03-30 16:49:51 UTC (rev 6395)
+++ trunk/SKMainWindowController_UI.m   2010-03-30 17:15:17 UTC (rev 6396)
@@ -1529,11 +1529,8 @@
 - (void)handleDisplayBoxChangedNotification:(NSNotification *)notification {
     [self resetThumbnails];
 }
-- (void)handleSelectionChangedNotification:(NSNotification *)notification {
-    [self updateRightStatus];
-}
 
-- (void)handleMagnificationChangedNotification:(NSNotification *)notification {
+- (void)handleSelectionOrMagnificationChangedNotification:(NSNotification 
*)notification {
     [self updateRightStatus];
 }
 
@@ -1674,7 +1671,9 @@
     // PDFView
     [nc addObserver:self selector:@selector(handlePageChangedNotification:) 
                              name:PDFViewPageChangedNotification 
object:pdfView];
-    [nc addObserver:self 
selector:@selector(handleMagnificationChangedNotification:) 
+    [nc addObserver:self 
selector:@selector(handleSelectionOrMagnificationChangedNotification:) 
+                             name:SKPDFViewSelectionChangedNotification 
object:pdfView];
+    [nc addObserver:self 
selector:@selector(handleSelectionOrMagnificationChangedNotification:) 
                              name:SKPDFViewMagnificationChangedNotification 
object:pdfView];
     [nc addObserver:self 
selector:@selector(handleDisplayBoxChangedNotification:) 
                              name:PDFViewDisplayBoxChangedNotification 
object:pdfView];


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to