• 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: ObjC and C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >ObjC and C++ (From: Rita <email@hidden>)

  • Prev by Date: Re: Finding topmost window of a certain type
  • Next by Date: Enumerator and
  • Previous by thread: Re: ObjC and C++
  • Next by thread: Re: ObjC and C++
  • Index(es):
    • Date
    • Thread