Re: C++ in a Cocoa App - How Hard is THAT?
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