Instance Method

removeObject(forKey:)

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

Declaration

func removeObject(forKey aKey: KeyType?)

Parameters

aKey

The key to remove.

Discussion

Does nothing if aKey does not exist.

See Also

Manipulating Content

func setObject(ObjectType?, forKey: KeyType?)

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

func removeAllObjects()

Empties the map table of its entries.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software