Re: NSProgressIndicator and _heartBeatThread
Re: NSProgressIndicator and _heartBeatThread
- Subject: Re: NSProgressIndicator and _heartBeatThread
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 7 Feb 2007 10:01:38 -0800
On 2/7/07, Stephane <email@hidden> wrote:
If you set a NSProgressIndicator to run the indeterminate animation
in a separate thread (with setUsesThreadedAnimation:), a secondary
thread is created and it periodically calls [NSUIHeartBeat
_heartBeatThread:].
Let's say you then turn off the animation and remove the
ProgressIndicator from the window contents, this second thread is
still running.
Would there be a way to stop this secondary thread?
That thread is lazily created but once created it continues to exist
to speed future animation startup rendering. When it has nothing to
animate it sits blocked waiting for work. It only takes up a small
amount of memory for the thread context and a little more for the
thread's stack. I doubt you have a need to care about it existing.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden