For Lion development, I want to programmatically make an NSWindow
fullscreen, and back to normal, exactly as if the user clicked on the fullscreen button.
I tried setStyleMask:
(which I saw can be used for checking), but it only resulted in the title bar disappearing.
在为全屏配置所有内容后,您需要在要更改的窗口上调用-toggleFullScreen:
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.