KMCompareContentWindowController.swift 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // KMCompareContentWindowController.swift
  3. // PDF Master
  4. //
  5. // Created by lizhe on 2023/11/20.
  6. //
  7. import Cocoa
  8. class KMCompareContentWindowController: NSWindowController {
  9. @IBOutlet weak var contentView: KMCompareContentView!
  10. var results: [CPDFCompareResults] = []
  11. var pdfDocument: CPDFDocument?
  12. var pdfOldDocumnet: CPDFDocument?
  13. var hideCloseInfo: Bool = false
  14. var saveHandle: ((KMCompareContentWindowController) -> Void)?
  15. var closeHandle: ((KMCompareContentWindowController) -> Void)?
  16. convenience init(document: CPDFDocument, oldDocument: CPDFDocument, results: [CPDFCompareResults]) {
  17. self.init(windowNibName: "KMCompareContentWindowController")
  18. self.results = results
  19. self.pdfOldDocumnet = oldDocument
  20. self.pdfDocument = document
  21. }
  22. override func windowDidLoad() {
  23. super.windowDidLoad()
  24. // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
  25. }
  26. }