开发者

setActionName: method purpose for NSUndoManager class

开发者 https://www.devze.com 2023-01-19 12:33 出处:网络
setActionName: method description says that it set the action name for undo or redo command. But, my doubt is how th开发者_StackOverflowe undomanager use the action name set by the above method.

setActionName: method description says that it set the action name for undo or redo command. But, my doubt is how th开发者_StackOverflowe undomanager use the action name set by the above method.

Regards, iSight


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

[undoMgr setActionName:@"Cut"]

the label of the Undo menu item will change to Undo Cut.

0

精彩评论

暂无评论...
验证码 换一张
取 消