Page 1 of 1

6.7 and 7.0 won't QUIT

Posted: Thu Nov 06, 2014 3:42 am
by Chipp
Hi all, just a quick heads up.

Unless I'm missing something, when I build standalones in 6.7 and 7.0, the quit menuitem on OSX Yosemite doensn't work. Neither does the keyboard shortcut command-Q. I've filed a bug report, but it's probably not a good idea to create standalones in these versions until this is fixed.

FWIW, I've tried in earlier versions and it works as planned.

1. Create a new stack
2. Set standalone props to only build for Mac
3. Build standalone
4. Launch standalone and just try and quit.

Re: 6.7 and 7.0 won't QUIT

Posted: Thu Nov 06, 2014 10:57 am
by pthirkell
In the stack script include this handler or similar:

on shutdownRequest
answer "Do you want to save changes made?" with "No" or "Yes"
if it is "Yes" then closestack
pass shutdownRequest
end shutdownRequest

Also check out the "Quit" command in the dictionary. You will also probably need to ensure that the Quit command in the File menu of your menubar contains a "Quit" command in its script and is activated.

Re: 6.7 and 7.0 won't QUIT

Posted: Fri Nov 07, 2014 9:30 pm
by Chipp
pthirkell wrote:In the stack script include this handler or similar:

on shutdownRequest
answer "Do you want to save changes made?" with "No" or "Yes"
if it is "Yes" then closestack
pass shutdownRequest
end shutdownRequest

Also check out the "Quit" command in the dictionary. You will also probably need to ensure that the Quit command in the File menu of your menubar contains a "Quit" command in its script and is activated.
It appears you didn't read my message or are unfamiliar with how LiveCode runs on the Mac. On the Mac, there is no way to trap the Quit handler from the menu because it is auto-inserted. Why don't you try my recipe and SEE if you can actually script it to quit from a command-Q?

FWIW, it's been logged as a bug and confirmed.

Re: 6.7 and 7.0 won't QUIT. Works on 6.7.1

Posted: Sat Jan 17, 2015 11:11 am
by jmburnod
Hi All,
Good new
I just tested the quit command with LC 6.7.1
by defaut menu: OK
by command_Q: OK
Best regards
Jean-Marc