<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPredicateEditorRowTemplate/init(compoundTypes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPredicateEditorRowTemplate(im)initWithCompoundTypes:"
  },
  "title" : "init(compoundTypes:)"
}
-->

# init(compoundTypes:)

Initializes and returns a row template suitable for displaying compound predicates.

```
init(compoundTypes: [NSNumber])
```

## Parameters

`compoundTypes`

An array of <doc://com.apple.documentation/documentation/Foundation/NSNumber> objects specifying compound predicate types. See <doc://com.apple.documentation/documentation/Foundation/NSCompoundPredicate/LogicalType> for possible values.

## Return Value

A row template initialized for displaying compound predicates of the types specified by `compoundTypes`.

## Discussion

[`NSPredicateEditor`](/documentation/AppKit/NSPredicateEditor) contains such a template by default.

---

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)