Cloned stacks seem to share globals & events
Posted: Mon Jan 29, 2018 4:43 pm
Hello,
I've been building a simple count down timer app. Once I got it working like I want, I thought it would be nice to be able to have multiple timers so I added a "File, New" menu and in that handler, put the following code:
So far, so good. After I build my standalone, I can create new timer instances but, unfortunately, they seem to share global variables and events fired in one stack affects the others. Is there a way to clone a stack and have each stack not share globals or events?
I've been building a simple count down timer app. Once I got it working like I want, I thought it would be nice to be able to have multiple timers so I added a "File, New" menu and in that handler, put the following code:
Code: Select all
case "New"
clone stack "Count It Down"
break