Re: How To Give Idle Time From The AU To The Host ?
Re: How To Give Idle Time From The AU To The Host ?
- Subject: Re: How To Give Idle Time From The AU To The Host ?
- From: Airy André <email@hidden>
- Date: Tue, 3 Jun 2003 20:02:49 +0200
Le mardi, 3 juin 2003, ` 18:32 Europe/Paris, Eric Eizenman a icrit :
Hi,
Basically I'm looking for equivalent to VST's 'masterIdle()' function,
which the plug-in uses to give idle time to host.
The problem happens when a user clicks and drags a control then all
the host's idle activates freezes.
I saw couple of plug-ins with custom editor that presents that kind of
behavior as well as ours. The reason is probably because we're using
'TrackMouseLocation()' to check when the mouse button is released.
Until we'll have full Carbon events support, Is there a way to do it ?
------------------------------------------------------------------
Eric Eizenman
Waves, Plug-ins Development
------------------------------------------------------------------
Yes, TrackMouseLocation is a blocking call for the current thread.
Can't you use the method proposed here and on the carbon list for this
problem ?
Here what we do in our TViewNoCompositingCompatible class :
- in your track method, install an event handler for kEventMouseUp and
kEventMouseDragged
- when you receive kEventMouseDragged, just do your dragging stuff
- when you receive kEventMouseUp, remove your event handler.
But we are using Carbon events...
My non-carbon events memory is too dim to be able to help here...
Airy
_______________________________________________
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.