如何在NSWindow的红色按钮中显示修改的点 [英] How do i display the modified dot in the red button of an NSWindow
本文介绍了如何在NSWindow的红色按钮中显示修改的点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法找到Cocoa API调用来设置窗口的修改标记。
解决方案
如果没有,并且你使用NSWindowController,你应该使用它的 setDocumentEdited:
method。
如果不使用窗口控制器,请使用NSWindow的 setDocumentEdited:
p>
Can't find the Cocoa API call to set the modified marker of a window.
解决方案
If you’re using the NSDocument architecture it should happen automatically.
If not, and you’re using NSWindowController, you should use its setDocumentEdited:
method.
If you’re not using a window controller, use NSWindow’s setDocumentEdited:
method.
这篇关于如何在NSWindow的红色按钮中显示修改的点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文