Platforms to show: All Mac Windows Linux Cross-Platform

NSRefreshControllerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 26.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A controller that provides pull-to-refresh functionality for scroll views.
Example
// This example needs a window with TextArea1.
// add pull-to-refresh to a scroll view (macOS 26 or newer)
Var refresh As New NSRefreshControllerMBS
refresh.setActionDelegate AddressOf RefreshNow
TextArea1.NSScrollViewMBS.refreshController = refresh

// a method in the window:
Sub RefreshNow()
// reload your data here, then stop the spinner
TextArea1.Text = "Reloaded at " + DateTime.Now.ToString
TextArea1.NSScrollViewMBS.refreshController.endRefreshing
End Sub

NSRefreshController enables users to trigger refresh operations by pulling down on scrollable content. Add a refresh controller to an NSScrollView to provide this functionality. Configure the target delegate to handle refresh events.

Requires macOS 27 or later.

This class has no subclasses.

Blog Entries

Release notes

Some properties using this class:

Some related classes:


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


NSRectMBS   -   NSRegularExpressionMBS


The biggest plugin in space...