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: Thomas Bauer <email@hidden>
- Date: Sun, 16 Aug 2009 13:04:00 +1200
Dear List!
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.
However - if i execute the same code in awakefromnib, everything is ok.
I furthermore found out the in a case where the animation of the
progressindicator does not start
it is sometimes sufficient to move the mouse over it.
I would already be happy if I could workaround that problem by adding
a call to my code that simulates what a keystroke or such.
I have tried a NSApp updateWindows... redrawing of views etc. Nothing
helps.
Cheers
Thomas
On 15/08/2009, at 10:15 PM, Thomas Bauer wrote:
Dear List!
I am using an indetermined NSProgressIndicator as a subview of a
NSView.
The frame of the NSView is animated using a NSAnimation.
Basically before (or after - i have tried both) [mynsanimation
startAnimation] I do a [myprogressindicator startAnimation:self];
However, the progressindicator does not animate.
Even if the progressindicator is switched to a determined
progressindicator later in the code,
although the change is visible, the barberpoleanimation inside the
blue part is not moving.
However - when I click on the Window or perform a random keystroke,
the animation starts.
Both is consistently happening in Leopard and Tiger.
If comment out the [mynsanimation startAnimation] and instead
perform a non animated move of my view [myview setframe:newlocation],
the animation of the progress indicator works as expected.
The progressindicator is set to use its own thread for animation.
I have tried all different NSAnimation blocking modes to no effect.
I would appreciate any hint on how I could make the
progressindication animate even if it is part of a view that is
NSAnimated.
I would also very much like to know what the underlying reason is.
Thanks and kind regards
Thomas
_______________________________________________
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
_______________________________________________
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