Skip to content

Instantly share code, notes, and snippets.

View maxgarber's full-sized avatar

Max Garber maxgarber

View GitHub Profile
@maxgarber
maxgarber / ! macOS apps from "pure" code
Last active May 15, 2020 02:51
macOS apps from pure code
--
import AppKit
import Foundation
import Cocoa
let DefaultWindowStyleMask: NSWindow.StyleMask = [
.titled,
.closable,
.miniaturizable,
.resizable
// #!/usr/bin/swift
import AppKit
let alert = NSAlert()
alert.messageText = "Message Text"
alert.informativeText = "Informative Text"
alert.addButton(withTitle: "Cancel")
alert.addButton(withTitle: "Abort")
alert.alertStyle = .warning

Keybase proof

I hereby claim:

  • I am maxgarber on github.
  • I am maxgarber (https://keybase.io/maxgarber) on keybase.
  • I have a public key ASAOCQ3G6bP7VzuRHfXgFT8JsNURqVKBallgfMDAAP8yPwo

To claim this, I am signing this object: