One Logo Pool Ball
Foundation · IOS API REFERENCE

NSExpression

class · iOS 3.0+ · SDK 27.1

class NSExpression

Members (34)

init · iOS 3.0+

init

TypeScript
static initForAggregate(subexpressions: Array<NSExpression>): NSExpression
Swift declaration
init(forAggregate subexpressions: [NSExpression])
static · iOS 7.0+

expressionForAnyKey

TypeScript
static expressionForAnyKey(): NSExpression
Swift declaration
class func expressionForAnyKey() -> NSExpression
init · iOS 9.0+

init

TypeScript
static initForConditionalTrueExpressionFalseExpression(predicate: NSPredicate, trueExpression: NSExpression, falseExpression: NSExpression): NSExpression
Swift declaration
init(forConditional predicate: NSPredicate, trueExpression: NSExpression, falseExpression: NSExpression)
init · iOS 3.0+

init

TypeScript
static initForConstantValue(obj?: (unknown) | null): NSExpression
Swift declaration
init(forConstantValue obj: Any?)
static · iOS 3.0+

expressionForEvaluatedObject

TypeScript
static expressionForEvaluatedObject(): NSExpression
Swift declaration
class func expressionForEvaluatedObject() -> NSExpression
init · iOS 3.0+

init

TypeScript
static initForFunctionArguments(name: string, parameters: Array<unknown>): NSExpression
Swift declaration
init(forFunction name: String, arguments parameters: [Any])
init · iOS 3.0+

init

TypeScript
static initForFunctionSelectorNameArguments(target: NSExpression, name: string, parameters?: (Array<unknown>) | null): NSExpression
Swift declaration
init(forFunction target: NSExpression, selectorName name: String, arguments parameters: [Any]?)
init · iOS 3.0+

init

TypeScript
static initForIntersectSetWith(left: NSExpression, right: NSExpression): NSExpression
Swift declaration
init(forIntersectSet left: NSExpression, with right: NSExpression)
init · iOS 3.0+

init

TypeScript
static initForKeyPath(keyPath: string): NSExpression
Swift declaration
init(forKeyPath keyPath: String)
init · iOS 3.0+

init

TypeScript
static initForMinusSetWith(left: NSExpression, right: NSExpression): NSExpression
Swift declaration
init(forMinusSet left: NSExpression, with right: NSExpression)
init · iOS 3.0+

init

TypeScript
static initForSubqueryUsingIteratorVariablePredicate(expression: NSExpression, variable: string, predicate: NSPredicate): NSExpression
Swift declaration
init(forSubquery expression: NSExpression, usingIteratorVariable variable: String, predicate: NSPredicate)
init · iOS 3.0+

init

TypeScript
static initForUnionSetWith(left: NSExpression, right: NSExpression): NSExpression
Swift declaration
init(forUnionSet left: NSExpression, with right: NSExpression)
init · iOS 3.0+

init

TypeScript
static initForVariable(string: string): NSExpression
Swift declaration
init(forVariable string: String)
init · iOS 4.0+

init

TypeScript
static initFormatArgumentArray(expressionFormat: string, arguments_: Array<unknown>): NSExpression
Swift declaration
init(format expressionFormat: String, argumentArray arguments: [Any])
method · iOS 7.0+

allowEvaluation

TypeScript
allowEvaluation(): void
Swift declaration
func allowEvaluation()
method · iOS 3.0+

expressionValue

TypeScript
expressionValue(object?: (unknown) | null, context?: (NSMutableDictionary) | null): (unknown) | null
Swift declaration
func expressionValue(with object: Any?, context: NSMutableDictionary?) -> Any?
init · iOS 3.0+

init

TypeScript
static initCoder(coder: NSCoder): (NSExpression) | null
Swift declaration
init?(coder: NSCoder)
init · iOS 3.0+

init

TypeScript
static initExpressionType(type: NSExpression_ExpressionType): NSExpression
Swift declaration
init(expressionType type: NSExpression.ExpressionType)
get · iOS 3.0+

arguments

TypeScript
get arguments(): (Array<NSExpression>) | null
Swift declaration
var arguments: [NSExpression]? { get }
get · iOS 3.0+

collection

TypeScript
get collection(): unknown
Swift declaration
var collection: Any { get }
get · iOS 3.0+

constantValue

TypeScript
get constantValue(): (unknown) | null
Swift declaration
var constantValue: Any? { get }
get · iOS 4.0+

expressionBlock

TypeScript
get expressionBlock(): ((arg0: (unknown) | null, arg1: Array<NSExpression>, arg2: (NSMutableDictionary) | null) => Promise<unknown>)
Swift declaration
var expressionBlock: (Any?, [NSExpression], NSMutableDictionary?) -> Any { get }
get · iOS 3.0+

expressionType

TypeScript
get expressionType(): NSExpression_ExpressionType
Swift declaration
var expressionType: NSExpression.ExpressionType { get }
get · iOS 9.0+

false

TypeScript
get false(): NSExpression
Swift declaration
@NSCopying var `false`: NSExpression { get }
get · iOS 3.0+

function

TypeScript
get function(): string
Swift declaration
var function: String { get }
get · iOS 3.0+

keyPath

TypeScript
get keyPath(): string
Swift declaration
var keyPath: String { get }
get · iOS 3.0+

left

TypeScript
get left(): NSExpression
Swift declaration
@NSCopying var left: NSExpression { get }
get · iOS 3.0+

operand

TypeScript
get operand(): NSExpression
Swift declaration
@NSCopying var operand: NSExpression { get }
get · iOS 3.0+

predicate

TypeScript
get predicate(): NSPredicate
Swift declaration
@NSCopying var predicate: NSPredicate { get }
get · iOS 3.0+

right

TypeScript
get right(): NSExpression
Swift declaration
@NSCopying var right: NSExpression { get }
get · iOS 9.0+

true

TypeScript
get true(): NSExpression
Swift declaration
@NSCopying var `true`: NSExpression { get }
get · iOS 3.0+

variable

TypeScript
get variable(): string
Swift declaration
var variable: String { get }
init · iOS 8.0+

init

TypeScript
static initForKeyPath31447(keyPath: SDKHandle): NSExpression
Swift declaration
convenience init<Root, Value>(forKeyPath keyPath: KeyPath<Root, Value>)

Creates an expression using a key path you specify. - Parameters: - keyPath: The key path that the new expression evaluates.

init · iOS 18.0+

init

TypeScript
static init(expression: Expression<_ObjectiveC_NSObject, unknown>): (NSExpression) | null
Swift declaration
convenience init?<Input, Output>(_ expression: Expression<Input, Output>) where Input : NSObject

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSExpression.init(format:_:)

A variable number of Swift arguments is not supported.

NSExpression.init(format:arguments:)

A C variable argument list cannot cross the bridge.

NSExpression.init(block:arguments:)

callback cannot propagate synchronous failure

NSExpression.init()

inherited init: cannot prove legal (class declares 19 custom initializers)

All Foundation types →