Contents

NCWidgetListViewController

An object that provides a list view for displaying content in a macOS Today widget.

Declaration

class NCWidgetListViewController

Overview

The NCWidgetListViewController class provides a list view for displaying content in a Today widget. A list view controller works together with its delegate to display content and support user interaction with the list. To learn about the list view controller delegate methods, see NCWidgetListViewDelegate.

You store the contents of a widget as an array of objects in the list view controller’s contents property. To display the objects, you use a delegate object, which provides a custom view controller for each object in contents. A list view controller also provides properties that make it easy to specify aspects of the list’s appearance and behavior, such as the number of rows to display, the presence of divider lines, and the ability to edit the list.

Topics

Displaying and Editing List Content

Accessing Content

Customizing the List Appearance

Supporting Editing