开发者

setActionName: method purpose for NSUndoManager class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜