Platforms to show: All Mac Windows Linux Cross-Platform

NSProgressIndicatorMBS class

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way.

Some progress indicators are indeterminate and do nothing more than spin to show that the application is busy. Others are determinate and show the percentage of the task that has been completed.

This also eliminates the hung appearance is you move the window or open a menu. Unlike the RB progress controls that pause when you do these things, the Cocoa version continues to update.

You can embed this view in a CustomNSViewMBS to get more events for mouse and keyboard.
Subclass of the NSViewMBS class.

Constants

Constant Value Description
NSBlueControlTint 1 One of the constants to specify a the control tint. Aqua control tint
NSClearControlTint 7 One of the constants to specify a the control tint. Clear control tint
NSDefaultControlTint 0 One of the constants to specify a the control tint. The current default tint setting
NSGraphiteControlTint 6 One of the constants to specify a the control tint. Graphite control tint
NSMiniControlSize 2 One of the values for the ControlSize property. The control has a smaller size than NSSmallControlSize.
NSProgressIndicatorBarStyle 0 One of the constants for the style property. A rectangular indicator that can be determinate or indeterminate.
NSProgressIndicatorPreferredAquaThickness 12 One of the constants to specify the height of a progress indicator.
NSProgressIndicatorPreferredLargeThickness 18 One of the constants to specify the height of a progress indicator.
NSProgressIndicatorPreferredSmallThickness 10 One of the constants to specify the height of a progress indicator.
NSProgressIndicatorPreferredThickness 14 One of the constants to specify the height of a progress indicator.
NSProgressIndicatorSpinningStyle 1 One of the constants for the style property. A small square indicator that can be indeterminate only .
NSRegularControlSize 0 One of the values for the ControlSize property. The control is sized as regular.
NSSmallControlSize 1 One of the values for the ControlSize property. This constant is for controls that cannot be resized in one direction, such as push buttons, radio buttons, checkboxes, sliders, scroll bars, pop-up buttons, tabs, and progress indicators. You should use a small system font with a small control.

Super class NSViewMBS

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

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 methods using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine


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


NSProcessInfoMBS   -   NSRangeMBS


The biggest plugin in space...