Re: CreateCustomControl crash (Urs...?)
Re: CreateCustomControl crash (Urs...?)
- Subject: Re: CreateCustomControl crash (Urs...?)
- From: Howard Moon <email@hidden>
- Date: Mon, 28 Oct 2002 07:48:09 -0800
Urs,
On Saturday, October 26, 2002, at 10:17 AM, Urs Heckmann wrote:
Hi,
I have found a new way to deal with this without using static data
(which is not that easy in a plugin-driven environment).
So using a static global will cause a problem when I instantiate more
than one of my plug-ins? I was afraid of that... Apparently, it looks
like using the same signature for the control class in another instance
of the plug-in also causes a problem. (I'm unhappy that Apple does not
provide a way to handle this better.)
So your solution uses the address of the instance of the manager
class as part of the signature? That looks feasible. And then every
custom control sets its defSpec.u.classRef to the single ControlClass
reference, and the one event handler for the ControlClass identifies
the appropriate callback (via userData?)...is that the idea?
I have also seen suggested the use of HIView, but I've not looked
into that stuff at all. (Any experiences with that?) We use
completely custom graphics for our entire plug-in, so I'm not sure now
which way to go with these AudioUnits. Partly, I suppose it will
depend on what the host app's will be doing. I'll look into using this
class manager today and see how it works out. Thanks...
-Howard
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.