MainWindowController.swift 544 B

1234567891011121314151617181920212223
  1. //
  2. // MainWindowController.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by lxy on 2022/10/10.
  6. //
  7. import Cocoa
  8. @objcMembers class MainWindowController: NSWindowController {
  9. var mainViewController : KMMainViewController!
  10. override func windowDidLoad() {
  11. super.windowDidLoad()
  12. mainViewController = KMMainViewController.init()
  13. self.window!.contentView!.addSubview(mainViewController.view)
  14. if #available(macOS 11.0, *) {
  15. self.window?.toolbarStyle = .expanded
  16. }
  17. }
  18. }