How to hide/show a window's title bar on mouseExited/mouseEntered like QuickTime Player?

What's the correct way to automatically hide/show a window's title bar on mouse-over like QuickTime Player does, without using any "hacks" or custom views (e.g. to emulate a title bar's background and controls)?


NSWindow.hasTitleBar is read-only.


NSWindow.titleVisibility only affects the title text in the center, not the entire title bar.

Replies

Did you trye:


        self.window!.titleVisibility = NSWindow.TitleVisibility.hidden  
        self.window!.titlebarAppearsTransparent = true
  • Is this working? Any update?

Add a Comment