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

Re: Objective C and C++


  • Subject: Re: Objective C and C++
  • From: Brian Willoughby <email@hidden>
  • Date: Sun, 21 Dec 2008 16:03:27 -0800

Nick has a good point. CoreAudio and CoreMIDI are C API, so you don't need anything fancy at all. ObjC is a superset of C, so every CoreAudio/MIDI call can be made from a normal Cocoa source file. No C+ + needed.

The only potential need for C++ that I have run into is the CAStreamBasicDescription object. It's very handy, but I usually just make do without it. Sometimes it's more trouble to get C++ to mix in a Cocoa than to simply roll your own description structures. Now that I think about it, Apple should rewrite CAStreamBasicDescription as C (if possible) or make an ObjC variant available. That would save a lot of Cocoa developers from needless hassle.

Brian Willoughby
Sound Consulting


On Dec 21, 2008, at 10:34, NickMtl wrote: I'm doing the same thing right now - except my app is mostly C++. Therefore, Objective-C++ is necessary.

From your description, I'm not sure why you would need C++. If your
app is already in Objective-C and most of the examples use C APIs
(CoreAudio, CoreMidi, AudioQueue, MusicPlayer, etc.), why would you
ever need C++ for?

Take care,

- Nick -

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Objective C and C++
      • From: "tahome izwah" <email@hidden>
References: 
 >Objective C and C++ (From: Brian Hughes <email@hidden>)
 >Re: Objective C and C++ (From: Marc Vaillant <email@hidden>)
 >Re: Objective C and C++ (From: NickMtl <email@hidden>)

  • Prev by Date: Audio playing too fast but not simply sped up
  • Next by Date: 10.5.6: Aggregate Device Anomalies
  • Previous by thread: Re: Objective C and C++
  • Next by thread: Re: Objective C and C++
  • Index(es):
    • Date
    • Thread