[Mono-osx] Adding Monomac capabilities to an existent project

Steve Lessard s_lessard at yahoo.com
Tue Dec 21 14:22:44 EST 2010


I like Andrew Brehm's suggested solution. Presumably your existing project 
already has a GUI. Adding MonoMac support to that existing project would likely 
result in a nightmarish bunch of #ifs in the code and a not so easy to maintain 
set of project settings (Release (Linux), Debug (Linux), Release (Mac), Debug 
(Mac), etc.)

To elaborate on Andrew's suggestion consider refactoring your project into two 
projects. One project would contain the GUI components. The other would contain 
the business logic. Then you could create a third project that would contain 
the OS X GUI components.  Andrew implied that you should compile the business 
logic into a DLL (and there's nothing wrong with doing that,) but another option 
is to add the business logic project as a reference in your OS X GUI project. 
That way both the GUI and business logic would be compiled into one complete 
assembly. 




________________________________
From: Andrew Brehm <ajbrehm at gmail.com>
To: mono-osx at lists.ximian.com
Sent: Tue, December 21, 2010 7:55:48 AM
Subject: Re: [Mono-osx] Adding Monomac capabilities to an existent project



Maxi Combina wrote:
> 
> 
> 
> How can I "add" these things to my project? In other words, how can I
> make my existent project aware of MonoMac, and use it full
> functionality?
> 
> 

Good question.

Can you import your existing project into a new project and compile
everything into a library?

Then create a new MonoMac project and reference the DLL.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101221/a5b049a6/attachment.html 


More information about the Mono-osx mailing list