Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setActionName: method purpose for NSUndoManager class

Tags:

cocoa

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

Regards, iSight

like image 745
boom Avatar asked Dec 05 '25 07:12

boom


1 Answers

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.

like image 177
Gus Eulalio Avatar answered Dec 08 '25 19:12

Gus Eulalio