Checking for 'quit' and aborting shutdown
Graham Samuel
livfoss at mac.com
Mon Dec 2 12:49:06 EST 2013
Thanks Devin, Ken's stuff is always worth reading. Sadly it doesn't work with my particular problem, but maybe nothing does. I simply have to decide whether to warn the user before quitting and live with the problem, or give up the warning. I am not sure if Apple (or Microsoft for that matter) has any guidelines on one's app being a 'good citizen' in this respect.
Graham
On 2 Dec 2013, at 18:08, Devin Asay wrote:
> On Dec 2, 2013, at 3:36 AM, Graham Samuel wrote:
>
>> This is probably a very ancient issue, but I haven't had to deal with it before:
>>
>> I've only tried this on the Mac, but I decided to put in a query in a desktop app, "Do you really want to quit?" when a user chooses 'Quit' from a file menu (it's part of a 'shutdownRequest' handler). This obviously requires a response from the user in order to continue. This is fine, unless the user of the whole machine decides to shut it down without closing my app. Then I find that my little dialog is invoked and demands a response before shutting down, but I may not be there to respond to the dialog. Is there any way to effectively detect a general shutdown as opposed to just 'quit'? I think the same problem applies to Windows as well, but I haven't tested it.
>
> Graham,
>
> Ken Ray has lots of great tips on his web site sonsothunder.com, including this one that might be of help for your problem:
>
> http://www.sonsothunder.com/devres/livecode/tips/menu001.htm
>
> Devin
>
>
> Devin Asay
> Learn to code with LiveCode University
> http://university.livecode.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list