AppDelegate.swift 691 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // AppDelegate.swift
  3. // KdanAuto
  4. //
  5. // Created by 朱东勇 on 2022/11/17.
  6. //
  7. import Cocoa
  8. import ComPDFKit_Conversion
  9. @main
  10. class AppDelegate: NSObject, NSApplicationDelegate {
  11. func applicationDidFinishLaunching(_ aNotification: Notification) {
  12. // Insert code here to initialize your application
  13. CPDFConvertKit.setLicenseKey(KMComPDFKit_Conversion_FreeKey, secret: KMComPDFKit_Conversion_FreeSecret)
  14. }
  15. func applicationWillTerminate(_ aNotification: Notification) {
  16. // Insert code here to tear down your application
  17. }
  18. func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
  19. return true
  20. }
  21. }