Hide NSWindow title bar

indragie picture indragie · Jan 7, 2010 · Viewed 27.3k times · Source

Is there a way to hide the titlebar in an NSWindow? I don't want to have to completely write a new custom window. I can't use NSBorderlessWindowMask because I have a bottom bar on my window, and using NSBorderlessWindowMask makes that disappear. I also tried using setContentBorderThickness:forEdge: with NSMaxYEdge and setting it to 0, that didn't work either.

Any help is appreciated

Answer

user257587 picture user257587 · Jan 23, 2010
[yourWindow setStyleMask:NSBorderlessWindowMask];