开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜