Initializer

init(forConstantValue:)

Returns a new expression that represents a given constant value.

Declaration

init(forConstantValue obj: Any?)

Parameters

obj

The constant value the new expression is to represent.

Return Value

A new expression that represents the constant value, obj.

See Also

Creating an Expression for a 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.

init(forVariable: String)

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

class func expressionForAnyKey() -> NSExpression

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