• 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: "Colin Barrett" <email@hidden>
  • Date: Thu, 30 Oct 2008 19:11:19 -0700

On Thu, Oct 30, 2008 at 4:33 PM, Boon Chew <email@hidden> wrote:
> Hi all,
>
> 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?

While the folks here have posted excellent advice about how to work
with C++ and ObjC, your question was when and how often do ObjC and
C++ mix.

The answer is: not often. The vast majority of the time people write
applications in pure ObjC (note that since ObjC is a pure superset of
C, this could involve syscalls or using a C library of some kind).

Most of the time ObjC and C++ are mixed out of necessity, not desire
(although there are some exceptions).

-Colin
_______________________________________________

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: When and how often do you mix C++ with Objective C in your project?
  • Next by Date: Re: NSOperationQueue broken?
  • Previous by thread: Re: When and how often do you mix C++ with Objective C in your project?
  • Next by thread: Re: When and how often do you mix C++ with Objective C in your project?
  • Index(es):
    • Date
    • Thread