Instance Method

object(forKey:)

Returns a the value associated with a given key.

Declaration

func object(forKey aKey: KeyType?) -> ObjectType?

Parameters

aKey

The key for which to return the corresponding value.

Return Value

The value associated with aKey, or nil if no value is associated with aKey.

See Also

Accessing Content

func keyEnumerator() -> NSEnumerator

Returns an enumerator object that lets you access each key in the map table.

func objectEnumerator() -> NSEnumerator?

Returns an enumerator object that lets you access each value in the map table.

var count: Int

The number of key-value pairs in the map table.

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