23 lines
528 B
Swift
23 lines
528 B
Swift
import AppKit
|
|
|
|
final class HPAppDelegate:
|
|
NSObject,
|
|
NSApplicationDelegate
|
|
{
|
|
let hp = HPComponent()
|
|
let hpVM = HPVM()
|
|
|
|
func applicationDidFinishLaunching(_ notification: Notification) {
|
|
// Bring the app to the foreground
|
|
NSApp.setActivationPolicy(.regular)
|
|
NSApp.activate(ignoringOtherApps: true)
|
|
|
|
otherSetupConsoleLogging(hp.ctrl, "HP")
|
|
hp.setup()
|
|
}
|
|
|
|
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
true
|
|
}
|
|
}
|