Re: NSProgressIndicator (CallBacks)
Re: NSProgressIndicator (CallBacks)
- Subject: Re: NSProgressIndicator (CallBacks)
- From: Sean Murphy <email@hidden>
- Date: Wed, 18 Jul 2007 09:10:57 -0400
On Jul 18, 2007, at 7:09 AM, Barry wrote:
Thanks Alastair for the help with callbacks - that's now working.
However I the NSProgressIndicator Bar is not being displayed.
I originally had a simple spinner which worked fine.
Using IB I changed it to a Bar & since then - nothing is shown.
I also added the code
[progress setMinValue:0];
[progress setMaxValue:256];
[progress setStyle:NSProgressIndicatorBarStyle]; //just to see
if it helped - it didn't !
[progress display]; // this made no difference either
[progress startAnimation:self];
Hi Barry,
As a first step, try calling [progress setDisplayedWhenStopped:YES].
You were previously using NSProgressIndicatorSpinningStyle, which by
default hides itself when not animating.
Also, if your progress bar is a determinate one, starting animation
on it will have no effect. In this deterministic case, the bar can
advance only by calling either setDoubleValue: or incrementBy:.
If the spinning barber pole animation is what you have in mind,
you'll need to setIndeterminate:YES for the animation-related methods
to take effect.
See <http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSProgressIndicator_Class/index.html> for more
information.
Take care,
Sean
_______________________________________________
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