RE: Wrapper class for Cocoa Audio Units in Carbon Hosts
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