Hi,
I have a simple routine
on setupstack
put x into fld "y"
end setupstack
that I would like to run everytime I run the app in the iOS simulator. Is there a function or message handler that is called every time the test button (or build for device) is pressed I can hook into?
Would save me having to remember to call the routine to clear everything before each test.
Thanks
Message handler called during compile
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Message handler called during compile
Yes, the test button/menu triggers the revIDEDeployAction message. You can hijack it by inserting this handler into front:
Code: Select all
on revIDEDeployAction
put x into fld "y" of MyCard of MyStack ## Or any code or other handler you want to invoke here
pass revIDEDeployAction ## Releases the message to run its course
end revIDEDeployAction
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Re: Message handler called during compile
Thank you.