import AppKit _ = NSApplication.shared let delegate = AppDelegate() dlog("Process started. Setting application delegate and running app loop…") NSApplication.shared.delegate = delegate NSApplication.shared.run()