Files
gitjs-privet-mir/game/ver-mac/src/AppDelegate.swift
T

23 lines
540 B
Swift

import AppKit
final class AppDelegate:
NSObject,
NSApplicationDelegate
{
let root = RootComponent()
let rootVM = RootVM()
func applicationDidFinishLaunching(_ notification: Notification) {
// Bring the app to the foreground
NSApp.setActivationPolicy(.regular)
NSApp.activate(ignoringOtherApps: true)
otherSetupConsoleLogging(root.ctrl, "Root")
root.setup()
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}
}