A defined set of rules that allows the editing of predicate objects.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
class NSPredicateEditor : NSRule Editor
Overview
NSPredicate
provides an NSPredicate
property—object
(inherited from NSControl
)—that you can get and set directly, and that you can bind using Cocoa bindings (you typically configure a predicate editor in Interface Builder). NSPredicate
depends on another class, NSPredicate
, that describes the available predicates and how to display them.
Unlike NSRule
, NSPredicate
does not depend on its delegate to populate its rows (and does not call the populating delegate methods). Instead, its rows are populated from its object
property (an instance of NSPredicate
). NSPredicate
relies on instances NSPredicate
, which are responsible for mapping back and forth between the displayed view values and various predicates.
NSPredicate
exposes one property, row
, which is an array of NSPredicate
objects.