Hide menubar and dock after fullscreen video in WebView
I have a cocoa application which is a fullscree开发者_如何学编程n webbrowser using WebView. Initially the menubar and dock are hidden, and cannot be accessed, which is how I want it, but after a fullscreen window such as a video is displayed, the menubar and dock reappear and stay there.
Any idea how to prevent them from reappearing?
I expect that the video player hid the already hidden menubar & dock when it went full screen. Then when it finished, it showed them again.
You'll probably have to hide them again yourself after the video is done..
Ah, got it. SetSystemUIMode is my friend. I was just searching for the wrong thing on google, that's why I didn't see it.
精彩评论