Mac OS X and the Application Menu

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
redpill
Posts: 21
Joined: Fri Jan 08, 2010 10:38 pm

Mac OS X and the Application Menu

Post by redpill » Sat Jan 23, 2010 9:17 am

Why is it that the Quit item in the Application Menu cannot be implemented properly? It just isn't right that the Quit item shows up in the File menu.

If it has anything to do with Mac OS Classic support -- by all means kill it. Does anyone even create applications to run in Classic anymore?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Mac OS X and the Application Menu

Post by Dixie » Sat Jan 23, 2010 12:22 pm

redpill...

launch revolution and make a new stack
From the 'Tools' menu, select 'Menu Builder'
Click on the 'New' button
In the 'Create a New Menu bar' dialog, just click the 'OK' button

Back in the 'Menu Builder' , click the 'Preview in Menu bar' checkbox
Select the 'browse' tool...

you should now see in the menuBar,... the apple Menu, Revolution, File, Edit, Help

The 'Quit' menu item, you will find under the 'Revolution' menu, not the 'file' menu... the 'Revolution' menu will take on the name of your application when you set your standalone settings, and give your stack a 'standalone' name, and build it as a standalone..

be well

Dixie

redpill
Posts: 21
Joined: Fri Jan 08, 2010 10:38 pm

Re: Mac OS X and the Application Menu

Post by redpill » Wed Jan 27, 2010 1:55 am

Thank you, Dixie. :)

I appreciate the input.

kwinkler
Posts: 61
Joined: Fri Nov 26, 2010 5:59 am

Re: Mac OS X and the Application Menu

Post by kwinkler » Fri Jan 21, 2011 5:38 am

Along a similar line......

Is there any way to associate a script with the Quit menu item that is located under the Application menu on a Mac? I don't have a problem with the PC version of the application, because Quit is under the File menu, and a script is associated with that menu item. On a Mac, the Quit menu item gets moved to the Application menu, but the script does not move with the Quit item. All I want to do is make sure the user has saved any changes he may have made before quitting.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Mac OS X and the Application Menu

Post by Klaus » Fri Jan 21, 2011 2:40 pm

Hi kwinkler,

you could trap the "shutdownrequest" message in your stack and
do whatever you like before you finally PASS it.


Best

Klaus

kwinkler
Posts: 61
Joined: Fri Nov 26, 2010 5:59 am

Re: Mac OS X and the Application Menu

Post by kwinkler » Sat Jan 22, 2011 4:53 am

Hi Klaus,

Thanks for the tip. It worked out fine.

Ken

Post Reply