One Logo Pool Ball
Foundation · IOS API REFERENCE

NSValue

class · SDK 27.1

class NSValue

Members (13)

init

init

TypeScript
static initWithObjCType(value: SDKHandle, type: SDKHandle): NSValue
Swift declaration
init(_ value: UnsafeRawPointer, withObjCType type: UnsafePointer<CChar>)
init

init

TypeScript
static initNonretainedObject(anObject?: (unknown) | null): NSValue
Swift declaration
init(nonretainedObject anObject: Any?)
init

init

TypeScript
static initPointer(pointer?: (SDKHandle) | null): NSValue
Swift declaration
init(pointer: UnsafeRawPointer?)
init

init

TypeScript
static initRange(range: SDKHandle): NSValue
Swift declaration
init(range: NSRange)
method · iOS 2.0+ · Deprecated in iOS 100000.0

getValue

TypeScript
getValue(value: SDKHandle): void
Swift declaration
func getValue(_ value: UnsafeMutableRawPointer)
method · iOS 11.0+

getValue

TypeScript
getValueSize(value: SDKHandle, size: number): void
Swift declaration
func getValue(_ value: UnsafeMutableRawPointer, size: Int)
init

init

TypeScript
static initBytesObjCType(value: SDKHandle, type: SDKHandle): NSValue
Swift declaration
init(bytes value: UnsafeRawPointer, objCType type: UnsafePointer<CChar>)
init

init

TypeScript
static initCoder(coder: NSCoder): (NSValue) | null
Swift declaration
init?(coder: NSCoder)
method

isEqual

TypeScript
isEqual(value: NSValue): boolean
Swift declaration
func isEqual(to value: NSValue) -> Bool
get

nonretainedObjectValue

TypeScript
get nonretainedObjectValue(): (unknown) | null
Swift declaration
var nonretainedObjectValue: Any? { get }
get

objCType

TypeScript
get objCType(): SDKHandle
Swift declaration
var objCType: UnsafePointer<CChar> { get }
get

pointerValue

TypeScript
get pointerValue(): (SDKHandle) | null
Swift declaration
var pointerValue: UnsafeMutableRawPointer? { get }
get

rangeValue

TypeScript
get rangeValue(): SDKHandle
Swift declaration
var rangeValue: NSRange { get }

Skipped declarations

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

NSValue.value(of:)

Passing a Swift type itself is not supported.

NSValue.init()

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

All Foundation types →