2018-11-25 13:12:51 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-06-17 14:56:46 +00:00
|
|
|
// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved.
|
2018-11-25 13:12:51 +00:00
|
|
|
|
|
|
|
import Cocoa
|
|
|
|
|
|
|
|
class Application: NSApplication {
|
2019-01-10 09:21:20 +00:00
|
|
|
|
2021-08-02 08:19:47 +00:00
|
|
|
private var appDelegate: AppDelegate? // swiftlint:disable:this weak_delegate
|
2019-01-10 09:21:20 +00:00
|
|
|
|
|
|
|
override init() {
|
|
|
|
super.init()
|
2018-11-25 13:12:51 +00:00
|
|
|
appDelegate = AppDelegate() // Keep a strong reference to the app delegate
|
2019-01-17 08:33:59 +00:00
|
|
|
delegate = appDelegate // Set delegate before app.run() gets called in NSApplicationMain()
|
2019-01-10 09:21:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
required init?(coder: NSCoder) {
|
|
|
|
fatalError("init(coder:) has not been implemented")
|
2018-11-25 13:12:51 +00:00
|
|
|
}
|
|
|
|
}
|