123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // KMCompareWindowController.swift
- // PDF Master
- //
- // Created by lizhe on 2023/11/14.
- //
- import Cocoa
- class KMCompareWindowController: KMBaseWindowController {
- @IBOutlet weak var compareView: KMCompareView!
- var filePath: String = "" {
- didSet {
- if compareView != nil {
- compareView.filePath = filePath
- }
- }
- }
-
- var fileType: KMCompareFilesType = .content {
- didSet {
- if compareView != nil {
- compareView.fileType = fileType
- }
- }
- }
-
- override func windowDidLoad() {
- super.windowDidLoad()
- // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
- compareView.filePath = filePath
- compareView.fileType = fileType
- compareView.cancelAction = { [unowned self] view in
- cancelAction?(self)
- }
- }
- }
|