---
title: "fileWrapperRepresentationOfType:"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/filewrapperrepresentationoftype:"
---

# fileWrapperRepresentationOfType:

Returns a file wrapper object that represents the data of the receiver in a given type.

## Declaration

```occ
- (NSFileWrapper *) fileWrapperRepresentationOfType:(NSString *) type;
```

## Discussion

Discussion Returns an NSFileWrapper object that represents the data of the receiver in a given type (aType). This method invokes dataRepresentationOfType: to get the data object from which to create a plain-file file wrapper. Subclasses can override this method if dataRepresentationOfType: is not adequate for their needs. This method is invoked by the default implementation of writeToFile:ofType:.

## See Also

### Methods

- [dataRepresentationOfType:](appkit/nsdocument/datarepresentationoftype:.md)
- [fileAttributesToWriteToFile:ofType:saveOperation:](appkit/nsdocument/fileattributestowritetofile:oftype:saveoperation:.md)
- [fileName](appkit/nsdocument/filename.md)
- [initWithContentsOfFile:ofType:](appkit/nsdocument/initwithcontentsoffile:oftype:.md)
- [initWithContentsOfURL:ofType:](appkit/nsdocument/initwithcontentsofurl:oftype:.md)
- [loadDataRepresentation:ofType:](appkit/nsdocument/loaddatarepresentation:oftype:.md)
- [loadFileWrapperRepresentation:ofType:](appkit/nsdocument/loadfilewrapperrepresentation:oftype:.md)
- [printShowingPrintPanel:](appkit/nsdocument/printshowingprintpanel:.md)
- [readFromFile:ofType:](appkit/nsdocument/readfromfile:oftype:.md)
- [readFromURL:ofType:](appkit/nsdocument/readfromurl:oftype:.md)
- [revertToSavedFromFile:ofType:](appkit/nsdocument/reverttosavedfromfile:oftype:.md)
- [revertToSavedFromURL:ofType:](appkit/nsdocument/reverttosavedfromurl:oftype:.md)
- [runModalPageLayoutWithPrintInfo:](appkit/nsdocument/runmodalpagelayoutwithprintinfo:.md)
- [saveToFile:saveOperation:delegate:didSaveSelector:contextInfo:](appkit/nsdocument/savetofile:saveoperation:delegate:didsaveselector:contextinfo:.md)
- [saveToURL:ofType:forSaveOperation:error:](appkit/nsdocument/savetourl:oftype:forsaveoperation:error:.md)
