12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // KMCompareView.swift
- // PDF Master
- //
- // Created by lizhe on 2023/11/14.
- //
- import Cocoa
- typealias KMCompareViewCancelAction = (_ view: KMCompareView) -> Void
- class KMCompareView: KMBaseXibView {
- @IBOutlet weak var cancelButton: NSButton!
- @IBOutlet weak var doneButton: NSButton!
-
- var cancelAction: KMCompareViewCancelAction?
-
- override func draw(_ dirtyRect: NSRect) {
- super.draw(dirtyRect)
- // Drawing code here.
- }
- }
- extension KMCompareView {
- @IBAction func cancelButtonAction(_ sender: Any) {
- guard let callBack = cancelAction else { return }
-
- callBack(self)
- }
-
- @IBAction func convertButtonAction(_ sender: Any) {
-
- }
- }
|