AppDelegate.swift 703 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // AppDelegate.swift
  3. // PDF Office Pro
  4. //
  5. // Created by Niehaoyu on 2022/9/23.
  6. //
  7. import Cocoa
  8. import KMAdvertisement
  9. @main
  10. class AppDelegate: NSObject, NSApplicationDelegate {
  11. func applicationWillFinishLaunching(_ notification: Notification) {
  12. ComPDFUIConfig.initializeUIConfig();
  13. }
  14. func applicationDidFinishLaunching(_ aNotification: Notification) {
  15. // Insert code here to initialize your application
  16. }
  17. func applicationWillTerminate(_ aNotification: Notification) {
  18. // Insert code here to tear down your application
  19. }
  20. func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
  21. return true
  22. }
  23. }