Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Mono
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 3:28am

1 solution

Rate this: bad
good
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:
http://en.wikipedia.org/wiki/Monobjc[^],
http://en.wikipedia.org/wiki/Cocoa_(API)[^],
http://www.monobjc.net/[^],
https://developer.apple.com/technologies/mac/cocoa.html[^],
http://en.wikipedia.org/wiki/MonoDevelop[^],
http://monodevelop.com/[^].
 
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?..............[^].
 
—SA
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2014
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