Re: Mixing Objective-C and C++
Re: Mixing Objective-C and C++
- Subject: Re: Mixing Objective-C and C++
- From: Chad Leigh <email@hidden>
- Date: Tue, 7 Nov 2006 12:05:41 -0700
On Nov 7, 2006, at 11:59 AM, Nick Zitzmann wrote:
On Nov 7, 2006, at 11:56 AM, Jason T. Slack wrote:
I know that I can bring the QT Frameworks into XCode and write
some code and link against them, but how do I from the Objective-C
side call the C++ code that I want to use?
Change the source code extension from .m to .mm. Then the compiler
will treat the source as an Obj-C++ file.
And to expound on that -- Objective-C is just C with an object
facility added. Being so, you can call C++ the way you would call it
from any C program.
Chad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden