Mac Programming
In Mac programming, more specifically, in C++, the syntax and everything is the same isn't it (assuming you don't use windows specifics like the sleep(); function and msftcon.h, etc.)?
C++ is platform independent by itself. Any platform that has a compiler for C++ can handle the platform independent aspects of C++. Of course like you said OS-specific (e.g. Windows-specific) functions and libraries won't work on other platforms, but the language itself is identical no matter what the platform is.
Mac OS X supports a lot of API's. The main windowing API's however are Carbon and Cocoa. Carbon is a C based API that meshes just fine with C++. Cocoa is an Objective-C based API that can work well with C++. You just have to turn on the compiler flags for Objective-C++ and make sure you follow the meshing rules. It's all documented... somewhere.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement