Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个基于文档的应用程序,但我没有使用撤消。如何将窗口的状态更改为“脏”和某些时间?
谢谢。
NSDocument 有一个-updateChangeCount:方法。Apple 的文档中描述了您可以传递的常量。
-updateChangeCount: