Sign in to follow this  
Spintwo

Mac Programming

Recommended Posts

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.)?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this