Question

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

How can I do it?

Was it helpful?

Solution

- (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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top