Contents

icon(forFiles:)

Returns an image containing the icon for the specified files.

Declaration

func icon(forFiles fullPaths: [String]) -> NSImage?

Parameters

  • fullPaths:

    An array of NSString objects, each of which contains the full path to a file.

Return Value

The icon associated with the group of files.

Discussion

If fullPaths specifies one file, that file’s icon is returned. If fullPaths specifies more than one file, an icon representing the multiple selection is returned.

You can safely call this method from any thread of your app.

See Also

Related Documentation

Managing Icons