PDA

View Full Version : NSBorderlessWindowMask from Scratch




zgmg
Apr 14, 2013, 09:48 AM
How would I create an app with no title bar?

Could someone/s help me create, from scratch, a Mac App that has no title bar? Thank you.



xStep
Apr 14, 2013, 05:08 PM
Haven't done that before, but look at the NSWindow documentation for the initWithContentRect methods and the style masks for them.

bumper314
Apr 15, 2013, 11:07 AM
You can set the Presentation mode in the info.plist, or you can make an NSView (not NSWindow) take over the screen.

Peter Maurer
Apr 15, 2013, 11:15 AM
I'd suggest starting with Apple's borderless window sample project, RoundTransparentWindow (https://developer.apple.com/library/mac/#samplecode/RoundTransparentWindow/Introduction/Intro.html). It's easy to understand if you know the basics, and it has a lot of helpful comments.