The 'startup' message not working in IDE
paul at researchware.com
Wed Jun 8 16:23:32 EDT 2016
On 6/8/2016 4:14 PM, Monte Goulding wrote:
> This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that.
Yes, but should the IDE count as the "first stack" opened? I would argue
that it should not. The first stack opened should always be the first
USER stack opened as that is what happens in a Standalone - the IDE is
not bundled into the standalone.
The problem with substituting preOpenStack for startup is that
preOpenStack could be invoked more than once after starting up, but
startup is sent only once.
I realize there are work-around for startup not being sent when I open a
project in the IDE, but it really seem to me it should be passed by the
IDE. If it would be received by my stack in a standalone, it should be
received by my stack in the IDE.
More information about the Use-livecode