allowEvaluation
TypeScriptallowEvaluation(): voidSwift declarationfunc allowEvaluation()class · SDK 27.1
class NSSortDescriptorallowEvaluation(): voidSwift declarationfunc allowEvaluation()compare(object1: unknown, object2: unknown): ComparisonResultSwift declarationfunc compare(_ object1: Any, to object2: Any) -> ComparisonResultstatic initCoder(coder: NSCoder): (NSSortDescriptor) | nullSwift declarationinit?(coder: NSCoder)static initKeyAscending(key: (string) | null, ascending: boolean): NSSortDescriptorSwift declarationinit(key: String?, ascending: Bool)get ascending(): booleanSwift declarationvar ascending: Bool { get }get comparator(): ((arg0: unknown, arg1: unknown) => Promise<ComparisonResult>)Swift declarationvar comparator: Comparator { get }get key(): (string) | nullSwift declarationvar key: String? { get }get reversedSortDescriptor(): unknownSwift declarationvar reversedSortDescriptor: Any { get }static initKeyPathAscending(keyPath: SDKHandle, ascending: boolean): NSSortDescriptorSwift declarationconvenience init<Root, Value>(keyPath: KeyPath<Root, Value>, ascending: Bool)Creates a sort descriptor with a specified key path and ordering. - Parameters: - keyPath: The key path to the property to compare. - ascending: If `true`, the sort descriptor compares using the ``SortOrder/forward`` sort order; otherwise, it uses ``SortOrder/reverse``.
get keyPath(): (SDKHandle) | nullSwift declarationvar keyPath: AnyKeyPath? { get }The key path that specifies the property to compare during sorting.
static init(sortDescriptor: SortDescriptor<_ObjectiveC_NSObject>): NSSortDescriptorSwift declaration@backDeployed(before: iOS 17, macOS 14, tvOS 17, watchOS 10)
convenience init<Compared>(_ sortDescriptor: SortDescriptor<Compared>) where Compared : NSObjectCreates an `NSSortDescriptor` representing the same sort as the given `SortDescriptor`. - Parameters: - sortDescriptor: The `SortDescriptor` to convert.
static init3797(sortDescriptor: SortDescriptor<unknown>): NSSortDescriptorSwift declarationconvenience init<Compared>(_ sortDescriptor: SortDescriptor<Compared>)5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSSortDescriptor.init(keyPath:ascending:comparator:)
callback cannot propagate synchronous failure
NSSortDescriptor.init(key:ascending:selector:)
Objective-C selectors cannot cross the bridge.
NSSortDescriptor.selector
Objective-C selectors cannot cross the bridge.
NSSortDescriptor.init(key:ascending:comparator:)
callback cannot propagate synchronous failure
NSSortDescriptor.init()
inherited init: cannot prove legal (class declares 7 custom initializers)