Instance Property

hasURLs

Returns a Boolean value indicating whether or not the urls property contains a nonempty array.

Declaration

var hasURLs: Bool { get }

Discussion

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

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

See Also

Checking for Data Types on a Pasteboard

var hasColors: Bool

Returns a Boolean value indicating whether or not the colors property contains a nonempty array.

var hasImages: Bool

Returns a Boolean value indicating whether or not the images property contains a nonempty array.

var hasStrings: Bool

Returns a Boolean value indicating whether or not the strings property contains a nonempty array.