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.