Instance Property


Returns a file type based on the passed pasteboard type.


var representedPathExtension: String? { get }


This function is the inverse of both fileContentsType(forPathExtension:) and fileNameType(forPathExtension:). When passed a pasteboard type as returned by those functions, it returns the extension or filename from which the type was derived. It returns nil if pboardType isn’t a pasteboard type created by those functions.

See Also

Pasteboard Functions

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

Returns a pasteboard type based on the passed file type.

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

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