So I was just told that it’s not the easiest thing to write an Objective C program on a mac using xcode that can also be run in windows (because xcode utilizes mac-exclusive libraries).
I’m not too picky about the language I use because I’m just learning, so is there an easy way to program C/C#/C++/Objective C on a mac that can be (easily) exported and run in Windows?
So I was just told that it’s not the easiest thing to write an
Share
You can compile Objective-C code for Windows on a Mac using MXE. But I assume you’re interested in GUI applications, not just pure, standard Objective-C code. In that case, you will need a cross-platform framework. For example Qt (MXE comes with Qt). But that’s a C++ framework.
Objective-C for GUI applications is pretty much only used by Apple. If you want better portability of your applications, you should probably use C or C++. Python is another language you can use, if dynamic/scripted languages are your thing. Python also supports Qt, so you can write GUI apps with it.
The reason I recommend Qt over all other frameworks is that it doesn’t just give you a GUI library, but it also gives you other classes that make it much easier to write cross-platform applications (for example an easy to use, Unicode string class, and classes for portable file I/O, networking, threading, etc.)