Ali_IT
Ali_IT

Reputation: 8309

Xcode programming

I wrote my programs in Visual Studio. now i have an mac and i want to program there like visual-studio. but there are differences between them. Is there any solution that i can write a code in Xcode that it is compatible in Visual Studio and works without any errors?

Upvotes: 0

Views: 1671

Answers (5)

Bassetassen
Bassetassen

Reputation: 21844

You can use Mono and MonoDevelop, then the programs you create on Mac can run on Windows also. I use Visual Studio on my job, but my spare time I like to play around with mono on my mac. http://www.mono-project.com/

Upvotes: 0

Simon Thompson
Simon Thompson

Reputation: 704

Would in theory be possible to have a vs template so you go project structure and intellisense then when you build have a build script export to the mac or source repository then build on mac

Either way Xcode needs to be run on a Mac.

Upvotes: 0

mspir
mspir

Reputation: 1734

Java would be also a good solution for platform independency. NetBeans would be my choice.

Upvotes: 0

dirkgently
dirkgently

Reputation: 111336

Is there any solution that i can write a code in Xcode that it is compatible in visual-Studio and works without any errors?

Write standard portable source code. Xcode uses the GCC toolchain, VS uses MS's cl compiler. They are different. Xcode does have the notion of projects and solutions and allows configurations. However, they are a bit complicated (so beware). Also, the Xcode debugger is buggy and the editor is not as feature-rich as the VS2005/VS2008 IDE.

You can build Cocoa/Carbon based applications on Xcode but these won't compile/run on VS. Similarly, you can build Win32 applications on VS which won't run/compile on Xcode.

All in all, Xcode is your best shot at an IDE if you're not a vim/emacs fan.

Upvotes: 2

Paul R
Paul R

Reputation: 213220

You can easily write portable low level code in C/C++, but any GUI code or code which calls the OS will be non-portable.

Upvotes: 1

Related Questions