Initializer

init(fromMetadataQueryString:)

Initializes a predicate with a metadata query string.

Declaration

init?(fromMetadataQueryString queryString: String)

Parameters

queryString

A metadata query string.

Discussion

For details of the format of the query string, see File Metadata Query Expression Syntax.

See Also

Creating a Predicate

init(format: String, argumentArray: [Any]?)

Initializes a predicate by substituting the values in a given array into a format string and parsing the result.

init(format: String, arguments: CVaListPointer)

Initializes a predicate by substituting the values in an argument list into a format string and parsing the result.

func withSubstitutionVariables([String : Any]) -> Self

Returns a copy of the predicate with the predicate's variables substituted by values specified in a given substitution variables dictionary.

init(value: Bool)

Creates and returns a predicate that always evaluates to a given Boolean value.

init(block: (Any?, [String : Any]?) -> Bool)

Initializes a predicate that evaluates using a specified block object and bindings dictionary.