|
@@ -198,7 +198,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
|
|
|
CPDFAnnotation *newActiveAnnotation = nil;
|
|
|
for (CPDFAnnotation *annotation in annotations) {
|
|
|
- if ([annotation hitTest:point] && [annotation annotationShouldDisplay]) {
|
|
|
+ if ([annotation hitTest:point] && [annotation isHidden]) {
|
|
|
newActiveAnnotation = annotation;
|
|
|
break;
|
|
|
}
|
|
@@ -2616,7 +2616,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
id annotations = [page annotations];
|
|
|
|
|
|
for (CPDFAnnotation *annotation in annotations) {
|
|
|
- if ([annotation hitTest:point] && [annotation annotationShouldDisplay] ) {
|
|
|
+ if ([annotation hitTest:point] && [annotation isHidden] ) {
|
|
|
newActiveAnnotation = annotation;
|
|
|
break;
|
|
|
}
|
|
@@ -2663,7 +2663,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
if ([self.activeAnnotation page] == page &&
|
|
|
[self.activeAnnotation isResizable] &&
|
|
|
[self.activeAnnotation resizeHandleForPoint:point scaleFactor:[self scaleFactor]] != 0 &&
|
|
|
- [self.activeAnnotation annotationShouldDisplay]) {
|
|
|
+ [self.activeAnnotation isHidden]) {
|
|
|
*annotation = self.activeAnnotation;
|
|
|
return YES;
|
|
|
}
|
|
@@ -3075,7 +3075,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
theEvent = [[self window] nextEventMatchingMask:eventMask];
|
|
|
if ([theEvent type] == NSEventTypeLeftMouseUp) {
|
|
|
for(CPDFAnnotation *annotation in [activePage annotations]){
|
|
|
- if ([annotation annotationShouldDisplay] && NSIntersectsRect(annotation.bounds, selectBounds) &&
|
|
|
+ if ([annotation isHidden] && NSIntersectsRect(annotation.bounds, selectBounds) &&
|
|
|
![annotation isKindOfClass:[CPDFLinkAnnotation class]] &&
|
|
|
![annotation isKindOfClass:[CPDFButtonWidgetAnnotation class]] &&
|
|
|
![annotation isKindOfClass:[CPDFTextWidgetAnnotation class]] &&
|