CmdPeriod:
Filter:
Classes | Control

CmdPeriod : AbstractSystemAction : Object

register objects to be cleared when Cmd-. is pressed

Description

CmdPeriod allows you to register objects to perform an action when the user presses Cmd-. These objects must implement a method called -cmdPeriod which performs the necessary tasks. (You can add such a method in your custom classes.) Note that since Function implements -cmdPeriod as a synonym for -value, it is possible to register any function (and thus any arbitrary code) for evaluation when Cmd-. is pressed.

Class Methods

CmdPeriod.add(object)

From superclass: AbstractSystemAction

Registers an object to be cleared when Cmd-. is pressed. This object will stay registered until it is explicitly removed, and will thus respond to additional presses of Cmd-.

CmdPeriod.remove(object)

From superclass: AbstractSystemAction

Removes an object that was previously registered.

CmdPeriod.removeAll

From superclass: AbstractSystemAction

Removes all objects that have been registered.

CmdPeriod.doOnce(object)

Registers an object to be evaluated once, and then unregistered.

CmdPeriod.objects

CmdPeriod.objects = value

Get or set the list of objects that are called when CmdPeriod is evaluated.

CmdPeriod.era

The number of times CmdPeriod has been called since startup.

Inherited class methods

Undocumented class methods

CmdPeriod.clearClocks

CmdPeriod.clearClocks = value

CmdPeriod.freeRemote

CmdPeriod.freeRemote = value

CmdPeriod.freeServers

CmdPeriod.freeServers = value

CmdPeriod.hardRun

CmdPeriod.run

Instance Methods

Inherited instance methods

Examples