How do i display the modified dot in the red button of an NSWindow

浪尽此生 提交于 2019-12-13 03:59:52

问题


Can't find the Cocoa API call to set the modified marker of a window.


回答1:


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.



来源:https://stackoverflow.com/questions/3581375/how-do-i-display-the-modified-dot-in-the-red-button-of-an-nswindow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!