Contents

writeRTFD(toFile:atomically:)

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

Declaration

func writeRTFD(toFile path: String, atomically flag: Bool) -> Bool

Discussion

Returns true on success and false on failure. If atomicFlag is true, attempts to write the file safely so that an existing file at path is not overwritten, nor does a new file at path actually get created, unless the write is successful.

See Also

Reading and writing RTF files