<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetListViewController/row(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(cs)NCWidgetListViewController(im)rowForViewController:"
  },
  "title" : "row(for:)"
}
-->

# row(for:)

Returns the row represented by the specified content view controller.

```
func row(for viewController: NSViewController) -> Int
```

## Parameters

`viewController`

The content view controller created by the delegate to display the object in the row.

## Return Value

The row represented by the content view controller.

## 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)