Objective-c – Hide NSWindow title bar

cocoanswindowobjective c

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

Best Answer

[yourWindow setStyleMask:NSBorderlessWindowMask];
Related Topic