Forum: wxRuby [BUG] Menus on Snow Leopard not working correctly

Posted by DeNigris Sean (Guest)
on 2010-03-13 23:02
(Received via mailing list)
I posted the following bug at 
http://rubyforge.org/tracker/index.php?func=detail....
Is anyone else dealing with this?
Posted by Mario Steele (Guest)
on 2010-03-13 23:33
(Received via mailing list)
Hello Sean,

This is a feature / bug with wxWidgets on Mac OS X.  The menus File and 
Help
are actually combined into the "Main" Menu Item, which is the name of 
the
application that is running.  Such as Quit, Preferences and Help gets 
put
under the application name main menu, instead of under File, or Help. 
This
is Mac OS X's way of doing things.

hth,

Mario
Posted by DeNigris Sean (Guest)
on 2010-03-13 23:43
(Received via mailing list)
> This is a feature / bug with wxWidgets on Mac OS X.  The menus File and Help are actually combined into the "Main" Menu Item, which is the name of the application that is running.  Such as Quit, Preferences and Help gets put under the application name main menu, instead of under File, or Help.  This is Mac OS X's way of doing things.
Aha, okay.  Sounds good - except for two things:
1. it *shows" a File menu, which is weird (from a user standpoint).  Is 
there a way to have it not show "File" at all and put the items under 
the [application name] menu?
2. it doesn't show an [application name] menu at all, but a "ruby" menu, 
which is also weird and not-very-mac.  Is there a way to actually get 
the app name there instead of "ruby"?

Thanks for the help!
Sean
Posted by Mario Steele (Guest)
on 2010-03-14 04:55
(Received via mailing list)
Hello again Sean,

On Sat, Mar 13, 2010 at 5:43 PM, DeNigris Sean 
<sean@clipperadams.com>wrote:

> > This is a feature / bug with wxWidgets on Mac OS X.  The menus File and
> Help are actually combined into the "Main" Menu Item, which is the name of
> the application that is running.  Such as Quit, Preferences and Help gets
> put under the application name main menu, instead of under File, or Help.
>  This is Mac OS X's way of doing things.
> Aha, okay.  Sounds good - except for two things:
> 1. it *shows" a File menu, which is weird (from a user standpoint).  Is
> there a way to have it not show "File" at all and put the items under the
> [application name] menu?
>

I have not found a way to do this, Alex has more experience with this 
sort
of thing, then I do.


> 2. it doesn't show an [application name] menu at all, but a "ruby" menu,
> which is also weird and not-very-mac.  Is there a way to actually get the
> app name there instead of "ruby"?
>

This has been answered before, there's two ways in which you can achieve
this.  The first is to rename the ruby executable (Which Mac OS X uses) 
to
the name of your application, which isn't ideal.  Or, you can use the 
.app
Directory creation for your program, and put in a manifest file that 
will
describe what the program is, how to launch it, and what the Application
name is.  This second method is the ideal method in which to do it, as 
it
solves a lot of problems, and gives you more options.  If you look at 
Alex's
Weft-QDA Rake file, for OS X here:
http://weft-qda.rubyforge.org/svn/trunk/weft-qda/r...  You 
can
learn much about how to create an .app directory, to store your program
code, and executables in.


>
> Thanks for the help!
>

Your welcome.


> Sean
>

hth,
Mario
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.