1234567891011121314151617181920212223242526272829303132333435 |
- //
- // KMCompareSaveWindow.swift
- // PDF Reader Pro
- //
- // Created by lizhe on 2023/11/22.
- //
- import Cocoa
- class KMCompareSaveWindow: NSWindowController {
- @IBOutlet weak var saveView: KMCompareSaveView!
-
- var fileSaveFolderPath: String {
- get {
- return saveView.fileSaveFolderPath
- }
- }
-
- var cancelHandle:((_ controller: KMCompareSaveWindow) -> Void)?
- var saveHandle:((_ controller: KMCompareSaveWindow, _ saveType: Int) -> Void)?
-
- override func windowDidLoad() {
- super.windowDidLoad()
- saveView.saveHandle = { [unowned self] view, saveType in
- self.saveHandle?(self, saveType)
- }
-
- saveView.cancelHandle = { [unowned self] view in
- self.cancelHandle?(self)
- }
- }
-
- }
|