Initializer

init(forVariable:)

Returns a new expression that extracts a value from the variable bindings dictionary for a given key.

Declaration

init(forVariable string: String)

Parameters

string

The key for the variable to extract from the variable bindings dictionary.

Return Value

A new expression that extracts from the variable bindings dictionary the value for the key string.

See Also

Creating an Expression for a Value

init(forConstantValue: Any?)

Returns a new expression that represents a given constant value.

class func expressionForEvaluatedObject() -> NSExpression

Returns a new expression that represents the object being evaluated.

init(forKeyPath: String)

Returns a new expression that invokes valueForKeyPath: with a given key path.

class func expressionForAnyKey() -> NSExpression

Returns a new expression that represents any key for a Spotlight query.

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