Returns a Boolean value indicating whether the receiver can initialize itself from the data on the specified pasteboard.
- macOS 10.0+
The pasteboard containing the image data.
YES if the receiver understands the format of the specified data and can use it to initialize itself; otherwise,
This method invokes the
image class method and checks the list of types returned by that method against the data types in
pasteboard. If it finds a match, it returns
YES. When creating a subclass of
NSImage that accepts image data from a non-default pasteboard type, override the
image method to assure this method returns the correct response.