6.7 and 7.0 won't QUIT

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Chipp
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 27
Joined: Sat Apr 08, 2006 9:50 am
Location: Austin, TX
Contact:

6.7 and 7.0 won't QUIT

Post by Chipp » Thu Nov 06, 2014 3:42 am

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.
[url=http://www.altuit.com/webs/hemingway/Products/AltuitProducts.htm]Visit Altuit, creator of ButtonGadget and other Rev add-ons[/url]

pthirkell
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 93
Joined: Tue Nov 17, 2009 6:47 pm
Location: Wellington, New Zealand

Re: 6.7 and 7.0 won't QUIT

Post by pthirkell » Thu Nov 06, 2014 10:57 am

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.

Chipp
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 27
Joined: Sat Apr 08, 2006 9:50 am
Location: Austin, TX
Contact:

Re: 6.7 and 7.0 won't QUIT

Post by Chipp » Fri Nov 07, 2014 9:30 pm

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.
[url=http://www.altuit.com/webs/hemingway/Products/AltuitProducts.htm]Visit Altuit, creator of ButtonGadget and other Rev add-ons[/url]

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

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

Post by jmburnod » Sat Jan 17, 2015 11:11 am

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

Post Reply

Return to “Talking LiveCode”