Re: ObjC and C++
Re: ObjC and C++
- Subject: Re: ObjC and C++
- From: Thomas Lachand-Robert <email@hidden>
- Date: Tue, 9 Apr 2002 17:34:35 +0200
Le mardi 9 avril 2002, ` 04:24 , Rita a icrit :
Can I use frameworks, API C++ (libkern,iokit.framework
and so on) in an application Cocoa written in Obj-C?
Sorry..my explicit question is:
Can ObjC compiler compile a .h file written in C++?
I have to use a QT component (videooutput component)
in an application Cocoa (ObjC) and I've seen that it's
written in C++ (there are a class, constructor and so
on)
Yes. You need to use Objective-C++, which basically means you have to name
your file with ".mm" extension instead of ".m", and... that's all.
Read /Developer/Documentation/ReleaseNotes/Objective-C++.html
on your hard drive.
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.