---
title: predicate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsruleeditor/predicate
---

# predicate

The rule editor’s predicate.

## Declaration

```swift
var predicate: NSPredicate? { get }
```

## Discussion

Discussion If the delegate implements NSRuleEditor, this property contains the rule editor’s predicate. If the delegate does not implement NSRuleEditor, or if the delegate does not return enough parts to construct a full predicate, this property contains nil.

## See Also

### Working with Predicates

- [reloadPredicate()](appkit/nsruleeditor/reloadpredicate().md)
- [predicate(forRow:)](appkit/nsruleeditor/predicate(forrow:).md)
