Initializes and returns an image object with the contents of the specified URL.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
convenience init?(contentsOf url: URL)
Parameters
aUrl
The URL identifying the image.
Return Value
An initialized NSImage
object or nil
if the method cannot create an image representation from the contents of the specified URL.