urlForImageResource(_:)
Returns the location of the specified image resource as an NSURL.
Declaration
func urlForImageResource(_ name: NSImage.Name) -> URL?Parameters
- name:
The name of the image resource file. Including a filename extension is optional.
Return Value
An NSURL for the resource file or nil if the file was not found.