Instance Method

initWithExpressionType:

Initializes the expression with the specified expression type.

Declaration

- (instancetype)initWithExpressionType:(NSExpressionType)type;

Parameters

type

The type of the new expression, as defined by NSExpressionType.

Return Value

An initialized NSExpression object of the type type.

Discussion

This method is the designated initializer for NSExpression.

See Also

Initializing an Expression

+ expressionWithFormat:

Initializes the expression with the specified expression arguments.

+ expressionWithFormat:argumentArray:

Initializes the expression with the specified expression format and array of arguments.

+ expressionWithFormat:arguments:

Initializes the expression with the specified expression format and arguments list.