O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSProgressIndicator — Mac OS X 10.0

Synopsis

This class implements a progress bar interface component. Cocoa progress indicators may either be determinate or indeterminate. A determinate progress indicator shows progress by filling the bar proportionate to the amount of work that has been done. An indeterminate progress indicator displays the spinning barber pole to show that an application is busy with a task.

image with no caption

@interface NSProgressIndicator : NSView
                                  // Accessor Methods
   - (void)setBezeled:(BOOL)flag;
   - (void)setIndeterminate:(BOOL)flag;
   - (void)setMaxValue:(double)newMaximum;
   - (double)maxValue;
   - (void)setDoubleValue:(double)doubleValue;
   - (double)doubleValue;
   - (void)setAnimationDelay:(NSTimeInterval)delay;
   - (NSTimeInterval)animationDelay;
   - (void)setUsesThreadedAnimation:(BOOL)threadedAnimation;
   - (BOOL)usesThreadedAnimation;
   - (void)setMinValue:(double)newMinimum;
   - (double)minValue;
   - (void)setControlTint:(NSControlTint)tint;
   - (NSControlTint)controlTint;
   - (void)setControlSize:(NSControlSize)size;
   - (NSControlSize)controlSize;
                                  // Instance Methods
   - (BOOL)isDisplayedWhenStopped;
   - (void)setDisplayedWhenStopped:(BOOL)isDisplayed;
   - (void)setStyle:(NSProgressIndicatorStyle)style;
   - (void)sizeToFit;
   - (NSProgressIndicatorStyle)style;
   - (void)animate:(id)sender;
   - (void)incrementBy:(double)delta;
   - (BOOL)isBezeled;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required