macOS: Application: Fix comment

This commit is contained in:
Roopesh Chander 2019-01-17 14:03:59 +05:30
parent 19a738b509
commit 50f6ff311c
1 changed files with 1 additions and 3 deletions

View File

@ -19,12 +19,10 @@ class Application: NSApplication {
private var appDelegate: AppDelegate? //swiftlint:disable:this weak_delegate
// We use a custom Application class to be able to set the app delegate
// before app.run() gets called in NSApplicationMain().
override init() {
super.init()
appDelegate = AppDelegate() // Keep a strong reference to the app delegate
delegate = appDelegate
delegate = appDelegate // Set delegate before app.run() gets called in NSApplicationMain()
}
required init?(coder: NSCoder) {