---
title: "predicate(forRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsruleeditor/predicate(forrow:)"
---

# predicate(forRow:)

Returns the predicate for a given row.

## Declaration

```swift
func predicate(forRow row: Int) -> NSPredicate?
```

## Parameters

- `row`: The index of a row in the receiver.

## Return Value

Return Value The predicate for the row at row.

## Discussion

Discussion You should rarely have a need to call this directly, but you can override this method in a subclass to perform specialized predicate handling for certain criteria or display values.

## See Also

### Working with Predicates

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