Enumeration

NSComparisonPredicate.Operator

Defines the type of comparison for NSComparisonPredicate.

Declaration

enum Operator : UInt

Topics

Constants

case lessThan

A less-than predicate.

case lessThanOrEqualTo

A less-than-or-equal-to predicate.

case greaterThan

A greater-than predicate.

case greaterThanOrEqualTo

A greater-than-or-equal-to predicate.

case equalTo

An equal-to predicate.

case notEqualTo

A not-equal-to predicate.

case matches

A full regular expression matching predicate.

case like

A simple subset of the MATCHES predicate, similar in behavior to SQL LIKE.

case beginsWith

A begins-with predicate.

case endsWith

An ends-with predicate.

case `in`

A predicate to determine if the left hand side is in the right hand side.

case customSelector

A predicate that uses a custom selector that takes a single argument and returns a BOOL value.

case contains

A predicate to determine if the left hand side contains the right hand side.

case between

A predicate to determine if the left hand side lies at or between bounds specified by the right hand side.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software