Type Property

objectPersonality

Use hash and isEqual methods for hashing and equality comparisons, use the description method for a description.

Declaration

static var objectPersonality: NSPointerFunctions.Options { get }

Discussion

This is the default personality value.

As a special case, if you do not use garbage collection and specify this value in conjunction with strongMemory then the NSPointerFunctions object uses retain and release.

See Also

Personality Options

static var cStringPersonality: NSPointerFunctions.Options

Use a string hash and strcmp; C-string '%s' style description.

static var integerPersonality: NSPointerFunctions.Options

Use unshifted value as hash and equality.

static var objectPointerPersonality: NSPointerFunctions.Options

Use shifted pointer for the hash value and direct comparison to determine equality; use the description method for a description.

static var opaquePersonality: NSPointerFunctions.Options

Use shifted pointer for the hash value and direct comparison to determine equality.

static var structPersonality: NSPointerFunctions.Options

Use a memory hash and memcmp (using a size function that you must set—see sizeFunction).