Closing main stack and reopening from dock
Posted: Wed May 22, 2013 11:13 pm
I am working on my first LiveCode application and it is intended to be cross-platform.
My primary platform is Windows, and there is one behavior on Mac OS X that I haven't figured out how to handle.
When I close the main stack on Windows, for example by clicking the "X" on the main stack window, the application is terminated completely.
When I close the main stack on OS X by clicking the red little circle on the main stack window, the stack window is closed, but the app is not terminated. It just seems to be suspended, or whatever state it is in. And the app icon is still on the dock and shows that the app is active.
How can I reopen the stack window when the user clicks the app icon on the dock while the app is in this state? That's what native OS X apps seems to do, but I haven't been able to figure out what message I might need to trap or what else I might need to do to accomplish that.
Thanks for any insights!
My primary platform is Windows, and there is one behavior on Mac OS X that I haven't figured out how to handle.
When I close the main stack on Windows, for example by clicking the "X" on the main stack window, the application is terminated completely.
When I close the main stack on OS X by clicking the red little circle on the main stack window, the stack window is closed, but the app is not terminated. It just seems to be suspended, or whatever state it is in. And the app icon is still on the dock and shows that the app is active.
How can I reopen the stack window when the user clicks the app icon on the dock while the app is in this state? That's what native OS X apps seems to do, but I haven't been able to figure out what message I might need to trap or what else I might need to do to accomplish that.
Thanks for any insights!