I'm using NSDocument but I would like to disable the undo manager.

How can I do it?

有帮助吗?

解决方案

- (BOOL)isUndoRegistrationEnabled

Return Value

YES if registration is enabled; otherwise, NO.

and:

- (void)disableUndoRegistration

Disables the recording of undo operations, whether by registerUndoWithTarget:selector:object: or by invocation-based undo.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top