|
@@ -123,8 +123,16 @@ private let KMPDFViewRedactAnnotationAcross = "KMPDFViewRedactAnnotationAcross"
|
|
|
return menu
|
|
|
}
|
|
|
|
|
|
- @objc func deleteAnnotation() {
|
|
|
-
|
|
|
+ @objc func deleteAnnotation(_ sender: NSMenuItem?) {
|
|
|
+ if let annotation = sender?.representedObject as? CPDFRedactAnnotation {
|
|
|
+ removeAnnotation(annotation: annotation)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ func removeAnnotation(annotation: CPDFAnnotation) {
|
|
|
+ var annos = NSMutableArray()
|
|
|
+ annos.add(annotation)
|
|
|
+ removeAccosAnnotations(annos)
|
|
|
}
|
|
|
|
|
|
@objc func setPropertiesDefault(_ sender: NSMenuItem?) {
|