Revision: 5826
http://skim-app.svn.sourceforge.net/skim-app/?rev=5826&view=rev
Author: hofman
Date: 2009-09-28 11:15:58 +0000 (Mon, 28 Sep 2009)
Log Message:
-----------
use Leopard notification from PDFView when available
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
trunk/SKPDFView.h
trunk/SKPDFView.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2009-09-28 11:10:29 UTC (rev 5825)
+++ trunk/SKMainWindowController_UI.m 2009-09-28 11:15:58 UTC (rev 5826)
@@ -1742,9 +1742,9 @@
[nc addObserver:self
selector:@selector(handleMagnificationChangedNotification:)
name:SKPDFViewMagnificationChangedNotification
object:pdfView];
[nc addObserver:self
selector:@selector(handleDisplayModeChangedNotification:)
- name:SKPDFViewDisplayModeChangedNotification
object:pdfView];
+ name:PDFViewDisplayModeChangedNotification
object:pdfView];
[nc addObserver:self
selector:@selector(handleDisplayBoxChangedNotification:)
- name:SKPDFViewDisplayBoxChangedNotification
object:pdfView];
+ name:PDFViewDisplayBoxChangedNotification
object:pdfView];
[nc addObserver:self selector:@selector(handleChangedHistoryNotification:)
name:PDFViewChangedHistoryNotification
object:pdfView];
[nc addObserver:self
selector:@selector(handleDidChangeActiveAnnotationNotification:)
Modified: trunk/SKPDFView.h
===================================================================
--- trunk/SKPDFView.h 2009-09-28 11:10:29 UTC (rev 5825)
+++ trunk/SKPDFView.h 2009-09-28 11:15:58 UTC (rev 5826)
@@ -50,9 +50,7 @@
extern NSString *SKPDFViewReadingBarDidChangeNotification;
extern NSString *SKPDFViewSelectionChangedNotification;
extern NSString *SKPDFViewMagnificationChangedNotification;
-extern NSString *SKPDFViewDisplayModeChangedNotification;
extern NSString *SKPDFViewDisplayAsBookChangedNotification;
-extern NSString *SKPDFViewDisplayBoxChangedNotification;
extern NSString *SKPDFViewAnnotationKey;
extern NSString *SKPDFViewPageKey;
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2009-09-28 11:10:29 UTC (rev 5825)
+++ trunk/SKPDFView.m 2009-09-28 11:15:58 UTC (rev 5826)
@@ -83,9 +83,7 @@
NSString *SKPDFViewReadingBarDidChangeNotification =
@"SKPDFViewReadingBarDidChangeNotification";
NSString *SKPDFViewSelectionChangedNotification =
@"SKPDFViewSelectionChangedNotification";
NSString *SKPDFViewMagnificationChangedNotification =
@"SKPDFViewMagnificationChangedNotification";
-NSString *SKPDFViewDisplayModeChangedNotification =
@"SKPDFViewDisplayModeChangedNotification";
NSString *SKPDFViewDisplayAsBookChangedNotification =
@"SKPDFViewDisplayAsBookChangedNotification";
-NSString *SKPDFViewDisplayBoxChangedNotification =
@"SKPDFViewDisplayBoxChangedNotification";
NSString *SKPDFViewAnnotationKey = @"annotation";
NSString *SKPDFViewPageKey = @"page";
@@ -234,9 +232,9 @@
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleScaleChangedNotification:)
name:PDFViewScaleChangedNotification object:self];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleViewChangedNotification:)
-
name:SKPDFViewDisplayModeChangedNotification object:self];
+
name:PDFViewDisplayModeChangedNotification object:self];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleViewChangedNotification:)
-
name:SKPDFViewDisplayBoxChangedNotification object:self];
+
name:PDFViewDisplayBoxChangedNotification object:self];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleViewChangedNotification:)
name:SKPDFViewDisplayAsBookChangedNotification object:self];
[[NSUserDefaultsController sharedUserDefaultsController] addObserver:self
forKeys:
@@ -559,7 +557,6 @@
[self relayoutEditField];
[accessibilityChildren release];
accessibilityChildren = nil;
- [[NSNotificationCenter defaultCenter]
postNotificationName:SKPDFViewDisplayModeChangedNotification object:self
userInfo:nil];
}
}
@@ -571,13 +568,6 @@
}
}
-- (void)setDisplayBox:(PDFDisplayBox)displayBox {
- if (displayBox != [self displayBox]) {
- [super setDisplayBox:displayBox];
- [[NSNotificationCenter defaultCenter]
postNotificationName:SKPDFViewDisplayBoxChangedNotification object:self
userInfo:nil];
- }
-}
-
- (NSRect)currentSelectionRect {
if (toolMode == SKSelectToolMode)
return selectionRect;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit