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

# displayableSubpredicates(of:)

Returns the subpredicates that should be made sub-rows of a given predicate.

```
func displayableSubpredicates(of predicate: NSPredicate) -> [NSPredicate]?
```

## Parameters

`predicate`

A predicate object.

## Return Value

The subpredicates that should be made sub-rows of `predicate`. For compound predicates (instances of <doc://com.apple.documentation/documentation/Foundation/NSCompoundPredicate>), the array of subpredicates; for other types of predicate, returns `nil`. If a template represents a predicate in its entirety, or if the predicate has no subpredicates, returns `nil`.

## Discussion

You can override this method to create custom templates that handle complicated compound predicates.

---

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)