---
title: NCWidgetListViewController
framework: Notification Center
role: symbol
role_heading: Class
platforms: [macOS 10.10+]
path: notificationcenter/ncwidgetlistviewcontroller
---

# NCWidgetListViewController

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

## Declaration

```swift
class NCWidgetListViewController
```

## Overview

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

- [delegate](notificationcenter/ncwidgetlistviewcontroller/delegate.md)
- [NCWidgetListViewDelegate](notificationcenter/ncwidgetlistviewdelegate.md)

### Accessing Content

- [contents](notificationcenter/ncwidgetlistviewcontroller/contents.md)
- [row(for:)](notificationcenter/ncwidgetlistviewcontroller/row(for:).md)
- [viewController(atRow:makeIfNecessary:)](notificationcenter/ncwidgetlistviewcontroller/viewcontroller(atrow:makeifnecessary:).md)

### Customizing the List Appearance

- [minimumVisibleRowCount](notificationcenter/ncwidgetlistviewcontroller/minimumvisiblerowcount.md)
- [hasDividerLines](notificationcenter/ncwidgetlistviewcontroller/hasdividerlines.md)

### Supporting Editing

- [editing](notificationcenter/ncwidgetlistviewcontroller/editing.md)
- [showsAddButtonWhenEditing](notificationcenter/ncwidgetlistviewcontroller/showsaddbuttonwhenediting.md)

## Relationships

### Inherits From

- [NSViewController](appkit/nsviewcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSEditor](appkit/nseditor.md)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSeguePerforming](appkit/nssegueperforming.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
