Joy Online Manual
NAME |
mainInterp - Main interpreter |
SYNOPSIS |
mainInterp
DESCRIPTION |
The Joy JavaScript framework includes an Objective-C class ITKJSInterp that wraps the functionality of the JavaScript C API in an Objective-C class. Its most important method is eval: which evaluates its argument as JavaScript code and returns the result.
The global variable mainInterp points to the ITKJSInterp instance that represents the main interpreter. That is the first JavaScript interpreter created by the application, e.g. in the start-up code of a Joy application or when loading the Joy palette into InterfaceBuilder. You cannot release the main interpreter. |
EXAMPLE |
js> mainInterp
(ITKJSInterp *)0x2385f4
js> [mainInterp showCommandWindow: self]
SEE ALSO |
Index |