Created
June 5, 2014 04:00
-
-
Save toastdriven/efc336ada3bba29e00cf to your computer and use it in GitHub Desktop.
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 characters
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