Visual Studio and Cocoa#

3 views
Skip to first unread message

Leauki

unread,
Jan 18, 2008, 2:03:49 PM1/18/08
to cocoa-sharp-dev
Turns out that using a few #define and #if, #else, and #endif
statements Visual Studio can be used to develop a single code base for
Windows Forms and Cocoa#.

Yes, I know it's obvious, but I tried it anyway.

I'll post a tutorial together with the QuickInfo example this weekend.

The Makefile should then contain a -define argument for mcs to set
COCOA.

And adding #COCOA to the beginning of a file one edits will de-
emphasise the Winforms code and emphasise the Cocoa# code. That is
very convenient.

I'll post the example later this weekend, have to hurry to shul
now. :-)


Reply all
Reply to author
Forward
0 new messages