aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-27 19:14:15 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:28 +0530
commit95415cd917f39295118236f70987e18cf53d5065 (patch)
treed0d746598548889283ae6a91c54997146cd8a347 /WireGuard/WireGuard/UI/macOS/AppDelegate.swift
parentmacOS: Fix WireGuardNetworkExtensionmacOS target (diff)
downloadwireguard-apple-95415cd917f39295118236f70987e18cf53d5065.tar.xz
wireguard-apple-95415cd917f39295118236f70987e18cf53d5065.zip
macOS: Fix WireGuardmacOS target
- Include non-UI code from iOS while building - Add run scripts - Move files to WireGuard/UI/macOS - Set Swift-Obj-C bridging header Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/AppDelegate.swift')
-rw-r--r--WireGuard/WireGuard/UI/macOS/AppDelegate.swift22
1 files changed, 22 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
new file mode 100644
index 00000000..fb0094d1
--- /dev/null
+++ b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: MIT
+// Copyright © 2018 WireGuard LLC. All Rights Reserved.
+
+import Cocoa
+
+@NSApplicationMain
+class AppDelegate: NSObject, NSApplicationDelegate {
+
+ @IBOutlet weak var window: NSWindow!
+
+
+ func applicationDidFinishLaunching(_ aNotification: Notification) {
+ // Insert code here to initialize your application
+ }
+
+ func applicationWillTerminate(_ aNotification: Notification) {
+ // Insert code here to tear down your application
+ }
+
+
+}
+