A control that indicates a value on a linear scale.
- macOS 10.4+
Level indicators provide a visual representation of a level or amount of something, using discrete values. While similar to
NSSlider, it provides a more customized visual feedback to the user. Level indicators do not have a “knob” indicating the current setting or allowing the user to adjust settings. The supported indicator styles include:
A capacity style level indicator. The continuous mode for this style is often used to indicate conditions such as how much data is on hard disk. The discrete mode is similar to audio level indicators in audio playback applications. You can specify both a warning value and a critical value that provides additional visual feedback to the user.
A ranking style level indicator. This style is similar to a star ranking display. You can also specify your own ranking image.
A relevancy style level indicator. This style can be used to display the relevancy of an item, such as a search result.
NSLevel uses an
NSLevel to implement much of the control’s functionality.
NSLevel provides cover methods for most of the
NSLevel methods, which invoke the corresponding cell method.