fileContentsType(forPathExtension:)
Returns a pasteboard type based on the passed file type.
Declaration
static func fileContentsType(forPathExtension fileType: String) -> NSPasteboard.PasteboardType!Discussion
Returns an NSString to a pasteboard type representing a file’s contents based on the supplied string fileType. fileType should generally be the extension part of a filename. The conversion from a named file type to a pasteboard type is simple; no mapping to standard pasteboard types is attempted.
See Also
Functions
NSConvertGlyphsToPackedGlyphs(_:_:_:_:)raiseBadArgumentException(_:_:_:)NSReleaseAlertPanel(_:)NSDisableScreenUpdates()NSEnableScreenUpdates()NSDrawColorTiledRects(_:_:_:_:_:)NSSetShowsServicesMenuItem(_:_:)NSCopyBits(_:_:_:)NSShowsServicesMenuItem(_:)NSDottedFrameRect(_:)NSReadPixel(_:)NSGetWindowServerMemory(_:_:_:_:)fileNameType(forPathExtension:)representedPathExtensionrepresentedPathExtensions(from:)