Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When and how often do you mix C++ with Objective C in your project?




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 (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >When and how often do you mix C++ with Objective C in your project? (From: Boon Chew <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.