Instance Method

description(withLocale:)

Returns a string that represents the contents of the set, formatted as a property list.

Declaration

func description(withLocale locale: Any?) -> String

Parameters

locale

On iOS and macOS 10.5 and later, either an instance of NSDictionary or an NSLocale object may be used for locale.In OS X v10.4 and earlier it must be an instance of NSDictionary.

Return Value

A string that represents the contents of the set, formatted as a property list.

Discussion

This method sends each of the set’s members descriptionWithLocale: with locale passed as the sole parameter. If the set’s members do not respond to descriptionWithLocale:, this method sends description instead.

See Also

Describing a Set

var description: String

A string that represents the contents of the set, formatted as a property list.

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