O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hash Tables

These functions are used to create and manipulate hash tables, which are structs of type NSHashTable.

NSAllHashTableObjects

NSArray *NSAllHashTableObjects(NSHashTable *table)

NSCompareHashTables

BOOL NSCompareHashTables(NSHashTable *table1, NSHashTable *table2)

NSCopyHashTableWithZone

NSHashTable *NSCopyHashTableWithZone(NSHashTable *table, NSZone *zone)

NSCountHashTable

unsigned NSCountHashTable(NSHashTable *table)

NSCreateHashTable

NSHashTable *NSCreateHashTable(NSHashTableCallBacks callBacks, unsigned capacity)

NSCreateHashTableWithZone

NSHashTable *NSCreateHashTableWithZone(NSHashTableCallBacks callBacks, unsigned capacity, NSZone *zone)

NSEndHashTableEnumeration

void NSEndHashTableEnumeration(NSHashEnumerator *enumerator)

NSEnumerateHashTable

NSHashEnumerator NSEnumerateHashTable(NSHashTable *table)

NSFreeHashTable

void NSFreeHashTable(NSHashTable *table)

NSHashGet

void *NSHashGet(NSHashTable *table, const void *pointer)

NSHashInsert

void NSHashInsert(NSHashTable *table, const void *pointer)

NSHashInsertIfAbsent

void *NSHashInsertIfAbsent(NSHashTable *table, const void *pointer)

NSHashInsertKnownAbsent

void NSHashInsertKnownAbsent(NSHashTable *table, const void *pointer)

NSHashRemove

void NSHashRemove(NSHashTable *table, const void *pointer)

NSNextHashEnumeratorItem

void *NSNextHashEnumeratorItem(NSHashEnumerator *enumerator)

NSResetHashTable

void NSResetHashTable(NSHashTable *table)

NSStringFromHashTable

NSString ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required