|
@@ -244,8 +244,7 @@ NSNotificationName const CPDFListViewDisplayModeChangeNotification = @"CPDFListV
|
|
|
//
|
|
|
[super setDocument:document];
|
|
|
|
|
|
- [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetPDFToolTipRects) object:nil];
|
|
|
- [self performSelector:@selector(resetPDFToolTipRects) withObject:nil afterDelay:2];
|
|
|
+ [self resetPDFToolTipRectsForAfterDelay];
|
|
|
|
|
|
[self.window makeFirstResponder:self];
|
|
|
|
|
@@ -318,7 +317,7 @@ NSNotificationName const CPDFListViewDisplayModeChangeNotification = @"CPDFListV
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewToolModeChangeNotification object:self];
|
|
|
});
|
|
|
[self resetPDFViewAnnotation];
|
|
|
- [self resetPDFToolTipRects];
|
|
|
+ [self resetPDFToolTipRectsForAfterDelay];
|
|
|
|
|
|
if(isDisplayAnnotationView)
|
|
|
[self setNeedsDisplayAnnotationViewForVisiblePages];
|
|
@@ -1185,7 +1184,7 @@ NSNotificationName const CPDFListViewDisplayModeChangeNotification = @"CPDFListV
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:CPDFListViewDidAddAnnotationNotification object:self userInfo:[NSDictionary dictionaryWithObjectsAndKeys:page, CPDFListViewPageKey, annotation, CPDFListViewAnnotationKey, nil]];
|
|
|
});
|
|
|
|
|
|
- [self resetPDFToolTipRects];
|
|
|
+ [self resetPDFToolTipRectsForAfterDelay];
|
|
|
if([self.pdfListViewDelegate respondsToSelector:@selector(PDFListViewAddAnnotations:forAddAnnotations:inPage:)])
|
|
|
[self.pdfListViewDelegate PDFListViewAddAnnotations:self forAddAnnotations:@[annotation] inPage:page];
|
|
|
}
|
|
@@ -1216,7 +1215,7 @@ NSNotificationName const CPDFListViewDisplayModeChangeNotification = @"CPDFListV
|
|
|
|
|
|
[[[self undoManager] prepareWithInvocationTarget:self] addAnnotation:wasAnnotation toPage:page];
|
|
|
if ([wasAnnotation isNote]) {
|
|
|
- [self resetPDFToolTipRects];
|
|
|
+ [self resetPDFToolTipRectsForAfterDelay];
|
|
|
}
|
|
|
[page removeAnnotation:wasAnnotation];
|
|
|
[self annotationsChangedOnPage:page];
|
|
@@ -1613,9 +1612,10 @@ NSNotificationName const CPDFListViewDisplayModeChangeNotification = @"CPDFListV
|
|
|
}
|
|
|
|
|
|
- (void)handlePageChangedNotification:(NSNotification *)notification {
|
|
|
- if ([self displayMode] == kPDFDisplaySinglePage || [self displayMode] == kPDFDisplayTwoUp) {
|
|
|
- [self resetPDFToolTipRects];
|
|
|
+ if (self.isSinglePageMode || self.isTwoPageMode) {
|
|
|
+ [self resetPDFToolTipRectsForAfterDelay];
|
|
|
}
|
|
|
+
|
|
|
self.copyCount = 0;
|
|
|
}
|
|
|
|