NSHashTable Callbacks

Predefined sets of callbacks for NSHashTable.

Overview

In macOS 10.5 and later, see also the NSHashTable class.

Note that you can make your own callback by picking fields among the above callbacks.

Symbols

Constants

let NSIntegerHashCallBacks: NSHashTableCallBacks

For sets of NSInteger-sized quantities or smaller (for example, int, long, or unichar).

let NSNonOwnedPointerHashCallBacks: NSHashTableCallBacks

For sets of pointers, hashed by address.

let NSNonRetainedObjectHashCallBacks: NSHashTableCallBacks

For sets of objects, but without retaining/releasing.

let NSObjectHashCallBacks: NSHashTableCallBacks

For sets of objects (similar to NSSet).

let NSOwnedObjectIdentityHashCallBacks: NSHashTableCallBacks

For sets of objects, with transfer of ownership upon insertion, using pointer equality.

let NSOwnedPointerHashCallBacks: NSHashTableCallBacks

For sets of pointers, with transfer of ownership upon insertion.

let NSPointerToStructHashCallBacks: NSHashTableCallBacks

For sets of pointers to structs, when the first field of the struct is int-sized.