Revision: 3149
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3149&view=rev
Author:   hofman
Date:     2007-11-04 12:02:23 -0800 (Sun, 04 Nov 2007)

Log Message:
-----------
Use own superclass instead of hard coding the superclass.

Modified Paths:
--------------
    trunk/BDSKZoomablePDFView.m
    trunk/SKApplication.m
    trunk/SKPDFView.m
    trunk/SKSecondaryPDFView.m

Modified: trunk/BDSKZoomablePDFView.m
===================================================================
--- trunk/BDSKZoomablePDFView.m 2007-11-04 19:45:50 UTC (rev 3148)
+++ trunk/BDSKZoomablePDFView.m 2007-11-04 20:02:23 UTC (rev 3149)
@@ -325,7 +325,7 @@
     if ([menuItem action] == @selector(doAutoFit:)) {
         [menuItem setState:[self autoFits] ? NSOnState : NSOffState];
         return YES;
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[BDSKZoomablePDFView superclass] 
instancesRespondToSelector:_cmd]) {
         return [super validateMenuItem:menuItem];
     }
     return YES;

Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m       2007-11-04 19:45:50 UTC (rev 3148)
+++ trunk/SKApplication.m       2007-11-04 20:02:23 UTC (rev 3149)
@@ -82,7 +82,7 @@
        id source = [args objectForKey:@"source"];
     
     if (lineNumber == nil || ([file isKindOfClass:[NSArray class]] && [file 
count] != 1)) {
-        if ([NSApplication instancesRespondToSelector:_cmd])
+        if ([[SKApplication superclass] instancesRespondToSelector:_cmd])
             [super handleOpenScriptCommand:command];
         return;
     }

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2007-11-04 19:45:50 UTC (rev 3148)
+++ trunk/SKPDFView.m   2007-11-04 20:02:23 UTC (rev 3149)
@@ -648,7 +648,7 @@
     id document = [[[self window] windowController] document];
     if ([document respondsToSelector:_cmd])
         [document printDocument:sender];
-    else if ([PDFView instancesRespondToSelector:_cmd])
+    else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd])
         [(id)super printDocument:sender];
 }
 
@@ -1496,7 +1496,7 @@
     NSString *pboardType = [pboard availableTypeFromArray:[NSArray 
arrayWithObjects:NSColorPboardType, SKLineStylePboardType, nil]];
     if (pboardType) {
         return [self draggingUpdated:sender];
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
         dragOp = [super draggingEntered:sender];
     }
     return dragOp;
@@ -1534,7 +1534,7 @@
             [self setNeedsDisplayForAnnotation:highlightAnnotation];
             highlightAnnotation = nil;
         }
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
         dragOp = [super draggingUpdated:sender];
     }
     return dragOp;
@@ -1548,7 +1548,7 @@
             [self setNeedsDisplayForAnnotation:highlightAnnotation];
             highlightAnnotation = nil;
         }
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
         [super draggingExited:sender];
     }
 }
@@ -1582,7 +1582,7 @@
             [self setNeedsDisplayForAnnotation:highlightAnnotation];
             highlightAnnotation = nil;
         }
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
         performedDrag = [super performDragOperation:sender];
     }
     return performedDrag;

Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m  2007-11-04 19:45:50 UTC (rev 3148)
+++ trunk/SKSecondaryPDFView.m  2007-11-04 20:02:23 UTC (rev 3149)
@@ -355,7 +355,7 @@
     } else if ([menuItem action] == 
@selector(toggleDisplayPageBreaksFromMenu:)) {
         [menuItem setState:[self displaysPageBreaks] ? NSOnState : NSOffState];
         return YES;
-    } else if ([PDFView instancesRespondToSelector:_cmd]) {
+    } else if ([[SKSecondaryPDFView superclass] 
instancesRespondToSelector:_cmd]) {
         return [super validateMenuItem:menuItem];
     }
     return YES;


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to