Create Hello world for macOS (#1)

This commit is contained in:
kornerr committed 2026-10-17 05:55:51 +02:00
1 parent 7597b3abfa
commit 184454cf59
32 files changed
+767

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
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
}
}