---
title: representedPathExtension
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspasteboard/pasteboardtype/representedpathextension
---

# representedPathExtension

A file type based on the passed pasteboard type.

## Declaration

```swift
var representedPathExtension: String? { get }
```

## Discussion

Discussion 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

### Functions

- [NSConvertGlyphsToPackedGlyphs(_:_:_:_:)](appkit/nsconvertglyphstopackedglyphs(_:_:_:_:).md)
- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSDisableScreenUpdates()](appkit/nsdisablescreenupdates().md)
- [NSEnableScreenUpdates()](appkit/nsenablescreenupdates().md)
- [NSDrawColorTiledRects(_:_:_:_:_:)](appkit/nsdrawcolortiledrects(_:_:_:_:_:).md)
- [NSSetShowsServicesMenuItem(_:_:)](appkit/nssetshowsservicesmenuitem(_:_:).md)
- [NSCopyBits(_:_:_:)](appkit/nscopybits(_:_:_:).md)
- [NSShowsServicesMenuItem(_:)](appkit/nsshowsservicesmenuitem(_:).md)
- [NSDottedFrameRect(_:)](appkit/nsdottedframerect(_:).md)
- [NSReadPixel(_:)](appkit/nsreadpixel(_:).md)
- [NSGetWindowServerMemory(_:_:_:_:)](appkit/nsgetwindowservermemory(_:_:_:_:).md)
- [fileContentsType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filecontentstype(forpathextension:).md)
- [fileNameType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filenametype(forpathextension:).md)
- [representedPathExtensions(from:)](appkit/nspasteboard/pasteboardtype/representedpathextensions(from:).md)
