我正在使用 NSDocument
但我想禁用撤消管理器。
我该怎么做?
最佳答案
- (BOOL)isUndoRegistrationEnabled
返回值
YES(如果启用注册);否则,否。
和:
- (void)disableUndoRegistration
禁用撤消操作的记录,无论是通过 registerUndoWithTarget:selector:object: 还是通过基于调用的撤消。
关于macos - 如何禁用 NSDocument 中的 NSUndoManager?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20977185/