Below is a screenshot of the \'Squish\' app on the App Store. How am I able to make a window like that, with rounded corners and no separator between the titlebar and content?
Create a new NSWindow in Xcode, then create an outlet for it, and set the titlebarAppearsTransparent
property to true
:
@IBOutlet weak var windowBlank: NSWindow!
func applicationDidFinishLaunching(aNotification: NSNotification) {
windowBlank.titlebarAppearsTransparent = true
windowBlank.backgroundColor = NSColor.whiteColor()
}
You also have to enable the Full size content view
checkbox in the Attributes inspector
.