Instance Property


The contents of the file-system node associated with a regular-file file wrapper.


@property(readonly, copy) NSData *regularFileContents;


This property may contain nil if the user modifies the file after you call readFromURL:options:error: or initWithURL:options:error: but before NSFileWrapper has read the contents of the file. Use the NSFileWrapperReadingImmediate reading option to reduce the likelihood of that problem.

Special Considerations

This property raises NSInternalInconsistencyException if the file wrapper object is not a regular-file file wrapper.

See Also

Accessing Files


The filename of the file wrapper object


The preferred filename for the file wrapper object.


A dictionary of file attributes.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software