Graph IDE ► Custom Application ► Controller
A controller is assigned while loading a view using the Container View or Document API. It is an instance that permits any Programming state to register with a custom application.
The controller class needs to implement the following method:
-(void)register:(id)aState withName:(const char *)aName recursionIndex:(unsigned)recursionIndex
Where the arguments are defined as follows:
aState
: The state that is being registered.
aName
: The name of the state.
recursionIndex
: The recursion index of the state. The recursion index is usually zero because most graphics will not be recursed (using the recur call).
The controller is a "glue" object that binds Graph IDE's object nodes to the objects in a custom application. See the SineTable project for its use.