Jump to content
  • Advertisement
Sign in to follow this  
ms75214

c++ on mac

This topic is 2668 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

what's the deal with c++ on mac? i know they are pushing objective c, but can you use c++ if you want? i want to make something for the mac app store in c++.

Share this post


Link to post
Share on other sites
Advertisement

what's the deal with c++ on mac? i know they are pushing objective c, but can you use c++ if you want? i want to make something for the mac app store in c++.


Most of their APIs are Objective-C based, so you're going to have to deal with it for creating a UI for your app (making windows, buttons, menus, etc) and interacting with various services. Other than that though, you're free to implement all your business/game logic entirely in C++.

Share this post


Link to post
Share on other sites
Just remember to rename your source files to "*.mm" instead of "*.m" otherwise the compiler will complain... if I remember correctly

Share this post


Link to post
Share on other sites

[quote name='ms75214' timestamp='1299263938' post='4781828']
what's the deal with c++ on mac? i know they are pushing objective c, but can you use c++ if you want? i want to make something for the mac app store in c++.


Most of their APIs are Objective-C based, so you're going to have to deal with it for creating a UI for your app (making windows, buttons, menus, etc) and interacting with various services. Other than that though, you're free to implement all your business/game logic entirely in C++.
[/quote]
Yeah this is basically what Carmack did when he ported Wolfenstein for the iPhone.
Most of the code he used id the original code from years ago but he still needed to use some Objective-C where required.
You should really get around to learning Objective-C if you are going to do a lot of Mac work though.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!