14 lines
303 B
Swift
14 lines
303 B
Swift
import AppKit
|
|
import Foundation
|
|
|
|
if CommandLine.arguments.contains("--selftest") {
|
|
MainActor.assumeIsolated { SelfTest.run() }
|
|
}
|
|
|
|
MainActor.assumeIsolated {
|
|
let application = NSApplication.shared
|
|
let appDelegate = AppDelegate()
|
|
application.delegate = appDelegate
|
|
application.run()
|
|
}
|