-
Re: Window without the top bar
janabanana Oct 11, 2019 10:05 AM (in response to narcisfromgirona)You do this by setting the mask.
https://developer.apple.com/documentation/appkit/nswindowstylemask?language=objc
-
Re: Window without the top bar
Claude31 Oct 11, 2019 11:25 AM (in response to narcisfromgirona)In interface Builder, in the attributes inspector, set the window by disabling:
- title bar
- Close
- Minimize
- Resize
-
Re: Window without the top bar
narcisfromgirona Oct 12, 2019 5:00 AM (in response to Claude31)Thank you Claude31 I mean programmatically. Sorry, my fault. I have updated my question
-
-
Re: Window without the top bar
DelawareMathGuy Oct 12, 2019 7:54 AM (in response to narcisfromgirona)hi,
if you want to make changes in code, consider tweaking the styleMask when you create a window. check the documentation in NSWindow for
init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
the NSWindow.StyleMask struct then gives you access to the parameters you want, such as titled, closable, miniaturizable, resizable, and so on. however, it appears you can only do this when defining the window; i don't see right away that you can change them on an exisiting window.
hope that helps,
DMG