Contents

icon(for:)

Returns an image containing the icon for the specified content type.

Declaration

func icon(for contentType: UTType) -> NSImage

Parameters

  • contentType:

    An object representing a uniform type of content.

Return Value

The icon associated with the content type.

Discussion

This method returns a default icon if the operation fails.

See Also

Managing Icons