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

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Feb 19 19:12:12 EST 2009


On Wed, Feb 18, 2009 at 11:23 AM, Geoff Norton <gnorton at novell.com> wrote:
> On Wed, 2009-02-18 at 06:35 -0800, Sandy Armstrong wrote:
>> On 02/18/2009 06:28 AM, Joachim Ante wrote:
>> > Hi,
>> >
>> > Are you guys planning to switch to Mac OS X native menus and hotkeys
>> > that fit existing Mac applications for Mono Develop 2.0? (bug 367030)
>>
>> I can't speak for the MonoDevelop guys, but I can say that this would
>> not be hard for a new contributor to do, given the examples available in
>> Banshee, Tomboy, Tasque, etc.  Well, I don't think anybody has done
>> hotkeys yet, but I don't think it would be *that* hard.
>
> 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.

* the custom labels we use for displaying the accelerators are not shown
* menu item sensitivity is not respected, so items are always
sensitive even when they cannot be used
* menu item images are not shown
* 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#.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-devel-list mailing list