Initializes and returns an image object with data from the specified pasteboard.
- macOS 10.0+
The pasteboard containing the image data. The data on the pasteboard can be in any format that macOS supports, including PDF, PICT, EPS, or any number of bitmap data formats.
NSImage object or
nil if the method cannot create an image from the contents of the pasteboard.
The specified pasteboard should contain a type supported by one of the registered
NSImage subclasses. Table 1 lists the default pasteboard types and file extensions for several
Image representation class
Default pasteboard type
Default file extensions
If the specified pasteboard contains the value
NSFilenames, each filename on the pasteboard should have an extension supported by one of the registered
NSImage subclasses. You can use the
image method of a given subclass to obtain the list of supported types for that class.