Files
__mahjong/ogs-blue/ver-mac/src/AppDelegate.swift
T
2026-10-23 16:00:37 +03:00

27 lines
684 B
Swift

import AppKit
final class AppDelegate:
NSObject,
NSApplicationDelegate
{
let blue = BlueComponent()
let blueVM = BlueVM()
let render = RenderComponent()
let renderVM = RenderVM()
func applicationDidFinishLaunching(_ notification: Notification) {
// Bring the app to the foreground
NSApp.setActivationPolicy(.regular)
NSApp.activate(ignoringOtherApps: true)
otherSetupConsoleLogging(blue.ctrl, "Blue")
blue.setup()
otherSetupConsoleLogging(render.ctrl, "Render")
render.setup()
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}
}