Re: NSUIHeartBeat gets stuck
Re: NSUIHeartBeat gets stuck
- Subject: Re: NSUIHeartBeat gets stuck
- From: "Adam R. Maxwell" <email@hidden>
- Date: Wed, 07 Jan 2009 21:02:01 -0800
On Jan 6, 2009, at 12:07 AM, Adam R. Maxwell wrote:
I have an application that starts and stops a spinning progress
indicator. Start/stop is based on observing -[NSOperationQueue
operations]; since I get KVO notifications on the queue's thread,
I've been careful to start/stop the spinner on the main thread. The
spinner is set to hide when it's not spinning.
The problem is that if I cancel all operations in the queue, the
heartbeat thread appears to get stuck (sample follows), and the
spinner refuses to spin thereafter.
It turns out that NSOperationQueue is not relevant to this problem.
After many hours of taking my app apart, it appears to be caused by
calling [[self animator] setAlphaValue:] to fade a view in and out.
If I disable layer backing on the view, things work as expected.
I filed a bug report, and a trivial sample project is available in
case anyone wants to demonstrate what I'm doing wrong. Note that the
problem may not occur when running in the debugger, and doesn't seem
to occur at all on a G5.
http://homepage.mac.com/amaxwell/.Public/SpinnerAndLayer.zip
thanks,
Adam
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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