Platforms to show: All Mac Windows Linux Cross-Platform

NSLevelIndicatorMBS class

Super class: NSControlMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa MBS MacControls Plugin 12.2 Yes No No Yes, macOS only No
Function: NSLevelIndicatorMBS is a subclass of NSControlMBS that displays a value on a linear scale.
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 is similar to the star ranking displays provided in iTunes and iPhoto. You can also specify your own ranking image.
  • A relevancy style level indicator. This style is used to display the relevancy of a search result, for example in Mail.

NSLevelIndicator uses an NSLevelIndicatorCell to implement much of the control's functionality. NSLevelIndicator provides cover methods for most of NSLevelIndicatorCell's methods, which invoke the corresponding cell method.
Subclass of the NSControlMBS class.

Feedback, Comments & Corrections

Style Constants

Constant Value Description
NSContinuousCapacityLevelIndicatorStyle 1 A style that is often used to indicate conditions such as how much data is on a hard disk.
NSDiscreteCapacityLevelIndicatorStyle 2 A style similar to audio level indicators in iTunes.
NSRatingLevelIndicatorStyle 3 A style similar to the star ranking displays provided in iTunes and iPhoto.
NSRelevancyLevelIndicatorStyle 0 A style similar to the rank column displayed when searching in

Tick mark Constants

Constant Value Description
NSTickMarkAbove 1 Tick marks above (for horizontal sliders).
NSTickMarkBelow 0 Tick marks below (for horizontal sliders); the default for horizontal sliders.
NSTickMarkLeft 0 Tick marks to the left (for vertical sliders); the default. for vertical sliders
NSTickMarkRight 1 Tick marks to the right (for vertical sliders).

Super class NSControlMBS

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some examples which use this class:

Blog Entries

The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin, MBS MacControls Plugin.

NSLayoutManagerMBS   -   NSLinguisticTaggerMBS

The biggest plugin in space...

MBS Xojo PDF Plugins