Instance Property

hasStrings

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

Declaration

@property(nonatomic, readonly) BOOL hasStrings;

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

hasColors

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

hasImages

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

hasURLs

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