Created
November 29, 2018 11:31
-
-
Save asukakenji/b89ce54d771843100ce19d76c89b3a68 to your computer and use it in GitHub Desktop.
Revisions
-
asukakenji created this gist
Nov 29, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ import AppKit let app = NSApplication.shared app.setActivationPolicy(.regular) let window = NSWindow( contentRect: NSMakeRect(0, 0, 640, 480), styleMask: [.titled, .closable], backing: .buffered, defer: true ) window.title = "Hello, world!" window.makeKeyAndOrderFront(nil) app.activate(ignoringOtherApps: true) app.run()