[Mono-osx] Menu Bar for Mac OS X?

Elfen pem.accounts.spam at gmail.com
Sun Apr 4 05:32:02 EDT 2010

So you're saying I should have something like: if platform is windows or
linux then use winforms, else if platform is mac os x then use interface
builder?  I think the correct thing to do for cross-platform development is
only use platform conditional on the minimum amount of code.  Yes I am
asking about System.Windows.Forms.  For example, it sounds like you are

if (platform is windows or linux )
this.menuItem_File = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
else if (platform is mac os x)
do some crazy interface builder stuff

Btw, I was hoping for some kind of simple tutorial / doc...  Since I would
expect this to be an extremely common thing.  Any application that follows
Mac OS X interface guidelines will use the menu bar, rather than the
Windows/Linux per-window menu style.

thank you for any leads

On Sun, Apr 4, 2010 at 4:22 AM, Matt Emson <memson.lists at googlemail.com>wrote:

> Sent from my iPhone
> On 4 Apr 2010, at 09:43, Elfen <pem.accounts.spam at gmail.com> wrote:
>  Just to clarify, [...] C# and .NET with Mono application will run on
>> Windows (such as Windows 7), Linux, and Mac OS X...  And use the menu bar /
>> application menu when on Mac OS X.
> Are you asking about using the WinForms? (System.Windows.Forms)
> I think you are from the context. Joanna has skipped a step in replying if
> so. Winforms is not the "way to go" and you would have a more Mac alike
> experience using one of the Cocoa wrappers and Interface Builder. Yes, you
> will not get straight reuse, but you will otherwise be fitting a square peg
> into a round hole.
> M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100404/c1ef8e0e/attachment.html 

More information about the Mono-osx mailing list