Creates and returns an image representation object using the data at the specified URL
- macOS 10.0+
The URL pointing to the image data.
An initialized instance of an
NSImage subclass, or
nil if the image data could not be read.
If sent to the
NSImage class object, this method returns a newly allocated instance of a subclass of
NSImage initialized with the contents of the specified URL. If sent to a subclass of
NSImage that recognizes the data contained in the URL, it returns an instance of that subclass initialized with the data in the URL.
This method returns
nil in any of the following cases:
The message is sent to the
NSImageclass object and there are no subclasses in the
NSImageclass registry that handle the data contained in the specified URL.
The message is sent to a subclass of
NSImageand that subclass cannot handle the data contained in the specified URL.
NSImagesubclass is unable to initialize itself with the contents of the specified URL.
NSImage subclass is initialized by creating an
NSData object based on the contents of the file, then passing it to the