As others have noted, RTFD is a packaged file format, consisting of a directory in the file system containing the underlying RTF and any attachments. There are therefore two representations of RTFD: first, the on-disk format, and second, a serialized format used on the pasteboard. There are therefore two methods for obtaining RTF from an attributed string, -RTFDFromRange:documentAttributes: (for the pasteboard representation, expressed as an NSData), and - RTFDFileWrapperFromRange:documentAttributes: (for the on-disk representation, expressed as an NSFileWrapper). These two methods are conveniences, specialized to the case of RTFD, for the more general methods -dataFromRange:documentAttributes:error: and - fileWrapperFromRange:documentAttributes:error:.

Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to