Type Method

fileNameType(forPathExtension:)

Returns a pasteboard type based on the passed file type.

Declaration

static func fileNameType(forPathExtension fileType: String) -> NSPasteboard.PasteboardType!

Discussion

Returns an NSString to a pasteboard type representing a filename based on the supplied string fileType.

See Also

Matching Pasteboard Types to Filename Extensions

static func representedPathExtensions(from: [NSPasteboard.PasteboardType]) -> [String]?

Returns an array of file types based on the passed pasteboard types.