<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRuleEditor/displayValues(forRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRuleEditor(im)displayValuesForRow:"
  },
  "title" : "displayValues(forRow:)"
}
-->

# displayValues(forRow:)

Returns the chosen values for a given row.

```
func displayValues(forRow row: Int) -> [Any]
```

## Parameters

`row`

The index of a row in the receiver.

## Return Value

The chosen values (strings, views, or menu items) for row `row`.

## Discussion

The values returned are the same as those returned from the delegate’s [`ruleEditor(_:displayValueForCriterion:inRow:)`](/documentation/AppKit/NSRuleEditorDelegate/ruleEditor(_:displayValueForCriterion:inRow:)) method.

---

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)