On Oct 31, 2008, at 12:33 AM, Boon Chew wrote:

I am a newbie to the cocoa world (PC -> Mac switcher). I have a fair amount of experience coding in C and C++ and I am just getting into Obj C now. Right now I am trying to learn the language idioms and patterns in the Obj C world, specifically, when do you find yourself mixing C++ code with your Obj C code in your project? How often do you do that? What's the pros and cons of doing that?

I tend to use a lot of C++ for performance, features and portability reasons. The parts of Objective-C I need are then most of the time in .mm files which often contain a C++ class using Objective-C functionality.

New projects that are not performance-critical and are not likely to get ported anywhere else except OS X, those I tend to start in Objective-C.

-Stefan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to