Contents

NCWidgetListViewDelegate

The interface for handling content display and editing in the list view of a macOS Today widget.

Declaration

protocol NCWidgetListViewDelegate : NSObjectProtocol

Overview

The NCWidgetListViewDelegate protocol defines methods that handle content display and editing in the list view of a Today widget. The delegate of an NCWidgetListViewController must adopt the NCWidgetListViewDelegate protocol.

The single required method in the protocol, widgetList(_:viewControllerForRow:), creates a view controller for the contents of one row in the widget’s list view. Optional methods in the NCWidgetListViewDelegate protocol support editing actions, such as adding a new list item and reordering or deleting list rows.

Topics

Creating a Content View Controller

Adding and Deleting Rows

Reordering List Rows

See Also

Displaying and Editing List Content