<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetListViewDelegate/widgetList(_:viewControllerForRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(pl)NCWidgetListViewDelegate(im)widgetList:viewControllerForRow:"
  },
  "title" : "widgetList(_:viewControllerForRow:)"
}
-->

# widgetList(_:viewControllerForRow:)

Asks the delegate for a content view controller for the specified row.

```
func widgetList(_ list: NCWidgetListViewController, viewControllerForRow row: Int) -> NSViewController
```

## Parameters

`list`

The widget’s list view controller that is requesting this content view controller.

`row`

The number of the row in the list.

## Return Value

A custom view controller to manage the content in the specified row.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)