Click here to Skip to main content
13,193,442 members (43,994 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Real time problem is that ,I have developed an app in c# for windows ,now acc to clients requirement ,he need it to run on mac also ,so I have to reform it for MAC OS ,the main problem is coming that I have used the controls like Tab ,or List in my project ,but I cant find such controls in Widgets option.
Posted 5-Oct-12 2:28am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

One possible option is to use System.Windows.Forms on Mac OS. You can even develop the code on Windows. If you do everything accurately, without using any platform-specific or other incompatible feature, this code will work on Mono without recompilation even on Mac.

However, from what I ever saw, Mac OS X is the platform most hostile to foreigners. In particular, Mac UI has a different concept of a main menu, which is common for different application but gets different content as you switch the application. If you run Forms application having a menu under Mac OS X, you see both regular Windows-style application menu, and also the ugly Mac-style "Main Menu" on top, pretty much irrelevant to anything reasonable. Also, there is no such a strict coordination between activated applications and applications on top in Z-order, like you have on Windows. This should be taken into account.

I found some resolution of the main menu: you can use MonobjC on top of mono (and the command line will be "monobjc your_application.exe", not ""monobjc your_application.exe" and have two UI threads: one running System.Windows.Forms.Application, another one — Cocoa Application showing just the Mac-style main menu (and, optionally, something else). You still can build such application using MonobjC for Mono for Windows, but under Visual Studio, it won't allow you to debug code and use the Designer. This is possible using the MonoDevelop UI:[^],[^],[^],[^],[^],[^].

Please see my past answers:
Mono Recommendations For Windows and Mac Deployment[^],
Programming for ipad/iphone on Windows 7[^],
about mobile operating systems[^],
Learning write c# for mac[^],
Need to make small apllication that runs on iphone-Ipad (maybe stupid question : ( )[^],
how can i make mac software?..............[^].


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171018.2 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100