return windowManager.createNewBrowser()
}
-
- @objc func fire(_ timer: Timer) {
-
- updaters.forEach { $0() }
- }
}
// MARK: - IBActions
exit(0)
}
- NSUserNotificationCenter.default.delegate = self
- Timer.scheduledTimer(timeInterval: 0.33,
- target: self,
- selector: #selector(AppDelegate.fire(_:)),
- userInfo: nil,
- repeats: true)
+ Timer.scheduledTimer(withTimeInterval: 0.33, repeats: true) { [weak self] _ in
+
+ self?.updaters.forEach { $0() }
+ }
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {