icon(forFile:)
Returns an image containing the icon for the specified file.
Declaration
func icon(forFile fullPath: String) -> NSImageParameters
- fullPath:
The full path to the file.
Return Value
The icon associated with the file.
Discussion
The returned image has an initial size of 32 pixels by 32 pixels.
You can safely call this method from any thread of your app.