Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSScrollerMBS class.
NSScrollerMBS.isCompatibleWithOverlayScrollers as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns true if the the class is compatible with overlay scroller style and behavior, otherwise false.
The plugin implements this so you can query the value.
NSScrollerMBS.NSPreferredScrollerStyleDidChangeNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Posted if the preferred scroller style changes.
Available in Mac OS X v10.7 and later.
NSScrollerMBS.preferredScrollerStyle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Controls | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The preferred scroller style is determined by the Appearance preference panel's "Show scroll bars" setting for the current user, and—when the user's preference is set to "Automatically based on input device"—by the set of built-in and connected pointing devices and the user's scroll capability preference settings for them. The preferred scroller style may therefore change over time, and applications should be prepared to adapt their user interfaces to the new scroller style if needed.
In most cases, updating to a new scroller style is automatic: When the preferred scroller style changes, AppKit notifies all NSScrollView instances, sending setScrollerStyle to each with the new style, which causes each scroll view to automatically re-tile (update its layout) to adapt to the new scroller style. Some NSScrollView instances may refuse the new scroller style setting if they cannot accommodate it for compatibility reasons (the presence of accessory views or legacy scroller subclasses prevent use of overlay scrollers), but most instances will switch to the specified new preferred scroller style.
If you need to be notified of changes to the preferred scroller style, you can register to receive NSPreferredScrollerStyleDidChangeNotification notifications.
Available in Mac OS X v10.7 and later.
NSScrollerMBS.scrollerWidth as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSScrollView uses this value to lay out its components. Subclasses that use a different width should override this method.
NSScrollerMBS.scrollerWidthForControlSize(controlsize as Integer) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The items on this page are in the following plugins: MBS MacControls Plugin.