• 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: Wrapper class for Cocoa Audio Units in Carbon Hosts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Wrapper class for Cocoa Audio Units in Carbon Hosts


  • Subject: RE: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • From: Stéphane Beauchemin <email@hidden>
  • Date: Fri, 7 Aug 2009 15:45:25 -0400
  • Thread-topic: Wrapper class for Cocoa Audio Units in Carbon Hosts

You can do weak linking:
http://developer.apple.com/technotes/tn2002/tn2064.html


This way you can check if a symbol is available or not and adapt your code accordingly. There might not be a lot of things you can do in this case, but at least you can prevent a crash. Or maybe, you could display an empty carbon window, and open another cocoa window and display your GUI in it.

Stephane

-----Original Message-----
From: coreaudio-api-bounces+sbeauchemin=email@hidden [mailto:coreaudio-api-bounces+sbeauchemin=email@hidden] On Behalf Of Brian Willoughby
Sent: August-06-09 3:19 PM
To: Seth Nickell
Cc: email@hidden
Subject: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts

What happens on 10.4 and earlier?  Does an AU with this enhancement
create a broken and empty Carbon UI, or does it generate the
appropriate return code to tell the host that there is no Carbon UI?

Isn't there some say you could check the OSX version at run time, and
then only access the 10.5 API if running 10.5?

Brian


On Aug 6, 2009, at 10:40, Seth Nickell wrote:
Downside: using HICocoaView means this only works on 10.5 or greater
(if anyone has a fix they're willing to share, I'd be more than happy
to wrap it into the code).

 _______________________________________________
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



 _______________________________________________
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

References: 
 >Wrapper class for Cocoa Audio Units in Carbon Hosts (From: Seth Nickell <email@hidden>)
 >Re: Wrapper class for Cocoa Audio Units in Carbon Hosts (From: Brian Willoughby <email@hidden>)

  • Prev by Date: RE: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • Next by Date: RE: audio queue start fails with 1752656245. bug in quick time on iPhone 2g running OS 3.0?
  • Previous by thread: RE: Wrapper class for Cocoa Audio Units in Carbon Hosts
  • Next by thread: FW: ExtAudioFileSetProperty( kExtAudioFileProperty_FileDataFormat )returns error 1718449215
  • Index(es):
    • Date
    • Thread