<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRuleEditor/PredicatePartKey/compoundType",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSRuleEditorPredicateCompoundType"
  },
  "title" : "compoundType"
}
-->

# compoundType

The corresponding value is an `NSNumber` object representing a `NSCompoundPredicateType` constant.

```
static let compoundType: NSRuleEditor.PredicatePartKey
```

## Discussion

If specified, the other keys are ignored and the predicate for the row will be an <doc://com.apple.documentation/documentation/Foundation/NSCompoundPredicate> predicate whose subpredicates are the predicates of the subrows of the given row.

---

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)