Instance Method

setActionName(_:)

Sets the name of the action associated with the Undo or Redo command.

Declaration

func setActionName(_ actionName: String)

Parameters

actionName

The name of the action.

Discussion

If actionName is an empty string, the action name currently associated with the menu command is removed. There is no effect if actionName is nil.

See Also

Managing the Action Name

var undoActionName: String

The name identifying the undo action.

var redoActionName: String

The name identifying the redo action.