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

Map Tables

These functions are used to create and manipulate map tables, which are structs of type NSMapTable.

NSAllMapTableKeys

NSArray *NSAllMapTableKeys(NSMapTable *table)

NSAllMapTableValues

NSArray *NSAllMapTableValues(NSMapTable *table)

NSCompareMapTables

BOOL NSCompareMapTables(NSMapTable *table1, NSMapTable *table2)

NSCopyMapTableWithZone

NSMapTable *NSCopyMapTableWithZone(NSMapTable *table, NSZone *zone)

NSCountMapTable

unsigned NSCountMapTable(NSMapTable *table)

NSCreateMapTable

NSMapTable *NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks, NSMap-TableValueCallBacks valueCallBacks, unsigned capacity)

NSCreateMapTableWithZone

NSMapTable *NSCreateMapTableWithZone(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, unsigned capacity, NSZone *zone)

NSEndMapTableEnumeration

void NSEndMapTableEnumeration(NSMapEnumerator *enumerator)

NSEnumerateMapTable

NSMapEnumerator NSEnumerateMapTable(NSMapTable *table)

NSFreeMapTable

void NSFreeMapTable(NSMapTable *table)

NSMapGet

void *NSMapGet(NSMapTable *table, const void *key)

NSMapInsert

void NSMapInsert(NSMapTable *table, const void *key, const void *value)

NSMapInsertIfAbsent

void *NSMapInsertIfAbsent(NSMapTable *table, const void *key, const void *value)

NSMapInsertKnownAbsent

void NSMapInsertKnownAbsent(NSMapTable *table, const void *key, const void *value)

NSMapMember

BOOL NSMapMember(NSMapTable *table, const void *key, void **originalKey, void **value)

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