Contents

hasStrings

A Boolean value that indicates whether the pasteboard contains a nonempty array of strings.

Declaration

var hasStrings: Bool { get }

Discussion

Employ this property to determine if a pasteboard contains string data.

Do not use the string or strings properties to determine whether a pasteboard contains string data, because doing so consumes resources needlessly.

See Also

Checking for data types on a pasteboard