Instance Property

regularFileContents

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

Declaration

@property(readonly, copy) NSData *regularFileContents;

Discussion

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

filename

The filename of the file wrapper object

preferredFilename

The preferred filename for the file wrapper object.

fileAttributes

A dictionary of file attributes.