Shutdownrequest getting lost with substacks
Posted: Tue Apr 30, 2013 1:47 pm
Hi all,
I've got a shutdown request handler that used to work fine in my standalone application. However, I've added two new stacks that appear as popups, with their own, unique menu bars - and now the app won't quit. The handler is as follows:
on shutdownRequest
showQuitMessage
dosave
hideQuitMessage
closeEverything
pass shutdownRequest
end shutdownRequest
If I launch the standalone and don't open a popup stack, it quits fine. But after either or both of the popup stacks have opened, it fails to quit.
I've used some alert messages to trace how far it gets: two lines into the showQuitMessage handler and thats it.
I've read that shutdown request can be tricky when using substacks and I've tried putting the above handler in the back, but it made no difference.
Anyone got any ideas?
I've got a shutdown request handler that used to work fine in my standalone application. However, I've added two new stacks that appear as popups, with their own, unique menu bars - and now the app won't quit. The handler is as follows:
on shutdownRequest
showQuitMessage
dosave
hideQuitMessage
closeEverything
pass shutdownRequest
end shutdownRequest
If I launch the standalone and don't open a popup stack, it quits fine. But after either or both of the popup stacks have opened, it fails to quit.
I've used some alert messages to trace how far it gets: two lines into the showQuitMessage handler and thats it.
I've read that shutdown request can be tricky when using substacks and I've tried putting the above handler in the back, but it made no difference.
Anyone got any ideas?