Page 1 of 1

Best way to handle the shutdownRequest message

Posted: Tue Jul 15, 2014 1:05 pm
by Mag
Hi all! I'm creating a standalone on Mac, which has it's own memubar. I had some difficulties to run commands before the app actually quits. For example the save this stack sometimes don't execute. Is there some particular best practices when implementing shutdownRequest in standalone?

Re: Best way to handle the shutdownRequest message

Posted: Tue Jul 15, 2014 1:45 pm
by jmburnod
Hi Mag
For example the save this stack sometimes don't execute
Standalone can't be saved. It keep the state it has when is compiled.
You have to save it to external files
Best regards
Jean-Marc

Re: Best way to handle the shutdownRequest message

Posted: Mon Jul 21, 2014 1:11 am
by Mag
Hi Jean-Marc,

thank you.

Sorry, I forget to say that I'm working to an app that handles documents and save them as stacks.

The problem is that I have difficulties to handle shutDownRequest, closeStack, closeCard, menu handlers (Command-W, command-Q)...

Is there some best practices to follow?