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: Seth Nickell <email@hidden>
- Date: Thu, 13 Aug 2009 12:24:30 -0700
I haven't figured out exactly what to look for (I'm in release mode on
another project), but I think I can detect if the host is running
Cocoa, and if it is, tell them we don't have a Carbon GUI. Anyone have
suggestions for what to check to see if our current process is running
the main Cocoa event loop?
Frankly, even if the running the event loop is because the host is a
Carbon app that has their own Cocoa hosting compat layer, it might be
better to report we are Cocoa, and let the host deal with compat
issues (depending on how they host the views they might do smart
things (ha ha, I wish)).
I tried this technique with detecting the presence of HICocoaView, and
it works fine. Now 10.4 Carbon-only hosts use their fallbacks for
"this plugin has no ui" (auto-generated ui from parameters), which is
better than crashing spectacularly.
-Seth
On Tue, Aug 11, 2009 at 11:19 PM, tahome izwah<email@hidden> wrote:
> Unfortunately, no. There are hosts that support both Cocoa and Carbon
> UIs and still prefer Carbon by default (like Audio Hijack Pro).
>
> --th
>
> 2009/8/11 Stephen Blinkhorn <email@hidden>:
>>
>> Something else. If a host is Cocoa compatible and it is presented with an
>> AU that boasts both Carbon and Cocoa views (as above) can it be guaranteed
>> that the host will always use the Cocoa view? Otherwise, if we are using
>> the above view spawning hack things can get messy in some hosts
>>
>> Stephen
> _______________________________________________
> 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