SetActionName: method target for the NSUndoManager class

setActionName: the method description says that it sets the action name for the undo or redo command. But, I doubt how the underservice uses the action name set in the manner described above.

Regards, ISight

+3
source share
1 answer

The setActionName method: only changes the label in the Undo and Redo menu items. So if you use

[undoMgr setActionName:@"Cut"]

the menu item "Cancel" will change to "Cancel Cut".

+6
source

Source: https://habr.com/ru/post/1769147/


All Articles