• 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: Objective-C++ or C bridge?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C++ or C bridge?


  • Subject: Re: Objective-C++ or C bridge?
  • From: Andreas Monitzer <email@hidden>
  • Date: Sat, 2 Feb 2002 17:59:28 +0100

On Saturday, February 2, 2002, at 05:26 , Joe Chang (l%l,m8) wrote:

I was looking for a right way to calling C++ code from Objective-C code and I remember this had been discussed before. However, I'm still wondering what is the best way to do this. Should I use Objective-C++, or the Apple's C bridge method?
To use Objective-C++, I should install its compiler first... am I right? or am I missing something?

That compiler is already included with the latest dev tools (Dec 2001). Just name your file .mm instead of .m or .cc/.cpp/.c++, and it should work.

andy


  • Follow-Ups:
    • Re: Objective-C++ or C bridge?
      • From: Jason Batchelor <email@hidden>
References: 
 >Objective-C++ or C bridge? (From: Joe Chang (ììí) <email@hidden>)

  • Prev by Date: Objective-C++ or C bridge?
  • Next by Date: Re: Overiding NSButton initWithFrame: (doesn't work)
  • Previous by thread: Objective-C++ or C bridge?
  • Next by thread: Re: Objective-C++ or C bridge?
  • Index(es):
    • Date
    • Thread