Skip to content

Instantly share code, notes, and snippets.

@toastdriven
Created June 5, 2014 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toastdriven/efc336ada3bba29e00cf to your computer and use it in GitHub Desktop.
Save toastdriven/efc336ada3bba29e00cf to your computer and use it in GitHub Desktop.
import Cocoa
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet var window: NSWindow
func applicationDidFinishLaunching(aNotification: NSNotification?) {
var frame = NSMakeRect(0, 0, 200, 200)
var window = NSWindow(contentRect:frame, styleMask:NSBorderlessWindowMask, backing:NSBackingStoreType.Buffered, defer:false)
// This doesn't seem to have an effect. :/
window.backgroundColor = NSColor.blueColor()
window.makeKeyAndOrderFront(self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment