Re: When and how often do you mix C++ with Objective C in your project?
Re: When and how often do you mix C++ with Objective C in your project?
- Subject: Re: When and how often do you mix C++ with Objective C in your project?
- From: Stefan Werner <email@hidden>
- Date: Fri, 31 Oct 2008 13:52:38 +0100
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:
This email sent to email@hidden