Instance Method

readRTFDFromFile:

Attempts to read the RTFD file at path, returning YES if successful and NO if not.

Declaration

- (BOOL)readRTFDFromFile:(NSString *)path;

Discussion

path should be the path for an .rtf file or an .rtfd file wrapper, not for the RTF file within an .rtfd file wrapper.

See Also

Reading and writing RTF files

- writeRTFDToFile:atomically:

Writes the receiver’s text as RTF with attachments to a file or directory at path.

- RTFDFromRange:

Returns an NSData object that contains an RTFD stream corresponding to the characters and attributes within aRange.

- RTFFromRange:

Returns an NSData object that contains an RTF stream corresponding to the characters and attributes within aRange, omitting any attachment characters and attributes.