<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPredicateEditorRowTemplate/templateViews",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPredicateEditorRowTemplate(py)templateViews"
  },
  "title" : "templateViews"
}
-->

# templateViews

Returns the views that display this template’s predicate.

```
var templateViews: [NSView] { get }
```

## Return Value

The views for an [`NSPredicateEditor`](/documentation/AppKit/NSPredicateEditor) to display in a row that represents the predicate from [`setPredicate(_:)`](/documentation/AppKit/NSPredicateEditorRowTemplate/setPredicate(_:)).

## Discussion

[`NSPredicateEditor`](/documentation/AppKit/NSPredicateEditor) treats instances of [`NSPopUpButton`](/documentation/AppKit/NSPopUpButton) specially by merging their menu items into a single popup button, and by combining menu items with matching titles. In this way, the editor builds a single tree from the separate templates.

---

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)