• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When and how often do you mix C++ with Objective C in your project?
[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?


  • 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


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

  • Prev by Date: Re: Delegation across thread
  • Next by Date: Re: detecting an option-click on a button
  • Previous by thread: Re: When and how often do you mix C++ with Objective C in your project?
  • Next by thread: Help with NSBitmapImageRep, please
  • Index(es):
    • Date
    • Thread