Contents

volatileDomain(forName:)

Retrieves the settings from the specified volatile domain.

Declaration

func volatileDomain(forName domainName: String) -> [String : Any]

Parameters

  • domainName:

    The name of the volatile domain. For example, specify the Argumentdomain identifier to retrieve the command-line settings.

Return Value

A dictionary containing the keys and values from the specified domain. If the domain doesn’t contain any keys, or is a persistent domain, this method returns nil.

Discussion

This method retrieves only the keys and values from the specified domain. It doesn’t retrieve keys from other persistent or volatile domains.

See Also

Managing domain-specific values