---
title: "init(compoundTypes:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nspredicateeditorrowtemplate/init(compoundtypes:)"
---

# init(compoundTypes:)

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

## Declaration

```swift
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

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

## Discussion

Discussion NSPredicateEditor contains such a template by default.

## See Also

### Initializing a Template

- [init(leftExpressions:rightExpressions:modifier:operators:options:)](appkit/nspredicateeditorrowtemplate/init(leftexpressions:rightexpressions:modifier:operators:options:).md)
- [init(leftExpressions:rightExpressionAttributeType:modifier:operators:options:)](appkit/nspredicateeditorrowtemplate/init(leftexpressions:rightexpressionattributetype:modifier:operators:options:).md)
