• 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: C++ in a Cocoa App - How Hard is THAT?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ in a Cocoa App - How Hard is THAT?


  • Subject: Re: C++ in a Cocoa App - How Hard is THAT?
  • From: Dave Howell <email@hidden>
  • Date: Sat, 8 Oct 2005 08:24:57 -0700

In an effort to write a snazzy little app which accesses a C++ object that came from a CodeWarrior Carbon project, I wrote a little Cocoa app in which I would like to include that source file written in C++. Evidently, it's lots easier to include Cocoa in Carbon... but I digress.

The Objective-C compiler can't understand C++ symantics, and the C++ compiler doesn't understand Objective-C. Objective-C++ understands both. So if your source file is just using C++, you may name it .cpp or .m. If it's just using Objective-C, you may name it .m or .mm. If it uses both, you must name it .mm.


Dave Howell
Pro Apps

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Moving from OSX 10.3 (XCode 1.5) to OSX 10.4 (XCode 2.1)
  • Next by Date: [SOLVED] C++ in a Cocoa App - How Hard is THAT?
  • Previous by thread: Re: Re[2]: C++ in a Cocoa App - How Hard is THAT?
  • Next by thread: Defining "Environment" build settings
  • Index(es):
    • Date
    • Thread