---
title: fetchPredicate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsobjectcontroller/fetchpredicate
---

# fetchPredicate

The receiver’s fetch predicate.

## Declaration

```swift
var fetchPredicate: NSPredicate? { get set }
```

## Discussion

Discussion The receiver uses predicate when fetching its content, for example in fetch(_:). If you need to customize the fetching behavior further, you can override fetch(with:merge:).

## See Also

### Core Data support

- [entityName](appkit/nsobjectcontroller/entityname.md)
- [fetch(_:)](appkit/nsobjectcontroller/fetch(_:).md)
- [usesLazyFetching](appkit/nsobjectcontroller/useslazyfetching.md)
- [defaultFetchRequest()](appkit/nsobjectcontroller/defaultfetchrequest().md)
- [managedObjectContext](appkit/nsobjectcontroller/managedobjectcontext.md)
- [fetch(with:merge:)](appkit/nsobjectcontroller/fetch(with:merge:).md)
