Is it BAD to use preOpenStack & OpenStack?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Is it BAD to use preOpenStack & OpenStack?
Do bad things happen if stack uses preOpenStack & OpenStack in the current version of LC?
Re: Is it BAD to use preOpenStack & OpenStack?
NO.
In many cases they are essential for getting the stack set up properly, checking preferences or making appearance settings before the main event loop of the stack proper begins to run. You just need to make sure you are doing the right setup in the right place for things to work well. Since the stack is not fully open on preOpenStack, some think cannot happen then. Those actions have to wait for the openStack phase before they can take place. Simplest method is write your script and try it out. If you get errors on a particular action, move that action to later in the process (openStack) and see if they work better there.
In many cases they are essential for getting the stack set up properly, checking preferences or making appearance settings before the main event loop of the stack proper begins to run. You just need to make sure you are doing the right setup in the right place for things to work well. Since the stack is not fully open on preOpenStack, some think cannot happen then. Those actions have to wait for the openStack phase before they can take place. Simplest method is write your script and try it out. If you get errors on a particular action, move that action to later in the process (openStack) and see if they work better there.
Re: Is it BAD to use preOpenStack & OpenStack?
Also recognise the message path and be aware that preOpenStack and openStack messages (also the "card" equivalents and close messages) may be generated in substacks. If not handled there, then they will be passed up to the mainstack script and could cause confusion if you're not expecting it.
-
- VIP Livecode Opensource Backer
- Posts: 9846
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Is it BAD to use preOpenStack & OpenStack?
No. What brings that question to mind?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Is it BAD to use preOpenStack & OpenStack?
"No. What brings that question to mind?"
preOpenStack & OpenStack used to be in the drop down menu of stack handlers, but for the last few versions it has been removed and replaced with "startup".
preOpenStack & OpenStack used to be in the drop down menu of stack handlers, but for the last few versions it has been removed and replaced with "startup".
Re: Is it BAD to use preOpenStack & OpenStack?
Hi
These messages appear in the handler list for Card Scripts. This is because these messages are initially sent to the first card when the stack is opened so they appear in that list.
There is a bug report about this
https://quality.livecode.com/show_bug.cgi?id=22747
It is currently waiting for an Expert Review but I'll flag it with the team since it has come up here.
Kind regards
Elanor
These messages appear in the handler list for Card Scripts. This is because these messages are initially sent to the first card when the stack is opened so they appear in that list.
There is a bug report about this
https://quality.livecode.com/show_bug.cgi?id=22747
It is currently waiting for an Expert Review but I'll flag it with the team since it has come up here.
Kind regards
Elanor
Elanor Buchanan
Software Developer
LiveCode
Software Developer
LiveCode