Re: How To Get Idle Time to the edit and view components?
Re: How To Get Idle Time to the edit and view components?
- Subject: Re: How To Get Idle Time to the edit and view components?
- From: Urs Heckmann <email@hidden>
- Date: Wed, 4 Jun 2003 13:45:56 +0200
Am Mittwoch, 04.06.03, um 11:30 Uhr (Europe/Berlin) schrieb Shai Shasag:
Eric has recently asked: How To Give Idle Time From The AU To The Host
?
I would like to add the question of how to get idle time for the view
and edit component?
In the pre-carbon even model, we used to have an idle even, which I
can no longer find in the carbon evens. Another option would be to
install an idle timer - but method can have it's problems.
I guess you ask about an equivalent for VST's idle() method. - I think
the recommended way isn't installing an idle timer but a RunLoopTimer.
The idle timer often doesn't get called, i.e. during user interaction.
The RunLoopTimer gets called anyway.
In my gui stuff I do this, works quite well so far:
InstallEventLoopTimer( GetCurrentEventLoop(), 0,
kEventDurationMillisecond * 50, NewEventLoopTimerUPP( TimerProc ),
this, &timer );
(this = my control dispatch object, TimerProc = C callback that
distributes time to my control objects)
HTH,
;) Urs
urs heckmann
email@hidden
www.u-he.com
2b | ! 2b
_______________________________________________
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.