Classes | JITLib > GUI | Live Coding


a line of editing controls for a Tdef, and optionally its envir


A gui showing the Tdef's name, playing state, source state, and envir state. Optionally, its envir can also be edited.

First example

Details on the GUI elements

name button
when selected, typing the delete key will delete its Tdef.
play/stop button
indicates whether the tdef is playing:
" >"if stopped,
" _"if playing and active,
" |"if it is playing, but the stream has ended.

pause/resume button
only visible if one can pause or resume the Tdef, i.e. while it is playing.
"paus"shown when you can pause it,
"rsum"shown when you can resume it.

src button
opens a document to edit the source (function) of the Tdef.
greena source exists,
whitethe source is nil.

env button
click opens a document to edit the envir of the Tdef, option-click opens a new TdefGui with a big enough EnvirGui for the Tdef's envir.
greenthe Tdef has an envir,
whitethe envir is nil.

Class Methods

Creation Methods


Create a new JITGui that will be watching an object and display its state.



the object to watch


the number of display items to use, e.g. how many fields for text, or how many EZSliders for single-number parameters.


a parent view on which to display. If nil, a new window is created; parent can also be an existing window or a composite view.


a desired size and position where to display a JITGui. can be nil, a Point, or a Rect. JITGuis know their minimum size ( minSize ), and if bounds is nil, minSize is used. if bounds is a point or rect, it will be set to at least minSize. With a rect one can also supply a position where to display. If a point,shown size is the maximum of bounds and minSize


A flag whether to make a skipjack. If one uses a TdefGui as part of a larger gui ensemble, one may want to call checkUpdate on all of them together, not with separate skipJacks.


a list of additional information, e.g. flags about optional buttons. (this is used is some subclasses)

Inherited class methods

Instance Methods


a Tdef, or nil


the number of items in the envirGui


the parent view


the bounds of the -zone


the CompositeView within which the TdfGui is shown






the buttons


the gui for the Tdef's envir - if numItems > 0.


put an object in the gui.


(if the jitGui is in its own window)

move it to some specific location.


(if the jitGui is in its own window)

set the TdefGui's object to nil


(if the jitGui is in its own window)

and close its window.

Internal methods


a compileString that recreates the Tdef.


a compileString that recreates the Tdef's envir at edKey.


a compileString that recreates the Tdef's envir at edKeys.



Default value is nil.


the keys in use in the envir


open a document with some strings at some location. used with src button, env button.


make an envirGui within zone.

Inherited instance methods