mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-13 12:09:05 +00:00
13b720442d
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
20 lines
564 B
Swift
20 lines
564 B
Swift
// SPDX-License-Identifier: MIT
|
|
// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved.
|
|
|
|
import Cocoa
|
|
|
|
class Application: NSApplication {
|
|
|
|
private var appDelegate: AppDelegate? //swiftlint:disable:this weak_delegate
|
|
|
|
override init() {
|
|
super.init()
|
|
appDelegate = AppDelegate() // Keep a strong reference to the app delegate
|
|
delegate = appDelegate // Set delegate before app.run() gets called in NSApplicationMain()
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|