在基于非文档的应用程序中将文档标记为脏
我正在创建一个简单的 Cocoa 非文档应用程序。我想直观地显示正在处理的“文档”应用程序有未保存的更改(关闭按钮显示一个点)。
这是否可以在不将应用程序的架构更改为基于文档的情况下完成?
I'm creating a simple Cocoa non-document based application. I want to show visually that the "document" app is working with has unsaved changes (the close button displaying a dot).
Is this possible to do without changing app's architecture to document based?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
调用
[window setDocumentEdited:YES];
Call
[window setDocumentEdited:YES];