Mac Programming

Started by
2 comments, last by GameDev.net 19 years, 9 months ago
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.)?
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.

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

sleep() is a POSIX function ;)
Free Mac Mini (I know, I'm a tool)
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