Best way to handle the shutdownRequest message

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Best way to handle the shutdownRequest message

Post by Mag » Tue Jul 15, 2014 1:05 pm

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?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Best way to handle the shutdownRequest message

Post by jmburnod » Tue Jul 15, 2014 1:45 pm

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
https://alternatic.ch

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Best way to handle the shutdownRequest message

Post by Mag » Mon Jul 21, 2014 1:11 am

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?

Post Reply