• 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: TC PowerCore Plug-ins broken in GarageBand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: TC PowerCore Plug-ins broken in GarageBand (From: David Duncan <email@hidden>)

  • Prev by Date: Re: TC PowerCore Plug-ins broken in GarageBand
  • Next by Date: Re: TC PowerCore Plug-ins broken in GarageBand
  • Previous by thread: Re: TC PowerCore Plug-ins broken in GarageBand
  • Next by thread: Re: TC PowerCore Plug-ins broken in GarageBand
  • Index(es):
    • Date
    • Thread