I have a splash stack that loads my main stack. The main stack uses a revbrowserObject and also has a sub stack. I wish to save the present state when the main stack closes so have added a button that issues the quit command. I have added the following handler :
If the handler is put in the card it works as I expect but if it is put in the stack then it is being called twice. I have created an empty stack and sub stack and the routine is only called once when it is in the stack. Can anyone explain what might be happening to the message path.on shutdownRequest
answer question "Are you sure you want to quit?" with "Yes" or "No"
if it is "Yes" then
Save stack "PDF_Rename"
pass shutdownRequest
end if
end shutdownRequest
Also is the shutdown message a synonym of shutdownRequest ? The dictionary does not list synonyms for either message but they perform the same action :
ShutdownRequest : Sent to the current card of the defaultStack when the user tries to quit the application.
Shutdown : Sent to the current card of the defaultStack when the application is quitting.
Does this mean that the ShutdownRequest will generate a Shutdown message but not the other way around?