quit

Thierry Arbellot thierry.arbellot at wanadoo.fr
Wed Jul 23 11:14:56 EDT 2003


Hi Yves,

I have tested the shutdownRequest handler and it does work fine.
Thanks Jeanne.

> I work on a French system and like to replace the "quit" menu with 
> "quitter"
> Don't find how ???

This is little bit more tricky.
Actually, when Rev builds the standalone, it defines the development 
region as to be English.
This property setup the system menus to be in English, like Quit but 
also all items in the Apple menu and the Help menu title.
To change them to be in French, you have to do the following (I just 
tested it on my Mac):
- launch the Property List Editor app - it's provided with the 
development tools from Apple
- open the file Info.plist located in your app package contents
- click on the triangle in front of root to list all properties
- the first property is CFBundleDevelopmentRegion, Class String, Value 
English
- double click on English to make it editable, and replace it with 
French
- save and close
- launch your standalone to see the result

Good luck

Thierry Arbellot

On Wednesday, Jul 23, 2003, at 15:56 Europe/Paris, Jeanne A. E. DeVoto 
wrote:

> At 4:29 AM -0700 7/23/03, Klaus Major wrote:
>>> i work on Mac OS X
>>>
>>> The quit menu is in the application menu
>>> I don't find how I can trap the message "quit" when the user select
>>> this item ???
>>
>> I am not sure, but i don't think that you can trap "quit" per se.
>
>
>
> When all else fails.... ;-)
>
>
>
> "How to respond to quitting an OS X application
>
> On OS X systems, the "Quit" menu item is part of the Application menu,
> which is displayed by the operating system rather than by the 
> application.
> Because of this, choosing "Quit" on OS X systems does not send a 
> menuPick
> message, so you cannot handle quitting in a menuPick handler.
>
> Instead, choosing "Quit" sends an Apple Event (class "aevt", ID 
> "quit") to
> the application. If you don't intercept this Apple Event in an 
> appleEvent
> handler, Revolution sends a shutdownRequest message in response to the
> Apple Event. To respond to the user choosing "Quit", handle either of 
> these
> messages.
>
> Tip:  For easiest cross-platform development, place all the code you 
> want
> to execute on quitting in a shutdownRequest handler."
>
> --
> Jeanne A. E. DeVoto ~ jeanne at runrev.com
> Runtime Revolution Limited - Software at the Speed of Thought
> http://www.runrev.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list