import Cocoa
-private extension Selector {
-
- static let fireInAppDelegate = #selector(AppDelegate.fire(_:))
-
-}
-
@NSApplicationMain
final class AppDelegate: NSObject {
// swiftlint:disable:next force_cast
return NSApplication.shared.delegate as! AppDelegate
}
-
+
let appNameForUserAgent: String = "KCD(1.9b17) is not Safari/603.3.8"
let fleetManager: FleetManager = FleetManager()
guard let path = Bundle.main.path(forResource: "RemoveDatabaseFileAndRestart", ofType: "app") else {
- print("Can not find RemoveDatabaseFileAndRestart.app")
- return
+ return Logger.shared.log("Can not find RemoveDatabaseFileAndRestart.app")
}
let process = Process()
NSUserNotificationCenter.default.delegate = self
Timer.scheduledTimer(timeInterval: 0.33,
target: self,
- selector: .fireInAppDelegate,
+ selector: #selector(AppDelegate.fire(_:)),
userInfo: nil,
repeats: true)
}