Revision: 5679
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5679&view=rev
Author:   hofman
Date:     2009-09-04 21:57:00 +0000 (Fri, 04 Sep 2009)

Log Message:
-----------
use class and notification names that are now available

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2009-09-04 20:03:40 UTC (rev 5678)
+++ trunk/SKMainWindowController.m      2009-09-04 21:57:00 UTC (rev 5679)
@@ -2113,20 +2113,20 @@
 - (void)registerForDocumentNotifications {
     NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
     [nc addObserver:self selector:@selector(handleDocumentBeginWrite:) 
-                             name:@"PDFDidBeginDocumentWrite" object:[pdfView 
document]];
+                             name:PDFDocumentDidBeginWriteNotification 
object:[pdfView document]];
     [nc addObserver:self selector:@selector(handleDocumentEndWrite:) 
-                             name:@"PDFDidEndDocumentWrite" object:[pdfView 
document]];
+                             name:PDFDocumentDidEndWriteNotification 
object:[pdfView document]];
     [nc addObserver:self selector:@selector(handleDocumentEndPageWrite:) 
-                             name:@"PDFDidEndPageWrite" object:[pdfView 
document]];
+                             name:PDFDocumentDidEndPageWriteNotification 
object:[pdfView document]];
     [nc addObserver:self 
selector:@selector(handlePageBoundsDidChangeNotification:) 
                              name:SKPDFPageBoundsDidChangeNotification 
object:[pdfView document]];
 }
 
 - (void)unregisterForDocumentNotifications {
     NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
-    [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:PDFDocumentDidBeginWriteNotification 
object:[pdfView document]];
+    [nc removeObserver:self name:PDFDocumentDidEndWriteNotification 
object:[pdfView document]];
+    [nc removeObserver:self name:PDFDocumentDidEndPageWriteNotification 
object:[pdfView document]];
     [nc removeObserver:self name:SKPDFPageBoundsDidChangeNotification 
object:[pdfView document]];
 }
 

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2009-09-04 20:03:40 UTC (rev 5678)
+++ trunk/SKPDFView.m   2009-09-04 21:57:00 UTC (rev 5679)
@@ -1592,7 +1592,7 @@
 // we cannot use PDFAction and subclasses, because those are Leopard only
 - (void)performAction:(id)action {
     // PDFView does not handle the PDFActionRemoteGoTo, so we do it
-    if ([action isKindOfClass:NSClassFromString(@"PDFActionRemoteGoTo")]) {
+    if ([action isKindOfClass:[PDFActionRemoteGoTo class]]) {
         NSURL *fileURL = [action URL];
         NSError *error = nil;
         NSDocumentController *sdc = [NSDocumentController 
sharedDocumentController];


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to