Re: Mixing Objective C and C++
Re: Mixing Objective C and C++
- Subject: Re: Mixing Objective C and C++
- From: Pete Yandell <email@hidden>
- Date: Wed, 16 Oct 2002 08:51:40 +1000
I've done lots of mixing CoreAudio and CoreMIDI with
Cocoa...<gratuitous_plug>see my apps at
http://pete.yandell.com/software/</gratuitous_plug>.
CoreMIDI and CoreAudio both use plain old C interfaces, not C++. You
can happily call them from the middle of your Objective-C code without
any problems.
I'm also about to start beta testing some Objective-C wrappers for
CoreMIDI, so keep an eye on my site if you're interested in those.
On Tuesday, October 15, 2002, at 11:19 AM, Craig Bakalian wrote:
Hi Cameron,
I need to use CoreMIDI in my application. The CoreMIDI docs look and
smell like C++ calls. Please correct me if I am wrong. So, I need to
implement
C++ files that make CoreMIDI calls which are called by some controller
object
made of Objective-C. I think? Anyone out there ever call CoreAudio
or CoreMIDI
from a Cocoa app?
Craig Bakalian
On Monday, October 14, 2002, at 05:11 PM, Cameron Hayne wrote:
On 14/10/02 2:17 pm, "Craig Bakalian" <email@hidden> wrote:
I have read the Using C++ with Object-C in the Cocoa Documentation,
however I am still confused about how to implement such a
combination.
Is there an example out there somewhere?
I suspect that if you are confused it is because you are expecting
too much
of the combination. Note especially that the object models are
incompatible.
If you are starting a new project using Cocoa, you don't want to use
C++ -
you just use Obj-C. If you have existing code in C++, you can call it
from
your Obj-C code.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.
Pete Yandell
http://pete.yandell.com/
_______________________________________________
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.