如何反转 [NSWindow Zoom] 方法调用?
也许我对 RTFM 太盲目了,但是调用什么方法来反转缩放(最大化窗口)并使窗口恢复到旧状态。
Maybe i'm just too blind to RTFM but what is the method to call to reverse the zoom (maximizing of a window) and bring the window back into the old state.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据
zoom:
方法的文档(注意:
),与zoom:
相反> 是缩放:
:如果处于用户状态(未缩放),则会更改为标准状态(缩放),如果处于标准状态(缩放),则会更改为用户状态(未缩放)。
该文档还指出:
如果您以标准状态启动窗口,就会发生这种情况;由于它从未处于任何其他状态,因此它无法恢复到任何状态。
According to the documentation for the
zoom:
method (note the:
), the inverse ofzoom:
iszoom:
:If it's in the user state (not zoomed), it'll change to the standard state (zoom), and if it's in the standard state (zoomed), it'll change to the user state (unzoom).
The documentation also notes:
This is what will happen if you started the window out in its standard state; since it was never in any other state, there is nothing for it to unzoom back to.