Re: TC PowerCore Plug-ins broken in GarageBand
Re: TC PowerCore Plug-ins broken in GarageBand
- Subject: Re: TC PowerCore Plug-ins broken in GarageBand
- From: Marc Poirier <email@hidden>
- Date: Fri, 23 Jan 2004 09:41:54 -0600 (CST)
On Fri, 23 Jan 2004, David Duncan wrote:
>
Standard HIViews (Controls) will update themselves when their value
>
changes, but your own custom controls have to implement this directly.
>
The preferred method is to call HIViewSetNeedsDisplay(view, true),
>
however I suspect that Draw1Control(view) does the same thing in a
>
composited window. But yes, as part of the compositing model, you will
>
only get draw events if you are considered dirty, the model caches the
>
view's image until then.
Oh yeah, thanks for mentioning that, my pseudo-code wasn't totally right.
When I wrote:
if ( IsWindowCompositing() )
Draw1Control(theControl);
I actually was simplifying my code with a custom control class which is
more like:
if ( IsWindowCompositing() )
theDGControl->redraw();
void DGControl::redraw()
{
if (carbonControl != NULL)
{
if ( getDfxGuiEditor()->IsWindowCompositing() )
HIViewSetNeedsDisplay(carbonControl, true);
else
Draw1Control(carbonControl);
}
}
but I forgot to add that in. Sorry for the messed up example...
Marc
_______________________________________________
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.