Class

NSProgressIndicator

The NSProgressIndicator class lets an app display a progress indicator to show that a lengthy task is under way. Some progress indicators are indeterminate and do nothing more than show that the app is busy. Others are determinate and show the percentage of the task that has been completed.

Symbols

Animating the progress indicator

func startAnimation(Any?)

Starts the animation of an indeterminate progress indicator.

func stopAnimation(Any?)

Stops the animation of an indeterminate progress indicator.

var usesThreadedAnimation: Bool

A Boolean that indicates whether the progress indicator implements animation in a separate thread.

Advancing the progress bar

func increment(by: Double)

Advances the progress bar of a determinate progress indicator by the specified amount.

var doubleValue: Double

The value that indicates the current extent of the progress indicator.

var minValue: Double

The minimum value for the progress indicator.

var maxValue: Double

The maximum value for the progress indicator.

Setting the appearance

var controlSize: NSControlSize

The size of the progress indicator.

var controlTint: NSControlTint

The progress indicator’s control tint.

var isBezeled: Bool

A Boolean that indicates whether the progress indicator’s frame has a three-dimensional bezel.

var isIndeterminate: Bool

A Boolean that indicates whether the progress indicator is indeterminate.

var style: NSProgressIndicatorStyle

The style of the progress indicator (bar or spinning).

func sizeToFit()

This action method resizes the progress indicator to an appropriate size depending on the value of style.

var isDisplayedWhenStopped: Bool

A Boolean that indicates whether the progress indicator hides itself when it isn’t animating.

Constants

NSProgressIndicatorThickness

Specify the height of a progress indicator.

NSProgressIndicatorStyle

Specify the progress indicator’s style used by style.