Hide NSWindow titlebar background like Messages.app

1.7k Views Asked by At

I'm relative new to OS X development (coming from iOS).

How can I archive a similar window like in the messages app for OS X?

I think I must create a NSWindow subclass and override something? Any idea what?

Messages.app

OS X Yosemite is the deployment target. No need to support older OS.

2

There are 2 best solutions below

0
On BEST ANSWER

Ok, I found the solution. You have to create a subclass of NSWindowController and in the windowDidLoad method, you have to put this code:

self.window!.titlebarAppearsTransparent = true

to make the whole thing work, you have to activate "Full Size Content View" in Interface Builder.

0
On

titlebarAppearsTransparent is available in OS X 10.10.

For OS X 10.9 and under,

set window.backgroundColor and add NSTexturedBackgroundWindowMask to style mask.