Life Cycle

From Inspired-Lua Wiki
Jump to navigation Jump to search

This image represents the "life cycle" of a ScriptApp (lua program)

NBĀ : on OS >= 3.2 (apilevel 2.0+), the event on.create disappeared. You can replace its usage by on.construction if you're not using any Nspire-specific API. If you do, you can use on.resize as a"first time" initializer (with a flag if needed)

life cycle.png

In 3.2, here's what happens, following a "Set Script" in the Software SDK:

EventsSequence.jpg

(Credits to John Powers, TI)