Instance Method

setObject(_:forKey:)

Adds a given key-value pair to the map table.

Declaration

func setObject(_ anObject: ObjectType?, forKey aKey: KeyType?)

Parameters

anObject

The value for aKey.

aKey

The key for anObject.

See Also

Manipulating Content

func removeObject(forKey: KeyType?)

Removes a given key and its associated value from the map table.

func removeAllObjects()

Empties the map table of its entries.