可恢复的NSWindow并非始终有效 [英] NSWindow restorable not always working

查看:94
本文介绍了可恢复的NSWindow并非始终有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经检查了我的NSWindow上的restoreor选项 当我移动应用程序并更改其大小并关闭/重新打开应用程序时,它将窗口的大小和位置设置为最后的大小和位置

I have checked the restorable option on my NSWindow When I move my application and change its size and close/reopen my application it sets the window size and position to the last size and position

但这并不是在我测试它的每台计算机上都发生.它只会在几台计算机上发生

but this doesn't happen on every computer where i test it. it only happens to a few computers

他们没有关于简历的特殊设置.

they don't have special settings regarding the resume.

有人对此有任何经验吗?

Does anybody have any experience with this?

推荐答案

但这并不是在我测试它的每台计算机上都发生.它只是 发生在几台计算机上.他们没有关于以下内容的特殊设置 简历.

But this doesn't happen on every computer where I test it. It only happens to a few computers. They don't have special settings regarding the resume.

实际上,他们这样做.查看系统偏好设置">常规"窗格.应该有一个名为退出应用程序时关闭窗口"的选项,它负责恢复行为.此外,在OS X Mountain Lion中,Apple更改了默认行为,现在该应用程序仅在您使用Command-Option-Q退出时才恢复其状态.

Actually, they do. Take a look into the System Preferences > General pane. There should be an option named "Close windows when quitting an application" which is responsible for the restoration behavior. Additionally, in OS X Mountain Lion, Apple changed default behavior and now the app restores its state only when you quit using Command-Option-Q.

因此,您可能应该检查另一台Mac上安装了哪个OS X版本,以及在常规"窗格中选择了哪个首选项.希望这会有所帮助!

So, you probably should check which OS X version is installed on another Mac, and which preference is selected in the General pane. Hope this helps!

这篇关于可恢复的NSWindow并非始终有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆