質問

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