Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSScrollViewMBS class.

NSScrollViewMBS.autohidesScrollers as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True when autohiding is set for scroll bars in the scrollview.

(Read and Write property)

NSScrollViewMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The background color.

(Read and Write property)

NSScrollViewMBS.borderType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The border type.

Specifies the appearance of the style of the scroll view's border. See NSBorderType for a list of possible values.
Use constants NSNoBorder = 0, NSLineBorder = 1, NSBezelBorder = 2 or NSGrooveBorder = 3.
(Read and Write property)

NSScrollViewMBS.contentSize as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the size of the receiver's content view.

(Read only property)

NSScrollViewMBS.contentView as NSClipViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The content view.

If view has a document view, this method also sets the receiver's document view to be the document view of view. The original content view retains its document view.
(Read and Write property)

NSScrollViewMBS.documentCursor as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The cursor used when the cursor is over the content view.

Value is an NSCursorMBS object.
(Read and Write property)

NSScrollViewMBS.documentView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The view the receiver scrolls within its content view.

(Read and Write property)

NSScrollViewMBS.documentVisibleRect as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the portion of the document view, in its own coordinate system, visible through the receiver's content view.

(Read only property)

NSScrollViewMBS.drawsBackground as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the scrollview draws its background.

(Read and Write property)

NSScrollViewMBS.FindBarPosition as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The position of the find bar.

See NSScrollViewFindBarPosition* constants for possible values.
(Read and Write property)

Some examples using this property:

NSScrollViewMBS.FindBarView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The view assigned by the text bar as the find bar view for the container.

This property is managed by NSTextFinderMBS and you must not set this property.
The container may freely modify the view's width, but should not modify its height.
(Read only property)

NSScrollViewMBS.FindBarVisible as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the container should display its find bar.

When this property is true and the findBarView property is set, then the find bar is displayed by the container. Otherwise, the find bar is not displayed.
The default value should be false.
(Read and Write property)

Some examples using this property:

NSScrollViewMBS.hasHorizontalRuler as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True if the receiver maintains a horizontal ruler view, false if it doesn't.

(Read and Write property)

NSScrollViewMBS.hasHorizontalScroller as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver keeps a horizontal scroller

(Read and Write property)

NSScrollViewMBS.hasVerticalRuler as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Determines whether the scrollview keeps a vertical ruler object.

(Read and Write property)

NSScrollViewMBS.hasVerticalScroller as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True if the scrollview displays a vertical scroller, false if it doesn't.

(Read and Write property)

NSScrollViewMBS.horizontalLineScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount by which the receiver scrolls itself horizontally when scrolling line by line to aFloat, expressed in the content view's coordinate system.

This amount is the amount used when the user clicks the scroll arrows on the horizontal scroll bar without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this amount to the height of a single line of text in the default font.
(Read and Write property)

NSScrollViewMBS.horizontalPageScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount of the document view kept visible when scrolling horizontally page by page, expressed in the content view's coordinate system.

This amount is used when the user clicks the scroll arrows on the horizontal scroll bar while holding down the Option key.

This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page.
(Read and Write property)

NSScrollViewMBS.horizontalScrollElasticity as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The scroll view's horizontal elasticity mode.

A scroll view can scroll its contents past its bounds to achieve an elastic effect.

When set to NSScrollElasticityAutomatic, scrolling the horizontal axis beyond its document bounds only occurs if the document width is greater than the view width or, the vertical scroller is hidden and the horizontal scroller is visible.

The default value is NSScrollElasticityAutomatic.

Available in Mac OS X v10.7 and later.
(Read and Write property)

NSScrollViewMBS.horizontalScroller as NSScrollerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's horizontal scroller, regardless of whether the receiver is currently displaying it, or nil if the receiver has none.

(Read and Write property)

NSScrollViewMBS.lineScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The horizontal and vertical line scroll amounts to aFloat.

The line scroll is the amount by which the receiver scrolls itself when scrolling line by line, expressed in the content view's coordinate system. It's used when the user clicks the scroll arrows without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this value to the height of a single line of text in the default font.

As part of its implementation, this method sets VerticalLineScroll and HorizontalLineScroll.
(Read and Write property)

NSScrollViewMBS.pageScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The vertical page scroll amount: the amount of the document view kept visible when scrolling vertically page by page, expressed in the content view's coordinate system.

This amount is used when the user clicks the scroll arrows on the vertical scroll bar while holding down the Option key. As part of its implementation, this method calls verticalPageScroll.

This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page.

Note that a scroll view can have two different page scroll amounts: verticalPageScroll and horizontalPageScroll. Use this method only if you can be sure they're both the same.
(Read and Write property)

Some examples using this property:

NSScrollViewMBS.rulersVisible as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether rulers should be visible.

(Read and Write property)

NSScrollViewMBS.scrollerKnobStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The knob style of scroll views that use the overlay scroller style.

Applicable only to scroll views that use overlay scrollers.
Available in Mac OS X v10.7 and later.
(Read and Write property)

Some examples using this property:

NSScrollViewMBS.scrollerStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The scroller style used by the scroll view.

This setting is automatically set at runtime, based on the user's preference setting and, if relevant, the set of connected pointing devices and their configured scroll capabilities, as determined by the NSScroller method preferredScrollerStyle.

Setting an scroll view's scroller style sets the style of both the horizontal and vertical scrollers. If the scroll view subsequently creates or is assigned a new horizontal or vertical scroller, they will be assigned the same scroller style that was assigned to the scroll view..

Available in Mac OS X v10.7 and later.
(Read and Write property)

NSScrollViewMBS.scrollsDynamically as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True if the scrollview redraws its document view while tracking the knob, false if it redraws only when the scroller knob is released.

NSScrollView scrolls dynamically by default.
(Read and Write property)

NSScrollViewMBS.usesPredominantAxisScrolling as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the scroll view uses a predominant scrolling axis for content.

Whether the scroll view supports a predominant scrolling direction. true if there is a predominant scrolling direction; otherwise false.

Some content is scrollable in both the horizontal and vertical axes, but is predominantly scrolled one axis at a time. Other content (such as a drawing canvas) should scroll freely in both axes.

Traditionally this is not an issue with scroll wheels since they can only scroll in one direction at a time. With scroll balls and touch surfaces, it becomes more difficult to determine the user's intention.

This property helps a scroll view determine the user's intention by specifying if there is a predominant scrolling axis for content.

The default value is true.

Available in Mac OS X v10.7 and later.
(Read and Write property)

NSScrollViewMBS.verticalLineScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount by which the view scrolls itself vertically when scrolling line by line to aFloat, expressed in the content view's coordinate system.

This value is the amount used when the user clicks the scroll arrows on the vertical scroll bar without holding down a modifier key. When displaying text in an NSScrollView, for example, you might set this value to the height of a single line of text in the default font.
(Read and Write property)

NSScrollViewMBS.verticalPageScroll as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount of the document view kept visible when scrolling vertically page by page to aFloat, expressed in the content view's coordinate system.

This amount is used when the user clicks the scroll arrows on the vertical scroll bar while holding down the Option key.

This amount expresses the context that remains when the receiver scrolls by one page, allowing the user to orient to the new display. It differs from the line scroll amount, which indicates how far the document view moves. The page scroll amount is the amount common to the content view before and after the document view is scrolled by one page. Thus, setting the page scroll amount to 0.0 implies that the entire visible portion of the document view is replaced when a page scroll occurs.
(Read and Write property)

NSScrollViewMBS.verticalScrollElasticity as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The scroll view's vertical elasticity mode.

A scroll view can scroll its contents past its bounds to achieve an elastic effect.

When set to NSScrollElasticityAutomatic, scrolling the vertical axis beyond its document bounds occurs if any of the following are true: the vertical scroller is visible, the content height is greater than view height, or the horizontal scroller hidden.

Available in Mac OS X v10.7 and later.
(Read and Write property)

Some examples using this property:

NSScrollViewMBS.verticalScroller as NSScrollerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's vertical scroller, regardless of whether the receiver is currently displaying it, or nil if the receiver has none.

(Read and Write property)

Some examples using this property:

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


The biggest plugin in space...