icon(forFileType:)
Returns an image containing the icon for files of the specified type.
Declaration
func icon(forFileType fileType: String) -> NSImageParameters
- fileType:
The file type, which may be either a filename extension, an encoded HFS file type, or a universal type identifier (UTI).
Return Value
The icon associated with files of the given type.
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.
See Also
Related Documentation
Methods
open(_:options:configuration:)open(_:withApplicationAt:options:configuration:)openFile(_:)openFile(_:withApplication:)openFile(_:withApplication:andDeactivate:)openFile(_:from:at:in:)launchApplication(_:)launchApplication(_:showIcon:autolaunch:)launchApplication(at:options:configuration:)performFileOperation(_:source:destination:files:tag:)fullPath(forApplication:)absolutePathForApplication(withBundleIdentifier:)launchApplication(withBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:)open(_:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:)mountedRemovableMedia()