[Mono-dev] Mono Develop native menus on Mac OS X

Andreas Färber andreas.faerber at web.de
Sun Feb 22 09:53:12 EST 2009


Am 20.02.2009 um 01:12 schrieb Michael Hutchinson:

> On Wed, Feb 18, 2009 at 11:23 AM, Geoff Norton <gnorton at novell.com>  
> wrote:
>> I have a patch somewhere or other for the menu (its 2 lines of code).
>> The hotkeys I havn't looked into yet tho.  We should probably move  
>> this
>> discussion to the monodevelop-list tho.
>
> Unfortunately it's nowhere near as easy is this. I cleanly patched in
> the main menu support, but it has *major* problems.

[snip]

> * menu item sensitivity is not respected, so items are always
> sensitive even when they cannot be used

IIUC, this is standard Mac behavior, not a major issue. Disabled menu  
items cannot be selected, but clicking closes the menu without doing  
anything.

> * menu item images are not shown

Menu items don't have images on the Mac. Just like on Windows,  
originally.

> * menu items with checkboxes or radio boxes are invisible
>
> This is so broken that I've disabled my changes.
>
> IMO we need to generate the menus from the command tree completely
> differently for Mac. If someone would like to volunteer, I'll tell
> them how...
>

> It might even be viable to do it with Cocoa#.

Please try to avoid the 5+ ObjC bridges.
There is an official Gtk+ project for Mac OS X menu integration:

http://live.gnome.org/GTK%2B/OSX/Integration

Andreas



More information about the Mono-devel-list mailing list