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;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.