Re: NSProgressIndicator not animating when part of NSAnimation
Re: NSProgressIndicator not animating when part of NSAnimation
- Subject: Re: NSProgressIndicator not animating when part of NSAnimation
- From: Kyle Sluder <email@hidden>
- Date: Sat, 15 Aug 2009 18:11:06 -0700
On Aug 15, 2009, at 6:04 PM, Thomas Bauer <email@hidden> wrote:
Further to my below question I found out that the problem is related
to what is triggering the code that starts the animation:
If the code that starts the NSAnimation and the NSProgressIndicator
animation is called in an IBAction called by a button on a different
window,
the NSProgressIndicator animation does not start.
Try scheduling a delayed perform in a normal runloop mode. The button
is probably implementing its own runloop (one of the two ways controls
perform mouse tracking). You need to break out of this runloop mode,
and peformSelector:onMainThread: will do it.
--Kyle Sluder
_______________________________________________
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