You’re previewing Ry’s Cocoa TutorialUI Components

Progress Bars

In Cocoa, progress bars come in two flavors: temporary and permanent. Temporary progress bars are called Progress Indicators in the Object Library, and permanent ones are called Level Indicators. The underlying classes for these are NSProgressIndicator, and NSLevelIndicator, respectively. Both come in various styles, as shown below:

Temporary progress bars (left) and permanent progress bars (right)

For the most part, temporary and permanent progress bars work the same way—they’re just used for different purposes. Progress Indicators should only be displayed when the user has initiated a lengthy operation, and they should disappear after that operation has finished. Level Indicators, on the other hand, display a relatively static state in your application (e.g., hard disk capacity).

This chapter will teach you how to use all of the progress bars displayed in the above screenshot.

Sorry, this is the end of the preview. To read the rest of this chapter, you’ll need to purchase Ry’s Cocoa Tutorial.

Mailing List

Sign up for my low-volume mailing list to find out when new content is released. Next up is a comprehensive Swift tutorial planned for late January.

You’ll only receive emails when new tutorials are released, and your contact information will never be shared with third parties. Click here to unsubscribe.