Jump to content
  • Advertisement
Sign in to follow this  
Spintwo

Mac Programming

This topic is 5243 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!